MeshLib C++ Docs
Loading...
Searching...
No Matches
MRRadiusCompensation.h
Go to the documentation of this file.
1#pragma once
2#include "MRMeshFwd.h"
3#include "MRVector3.h"
4#include "MRVector2.h"
5#include "MRExpected.h"
6
7namespace MR
8{
9
11struct CompensateRadiusParams
12{
14 Vector3f direction;
15
17 float toolRadius{ 0.0f };
18
22 const FaceBitSet* region{ nullptr };
23
25 int maxIterations{ 100 };
26
28 int relaxExpansion = 3;
29
31 int relaxIterations = 5;
32
34 float relaxForce = 0.3f;
35
36 ProgressCallback callback;
37};
38
42[[nodiscard]] MRMESH_API Expected<void> compensateRadius( Mesh& mesh, const CompensateRadiusParams& params );
43
44}
#define MRMESH_API
Definition MRMeshFwd.h:80
Definition MRRadiusCompensation.h:12
new unsafe ref int maxIterations
new unsafe ref int relaxExpansion
new unsafe ref float relaxForce
new unsafe ref MR.Vector3f direction
new unsafe ref float toolRadius
new unsafe MR.? Const_FaceBitSet region
new unsafe ref int relaxIterations
Definition MRMesh/MRMesh.h:23
Definition MRCameraOrientationPlugin.h:8
MRMESH_API Expected< void > compensateRadius(Mesh &mesh, const CompensateRadiusParams &params)