public class SmoothingGroups
extends java.lang.Object
| Constructor and Description |
|---|
SmoothingGroups(int[][] faces,
int[][] faceNormals,
float[] normals)
Instantiates a new smoothing groups.
|
| Modifier and Type | Method and Description |
|---|---|
static int[] |
calcSmoothGroups(int[][] faces,
int[][] faceNormals,
float[] normals)
Calculates smoothing groups for data formatted in PolygonMesh style.
|
static int[] |
calcSmoothGroups(javafx.scene.shape.TriangleMesh mesh,
int[] flatFaces,
int[] flatFaceNormals,
float[] normals)
Calculates smoothing groups for data formatted in TriangleMesh style.
|
public SmoothingGroups(int[][] faces,
int[][] faceNormals,
float[] normals)
faces - the facesfaceNormals - the face normalsnormals - the normalspublic static int[] calcSmoothGroups(int[][] faces,
int[][] faceNormals,
float[] normals)
faces - An array of faces, where each face consists of an array of vertex and uv indicesfaceNormals - An array of face normals, where each face normal consists of an array of normal indicesnormals - The array of normalspublic static int[] calcSmoothGroups(javafx.scene.shape.TriangleMesh mesh,
int[] flatFaces,
int[] flatFaceNormals,
float[] normals)
mesh - the meshflatFaces - An array of faces, where each triangle face is represented by 6 (vertex and uv) indicesflatFaceNormals - An array of face normals, where each triangle face is represented by 3 normal indicesnormals - The array of normals