DTMService
Canonical path: NemAll_Python_BaseElements.DTMService
Implementation of the DTM service
Methods:
-
GetAllSurfaces
–Get all surfaces
-
GetBorderPolyline
–Get the border polyline of the top surfaces
-
GetEdges
–Get the edges used for the merge
-
GetSolid
–Get a solid from the DTM
-
GetTopFacePolygons
–Get the top surface polygons
-
MergeTopSurface
–Overloaded function. See individual overloads.
-
__init__
–Initialize
GetAllSurfaces
GetAllSurfaces() -> list[tuple[str, str]]
GetBorderPolyline
GetBorderPolyline() -> Polyline3D
GetEdges
GetEdges() -> Line3DList
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
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
Placeholder