pyvista.Prop3D

目次

pyvista.Prop3D#

class Prop3D[ソース]#

vtkProp3D の Prop3D ラッパー.

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, and pyvista.plotting.volume.Volume.

Prop3D applies transformations in the following order:

  1. Translate entity to its origin.

  2. Scale entity by the values in scale.

  3. Rotate entity using the values in orientation. Internally, rotations are applied in the order rotate_y(), then rotate_x(), then rotate_z().

  4. Translate entity away from its origin and to its position.

  5. Transform entity with user_matrix.

メソッド

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.

Prop3D.rotation_from(rotation)

Set the entity's orientation from a rotation.

アトリビュート

Prop3D.bounds

エンティティの境界を返します.

Prop3D.center

エンティティの中央を返します.

Prop3D.length

Return the length of the entity.

Prop3D.orientation

Return or set the entity orientation angles.

Prop3D.origin

Return or set the entity origin.

Prop3D.position

エンティティの位置を返すか設定します.

Prop3D.scale

エンティティスケールを返すか設定します.

Prop3D.user_matrix

ユーザー行列を返すか設定します.