trimesh.path.exchange.export
- trimesh.path.exchange.export.export_dict(path)
Export a path as a dict of kwargs for the Path constructor.
- trimesh.path.exchange.export.export_path(path, file_type=None, file_obj=None, **kwargs)
Export a Path object to a file- like object, or to a filename
- Parameters
file_obj (None, str, or file object) – A filename string or a file-like object
file_type (None or str) – File type, e.g.: ‘svg’, ‘dxf’
kwargs (passed to loader) –
- Returns
exported – Data exported
- Return type
str or bytes