fmeobjects.FMECSGSolidIterator
This method returns a valid CSG Boolean Operator if isLeaf() returns |
|
This method returns the same solid as next() but if the CSG solid has a transformation matrix, the matrix is NOT applied to the leaf solid when returned. |
|
This method returns |
|
This method returns |
|
This method returns |
- class FMECSGSolidIterator
FME CSG Solid Iterator Class
init()
FMECSGSolidIterator
should not be constructed directly. Instead, use the iterator semantics ofFMECSGSolid
to get anFMECSGSolidIterator
which can be used to iterate over its geometries.- __init__(*args, **kwargs)
- getOperator()
This method returns a valid CSG Boolean Operator if isLeaf() returns
True
. This method returnsFME_CSG_NONE
if isLeaf() returnsFalse
.- Return type:
- Returns:
Returns a valid CSG Boolean Operator.
- getPartInLocalCoordinates()
This method returns the same solid as next() but if the CSG solid has a transformation matrix, the matrix is NOT applied to the leaf solid when returned. This method must be called after next().
- Return type:
FMESolid or None
- Returns:
Returns the solid at the current node in local coordinates.
- isBranch()
This method returns
True
if the iterator reaches a branch node in the CSG solid tree structure and if next() was called a Stop iteration exception would be thrown. This method returnsFalse
if the iterator is at a leaf node.
- isLeftLeaf()
This method returns
True
if the iterator reaches a left leaf node in the CSG solid tree structure. This method returnsFalse
if the iterator is at a branch node or a right leaf node in the CSG solid tree structure.