Package com.gaia3d.util
Class GaiaSceneUtils
java.lang.Object
com.gaia3d.util.GaiaSceneUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
checkSceneMaterials
(GaiaScene scene) static void
deformSceneByVerticesConvexity
(GaiaScene scene, double dist, double minHeight, double maxHeight) static List<GaiaFaceExplicit>
getGaiaFacesExplicit
(GaiaSurface surface, List<GaiaVertex> vertices, List<GaiaFaceExplicit> resultGaiaFaceExplicits) static Map<GaiaVertex,
List<GaiaFaceExplicit>> getMapVertexToFaceExplicits
(List<GaiaFaceExplicit> faces, Map<GaiaVertex, List<GaiaFaceExplicit>> resultMapVertexToFace) static int
getMostHorizontalVector
(org.joml.Vector3d vector1, org.joml.Vector3d vector2, org.joml.Vector3d vector3) static GaiaScene
getSceneRectangularNet
(int numCols, int numRows, double width, double height, boolean calculateTexCoords) static boolean
isVerticalVector
(org.joml.Vector3d vector) static boolean
-
Constructor Details
-
GaiaSceneUtils
public GaiaSceneUtils()
-
-
Method Details
-
getSceneRectangularNet
public static GaiaScene getSceneRectangularNet(int numCols, int numRows, double width, double height, boolean calculateTexCoords) -
checkSceneMaterials
-
getMapVertexToFaceExplicits
public static Map<GaiaVertex,List<GaiaFaceExplicit>> getMapVertexToFaceExplicits(List<GaiaFaceExplicit> faces, Map<GaiaVertex, List<GaiaFaceExplicit>> resultMapVertexToFace) -
getGaiaFacesExplicit
public static List<GaiaFaceExplicit> getGaiaFacesExplicit(GaiaSurface surface, List<GaiaVertex> vertices, List<GaiaFaceExplicit> resultGaiaFaceExplicits) -
getMostHorizontalVector
public static int getMostHorizontalVector(org.joml.Vector3d vector1, org.joml.Vector3d vector2, org.joml.Vector3d vector3) -
isVerticalVector
public static boolean isVerticalVector(org.joml.Vector3d vector) -
deformSceneByVerticesConvexity
public static void deformSceneByVerticesConvexity(GaiaScene scene, double dist, double minHeight, double maxHeight) -
modifyVerticalNormalsOneIteration
-