Hi,
use alignScopeToGeometry() with the according edge index.
e.g.
alignScopeToGeometry(yUp, 0, i)
0 indicates the first polygon of the shape. Typically, a shape only has one polygon, but also can have multiple ...
i indicates the edge of interest.
After this, scope x is oriented along the edge, therefore splitting in z will be perpendicular (assuming you work with flat shapes).
Cheers,
matt
------------------------------------------------------------------------------------------------------------------
matthias buehler || ceo & co-founder || msc. arch. eth zurich
------------------------------------------------------------------------------------------------------------------
vrbn AG – official esri partner || www.vrbn.io || winterthurerstrasse 53 || 8610 uster || switzerland
+41 78 930 04 07 || matthias.buehler@vrbn.io || @vrbnio @mattb3d