pyvista.Prop3D#
- class Prop3D(*args, **kwargs)[source]#
Prop3D wrapper for vtkProp3D.
Used to represent an entity in a rendering scene. It provides spatial properties and methods relating to an entity’s position, orientation and scale. It is used as parent class for
pyvista.Actor,pyvista.AxesActor, andpyvista.plotting.volume.Volume.Prop3Dapplies transformations in the following order:Translate entity to its
origin.Scale entity by the values in
scale.Rotate entity using the values in
orientation. Internally, rotations are applied in the orderrotate_y(), thenrotate_x(), thenrotate_z().Translate entity away from its origin and to its
position.Transform entity with
user_matrix.
Methods#
|
Return a copy of this prop. |
|
Rotate the entity about the x-axis. |
|
Rotate the entity about the y-axis. |
|
Rotate the entity about the z-axis. |
|
Set the entity's orientation from a rotation. |
|
Apply a transformation to this object's |
Attributes#
Return the bounds of the entity. |
|
Return the center of the entity. |
|
Return the length of the entity. |
|
Return or set the entity orientation angles. |
|
Return or set the entity origin. |
|
Return or set the entity position. |
|
Return or set entity scale. |
|
Return or set the user matrix. |