pyvista_cad.CadDataSetAccessor.to_topods#
- CadDataSetAccessor.to_topods()[source]#
Build a faceted
TopoDSshape from the dataset.A watertight mesh yields a
TopoDS_Solid; an open mesh yields a sewn shell or compound.- Returns:
- TopoDS_Shape
TopoDS_Solidfor a watertight mesh, otherwise a sewn shell or compound.
- Return type:
Examples
>>> import pyvista as pv >>> import pyvista_cad >>> type(pv.Sphere().cad.to_topods()).__name__ 'TopoDS_Solid'