MeshLib C# Docs
Loading...
Searching...
No Matches

Generated from class MR.RemeshSettings. This is the const half of the class. More...

Inheritance diagram for MR.Const_RemeshSettings:

Classes

struct  _Underlying

Public Member Functions

virtual void Dispose ()
unsafe Const_RemeshSettings ()
 Constructs an empty (default-constructed) instance.
unsafe Const_RemeshSettings (float targetEdgeLen, int maxEdgeSplits, float maxAngleChangeAfterFlip, bool frozenBoundary, float maxBdShift, bool useCurvature, float maxSplittableTriAspectRatio, int finalRelaxIters, bool finalRelaxNoShrinkage, MR.FaceBitSet? region, MR.UndirectedEdgeBitSet? notFlippable, bool packMesh, bool projectOnOriginalMesh, MR.Std._ByValue_Function_Void_From_MREdgeId_MREdgeId onEdgeSplit, MR.Std._ByValue_Function_Void_From_MREdgeId_MREdgeId onEdgeDel, MR.Std._ByValue_Function_Bool_From_MREdgeId_ConstMRVector3fRef preCollapse, MR.Std._ByValue_Function_Bool_From_Float progressCallback)
 Constructs MR.RemeshSettings elementwise.
unsafe Const_RemeshSettings (MR._ByValue_RemeshSettings _other)
 Generated from constructor MR.RemeshSettings.RemeshSettings.
 Const_RemeshSettings (Const_RemeshSettings _other)
 Generated from constructor MR.RemeshSettings.RemeshSettings.
 Const_RemeshSettings (RemeshSettings _other)
 Generated from constructor MR.RemeshSettings.RemeshSettings.

Protected Member Functions

virtual unsafe void Dispose (bool disposing)

Protected Attributes

unsafe float * __ref_storage_targetEdgeLen
unsafe int * __ref_storage_maxEdgeSplits
unsafe float * __ref_storage_maxAngleChangeAfterFlip
unsafe bool * __ref_storage_frozenBoundary
unsafe float * __ref_storage_maxBdShift
unsafe bool * __ref_storage_useCurvature
unsafe float * __ref_storage_maxSplittableTriAspectRatio
unsafe int * __ref_storage_finalRelaxIters
unsafe bool * __ref_storage_finalRelaxNoShrinkage
unsafe MR.FaceBitSet._Underlying ** __ptr_storage_region
unsafe MR.UndirectedEdgeBitSet._Underlying ** __ptr_storage_notFlippable
unsafe bool * __ref_storage_packMesh
unsafe bool * __ref_storage_projectOnOriginalMesh

Properties

unsafe float targetEdgeLen [get]
 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
unsafe int maxEdgeSplits [get]
 Maximum number of edge splits allowed during subdivision.
unsafe float maxAngleChangeAfterFlip [get]
 Improves local mesh triangulation by doing edge flips if it does not change dihedral angle more than on this value.
unsafe bool frozenBoundary [get]
 Allows or prohibits splitting and/or collapse boundary edges it recommended to keep default value here for better quality.
unsafe float maxBdShift [get]
 Maximal shift of a boundary during one edge collapse only makes sense if frozenBoundary=false
unsafe bool useCurvature [get]
 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.
unsafe float maxSplittableTriAspectRatio [get]
 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.
unsafe int finalRelaxIters [get]
 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
unsafe bool finalRelaxNoShrinkage [get]
 if true prevents the surface from shrinkage after many iterations
unsafe MR.? FaceBitSet region [get]
 Region on mesh to be changed, it is updated during the operation.
unsafe MR.? UndirectedEdgeBitSet notFlippable [get]
 Edges specified by this bit-set will never be flipped or collapsed, but they can be replaced during collapse of nearby edges so it is updated during the operation; also the vertices incident to these edges are excluded from relaxation.
unsafe bool packMesh [get]
 whether to pack mesh at the end
unsafe bool projectOnOriginalMesh [get]
 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
unsafe MR.Std.Const_Function_Void_From_MREdgeId_MREdgeId onEdgeSplit [get, protected set]
 this function is called each time edge (e) is split into (e1->e), but before the ring is made Delone
unsafe MR.Std.Const_Function_Void_From_MREdgeId_MREdgeId onEdgeDel [get, protected set]
 if valid (e1) is given then dest(e) = dest(e1) and their origins are in different ends of collapsing edge, e1 shall take the place of e
unsafe MR.Std.Const_Function_Bool_From_MREdgeId_ConstMRVector3fRef preCollapse [get, protected set]
 The user can provide this optional callback that is invoked immediately before edge collapse;.
unsafe MR.Std.Const_Function_Bool_From_Float progressCallback [get, protected set]
 callback to report algorithm progress and cancel it by user request

Detailed Description

Generated from class MR.RemeshSettings. This is the const half of the class.

Constructor & Destructor Documentation

◆ Const_RemeshSettings() [1/5]

unsafe MR.Const_RemeshSettings.Const_RemeshSettings ( )
inline

Constructs an empty (default-constructed) instance.

◆ Const_RemeshSettings() [2/5]

unsafe MR.Const_RemeshSettings.Const_RemeshSettings ( float targetEdgeLen,
int maxEdgeSplits,
float maxAngleChangeAfterFlip,
bool frozenBoundary,
float maxBdShift,
bool useCurvature,
float maxSplittableTriAspectRatio,
int finalRelaxIters,
bool finalRelaxNoShrinkage,
MR.FaceBitSet? region,
MR.UndirectedEdgeBitSet? notFlippable,
bool packMesh,
bool projectOnOriginalMesh,
MR.Std._ByValue_Function_Void_From_MREdgeId_MREdgeId onEdgeSplit,
MR.Std._ByValue_Function_Void_From_MREdgeId_MREdgeId onEdgeDel,
MR.Std._ByValue_Function_Bool_From_MREdgeId_ConstMRVector3fRef preCollapse,
MR.Std._ByValue_Function_Bool_From_Float progressCallback )
inline

Constructs MR.RemeshSettings elementwise.

◆ Const_RemeshSettings() [3/5]

unsafe MR.Const_RemeshSettings.Const_RemeshSettings ( MR._ByValue_RemeshSettings _other)
inline

Generated from constructor MR.RemeshSettings.RemeshSettings.

◆ Const_RemeshSettings() [4/5]

MR.Const_RemeshSettings.Const_RemeshSettings ( Const_RemeshSettings _other)
inline

Generated from constructor MR.RemeshSettings.RemeshSettings.

◆ Const_RemeshSettings() [5/5]

MR.Const_RemeshSettings.Const_RemeshSettings ( RemeshSettings _other)
inline

Generated from constructor MR.RemeshSettings.RemeshSettings.

Member Function Documentation

◆ Dispose() [1/2]

virtual void MR.Const_RemeshSettings.Dispose ( )
inlinevirtual

◆ Dispose() [2/2]

virtual unsafe void MR.Const_RemeshSettings.Dispose ( bool disposing)
inlineprotectedvirtual

Member Data Documentation

◆ __ptr_storage_notFlippable

unsafe MR.UndirectedEdgeBitSet._Underlying** MR.Const_RemeshSettings.__ptr_storage_notFlippable
protected

◆ __ptr_storage_region

unsafe MR.FaceBitSet._Underlying** MR.Const_RemeshSettings.__ptr_storage_region
protected

◆ __ref_storage_finalRelaxIters

unsafe int* MR.Const_RemeshSettings.__ref_storage_finalRelaxIters
protected

◆ __ref_storage_finalRelaxNoShrinkage

unsafe bool* MR.Const_RemeshSettings.__ref_storage_finalRelaxNoShrinkage
protected

◆ __ref_storage_frozenBoundary

unsafe bool* MR.Const_RemeshSettings.__ref_storage_frozenBoundary
protected

◆ __ref_storage_maxAngleChangeAfterFlip

unsafe float* MR.Const_RemeshSettings.__ref_storage_maxAngleChangeAfterFlip
protected

◆ __ref_storage_maxBdShift

unsafe float* MR.Const_RemeshSettings.__ref_storage_maxBdShift
protected

◆ __ref_storage_maxEdgeSplits

unsafe int* MR.Const_RemeshSettings.__ref_storage_maxEdgeSplits
protected

◆ __ref_storage_maxSplittableTriAspectRatio

unsafe float* MR.Const_RemeshSettings.__ref_storage_maxSplittableTriAspectRatio
protected

◆ __ref_storage_packMesh

unsafe bool* MR.Const_RemeshSettings.__ref_storage_packMesh
protected

◆ __ref_storage_projectOnOriginalMesh

unsafe bool* MR.Const_RemeshSettings.__ref_storage_projectOnOriginalMesh
protected

◆ __ref_storage_targetEdgeLen

unsafe float* MR.Const_RemeshSettings.__ref_storage_targetEdgeLen
protected

◆ __ref_storage_useCurvature

unsafe bool* MR.Const_RemeshSettings.__ref_storage_useCurvature
protected

Property Documentation

◆ finalRelaxIters

unsafe int MR.Const_RemeshSettings.finalRelaxIters
get

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

unsafe bool MR.Const_RemeshSettings.finalRelaxNoShrinkage
get

if true prevents the surface from shrinkage after many iterations

◆ frozenBoundary

unsafe bool MR.Const_RemeshSettings.frozenBoundary
get

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

◆ maxAngleChangeAfterFlip

unsafe float MR.Const_RemeshSettings.maxAngleChangeAfterFlip
get

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

◆ maxBdShift

unsafe float MR.Const_RemeshSettings.maxBdShift
get

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

◆ maxEdgeSplits

unsafe int MR.Const_RemeshSettings.maxEdgeSplits
get

Maximum number of edge splits allowed during subdivision.

◆ maxSplittableTriAspectRatio

unsafe float MR.Const_RemeshSettings.maxSplittableTriAspectRatio
get

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.

◆ notFlippable

unsafe MR.? UndirectedEdgeBitSet MR.Const_RemeshSettings.notFlippable
get

Edges specified by this bit-set will never be flipped or collapsed, but they can be replaced during collapse of nearby edges so it is updated during the operation; also the vertices incident to these edges are excluded from relaxation.

◆ onEdgeDel

unsafe MR.Std.Const_Function_Void_From_MREdgeId_MREdgeId MR.Const_RemeshSettings.onEdgeDel
getprotected set

if valid (e1) is given then dest(e) = dest(e1) and their origins are in different ends of collapsing edge, e1 shall take the place of e

◆ onEdgeSplit

unsafe MR.Std.Const_Function_Void_From_MREdgeId_MREdgeId MR.Const_RemeshSettings.onEdgeSplit
getprotected set

this function is called each time edge (e) is split into (e1->e), but before the ring is made Delone

◆ packMesh

unsafe bool MR.Const_RemeshSettings.packMesh
get

whether to pack mesh at the end

◆ preCollapse

unsafe MR.Std.Const_Function_Bool_From_MREdgeId_ConstMRVector3fRef MR.Const_RemeshSettings.preCollapse
getprotected set

The user can provide this optional callback that is invoked immediately before edge collapse;.

It receives the edge being collapsed: its destination vertex will disappear, and its origin vertex will get new position (provided as the second argument) after collapse; If the callback returns false, then the collapse is prohibited

◆ progressCallback

unsafe MR.Std.Const_Function_Bool_From_Float MR.Const_RemeshSettings.progressCallback
getprotected set

callback to report algorithm progress and cancel it by user request

◆ projectOnOriginalMesh

unsafe bool MR.Const_RemeshSettings.projectOnOriginalMesh
get

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

◆ region

unsafe MR.? FaceBitSet MR.Const_RemeshSettings.region
get

Region on mesh to be changed, it is updated during the operation.

◆ targetEdgeLen

unsafe float MR.Const_RemeshSettings.targetEdgeLen
get

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

unsafe bool MR.Const_RemeshSettings.useCurvature
get

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: