Interface ISimplifier
interface ISimplifier {
simplify(
settings: ISimplificationSettings,
successCallback: (simplifiedMeshes: Mesh) => void,
errorCallback?: () => void,
): void;
}
simplify(
settings: ISimplificationSettings,
successCallback: (simplifiedMeshes: Mesh) => void,
errorCallback?: () => void,
): void;
}
Implemented by
Methods
simplify
-
simplify(
settings: ISimplificationSettings,
successCallback: (simplifiedMeshes: Mesh) => void,
errorCallback?: () => void,
): voidSimplification 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: () => voidin case of an error, this callback will be called. optional.
Returns void
- settings: ISimplificationSettings
A simplifier interface for future simplification implementations
See
https://doc.babylonjs.com/features/featuresDeepDive/mesh/simplifyingMeshes