j3d.org Code

org.j3d.loaders.discreet
Class MaxUtils

java.lang.Object
  extended by org.j3d.loaders.discreet.MaxUtils

public class MaxUtils
extends java.lang.Object

Utility class for working on the parsed 3DS objects to create additional data structures.

This class can be used to take the mesh structure and generate appropriate normals, bi normals and tangent space information.

Version:
$Revision: 1.3 $
Author:
Justin Couch

Constructor Summary
MaxUtils()
           
 
Method Summary
 void calcAllNormals(ObjectMesh mesh)
          Do all the parsing work.
 void calcBiNormalsAndTangents(TriangleMesh mesh)
          Calculate the binormals tangents for a given tri-mesh.
 void calcNormals(TriangleMesh mesh)
          Calculate the normals for a given tri-mesh.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MaxUtils

public MaxUtils()
Method Detail

calcAllNormals

public void calcAllNormals(ObjectMesh mesh)
Do all the parsing work. Convenience method for all meshes to call internally the calcNormals(). Binormal and tangent space information are not calculated.

Parameters:
mesh - The mesh to process for normals

calcBiNormalsAndTangents

public void calcBiNormalsAndTangents(TriangleMesh mesh)
Calculate the binormals tangents for a given tri-mesh. Will use the smoothgroup and normal information, if present to make smooth or hard edges for each face.


calcNormals

public void calcNormals(TriangleMesh mesh)
Calculate the normals for a given tri-mesh. Will use the smoothgroup information, if present to make smooth or hard edges for each face.

Parameters:
mesh - The mesh to use the data from

j3d.org Code

Latest Info from http://code.j3d.org/
Copyright © 2001 - j3d.org