public class TangentBinormalGenerator
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
TangentBinormalGenerator.TriangleData
Keeps track of tangent, binormal, and normal for one triangle.
|
Modifier and Type | Field and Description |
---|---|
static boolean |
debug |
Constructor and Description |
---|
TangentBinormalGenerator() |
Modifier and Type | Method and Description |
---|---|
static void |
generate(Mesh mesh) |
static void |
generate(Mesh mesh,
boolean approxTangents) |
static void |
generate(Mesh mesh,
boolean approxTangents,
boolean splitMirrored) |
static void |
generate(Spatial scene) |
static void |
generate(Spatial scene,
boolean splitMirrored) |
static void |
generateParallel(Spatial scene,
java.util.concurrent.ExecutorService executor) |
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) |
public static void generate(Mesh mesh)
public static void generate(Spatial scene, boolean splitMirrored)
public static void generate(Spatial scene)
public static void generateParallel(Spatial scene, java.util.concurrent.ExecutorService executor)
public static void generate(Mesh mesh, boolean approxTangents, boolean splitMirrored)
public static void generate(Mesh mesh, boolean approxTangents)
public static TangentBinormalGenerator.TriangleData processTriangle(int[] index, Vector3f[] v, Vector2f[] t)
public static void setToleranceAngle(float angle)