Class IrUtils

java.lang.Object
com.jme3.scene.plugins.IrUtils

public final class IrUtils extends Object
  • Method Details

    • applySmoothingGroups

      public static IrMesh applySmoothingGroups(IrMesh mesh)
      Applies smoothing groups to vertex normals. XXX not implemented!
      Parameters:
      mesh - ignored
      Returns:
      null
    • toTangentsWithParity

      public static void toTangentsWithParity(IrMesh mesh)
    • trimBoneWeights

      public static void trimBoneWeights(IrMesh mesh)
      Removes low bone weights from mesh, leaving only 4 bone weights at max.
      Parameters:
      mesh - the IrMesh to modify (not null)
    • triangulate

      public static void triangulate(IrMesh mesh)
      Convert mesh from quads / triangles to triangles only.
      Parameters:
      mesh - the input IrMesh (not null)
    • splitByMaterial

      public static IntMap<IrMesh> splitByMaterial(IrMesh mesh)
      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

      public static Mesh convertIrMeshToJmeMesh(IrMesh mesh)
      Convert IrMesh to jME3 mesh.
      Parameters:
      mesh - the input IrMesh (not null)
      Returns:
      a new Mesh