|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.microcrowd.loader.java3d.max3ds.chunks.Chunk
com.microcrowd.loader.java3d.max3ds.chunks.AxisChunk
public class AxisChunk
Extracts the local coordinate that will act as a shape's axis that will be used by the mesh info chunk.
| Constructor Summary | |
|---|---|
AxisChunk()
|
|
| Method Summary | |
|---|---|
void |
loadData(ChunkChopper chopper)
Loads the local coordinate system for the current mesh. |
| Methods inherited from class com.microcrowd.loader.java3d.max3ds.chunks.Chunk |
|---|
addSubChunk, getDescription, getName, getSubChunk, initialize, setDescription, setName, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AxisChunk()
| Method Detail |
|---|
public void loadData(ChunkChopper chopper)
loadData in class Chunkchopper - 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 ]
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||