alignScopeToGeometryBBox operation

alignScopeToGeometryBBox(alignAxes)

alignAxes selector

xy, yxThe scope x and y axes are aligned. The scope z axis stays fixed.
xz, zxThe scope x and z axes are aligned. The scope y axis stays fixed.
yz, zyThe scope y and z axes are aligned. The scope x axis stays fixed.

The alignScopeToGeometryBBox operation manipulates the scope and the pivot in the following way:

Related

Example

alignScopeToGeometryBBox_before
Lot --> Lot.

The initial shape. The initial scope x axis and pivot x axis are aligned to the first edge of the geometry (illustrated with an arrow). The y axes are aligned to the face normal. The origin of the pivot is situated at the first edge.

alignScopeToGeometryBBox_after
Lot --> alignScopeToGeometryBBox(xz)

The scope x and z axes are aligned to the geometry. The scope x axis is oriented along the larger extent of the minimum area bounding rectangle of the geometry. The pivot is placed at the origin of the scope.