trimesh.path.exchange.load module¶
- trimesh.path.exchange.load.load_path(file_obj, file_type: str | None = None, **kwargs)¶
Load a file to a Path file_object.
- Parameters:
file_obj –
- Accepts many types:
Path, Path2D, or Path3D file_objects
open file file_object (dxf or svg)
file name (dxf or svg)
shapely.geometry.Polygon
shapely.geometry.MultiLineString
dict with kwargs for Path constructor
(n, 2, (2|3)) float line segments
file_type – Type of file is required if file object is passed.
- Returns:
path – Data as a native trimesh Path file_object
- Return type:
- trimesh.path.exchange.load.path_formats()¶
Get a list of supported path formats.
- Returns:
loaders – Extensions of loadable formats, ie: [‘svg’, ‘dxf’]
- Return type:
list of str