jme3tools.optimize
クラス GeometryBatchFactory

java.lang.Object
  上位を拡張 jme3tools.optimize.GeometryBatchFactory

public class GeometryBatchFactory
extends java.lang.Object


コンストラクタの概要
GeometryBatchFactory()
           
 
メソッドの概要
static void main(java.lang.String[] args)
           
static java.util.List<Geometry> makeBatches(java.util.Collection<Geometry> geometries)
           
static java.util.List<Geometry> makeBatches(java.util.Collection<Geometry> geometries, boolean useLods)
          Batches a collection of Geometries so that all with the same material get combined.
static void makeLods(java.util.Collection<Geometry> geometries, Mesh outMesh)
           
static void mergeGeometries(java.util.Collection<Geometry> geometries, Mesh outMesh)
          Merges all geometries in the collection into the output mesh.
static Spatial optimize(Node scene)
          Optimizes a scene by combining Geometry with the same material.
static Node optimize(Node scene, boolean useLods)
          Optimizes a scene by combining Geometry with the same material.
static void printMesh(Mesh mesh)
           
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

GeometryBatchFactory

public GeometryBatchFactory()
メソッドの詳細

mergeGeometries

public static void mergeGeometries(java.util.Collection<Geometry> geometries,
                                   Mesh outMesh)
Merges all geometries in the collection into the output mesh. Does not take into account materials.

パラメータ:
geometries -
outMesh -

makeLods

public static void makeLods(java.util.Collection<Geometry> geometries,
                            Mesh outMesh)

makeBatches

public static java.util.List<Geometry> makeBatches(java.util.Collection<Geometry> geometries)

makeBatches

public static java.util.List<Geometry> makeBatches(java.util.Collection<Geometry> geometries,
                                                   boolean useLods)
Batches a collection of Geometries so that all with the same material get combined.

パラメータ:
geometries - The Geometries to combine
戻り値:
A List of newly created Geometries, each with a distinct material

optimize

public static Spatial optimize(Node scene)
Optimizes a scene by combining Geometry with the same material. All Geometries found in the scene are detached from their parent and a new Node containing the optimized Geometries is attached.

パラメータ:
scene - The scene to optimize
戻り値:
The newly created optimized geometries attached to a node

optimize

public static Node optimize(Node scene,
                            boolean useLods)
Optimizes a scene by combining Geometry with the same material. All Geometries found in the scene are detached from their parent and a new Node containing the optimized Geometries is attached.

パラメータ:
scene - The scene to optimize
useLods - true if you want the resulting geometry to keep lod information
戻り値:
The newly created optimized geometries attached to a node

printMesh

public static void printMesh(Mesh mesh)

main

public static void main(java.lang.String[] args)