Contents
Class SmoothingGroups
java.lang.Object
eu.mihosoft.vrl.v3d.ext.openjfx.importers.SmoothingGroups
Util for converting Normals to Smoothing Groups
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int[]
calcSmoothGroups
(int[][] faces, int[][] faceNormals, float[] normals) Calculates smoothing groups for data formatted in PolygonMesh stylestatic int[]
calcSmoothGroups
(javafx.scene.shape.TriangleMesh mesh, int[] flatFaces, int[] flatFaceNormals, float[] normals) Calculates smoothing groups for data formatted in TriangleMesh style
-
Constructor Details
-
Method Details
-
calcSmoothGroups
public static int[] calcSmoothGroups(int[][] faces, int[][] faceNormals, float[] normals) Calculates smoothing groups for data formatted in PolygonMesh style- Parameters:
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 normals- Returns:
- An array of smooth groups, where the length of the array is the number of faces
-
calcSmoothGroups
public static int[] calcSmoothGroups(javafx.scene.shape.TriangleMesh mesh, int[] flatFaces, int[] flatFaceNormals, float[] normals) Calculates smoothing groups for data formatted in TriangleMesh style- Parameters:
flatFaces
- 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- Returns:
- An array of smooth groups, where the length of the array is the number of faces
-