Class ReMesherVertexCluster

java.lang.Object
com.gaia3d.basic.remesher.ReMesherVertexCluster

public class ReMesherVertexCluster extends Object
  • Method Details

    • reMeshScene

      public static void reMeshScene(GaiaScene scene, ReMeshParameters reMeshParams, org.joml.Vector3i sceneMinCellIndex, org.joml.Vector3i sceneMaxCellIndex)
      Remeshes all primitives in the scene using vertex clustering.

      Frontier vertices are handled as follows:

      • A frontier vertex with a global boundary anchor uses the globally locked position.
      • A frontier vertex without a global boundary anchor is clustered only with other local frontier vertices.

      The CellGrid3D and GlobalBoundaryAnchors must have been calculated using the same grid definition.