smarts.core.utils.glb module

class smarts.core.utils.glb.GLBData(bytes_)[source]

Convenience class for writing GLB files.

write_glb(output_path: str | Path)[source]

Generate a geometry file.

smarts.core.utils.glb.make_map_glb(polygons: List[Tuple[Polygon, Dict[str, Any]]], bbox: BoundingBox, lane_dividers, edge_dividers) GLBData[source]

Create a GLB file from a list of road polygons.

smarts.core.utils.glb.make_road_line_glb(lines: List[List[Tuple[float, float]]]) GLBData[source]

Create a GLB file from a list of road/lane lines.