MeshLib JavaScript Docs
Loading...
Searching...
No Matches

Public Member Functions

 RemeshSettings ()

Public Attributes

number targetEdgeLen
number maxEdgeSplits
 Maximum number of edge splits allowed during subdivision.
number maxAngleChangeAfterFlip
 Improves local mesh triangulation by doing edge flips if it does not change dihedral angle more than on this value.
boolean frozenBoundary
number maxBdShift
boolean useCurvature
number maxSplittableTriAspectRatio
number finalRelaxIters
boolean finalRelaxNoShrinkage
 if true prevents the surface from shrinkage after many iterations
boolean packMesh
 whether to pack mesh at the end
boolean projectOnOriginalMesh

Constructor & Destructor Documentation

◆ RemeshSettings()

RemeshSettings::RemeshSettings ( )

Member Data Documentation

◆ finalRelaxIters

number RemeshSettings::finalRelaxIters

the number of iterations of final relaxation of mesh vertices; few iterations can give almost perfect uniformity of the vertices and edge lengths but deviate from the original surface

◆ finalRelaxNoShrinkage

boolean RemeshSettings::finalRelaxNoShrinkage

if true prevents the surface from shrinkage after many iterations

◆ frozenBoundary

boolean RemeshSettings::frozenBoundary

Allows or prohibits splitting and/or collapse boundary edges it recommended to keep default value here for better quality

◆ maxAngleChangeAfterFlip

number RemeshSettings::maxAngleChangeAfterFlip

Improves local mesh triangulation by doing edge flips if it does not change dihedral angle more than on this value.

◆ maxBdShift

number RemeshSettings::maxBdShift

Maximal shift of a boundary during one edge collapse only makes sense if frozenBoundary=false

◆ maxEdgeSplits

number RemeshSettings::maxEdgeSplits

Maximum number of edge splits allowed during subdivision.

◆ maxSplittableTriAspectRatio

number RemeshSettings::maxSplittableTriAspectRatio

An edge is subdivided only if both its left and right triangles have aspect ratio below or equal to this value. So this is a maximum aspect ratio of a triangle that can be split on two before Delone optimization. Please set it to a smaller value only if frozenBoundary==true, otherwise many narrow triangles can appear near border

◆ packMesh

boolean RemeshSettings::packMesh

whether to pack mesh at the end

◆ projectOnOriginalMesh

boolean RemeshSettings::projectOnOriginalMesh

if true, then every new vertex after subdivision will be projected on the original mesh (before smoothing); this does not affect the vertices moved on other stages of the processing

◆ targetEdgeLen

number RemeshSettings::targetEdgeLen

the algorithm will try to keep the length of all edges close to this value, splitting the edges longer than targetEdgeLen, and then eliminating the edges shorter than targetEdgeLen

◆ useCurvature

boolean RemeshSettings::useCurvature

This option in subdivision works best for natural surfaces, where all triangles are close to equilateral and have similar area, and no sharp edges in between


The documentation for this class was generated from the following file: