Options
All
  • Public
  • Public/Protected
  • All
Menu

An implementation of the Quadratic Error simplification algorithm. Original paper : http://www1.cs.columbia.edu/~cs4162/html05s/garland97.pdf Ported mostly from QSlim and http://voxels.blogspot.de/2014/05/quadric-mesh-simplification-with-source.html to babylon JS

author

RaananW

see

https://doc.babylonjs.com/how_to/in-browser_mesh_simplification

Hierarchy

  • QuadraticErrorSimplification

Implements

Index

Constructors

  • Creates a new QuadraticErrorSimplification

    Parameters

    • _mesh: Mesh

      defines the target mesh

    Returns QuadraticErrorSimplification

Properties

aggressiveness: number

Gets or sets the aggressiveness of the simplifier

boundingBoxEpsilon: number

Gets or sets the espilon to use for bounding box computation

decimationIterations: number

Gets or sets the number of allowed iterations for decimation

syncIterations: number

Gets or sets the number pf sync iterations

Methods

  • Simplification of a given mesh according to the given settings. Since this requires computation, it is assumed that the function runs async.

    Parameters

    • settings: ISimplificationSettings

      The settings of the simplification, including quality and distance

    • successCallback: (simplifiedMesh: Mesh) => void

      A callback that will be called after the mesh was simplified.

        • (simplifiedMesh: Mesh): void
        • Parameters

          • simplifiedMesh: Mesh

          Returns void

    Returns void

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited constructor
  • Static method

Settings

Theme