Base Map Objects

class py123d.datatypes.BaseMapObject[source]

Base interface representation of all map objects.

Public Data Attributes:

object_id

The unique identifier of the map object (unique within a map layer).

layer

The MapLayer of the map object.


property object_id: str | int

The unique identifier of the map object (unique within a map layer).

abstract property layer: MapLayer

The MapLayer of the map object.

class py123d.datatypes.BaseMapSurfaceObject[source]

Base interface representation of all map objects that represent surfaces.

Public Data Attributes:

outline

The outline of the surface as either Polyline2D or Polyline3D.

outline_2d

The outline of the surface as Polyline2D.

outline_3d

The outline of the surface as Polyline3D (zero-padded to 3D if necessary).

shapely_polygon

The shapely polygon of the surface.

trimesh_mesh

The trimesh mesh representation of the surface.

Inherited from BaseMapObject

object_id

The unique identifier of the map object (unique within a map layer).

layer

The MapLayer of the map object.


property outline: Polyline2D | Polyline3D

The outline of the surface as either Polyline2D or Polyline3D.

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.

abstract property layer: MapLayer

The MapLayer of the map object.

property object_id: str | int

The unique identifier of the map object (unique within a map layer).

class py123d.datatypes.BaseMapLineObject[source]

Base interface representation of all line map objects.

Public Data Attributes:

polyline

The polyline representation, either Polyline2D or Polyline3D.

polyline_2d

The polyline representation as Polyline2D.

polyline_3d

The polyline representation as Polyline3D (zero-padded to 3D if necessary).

shapely_linestring

The shapely LineString representation of the polyline.

Inherited from BaseMapObject

object_id

The unique identifier of the map object (unique within a map layer).

layer

The MapLayer of the map object.


property polyline: Polyline2D | Polyline3D

The polyline representation, either Polyline2D or Polyline3D.

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.

abstract property layer: MapLayer

The MapLayer of the map object.

property object_id: str | int

The unique identifier of the map object (unique within a map layer).