PolyhedronFace
Canonical path: NemAll_Python_Geometry.PolyhedronFace
Representation class for the polyhedron face
All constructors are prohibited, only Polyhedron3D can instantiate this class. This behavior is dependant on old %Allplan architecture and can be changed.
AppendEdge
overloaded
Append edge into face
Parameters:
-
edgeHandle
(int
) –Appended EdgeHandle.
-
positiveOrientation
(bool
) –True for positive, false for negative orientation.
AppendEdge(edge: OrientedEdge)
AppendEdges
AppendEdges(edges: OrientedEdgeList)
GetEdge
GetEdge(edgeIndex: int) -> tuple[bool, OrientedEdge]
Get the edge index on specified position
Old interface: getFaceEdge
Parameters:
-
edgeIndex
(int
) –Specified position in edge vector.
Returns:
-
tuple[bool, OrientedEdge]
–tuple(False when edgeIndex is out of range or when occurred another error, otherwise true., Edge index)
GetEdges
GetEdges() -> OrientedEdgeList
GetEdgesCount
Get count of edges
Old interface: getFaceEdgeCount
Returns:
-
int
–Count of edges.
__getitem__
__getitem__(edgeIndex: int) -> OrientedEdge
Get the edge index on specified position
Method can throw exception when index is out of range. Please use the GetEdgeIndex with return flag when you do not used exception handler. Old interface: getFaceEdge
Parameters:
-
edgeIndex
(int
) –Specified position in edge vector.
Returns:
-
OrientedEdge
–Edge index, not reference.
__init__
__init__(face: PolyhedronFace)