Options
All
  • Public
  • Public/Protected
  • All
Menu

Class QuadraticErrorSimplification

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

constructor

  • Creates a new QuadraticErrorSimplification

    Parameters

    • _mesh: Mesh

      defines the target mesh

    Returns QuadraticErrorSimplification

Properties

aggressivenessSearch playground for aggressiveness

aggressiveness: number

Gets or sets the aggressiveness of the simplifier

boundingBoxEpsilonSearch playground for boundingBoxEpsilon

boundingBoxEpsilon: number

Gets or sets the espilon to use for bounding box computation

decimationIterationsSearch playground for decimationIterations

decimationIterations: number

Gets or sets the number of allowed iterations for decimation

syncIterationsSearch playground for syncIterations

syncIterations: number

Gets or sets the number pf sync iterations

Methods

simplifySearch playground for simplify

  • 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 property
  • Inherited method
  • Static property
  • Static method