38 const FaceBitSet * region =
nullptr );
#define MRMESH_API
Definition MRMeshFwd.h:85
Definition MRMeshTopology.h:31
Vector<T> is indexed by size_t.
Definition MRVector.h:24
std::function< bool(float)> ProgressCallback
Definition MRMeshFwd.h:790
int normalIters
the number of iterations to smooth normals and find creases; the more the better quality,...
Definition MRNormalDenoising.h:52
const FaceBitSet * region
if given, then only the normals of these faces are denoised, and only the vertices with all incident ...
Definition MRNormalDenoising.h:92
int pointIters
the number of iterations to update vertex coordinates from found normals; the more the better quality...
Definition MRNormalDenoising.h:89
const FaceBitSet * region
if given, then only the normals of these faces are denoised, and only the vertices with all incident ...
Definition MRNormalDenoising.h:67
float gamma
the amount of smoothing: 0 - no smoothing, 1 - average smoothing, ...
Definition MRNormalDenoising.h:83
float guideWeight
how much resulting points must be attracted to initial points (e.g. to avoid general shrinkage),...
Definition MRNormalDenoising.h:58
void meshDenoiseViaNormals(Mesh &mesh, const DenoiseViaNormalsSettings &settings={})
float guideWeight
how much resulting points must be attracted to initial points (e.g. to avoid general shrinkage),...
Definition MRNormalDenoising.h:86
void updateIndicator(const MeshPart &mp, Vector< float, UndirectedEdgeId > &v, const FaceNormals &normals, float beta, float gamma)
int pointIters
the number of iterations to update vertex coordinates from found normals; the more the better quality...
Definition MRNormalDenoising.h:55
float beta
0.001 - sharp edges, 0.01 - moderate edges, 0.1 - smooth edges
Definition MRNormalDenoising.h:46
float maxInitialDist
maximum distance between a point and its position before relaxation, ignored if limitNearInitial = fa...
Definition MRNormalDenoising.h:64
void updateIndicatorFast(const MeshTopology &topology, Vector< float, UndirectedEdgeId > &v, const FaceNormals &normals, float beta, float gamma, const FaceBitSet *region=nullptr)
void denoiseNormals(const Mesh &mesh, FaceNormals &normals, const Vector< float, UndirectedEdgeId > &v, float gamma, const FaceBitSet *region=nullptr)
void meshDenoiseWithCreases(Mesh &mesh, const UndirectedEdgeBitSet &creases, const DenoiseWithCreasesSettings &settings={})
float gamma
the amount of smoothing: 0 - no smoothing, 1 - average smoothing, ...
Definition MRNormalDenoising.h:49
bool fastIndicatorComputation
use approximated computation, which is much faster than precise solution
Definition MRNormalDenoising.h:43
UndirectedEdgeBitSet * outCreases
optionally returns creases found during smoothing, only among the edges with both incident faces in t...
Definition MRNormalDenoising.h:70
bool limitNearInitial
if true then maximal displacement of each point during denoising will be limited
Definition MRNormalDenoising.h:61
Only strictly necessary for the bindings (to make MR::MeshIntersectionResult a complete type).
Definition MRCameraOrientationPlugin.h:8
Definition MRNormalDenoising.h:41
Definition MRNormalDenoising.h:81