3#include "MRMesh/MRMeshFwd.h"
12namespace SelfIntersections
MRMESH_API Expected< FaceBitSet > getFaces(const Mesh &mesh, bool touchIsIntersection=true, ProgressCallback cb={})
Find all self-intersections faces component-wise.
float subdivideEdgeLen
Definition MRFixSelfIntersections.h:35
MRMESH_API Expected< void > fix(Mesh &mesh, const Settings &settings)
Finds and fixes self-intersections per component:
tl::expected< T, E > Expected
Definition MRExpected.h:31
int maxExpand
Maximum expand count (edge steps from self-intersecting faces), should be > 0.
Definition MRFixSelfIntersections.h:32
Method
Fix method.
Definition MRFixSelfIntersections.h:22
int relaxIterations
Maximum relax iterations.
Definition MRFixSelfIntersections.h:30
ProgressCallback callback
Callback function.
Definition MRFixSelfIntersections.h:37
bool touchIsIntersection
If true then count touching faces as self-intersections.
Definition MRFixSelfIntersections.h:19
Method method
Definition MRFixSelfIntersections.h:28
@ CutAndFill
Cut and re-fill regions around self-intersections (may fall back to Relax)
@ Relax
Relax mesh around self-intersections.
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
Setting set for mesh self-intersections fix.
Definition MRFixSelfIntersections.h:17