Rotate Object

Rotates an object in a 3D scene by the values Axis and Angle. This VI performs a relative rotation from the object's current position.


icon

Inputs/Outputs

  • csobjref.png Scene.Object In

    Scene.Object In is the reference to the 3D object you want to rotate.

  • cnclst.png Axis

    Axis specifies the x, y, and z coordinates that define the axis around which the rotation occurs.

  • csgl.png X

    X specifies the x coordinate.

  • csgl.png Y

    Y specifies the y coordinate.

  • csgl.png Z

    Z specifies the z coordinate.

  • csgl.png Angle

    Angle specifies the angle in radians around the Axis by which the rotation occurs.

  • cerrcodeclst.png error in (no error)

    error in describes error conditions that occur before this node runs. This input provides standard error in functionality.

  • isobjref.png Scene.Object Out

    Scene.Object Out returns the reference to the rotated 3D object.

  • ierrcodeclst.png error out

    error out contains error information. This output provides standard error out functionality.

  • Examples

    Refer to the following example files included with LabVIEW.

    • labview\examples\Graphics and Sound\3D Picture Control\3D Model of Solar System.vi
    • labview\examples\Graphics and Sound\3D Picture Control\Order of Transformations.vi