API / geotoolkit3d / util / MeshUtils / MeshUtils
Utility class providing utility functions related to meshes (THREE.Mesh)
Constructors
Methods
▸ getClassName(): string
string
▸ Static computeMeshOutline(mesh): number[]
Compute the pair of points that makes this mesh outline.
| Name | Type | Description |
|---|---|---|
mesh | Mesh<BufferGeometry<NormalBufferAttributes>, Material | Material[], Object3DEventMap> | the mesh to compute the outline of. |
number[]
the pair of points of each segment in the format: [a.x, a.y, a.z, b.x, b.y, b.z ... ]
▸ Static generateMeshHighlight(meshes): LineSegments[]
Generate a highlight polyline for the given meshes. Generated highlight polylines are added as each mesh's children, but also returned in a common array to easily enable/disable the highlights. The resulting object array should NOT be added manually in the scene, as it is not updated with the proper transformations.
| Name | Type | Description |
|---|---|---|
meshes | Mesh<BufferGeometry<NormalBufferAttributes>, Material | Material[], Object3DEventMap>[] | the mesh array to generate highlights of. |
the reference to the highlights as an array of geotoolkit3d.scene.LineSegments
▸ Static getClassName(): string
string