Members
- 
    
Detector
 - 
    
    
    
 
Methods
- 
    
normalize(positions, vertices, rescale)
 - 
    
    
Centers a mesh about the origin and rescales it to unit radius.
Parameters:
Name Type Description positionsArray.<module:LinearAlgebra.Vector> The position of each vertex in the vertices array.
verticesArray.<module:Core.Vertex> The vertices of a mesh.
rescaleboolean A flag indicating whether mesh positions should be scaled to a unit radius.
 - 
    
indexElements(elementList)
 - 
    
    
Assigns an index to each element in elementList. Indices can be accessed by using
elements as keys in the returned dictionary.Parameters:
Name Type Description elementListArray.<Object> An array of any one of the following mesh elements -
vertices, edges, faces, corners, halfedges, boundaries.Returns:
A dictionary mapping each element in elementList to a unique index
between 0 and |elementList|-1.- Type
 - Object
 
Example
let vertexIndex = indexElements(mesh.vertices); let v = mesh.vertices[0]; let i = vertexIndex[v]; console.log(i); // prints 0
 - 
    
clamp(x, min, max)
 - 
    
    
Clamps a number between the specified minimum and maximum values.
Parameters:
Name Type Description xnumber The number to be clamped.
minnumber The minimum value of x.
maxnumber The maximum value of x.
Returns:
- Type
 - number
 
 - 
    
colormap(x, min, max, values)
 - 
    
    
Maps a number to RGB color values.
Parameters:
Name Type Description xnumber The number to be mapped to RGB color values.
minnumber The minimum value of x.
maxnumber The maximum value of x.
valuesArray.<Array.<number>> The colormap. The current available options
are seismic, coolwarm and hot.Returns:
 - 
    
hsv(h, s, v)
 - 
    
    
Computes the hue, saturation, and value of the RGB color model.
Parameters:
Name Type Description hnumber The hue of the RGB color model.
snumber The saturation of the RGB color model.
vnumber The value of the RGB color model.
Returns: