PolygonalArea3D
Canonical path: NemAll_Python_Geometry.PolygonalArea3D
Bases: PolygonalArea
3D polygonal area class for 3D polygonal area geometry
RefPoint
property
Get and set the reference point in world coordinate system as property
:type: None
AppendRelVertex
AppendVertex
EqualRef
EqualRef(polygon: PolygonalArea3D) -> bool
Test for equal reference points.
Parameters:
-
polygon
(PolygonalArea3D
) –polygonal area for comparision.
Returns:
-
bool
–True if reference points are equal else return false.
GetEdgeVertices
GetEdgeVertices(edgeIndex: int) -> tuple
GetPolygon
GetPolygon() -> tuple
GetRefPoint
GetRefPoint() -> Point3D
GetRelVertex
GetRelVertex(vertexIndex: int) -> tuple
Get vertex in Local coordinate system.
Parameters:
-
vertexIndex
(int
) –vertex index.
Returns:
-
tuple
–vertex in local coordinate system.
GetVertex
GetVertex(vertexIndex: int) -> tuple
Reverse
Reverse() -> eGeometryErrorCode
SetRefPoint
SetRefPoint(refPoint: Point3D) -> eGeometryErrorCode
Set reference point in world coordinate system.
Coordinates of points will be recalculated with new reference point.
Parameters:
-
refPoint
(Point3D
) –new reference point.
-
or
–code.
__eq__
__eq__(polygonalArea: PolygonalArea3D) -> object
Comparison of polygonalAreas without tolerance.
Be careful, this method work without tolerance!
Parameters:
-
polygonalArea
(PolygonalArea3D
) –Compared polygonalArea.
Returns:
-
object
–True when polygonalAreas are equal, otherwise false.
__getitem__
__getitem__(arg2: int) -> Point3D
Get point at position from index. Used world coordinates.
Parameters:
-
vertexIndex
–vertex index.
Returns:
-
Point3D
–Copy of vertex[vertexIndex] in world coordinates.
__iadd__
overloaded
__iadd__(polygonalarea: PolygonalArea3D) -> object
Append polygon.
Parameters:
-
polygonalarea
(PolygonalArea3D
) –polygonal area which will be appended.
Returns:
-
object
–Reference to PolygonalArea3D.
__iadd__(polygon: Polygon3D) -> object
Append loop.
Parameters:
-
polygon
(Polygon3D
) –polygonal area which will be appended.
Returns:
-
object
–Reference to PolygonalArea3D.
__init__
overloaded
Initialize
Default constructor.
Create initialized 3D polygonal area with expected vertices and edges count.
__init__(refPoint: Point3D, verticesCount: int, edgesCount: int)
Default constructor.
Create initialized 3D polygonal area with expected vertices and edges count.
__init__(polygon: PolygonalArea3D)
__mul__
overloaded
__mul__(matrix: Matrix2D) -> object
2D matrix transformation.
Parameters:
-
matrix
(Matrix2D
) –2D transformation matrix.
Returns:
-
object
–Transformed 3D polygon area.
__mul__(matrix: Matrix3D) -> object
3D matrix transformation.
Parameters:
-
matrix
(Matrix3D
) –3D transformation matrix.
Returns:
-
object
–Transformed 3D polygon area.