|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjme3tools.optimize.GeometryBatchFactory
public class GeometryBatchFactory
Constructor Summary | |
---|---|
GeometryBatchFactory()
|
Method Summary | |
---|---|
static void |
gatherGeoms(Spatial scene,
java.util.List<Geometry> geoms)
|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GeometryBatchFactory()
Method Detail |
---|
public static void mergeGeometries(java.util.Collection<Geometry> geometries, Mesh outMesh)
geometries
- outMesh
- public static void makeLods(java.util.Collection<Geometry> geometries, Mesh outMesh)
public static java.util.List<Geometry> makeBatches(java.util.Collection<Geometry> geometries)
public static java.util.List<Geometry> makeBatches(java.util.Collection<Geometry> geometries, boolean useLods)
geometries
- The Geometries to combine
public static void gatherGeoms(Spatial scene, java.util.List<Geometry> geoms)
public static Spatial optimize(Node scene)
scene
- The scene to optimize
public static Node optimize(Node scene, boolean useLods)
scene
- The scene to optimizeuseLods
- true if you want the resulting geometry to keep lod information
public static void printMesh(Mesh mesh)
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |