Class for making mesh from regular distance map. More...
#include <MRRegularMapMesher.h>
Public Member Functions | |
MRMESH_API void | setSurfacePC (const std::shared_ptr< PointCloud > &surfacePC) |
Sets surface Point Cloud. | |
MRMESH_API void | setDirectionsPC (const std::shared_ptr< PointCloud > &directionsPC) |
Sets directions Point Cloud. | |
MRMESH_API Expected< void > | 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 Expected< void > MR::RegularMapMesher::loadDistances | ( | int | width, |
int | height, | ||
const std::filesystem::path & | path ) |
Loads distances form distances file (1/distance)
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.