Package com.jme3.scene.plugins
Class IrUtils
java.lang.Object
com.jme3.scene.plugins.IrUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic IrMesh
applySmoothingGroups
(IrMesh mesh) Applies smoothing groups to vertex normals.static Mesh
convertIrMeshToJmeMesh
(IrMesh mesh) Convert IrMesh to jME3 mesh.splitByMaterial
(IrMesh mesh) Separate mesh with multiple materials into multiple meshes each with one material each.static void
toTangentsWithParity
(IrMesh mesh) static void
triangulate
(IrMesh mesh) Convert mesh from quads / triangles to triangles only.static void
trimBoneWeights
(IrMesh mesh) Removes low bone weights from mesh, leaving only 4 bone weights at max.
-
Method Details
-
applySmoothingGroups
Applies smoothing groups to vertex normals. XXX not implemented!- Parameters:
mesh
- ignored- Returns:
- null
-
toTangentsWithParity
-
trimBoneWeights
Removes low bone weights from mesh, leaving only 4 bone weights at max.- Parameters:
mesh
- the IrMesh to modify (not null)
-
triangulate
Convert mesh from quads / triangles to triangles only.- Parameters:
mesh
- the input IrMesh (not null)
-
splitByMaterial
Separate mesh with multiple materials into multiple meshes each with one material each. Polygons without a material will be added to key = -1.- Parameters:
mesh
- the input IrMesh (not null)- Returns:
- a new IntMap containing the resulting meshes
-
convertIrMeshToJmeMesh
Convert IrMesh to jME3 mesh.- Parameters:
mesh
- the input IrMesh (not null)- Returns:
- a new Mesh
-