User Tools

Site Tools


DzOrientedBox3

An oriented 3D box.

More...

Inherits :

Properties

Constructors

DAZ Script
DzOrientedBox3 ()
DzOrientedBox3 ( String box )
DzOrientedBox3 ( DzOrientedBox3 box )
DzOrientedBox3 ( DzMatrix3 transform )
DzOrientedBox3 ( DzBox3 box, DzMatrix3 transform )
DzOrientedBox3 ( DzBox3 box, DzVec3 translation, DzQuat rotation, DzVec3 scale )
DzOrientedBox3 ( DzVec3 translation, DzQuat rotation, DzVec3 scale )

Methods

Detailed Description

Represents a 3D box by storing two 3D vectors - an upper and lower corner for the box, and a transformation for its orientation.

Properties


DzBox3 : localBox

The box in 'local space' (without transforms applied)


DzMatrix3 : transform

The transform matrix of the box in 3D space

Constructors


DzOrientedBox3()

Constructor. Creates an uninitialized box with an identity transform - the first point included in an uninitialized box will become the min and max for the box.


DzOrientedBox3( String box )

Creates an oriented box by parsing a string.

Parameter(s):

  • box - A string representation of the box in the form "[[ minX, minY, minZ ], [ maxX, maxY, maxZ ], [ m11, m21, m31, m12, m22, m32, m13, m23, m33, m14, m24, m34 ]]"

DzOrientedBox3( DzOrientedBox3 box )

Copy constructor.

Parameter(s):

  • box - The box to copy from.

DzOrientedBox3( DzMatrix3 transform )

Creates an uninitialized box with the given transform - the first point included in an uninitialized box will become the min and max for the box.

Parameter(s):

  • transform - The transformation to apply to this box

DzOrientedBox3( DzBox3 box, DzMatrix3 transform )

Creates an oriented box that is the given box with the given transform.

Parameter(s):

  • box - The box to copy from.
  • transform - The transformation to apply to this box.

DzOrientedBox3( DzBox3 box, DzVec3 translation, DzQuat rotation, DzVec3 scale )

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Creates an oriented box that is the given box with the given transform.

Parameter(s):

  • box - The box to copy from.
  • translation - The translation to apply to this box.
  • rotation - The rotation to apply to this box.
  • scale - The scale to apply to this box.

DzOrientedBox3( DzVec3 translation, DzQuat rotation, DzVec3 scale )

Creates an uninitialized box with the given transform - the first point included in an uninitialized box will become the min and max for the box.

Parameter(s):

  • translation - The translation to apply to this box.
  • rotation - The rotation to apply to this box.
  • scale - The scale to apply to this box.

Methods


String : toString()

Return Value:

  • A string representation of this oriented box in the form "[[ minX, minY, minZ ], [ maxX, maxY, maxZ ], [ m11, m21, m31, m12, m22, m32, m13, m23, m33, m14, m24, m34 ]]".