MeshLib
 
Loading...
Searching...
No Matches
MR::RegularMapMesher Class Reference

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< MeshcreateMesh () const
 Creates mesh if all components were successfully loaded.
 

Detailed Description

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)

Member Function Documentation

◆ createMesh()

MRMESH_API Expected< Mesh > MR::RegularMapMesher::createMesh ( ) const

Creates mesh if all components were successfully loaded.

◆ loadDirectionsPC()

MRMESH_API VoidOrErrStr MR::RegularMapMesher::loadDirectionsPC ( const std::filesystem::path & path)

Loads directions Point Cloud from file.

◆ loadDistances()

MRMESH_API VoidOrErrStr MR::RegularMapMesher::loadDistances ( int width,
int height,
const std::filesystem::path & path )

Loads distances form distances file (1/distance)

◆ loadSurfacePC()

MRMESH_API VoidOrErrStr MR::RegularMapMesher::loadSurfacePC ( const std::filesystem::path & path)

Loads surface Point Cloud form file.

◆ setDirectionsPC()

MRMESH_API void MR::RegularMapMesher::setDirectionsPC ( const std::shared_ptr< PointCloud > & directionsPC)

Sets directions Point Cloud.

◆ setDistances()

MRMESH_API void MR::RegularMapMesher::setDistances ( int width,
int height,
const std::vector< float > & distances )

Sets distances.

◆ setSurfacePC()

MRMESH_API void MR::RegularMapMesher::setSurfacePC ( const std::shared_ptr< PointCloud > & surfacePC)

Sets surface Point Cloud.


The documentation for this class was generated from the following file: