MeshLib C# Docs
Loading...
Searching...
No Matches
MR.Const_FixMeshDegeneraciesParams Class Reference

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

+ Inheritance diagram for MR.Const_FixMeshDegeneraciesParams:

Classes

struct  _Underlying
 

Public Types

enum  Mode : int { Decimate = 0 , Remesh = 1 , RemeshPatch = 2 }
 

Public Member Functions

virtual void Dispose ()
 
unsafe Const_FixMeshDegeneraciesParams ()
 Constructs an empty (default-constructed) instance.
 
unsafe Const_FixMeshDegeneraciesParams (float maxDeviation, float tinyEdgeLength, float criticalTriAspectRatio, float maxAngleChange, float stabilizer, MR.FaceBitSet? region, MR.FixMeshDegeneraciesParams.Mode mode, MR.Std._ByValue_Function_BoolFuncFromFloat cb)
 Constructs MR.FixMeshDegeneraciesParams elementwise.
 
unsafe Const_FixMeshDegeneraciesParams (MR._ByValue_FixMeshDegeneraciesParams _other)
 Generated from constructor MR.FixMeshDegeneraciesParams.FixMeshDegeneraciesParams.
 

Protected Member Functions

virtual unsafe void Dispose (bool disposing)
 

Properties

unsafe float maxDeviation [get]
 maximum permitted deviation from the original surface
 
unsafe float tinyEdgeLength [get]
 edges not longer than this value will be collapsed ignoring normals and aspect ratio checks
 
unsafe float criticalTriAspectRatio [get]
 
unsafe float maxAngleChange [get]
 Permit edge flips if it does not change dihedral angle more than on this value.
 
unsafe float stabilizer [get]
 
unsafe MR.? FaceBitSet region [get]
 degenerations will be fixed only in given region, it is updated during the operation
 
unsafe MR.FixMeshDegeneraciesParams.Mode mode [get]
 
unsafe MR.Std.Const_Function_BoolFuncFromFloat cb [get]
 
- Properties inherited from MR.Misc.Object< Const_FixMeshDegeneraciesParams >
virtual bool _IsOwning [get]
 Returns true if this is an owning instance, and when disposed, will destroy the underlying C++ instance. If false, we assume that the underlying C++ instance will live long enough.
 

Additional Inherited Members

- Protected Attributes inherited from MR.Misc.Object< Const_FixMeshDegeneraciesParams >
bool _IsOwningVal
 

Detailed Description

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

Member Enumeration Documentation

◆ Mode

Enumerator
Decimate 

use decimation only to fix degeneracies

if decimation does not succeed, perform subdivision too

Remesh 

if both decimation and subdivision does not succeed, removes degenerate areas and fills occurred holes

Property Documentation

◆ criticalTriAspectRatio

unsafe float MR.Const_FixMeshDegeneraciesParams.criticalTriAspectRatio
get

the algorithm will ignore dihedral angle check if one of triangles had aspect ratio equal or more than this value; and the algorithm will permit temporary increase in aspect ratio after collapse, if before collapse one of the triangles had larger aspect ratio

◆ stabilizer

unsafe float MR.Const_FixMeshDegeneraciesParams.stabilizer
get

Small stabilizer is important to achieve good results on completely planar mesh parts, if your mesh is not-planer everywhere, then you can set it to zero


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