com.microcrowd.loader.java3d.max3ds.chunks
Class AxisChunk

java.lang.Object
  extended by com.microcrowd.loader.java3d.max3ds.chunks.Chunk
      extended by com.microcrowd.loader.java3d.max3ds.chunks.AxisChunk

public class AxisChunk
extends Chunk

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

AxisChunk

public AxisChunk()
Method Detail

loadData

public void loadData(ChunkChopper chopper)
Loads the local coordinate system for the current mesh.

Overrides:
loadData in class Chunk
Parameters:
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-2011 Microcrowd. All Rights Reserved.