Class for making mesh from regular distance map. More...
#include <MRRegularMapMesher.h>
Public Member Functions | |
MRMESH_API VoidOrErrStr | loadSurfacePC (const std::filesystem::path &path) |
Loads surface Point Cloud form file. | |
MRMESH_API void | setSurfacePC (const std::shared_ptr< PointCloud > &surfacePC) |
Sets surface Point Cloud. | |
MRMESH_API VoidOrErrStr | loadDirectionsPC (const std::filesystem::path &path) |
Loads directions Point Cloud from file. | |
MRMESH_API void | setDirectionsPC (const std::shared_ptr< PointCloud > &directionsPC) |
Sets directions Point Cloud. | |
MRMESH_API VoidOrErrStr | loadDistances (int width, int height, const std::filesystem::path &path) |
Loads distances form distances file (1/distance) | |
MRMESH_API void | setDistances (int width, int height, const std::vector< float > &distances) |
Sets distances. | |
MRMESH_API Expected< Mesh > | createMesh () const |
Creates mesh if all components were successfully loaded. | |
Class for making mesh from regular distance map.
distance for each lattice of map is defined as point on ray from surface point cloud to direction point cloud, with length equal to 1/distance from distances file (if distance in file == 0 ray had no point)
MRMESH_API Expected< Mesh > MR::RegularMapMesher::createMesh | ( | ) | const |
Creates mesh if all components were successfully loaded.
MRMESH_API VoidOrErrStr MR::RegularMapMesher::loadDirectionsPC | ( | const std::filesystem::path & | path | ) |
Loads directions Point Cloud from file.
MRMESH_API VoidOrErrStr MR::RegularMapMesher::loadDistances | ( | int | width, |
int | height, | ||
const std::filesystem::path & | path ) |
Loads distances form distances file (1/distance)
MRMESH_API VoidOrErrStr MR::RegularMapMesher::loadSurfacePC | ( | const std::filesystem::path & | path | ) |
Loads surface Point Cloud form file.
MRMESH_API void MR::RegularMapMesher::setDirectionsPC | ( | const std::shared_ptr< PointCloud > & | directionsPC | ) |
Sets directions Point Cloud.
MRMESH_API void MR::RegularMapMesher::setDistances | ( | int | width, |
int | height, | ||
const std::vector< float > & | distances ) |
Sets distances.
MRMESH_API void MR::RegularMapMesher::setSurfacePC | ( | const std::shared_ptr< PointCloud > & | surfacePC | ) |
Sets surface Point Cloud.