pyvista.Prop3D#
- class Prop3D[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
.Prop3D
applies 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
Prop3D.rotate_x
(angle)Rotate the entity about the x-axis.
Prop3D.rotate_y
(angle)Rotate the entity about the y-axis.
Prop3D.rotate_z
(angle)Rotate the entity about the z-axis.
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.