dent package¶
Subpackages¶
Submodules¶
dent.ActionController module¶
dent.Animation module¶
-
class
dent.Animation.
Bone
(name, parent_name, id, children, offsetmatrix, positions, rotations)¶ Bases:
tuple
-
children
¶ Alias for field number 3
-
id
¶ Alias for field number 2
-
name
¶ Alias for field number 0
-
offsetmatrix
¶ Alias for field number 4
-
parent_name
¶ Alias for field number 1
-
positions
¶ Alias for field number 5
-
rotations
¶ Alias for field number 6
-
dent.Bone module¶
dent.Camera module¶
dent.InstancedObject module¶
dent.MultiObject module¶
dent.Object module¶
dent.Pager module¶
dent.RectangleObjects module¶
dent.RenderPipeline module¶
dent.RenderStage module¶
dent.Scene module¶
dent.assets module¶
dent.configuration module¶
dent.core module¶
dent.taskQueue module¶
dent.transforms module¶
-
dent.transforms.
quaternion_matrix
(quaternion)[source]¶ Return homogeneous rotation matrix from quaternion.
>>> M = quaternion_matrix([0.99810947, 0.06146124, 0, 0]) >>> numpy.allclose(M, rotation_matrix(0.123, [1, 0, 0])) True >>> M = quaternion_matrix([1, 0, 0, 0]) >>> numpy.allclose(M, numpy.identity(4)) True >>> M = quaternion_matrix([0, 1, 0, 0]) >>> numpy.allclose(M, numpy.diag([1, -1, -1, 1])) True
-
dent.transforms.
rotate
(M, angle, x, y, z, point=None)[source]¶ rotate produces a rotation of angle degrees around the vector (x, y, z).
Parameters: - M – Current transformation as a numpy array
- angle – Specifies the angle of rotation, in degrees.
- y, z (x,) – Specify the x, y, and z coordinates of a vector, respectively.
-
dent.transforms.
scale
(M, x, y=None, z=None)[source]¶ scale produces a non uniform scaling along the x, y, and z axes. The three parameters indicate the desired scale factor along each of the three axes.
Parameters: y, z (x,) – Specify scale factors along the x, y, and z axes, respectively.
-
dent.transforms.
translate
(M, x, y=None, z=None)[source]¶ translate produces a translation by (x, y, z) .
Parameters: y, z (x,) – Specify the x, y, and z coordinates of a translation vector.