com.jme3.util
Class TangentBinormalGenerator

java.lang.Object
  extended by com.jme3.util.TangentBinormalGenerator

public class TangentBinormalGenerator
extends java.lang.Object


Nested Class Summary
static class TangentBinormalGenerator.TriangleData
          Keeps track of tangent, binormal, and normal for one triangle.
 
Constructor Summary
TangentBinormalGenerator()
           
 
Method Summary
static void generate(Mesh mesh)
           
static void generate(Mesh mesh, boolean approxTangents)
           
static void generate(Spatial scene)
           
static Mesh genNormalLines(Mesh mesh, float scale)
           
static Mesh genTbnLines(Mesh mesh, float scale)
           
static TangentBinormalGenerator.TriangleData processTriangle(int[] index, Vector3f[] v, Vector2f[] t)
           
static void setToleranceAngle(float angle)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TangentBinormalGenerator

public TangentBinormalGenerator()
Method Detail

generate

public static void generate(Mesh mesh)

generate

public static void generate(Spatial scene)

generate

public static void generate(Mesh mesh,
                            boolean approxTangents)

processTriangle

public static TangentBinormalGenerator.TriangleData processTriangle(int[] index,
                                                                    Vector3f[] v,
                                                                    Vector2f[] t)

setToleranceAngle

public static void setToleranceAngle(float angle)

genTbnLines

public static Mesh genTbnLines(Mesh mesh,
                               float scale)

genNormalLines

public static Mesh genNormalLines(Mesh mesh,
                                  float scale)