pyvista_cad.CadMultiBlockAccessor.plot#
- CadMultiBlockAccessor.plot(**kwargs)[source]#
CAD-friendly plot: shaded faces + topological edges.
Renders the assembly with B-rep feature curves overlaid rather than triangle-mesh edges. Honours a
{'faces', 'edges'}block produced bypyvista_cad.topods_to_multiblock(); otherwise resolves through the cached originatingTopoDS.- Parameters:
- **kwargs
Forwarded to
pyvista_cad.add_cad()/pyvista.Plotter.show().
- Returns:
- Any
Whatever
pyvista.Plotter.show()returns.
- Parameters:
kwargs (Any)
- Return type:
Examples
>>> import pyvista as pv >>> pv.OFF_SCREEN = True >>> import pyvista_cad >>> mb = pv.MultiBlock([pv.Sphere()]) >>> cpos = mb.cad.plot(return_cpos=True) >>> type(cpos).__name__ 'CameraPosition'