Skip to content

DTMService

Canonical path: NemAll_Python_BaseElements.DTMService

Implementation of the DTM service

Methods:

GetAllSurfaces

GetAllSurfaces() -> list[tuple[str, str]]

Get all surfaces

Returns:

  • list[tuple[str, str]]

    vector with the surface ID and name

GetBorderPolyline

GetBorderPolyline() -> Polyline3D

Get the border polyline of the top surfaces

Returns:

GetEdges

GetEdges() -> Line3DList

Get the edges used for the merge

Returns:

GetSolid

GetSolid(
    doc: DocumentAdapter,
    dtmID: str,
    cutPolygon: Polygon2D,
    bottomElevation: float,
    cutCrossedTriangles: bool,
)

Get a solid from the DTM

Parameters:

  • doc (DocumentAdapter) –

    Document

  • dtmID (str) –

    DTM ID

  • cutPolygon (Polygon2D) –

    Cutting polygon

  • bottomElevation (float) –

    Bottom elevation of the solid

  • cutCrossedTriangles (bool) –

    Cut crossed triangles state

GetTopFacePolygons

GetTopFacePolygons() -> Polygon3DList

Get the top surface polygons

Returns:

MergeTopSurface overloaded

MergeTopSurface(dtmID: str, polyhed: Polyhedron3D) -> bool

Merge the top surfaces to the DTM

Parameters:

  • dtmID (str) –

    DTM ID

  • polyhed (Polyhedron3D) –

    Polyhedron to merge

Returns:

  • bool

    Successfull state

MergeTopSurface(dtmID: str, brep: BRep3D) -> bool

Merge the top surfaces to the DTM

Parameters:

  • dtmID (str) –

    DTM ID

  • brep (BRep3D) –

    BRep to merge

Returns:

  • bool

    Successful state

__init__

__init__()

Initialize

Placeholder