Skip to content

PolygonalArea

Canonical path: NemAll_Python_Geometry.PolygonalArea

The PolygonalArea class is the base class for PolygonalArea2D and PolygonalArea3D.

AppendEdge

AppendEdge(edge: GeometryEdge) -> eGeometryErrorCode

Append edge (appendPolygonEdge).

Parameters:

Returns:

GetComponentsCount

GetComponentsCount() -> int

Get count of components.

Returns:

  • int

    Count of component.

GetEdge

GetEdge(edgeIndex: int) -> tuple[eGeometryErrorCode, GeometryEdge]

Get edge.

Parameters:

  • edgeIndex (int) –

    index of the edge.

Returns:

GetEdges

GetEdges() -> tuple[eGeometryErrorCode, list[GeometryEdge]]

Get copy of all edges.

Returns:

GetEdgesCount

GetEdgesCount() -> int

Get count of edges.

Returns:

  • int

    Count of edges.

GetLoopEndEdgeIndex

GetLoopEndEdgeIndex(loopIndex: int) -> int

Get the index of last edge of a loop.

Parameters:

  • loopIndex (int) –

    index of loop.

Returns:

  • int

    Index of the last edge of the loop identified by the loopIndex value.

GetLoopsCount

GetLoopsCount() -> int

Get Count of loops.

Returns:

  • int

    Count of loops.

GetNeighborEdges

GetNeighborEdges(
    edgeIndex: int,
) -> tuple[eGeometryErrorCode, GeometryEdge, GeometryEdge]

Get neighbor edges.

Parameters:

  • edgeIndex (int) –

    edge index.

Returns:

GetNextEdge

GetNextEdge(edgeIndex: int) -> tuple[eGeometryErrorCode, GeometryEdge]

Get next edge.

Parameters:

  • edgeIndex (int) –

    edge index.

Returns:

GetPlane

Get plane if polygon is plane.

Returns:

GetPrevEdge

GetPrevEdge(edgeIndex: int) -> tuple[eGeometryErrorCode, GeometryEdge]

Get previous edge.

Parameters:

  • edgeIndex (int) –

    edge index.

Returns:

GetVector

Get Normal vector if polygon is plane.

Returns:

GetVerticesCount

GetVerticesCount() -> int

Get count of vertices.

Returns:

  • int

    Count of vertices.

IsValid

IsValid() -> bool

Checking validity

Returns:

  • bool

    True when valid, otherwise false.

SetPlane

SetPlane(plane: Plane3D)

Set plane.

Parameters:

  • plane (Plane3D) –

    plane which will be set.

SetVector

SetVector(vec: Vector3D) -> eGeometryErrorCode

Set normal vector.

Parameters:

  • vec (Vector3D) –

    vector which will be set.

Returns:

Placeholder