public class AxisChunk extends Chunk
Constructor and Description |
---|
AxisChunk() |
Modifier and Type | Method and Description |
---|---|
void |
loadData(ChunkChopper chopper)
Loads the local coordinate system for the current mesh.
|
addSubChunk, getDescription, getName, getSubChunk, initialize, setDescription, setName, toString
public void loadData(ChunkChopper chopper)
loadData
in class Chunk
chopper
- the ChunkChopper containing the state of the parser.
The location of the local coordinate system is defined relative to
positions and rotations at frame 0. But the orientation is absolutely
defined.
With either 3x3 or 4x4 rotation, translation, there
is a simple relationship between each matrix and the resulting coordinate
system. The first three columns of the matrix define the direction vector of the
X, Y and Z axii respectively.
If a 4x4 matrix is defined as:
| A B C D |
M = | E F G H |
| I J K L |
| M N O P |
Then the direction vector for each axis is as follows:
X-axis = [ A E I ]
Y-axis = [ B F J ]
Z-axis = [ C G K ]
Copyright © 2000-2013 Microcrowd. All Rights Reserved.