editor › Globals › MeshVolumeAnalyzer
Class: MeshVolumeAnalyzer
Hierarchy
↳ MeshVolumeAnalyzer
Index
Constructors
Properties
Methods
Constructors
constructor
+ new MeshVolumeAnalyzer(mesh: Mesh): MeshVolumeAnalyzer
Inherited from MeshCache.constructor
Defined in src/model/data/Concepts/Mesh/MeshCache/MeshCache.ts:9
Parameters:
| Name | Type |
|---|---|
mesh |
Mesh |
Returns: MeshVolumeAnalyzer
Properties
Private boundingVolumeHierarchy
• boundingVolumeHierarchy: BoundingVolumeHierarchy‹MeshSurface›
Defined in src/model/data/Concepts/Mesh/MeshAnalyzer/MeshVolumeAnalyzer.ts:17
Protected Readonly mesh
• mesh: 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
Private _getBoundingVolumeHierarchy
▸ _getBoundingVolumeHierarchy(): BoundingVolumeHierarchy‹MeshSurface‹››
Defined in src/model/data/Concepts/Mesh/MeshAnalyzer/MeshVolumeAnalyzer.ts:75
Returns: BoundingVolumeHierarchy‹MeshSurface‹››
destroy
▸ destroy(): void
Defined in src/model/data/Concepts/Mesh/MeshAnalyzer/MeshVolumeAnalyzer.ts:19
Returns: void
getMesh
▸ getMesh(): Mesh‹›
Inherited from MeshAnalyzer.getMesh
Defined in src/model/data/Concepts/Mesh/MeshAnalyzer/MeshAnalyzer.ts:13
Returns: Mesh‹›
isPointInside
▸ isPointInside(point: Vector3): boolean
Defined in src/model/data/Concepts/Mesh/MeshAnalyzer/MeshVolumeAnalyzer.ts:29
Test whether the give point is inside the mesh. Note that this only works reliably for watertight meshes.
Parameters:
| Name | Type | Description |
|---|---|---|
point |
Vector3 | The point to test. In mesh coordinates. |
Returns: boolean
true if the point is INSIDE, false if the point is OUTSIDE
isValid
▸ isValid(): boolean
Inherited from MeshCache.isValid
Defined in src/model/data/Concepts/Mesh/MeshCache/MeshCache.ts:18
Returns: boolean