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,
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
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:
-
DTMServiceResult–Successfull state
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:
-
DTMServiceResult–Successful state
Placeholder