Intersection¶
- class py123d.datatypes.map_objects.Intersection[source]¶
Class representing an intersection in a map, which consists of multiple lane groups.
Public Data Attributes:
layerThe
MapLayerof the map object.lane_group_idsList of IDs of the lane groups that belong to the intersection.
lane_groupsList of
LaneGroupinstances that belong to the intersection.Inherited from
BaseMapSurfaceObjectoutlineThe 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 lane_group_ids: List[str | int]¶
List of IDs of the lane groups that belong to the intersection.
- 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.