Package com.gaia3d.util
Class GaiaPrimitiveUtils
java.lang.Object
com.gaia3d.util.GaiaPrimitiveUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
calculateConvexity
(GaiaVertex vertex, org.joml.Vector3d normal, List<GaiaVertex> neighborVertices, double error) static GaiaPrimitive
getRectangularNet
(int numCols, int numRows, double width, double height, boolean calculateTexCoords) static void
getWeldableVertexMap
(Map<GaiaVertex, GaiaVertex> mapVertexToVertexMaster, List<GaiaVertex> vertices, double error, boolean checkTexCoord, boolean checkNormal, boolean checkColor, boolean checkBatchId) static void
mergePrimitives
(GaiaPrimitive primitiveMaster, GaiaPrimitive primitive)
-
Constructor Details
-
GaiaPrimitiveUtils
public GaiaPrimitiveUtils()
-
-
Method Details
-
mergePrimitives
-
getRectangularNet
public static GaiaPrimitive getRectangularNet(int numCols, int numRows, double width, double height, boolean calculateTexCoords) -
getWeldableVertexMap
public static void getWeldableVertexMap(Map<GaiaVertex, GaiaVertex> mapVertexToVertexMaster, List<GaiaVertex> vertices, double error, boolean checkTexCoord, boolean checkNormal, boolean checkColor, boolean checkBatchId) -
calculateConvexity
public static int calculateConvexity(GaiaVertex vertex, org.joml.Vector3d normal, List<GaiaVertex> neighborVertices, double error)
-