pyvista_cad.CadDataSetAccessor.plot

pyvista_cad.CadDataSetAccessor.plot#

CadDataSetAccessor.plot(**kwargs)[source]#

CAD-friendly plot: shaded faces + topological edges.

Unlike pyvista.DataSet.plot(), the overlaid lines are the model’s topological edges (B-rep feature curves), not the arbitrary triangle-mesh edges. For a mesh with no cached B-rep origin, falls back to crease feature-edge extraction.

Parameters:
**kwargs

Forwarded to pyvista_cad.add_cad() / pyvista.Plotter.show().

Returns:
Any

Whatever pyvista.Plotter.show() returns.

Parameters:

kwargs (Any)

Return type:

Any

Examples

>>> import pyvista as pv
>>> pv.OFF_SCREEN = True
>>> import pyvista_cad
>>> cpos = pv.Sphere().cad.plot(return_cpos=True)
>>> type(cpos).__name__
'CameraPosition'