API

Interface ISimplifier

A simplifier interface for future simplification implementations

interface ISimplifier {
    simplify(
        settings: ISimplificationSettings,
        successCallback: (simplifiedMeshes: Mesh) => void,
        errorCallback?: () => void,
    ): void;
}

Implemented by

Index
  • 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: (simplifiedMeshes: Mesh) => void

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

    • OptionalerrorCallback: () => void

      in case of an error, this callback will be called. optional.

    Returns void