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:
object
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__
¶ 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_NONE
if 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
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.Return type: bool Returns: Returns True
if the iterator reaches a branch node and false otherwise.
-
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.Return type: bool Returns: Returns True
if the iterator reaches a left leaf node and false otherwise.
-
isRightLeaf
()¶ This method returns
True
if the iterator reaches a right leaf node in the CSG solid tree structure. This method returnsFalse
if the iterator is at a branch node or a left leaf node in the CSG solid tree structure.Return type: bool Returns: Returns True
if the iterator reaches a right leaf node and false otherwise.
-