Class GaiaSceneDecimator
java.lang.Object
com.gaia3d.basic.geometry.modifier.GaiaSceneDecimator
General-purpose edge-collapse mesh decimator that operates directly on a
GaiaScene.
This is a thin, reusable convenience wrapper around the existing half-edge based
HalfEdgeDecimator: it converts the GaiaScene to a HalfEdgeScene, runs the
edge-collapse decimation (which preserves creases via
and per-vertex attributes such as color),
and converts the result back to a GaiaScene.
invalid reference
DecimateParameters#getMaxDiffAngDegrees()
It was introduced for the marching-cubes iso-surface pipeline but is intentionally generic
so any pipeline that produces a GaiaScene can reuse it.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecimate(GaiaScene gaiaScene, DecimateParameters decimateParameters) Decimates the given scene using the supplied parameters and returns a new, decimated scene.
-
Constructor Details
-
GaiaSceneDecimator
public GaiaSceneDecimator()
-
-
Method Details
-
decimate
Decimates the given scene using the supplied parameters and returns a new, decimated scene. The input scene is left untouched.- Parameters:
gaiaScene- the scene to decimate (may benull)decimateParameters- edge-collapse parameters- Returns:
- the decimated scene, or
nullif the input wasnull
-