pysdic.Plotter3D#
The pysdic.Plotter3D displays the geometrical objects of pysdic (pysdic.PointCloud, pysdic.Mesh and pysdic.IntegrationPoints) with pyvista.
Important
Requires the optional package pyvista (pip install pyvista). Use Plotter3D.is_available() to check it.
Plotter3D class#
- class Plotter3D(*args, **kwargs)[source]#
Bases:
RequiresOptionalMixinA plotter for the geometrical objects of pysdic (
pysdic.PointCloud,pysdic.Meshandpysdic.IntegrationPoints), based onpyvista.Important
Requires the optional package
pyvista(pip install pyvista): anImportErroris raised when the class is instantiated without it. UsePlotter3D.is_available()to check it.
Instantiation#
The Plotter3D class takes no argument: plotter = Plotter3D(). The objects are added with the add_* methods and displayed with show().
Implemented methods and attributes#
The following sections provide an overview of the attributes and methods defined
in the pysdic.Plotter3D class.
Attributes#
[Get] the internal pyvista.Plotter object used for plotting. |
Adding objects#
|
Add a point cloud to the plotter (only for \(E \leq 3\), the missing coordinates are set to 0). |
|
Add a mesh to the plotter (only for \(E \leq 3\), the missing coordinates are set to 0). |
|
Add integration points to the plotter, at their global coordinates in a mesh (see |
|
Add a scalar bar to the plotter for visualizing scalar properties. |
|
Add an orientation widget showing the X, Y and Z axes in the bottom left corner of the plotter. |
Scene settings and display#
|
Add a title to the plotter. |
|
Show bounds on the plotter for visualizing the axes and grid. |
|
Set the camera position for the plotter. |
Clear the plotter of all geometrical objects and reset the view. |
|
|
Show the plotter with the added geometrical objects. |