MeshLib C++ Docs
Loading...
Searching...
No Matches
MRMeshToPointCloud.h
Go to the documentation of this file.
1#pragma once
2#include "MRMeshFwd.h"
3#include "MREnums.h"
4#include "MRPointCloud.h"
5#include "MRExpected.h"
7
8namespace MR
9{
12
13
17 const VertBitSet* verts = nullptr );
18
19[[deprecated( "Use meshToPointCloud( mesh, VertNormalsMode, verts )" )]] MRMESH_API MR_BIND_IGNORE
20PointCloud meshToPointCloud( const Mesh& mesh, bool saveNormals, const VertBitSet* verts = nullptr );
21
36[[nodiscard]] MRMESH_API Expected<PointCloud> meshToDensePointCloud( const MeshPart& mp, float radius,
38
39[[deprecated( "Use meshToDensePointCloud( mp, radius, VertNormalsMode, cb )" )]] [[nodiscard]] MRMESH_API MR_BIND_IGNORE
40Expected<PointCloud> meshToDensePointCloud( const MeshPart& mp, float radius, bool saveNormals, const ProgressCallback& cb = {} );
41
45[[nodiscard]] MRMESH_API bool isCoveredByVertices( const MeshPart& mp, float radius );
46
47}
#define MRMESH_API
Definition MRMeshFwd.h:85
std::function< bool(float)> ProgressCallback
Definition MRMeshFwd.h:790
tl::expected< T, E > Expected
Definition MRExpected.h:31
VertNormalsMode
which normals are given to the points of the cloud made from mesh vertices
Definition MREnums.h:70
@ AreaWeighted
area-weighted average of the normals of incident triangles, see computePerVertNormals
Definition MREnums.h:72
Expected< PointCloud > meshToDensePointCloud(const MeshPart &mp, float radius, VertNormalsMode normals=VertNormalsMode::AreaWeighted, const ProgressCallback &cb={})
PointCloud meshToPointCloud(const Mesh &mesh, VertNormalsMode normals=VertNormalsMode::AreaWeighted, const VertBitSet *verts=nullptr)
bool isCoveredByVertices(const MeshPart &mp, float radius)
Only strictly necessary for the bindings (to make MR::MeshIntersectionResult a complete type).
Definition MRCameraOrientationPlugin.h:8
Definition MRMesh.h:24
Definition MRPointCloud.h:17