Skip to content

editor › Globals › MeshAnalyzer

Class: MeshAnalyzer

A MeshAnalyzer is instantiated by a Mesh instance and can run different algorithms on that Mesh, e.g. check whether a given point is inside or outside the mesh. Subclasses may cache aggressively to get a speedup when many queries are made. The instance will be invalidated when the instantiating Mesh changes.

A typical implementation will offer a function and first call this._checkValid. It may then calculate something based on other MeshCaches and data cached internally. The result may again be cached.

Hierarchy

↳ MeshAnalyzer

↳ MeshPointsAnalyzer

↳ MeshPointsAnalyzer

↳ MeshSurfaceAnalyzer

↳ MeshVolumeAnalyzer

Index

Constructors

Properties

Methods

Constructors

constructor

+ new MeshAnalyzer(mesh: Mesh): MeshAnalyzer

Inherited from MeshCache.constructor

Defined in src/model/data/Concepts/Mesh/MeshCache/MeshCache.ts:9

Parameters:

Name Type
mesh Mesh

Returns: MeshAnalyzer

Properties

Protected Readonly mesh

• mesh: Mesh

Inherited from MeshCache.mesh

Defined in src/model/data/Concepts/Mesh/MeshCache/MeshCache.ts:8

Methods

Private _checkValid

▸ _checkValid(): void

Inherited from MeshCache._checkValid

Defined in src/model/data/Concepts/Mesh/MeshCache/MeshCache.ts:28

Throws an exception if this instance is outdated.

Note: Subclasses should call first call this method in order to ensure they do not operate on stale data.

Returns: void


destroy

▸ destroy(): void

Inherited from MeshCache.destroy

Defined in src/model/data/Concepts/Mesh/MeshCache/MeshCache.ts:14

Returns: void


getMesh

▸ getMesh(): Mesh‹›

Defined in src/model/data/Concepts/Mesh/MeshAnalyzer/MeshAnalyzer.ts:13

Returns: Mesh‹›


isValid

▸ isValid(): boolean

Inherited from MeshCache.isValid

Defined in src/model/data/Concepts/Mesh/MeshCache/MeshCache.ts:18

Returns: boolean