pyvista_cad.write_three_mf

On this page

pyvista_cad.write_three_mf#

write_three_mf(dataset, path, /, *, units=None, **_)[source]#

Write a pyvista.PolyData or pyvista.MultiBlock as 3MF.

Each block becomes one 3MF mesh object. Surface meshes are triangulated automatically.

Parameters:
datasetpyvista.PolyData or pyvista.MultiBlock

Source dataset.

pathstr or os.PathLike

Destination .3mf path.

unitsstr or None, optional

One of 'micron', 'mm', 'cm', 'inch', 'foot', 'm'. Falls back to field_data['cad.units'] if set, otherwise lib3mf’s default.

**_Any

Forward-compat keyword arguments are accepted and ignored.

Parameters:
Return type:

None