MeshLib Documentation
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 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< 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.

◆ loadDistances()

MRMESH_API Expected< void > MR::RegularMapMesher::loadDistances ( int width,
int height,
const std::filesystem::path & path )

Loads distances form distances file (1/distance)

◆ 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: