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