Vizard 7 » Reference » Matrix transforms » Matrix transform basics
7.6

Matrix transform basics

Transforms are objects that embody generic position and orientation data.  Vizard uses them internally for all its operations.  You can use these to:

Creating Transforms

mat = viz.Matrix()        # Create a fresh matrix object
mat.postTrans([0,1.8,0])  # Post multiply it by a translation matrix

Applying to 3D objects

mat = viz.Matrix()
mat.setPosition([0, 1.8, 0])
myObject = viz.add('beachball.osgb')
myObject.setMatrix(mat)

See also

In this section:

Combining Transforms

Quaternions

Matrix Transforms command table

Other sections:

3D model transforms basics

Example scripts:

Matrix transformations