Iterates over children in a shape.
Iterator supports two usage scenario:
To retrieve direct children of a shape, ShapeIterator
should be used as follows:
To retrieve children of a particular type, ShapeIterator
should be used by specifying a type of interest as follows:
When using the latter approach exploration is done traversing the graph of subshapes in a depth-first manner. Each subshape will be found as many times as it is registered in the parent subshape. For instance, a seam-edge will be encountered twice, with forward and reversed orientations.
The order of returned subshapes is deterministic and corresponds to the order in which the subshapes were added during construction.
Iterable
<Shape
>new ShapeIterator(
shape
,type
?):ShapeIterator
Parent BRep shape.
Type of iterated shape.
Parent body or shape.
Type of iterated shape.
new ShapeIterator(
body
,shapeType
?):ShapeIterator
Parent body.
SheetBody
| SolidBody
| WireframeBody
Type of iterated shape.
Parent body or shape.
Type of iterated shape.
BaseObject.constructor
get id():
bigint
Returns object id.
bigint
Iterable.[iterator]