Base Map Objects¶
- class py123d.datatypes.BaseMapObject[source]¶
Base interface representation of all map objects.
Public Data Attributes:
object_idThe unique identifier of the map object (unique within a map layer).
layerThe
MapLayerof the map object.
- class py123d.datatypes.BaseMapSurfaceObject[source]¶
Base interface representation of all map objects that represent surfaces.
Public Data Attributes:
outlineThe outline of the surface as either
Polyline2DorPolyline3D.outline_2dThe outline of the surface as
Polyline2D.outline_3dThe outline of the surface as
Polyline3D(zero-padded to 3D if necessary).shapely_polygonThe shapely polygon of the surface.
trimesh_meshThe trimesh mesh representation of the surface.
Inherited from
BaseMapObjectobject_idThe unique identifier of the map object (unique within a map layer).
layerThe
MapLayerof the map object.
- property outline: Polyline2D | Polyline3D¶
The outline of the surface as either
Polyline2DorPolyline3D.
- property outline_2d: Polyline2D¶
The outline of the surface as
Polyline2D.
- property outline_3d: Polyline3D¶
The outline of the surface as
Polyline3D(zero-padded to 3D if necessary).
- property shapely_polygon: Polygon¶
The shapely polygon of the surface.
- property trimesh_mesh: Trimesh¶
The trimesh mesh representation of the surface.
- class py123d.datatypes.BaseMapLineObject[source]¶
Base interface representation of all line map objects.
Public Data Attributes:
polylineThe polyline representation, either
Polyline2DorPolyline3D.polyline_2dThe polyline representation as
Polyline2D.polyline_3dThe polyline representation as
Polyline3D(zero-padded to 3D if necessary).shapely_linestringThe shapely LineString representation of the polyline.
Inherited from
BaseMapObjectobject_idThe unique identifier of the map object (unique within a map layer).
layerThe
MapLayerof the map object.
- property polyline: Polyline2D | Polyline3D¶
The polyline representation, either
Polyline2DorPolyline3D.
- property polyline_2d: Polyline2D¶
The polyline representation as
Polyline2D.
- property polyline_3d: Polyline3D¶
The polyline representation as
Polyline3D(zero-padded to 3D if necessary).
- property shapely_linestring: LineString¶
The shapely LineString representation of the polyline.