MeshLib C++ Docs
Loading...
Searching...
No Matches
MRNormalsToPoints.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRMeshFwd.h"
4#include <memory>
5
6namespace MR
7{
10
11
15{
16public:
21 MRMESH_API void prepare( const MeshTopology & topology, float guideWeight = 1, const VertBitSet * region = nullptr );
22
28 MRMESH_API void run( const VertCoords & guide, const FaceNormals & normals, VertCoords & points );
29 MRMESH_API void run( const VertCoords & guide, const FaceNormals & normals, VertCoords & points, float maxInitialDistSq );
30
32 class ISolver
33 {
34 public:
35 virtual ~ISolver() = default;
36 virtual void prepare( const MeshTopology & topology, float guideWeight, const VertBitSet * region ) = 0;
37 virtual void run( const VertCoords & guide, const FaceNormals & normals, VertCoords & points, float maxInitialDistSq ) = 0;
38 };
39private:
40 std::unique_ptr<ISolver> solver_;
41};
42
43}
#define MRMESH_API
Definition MRMeshFwd.h:85
Definition MRMeshTopology.h:31
pImpl
Definition MRNormalsToPoints.h:33
Definition MRNormalsToPoints.h:15
void run(const VertCoords &guide, const FaceNormals &normals, VertCoords &points)
virtual void prepare(const MeshTopology &topology, float guideWeight, const VertBitSet *region)=0
void run(const VertCoords &guide, const FaceNormals &normals, VertCoords &points, float maxInitialDistSq)
void prepare(const MeshTopology &topology, float guideWeight=1, const VertBitSet *region=nullptr)
virtual ~ISolver()=default
virtual void run(const VertCoords &guide, const FaceNormals &normals, VertCoords &points, float maxInitialDistSq)=0
Only strictly necessary for the bindings (to make MR::MeshIntersectionResult a complete type).
Definition MRCameraOrientationPlugin.h:8