fmeobjects.FMECSGSolidIterator¶
FMECSGSolidIterator.getOperator() |
This method returns a valid CSG Boolean Operator if isLeaf() returns True. |
FMECSGSolidIterator.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. |
FMECSGSolidIterator.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. |
FMECSGSolidIterator.isLeftLeaf() |
This method returns True if the iterator reaches a left leaf node in the CSG solid tree structure. |
FMECSGSolidIterator.isRightLeaf() |
This method returns True if the iterator reaches a right leaf node in the CSG solid tree structure. |
-
class
FMECSGSolidIterator¶ Bases:
objectFME CSG Solid Iterator Class
init()
FMECSGSolidIteratorshould not be constructed directly. Instead, use the iterator semantics ofFMECSGSolidto get anFMECSGSolidIteratorwhich can be used to iterate over its geometries.-
__init__¶ Initialize self. See help(type(self)) for accurate signature.
-
getOperator()¶ This method returns a valid CSG Boolean Operator if isLeaf() returns
True. This method returnsFME_CSG_NONEif isLeaf() returnsFalse.Return type: int 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
Trueif 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 returnsFalseif the iterator is at a leaf node.Return type: bool Returns: Returns Trueif the iterator reaches a branch node and false otherwise.
-
isLeftLeaf()¶ This method returns
Trueif the iterator reaches a left leaf node in the CSG solid tree structure. This method returnsFalseif the iterator is at a branch node or a right leaf node in the CSG solid tree structure.Return type: bool Returns: Returns Trueif the iterator reaches a left leaf node and false otherwise.
-
isRightLeaf()¶ This method returns
Trueif the iterator reaches a right leaf node in the CSG solid tree structure. This method returnsFalseif the iterator is at a branch node or a left leaf node in the CSG solid tree structure.Return type: bool Returns: Returns Trueif the iterator reaches a right leaf node and false otherwise.
-