MeshLib C++ Docs
Loading...
Searching...
No Matches
MRFeatureRefine.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRFeatureObject.h"
4
5namespace MR
6{
9
10
13{
15 float distanceLimit{ 0.1f };
17 float normalTolerance{ 30.f };
19 const FaceBitSet* faceRegion{};
21 const VertBitSet* vertRegion{};
23 int maxIterations{ 10 };
26};
27
30 const RefineParameters& params = {} );
31
34 const RefineParameters& params = {} );
35
36}
#define MRMESH_API
Definition MRMeshFwd.h:80
#define MRMESH_CLASS
Definition MRMeshFwd.h:87
An interface class which allows feature objects to share setters and getters on their main properties...
Definition MRFeatureObject.h:96
std::function< bool(float)> ProgressCallback
Definition MRMeshFwd.h:753
float normalTolerance
Maximum angle between the source model's normal and the feature's normal.
Definition MRFeatureRefine.h:17
ProgressCallback callback
Progress callback.
Definition MRFeatureRefine.h:25
float distanceLimit
Maximum distance from the source model to the feature.
Definition MRFeatureRefine.h:15
const VertBitSet * vertRegion
(for meshes only) Reference vertices used for filtering intermediate results that are too far from it
Definition MRFeatureRefine.h:21
tl::expected< T, E > Expected
Definition MRExpected.h:31
Expected< AffineXf3f > refineFeatureObject(const FeatureObject &featObj, const Mesh &mesh, const RefineParameters &params={})
Recalculate the feature object's position so it would better fit with the given mesh.
int maxIterations
Maximum amount of iterations performed until a stable set of points is found.
Definition MRFeatureRefine.h:23
const FaceBitSet * faceRegion
(for meshes only) Reference faces used for filtering intermediate results that are too far from it
Definition MRFeatureRefine.h:19
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
Definition MRMesh.h:23
Definition MRPointCloud.h:17
Optional parameters for refineFeatureObject.
Definition MRFeatureRefine.h:13