Class: BoundaryFirstFlattening

Projects. BoundaryFirstFlattening


new BoundaryFirstFlattening(geometry)

This class implements the boundary first flattening algorithm to flatten
surface meshes with a single boundary conformally.

Parameters:
Name Type Description
geometry module:Core.Geometry

The input geometry of the mesh this class acts on.

Properties:
Name Type Description
geometry module:Core.Geometry

The input geometry of the mesh this class acts on.

boundary Array.<module:Core.Face>

The boundary of the input mesh.

nV number

The number of vertices in the input mesh.

nI number

The number of interior vertices in the input mesh.

nB number

The number of boundary vertices in the input mesh.

vertexIndex Object

A dictionary mapping each vertex of the input mesh to a unique index.

bVertexIndex Object

A dictionary mapping each boundary vertex of the input mesh to a unique index.

K module:LinearAlgebra.DenseMatrix

The integrated gaussian curvatures of the input mesh.

k module:LinearAlgebra.DenseMatrix

The integrated geodesic curvatures of the input mesh.

l module:LinearAlgebra.DenseMatrix

The boundary edge lengths of the input mesh.

A module:LinearAlgebra.SparseMatrix

The laplace matrix of the input mesh partitioned by interior and boundary vertices.

Aii module:LinearAlgebra.SparseMatrix

The upper left block of the partitioned laplace matrix.

Aib module:LinearAlgebra.SparseMatrix

The upper right block of the partitioned laplace matrix.

Abb module:LinearAlgebra.SparseMatrix

The lower right block of the partitioned laplace matrix.

Methods


flatten(target, givenScaleFactors, rescale)

Given either the target boundary scale factors or the curvatures, flattens the
input surface mesh with a single boundary conformally.

Parameters:
Name Type Description
target module:LinearAlgebra.DenseMatrix

Either the target boundary scale factors
or the curvatures.

givenScaleFactors boolean

A flag indicating whether the input data contains
the target boundary scale factors.

rescale boolean

A flag indicating whether the flattening should be
scaled to unit radius. Default value is true

Returns:

A dictionary mapping each vertex to a vector of planar coordinates.

Type
Object

flattenToDisk()

Flattens the input surface mesh with a single boundary conformally to a disk.

Returns:

A dictionary mapping each vertex to a vector of planar coordinates.

Type
Object