new Distortion()
Methods
-
<static> computeQuasiConformalError(colors, parameterization, geometry)
-
Computes the average quasi conformal error resulting from a parameterization algorithm.
Sets a color per face indicating the quasi conformal error.Parameters:
Name Type Description colors
Array.<module:LinearAlgebra.Vector> An array of colors per face indicating the quasi conformal error.
parameterization
Object A dictionary mapping each vertex to a vector of coordinates.
geometry
module:Core.Geometry The input geometry of the mesh which is parameterized.
Returns:
- Type
- number
-
<static> computeAreaScaling(colors, parameterization, geometry)
-
Computes the average area scaling resulting from a parameterization algorithm.
Sets a color per face indicating the area scaling.Parameters:
Name Type Description colors
Array.<module:LinearAlgebra.Vector> An array of colors per face indicating the area scaling.
parameterization
Object A dictionary mapping each vertex to a vector of coordinates.
geometry
module:Core.Geometry The input geometry of the mesh which is parameterized.
Returns:
- Type
- number