PolyhedronFace
Canonical path: NemAll_Python_Geometry.PolyhedronFace
Polyhedron face All constructors are prohibited, only Polyhedron3D can instantiate this class. This behavior is dependant on old %Allplan architecture and can be changed.
Methods:
-
AppendEdge
–Overloaded function. See individual overloads.
-
AppendEdges
–Append edges into face
-
GetEdge
–Get the edge index on specified position
-
GetEdges
–Get the edge index on specified position
-
GetEdgesCount
–Get count of edges
-
GetFlags
–Get the flags of the face
-
SetFlags
–Set the flags of the face
-
__getitem__
–Get the edge index on specified position
-
__init__
–Standard copy constructor
-
__repr__
–Convert the list to a string
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
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.