import {MeshVolume} from '@xeokit/xeokit-sdk/src/viewer/scene/math/MeshVolume.js'
MeshVolume
Calculates the volume of triangle meshes.
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
indices: *[] |
|
public |
|
|
public |
|
|
public |
primitive: * |
|
public |
vertices: *[] |
|
public get |
Gets the volume of the mesh. |
Method Summary
Public Methods | ||
public |
addIndex(index: *) Adds an index. |
|
public |
addVertex(vertex: *) Adds a vertex. |
|
public |
reset() Resets, ready to add vertices and indices for a new mesh. |
|
public |
setPrimitive(primitive: *) |
Public Constructors
public constructor() source
Public Methods
public setPrimitive(primitive: *) source
Params:
Name | Type | Attribute | Description |
primitive | * |