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,
    bottomDistance: float,
    cutCrossedTriangles: bool,
) -> bool

Get a solid from the DTM

Parameters:

  • doc (DocumentAdapter) –

    Document

  • dtmID (str) –

    DTM ID

  • cutPolygon (Polygon2D) –

    Cutting polygon

  • bottomDistance (float) –

    Distance from the DTM to the bottom of the solid

  • cutCrossedTriangles (bool) –

    Cut crossed triangles state

Returns:

  • bool

    Solid created state

GetTopFacePolygons

GetTopFacePolygons() -> Polygon3DList

Get the top surface polygons

Returns:

MergeTopSurface overloaded

MergeTopSurface(
    dtmID: str, polyhed: Polyhedron3D, verticalFacesOffset: float
) -> DTMServiceResult

Merge the top surfaces to the DTM

Parameters:

  • dtmID (str) –

    DTM ID

  • polyhed (Polyhedron3D) –

    Polyhedron to merge

  • verticalFacesOffset (float) –

    Bottom offset for vertical faces with 90 degree

Returns:

MergeTopSurface(
    dtmID: str, brep: BRep3D, verticalFacesOffset: float
) -> DTMServiceResult

Merge the top surfaces to the DTM

Parameters:

  • dtmID (str) –

    DTM ID

  • brep (BRep3D) –

    BRep to merge

  • verticalFacesOffset (float) –

    Bottom offset for vertical faces with 90 degree

Returns:

__init__

__init__()

Initialize

Placeholder