MeshLib C++ Docs
Loading...
Searching...
No Matches
MRRegularMapMesher.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRMeshFwd.h"
4#include "MRPointCloud.h"
5#include "MRExpected.h"
6#include <filesystem>
7
8namespace MR
9{
10
19class RegularMapMesher
20{
21public:
23 MRMESH_API void setSurfacePC( const std::shared_ptr<PointCloud>& surfacePC );
25 MRMESH_API void setDirectionsPC( const std::shared_ptr<PointCloud>& directionsPC );
27 MRMESH_API Expected<void> loadDistances( int width, int height, const std::filesystem::path& path );
29 MRMESH_API void setDistances( int width, int height, const std::vector<float>& distances );
30
32 MRMESH_API Expected<Mesh> createMesh() const;
33
34private:
35 int width_{0};
36 int height_{0};
37
38 std::shared_ptr<PointCloud> surfacePC_;
39 std::shared_ptr<PointCloud> directionsPC_;
40 std::vector<float> distances_;
41};
42}
#define MRMESH_API
Definition MRMeshFwd.h:80
unsafe void setDirectionsPC(MR.Const_PointCloud directionsPC)
unsafe void setDistances(int width, int height, MR.Std.Const_Vector_Float distances)
unsafe void loadDistances(int width, int height, string path)
unsafe void setSurfacePC(MR.Const_PointCloud surfacePC)
auto width(const Box< V > &box)
returns size along x axis
Definition MRMesh/MRBox.h:354
auto height(const Box< V > &box)
returns size along y axis
Definition MRMesh/MRBox.h:361
Definition MRCameraOrientationPlugin.h:8