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 "MRPointCloud.h"
4#include "MRExpected.h"
6
7namespace MR
8{
11
12
15MRMESH_API PointCloud meshToPointCloud( const Mesh& mesh, bool saveNormals = true, const VertBitSet* verts = nullptr);
16
30[[nodiscard]] MRMESH_API Expected<PointCloud> meshToDensePointCloud( const MeshPart& mp, float radius,
31 bool saveNormals = true, const ProgressCallback& cb = {} );
32
33}
#define MRMESH_API
Definition MRMeshFwd.h:85
std::function< bool(float)> ProgressCallback
Definition MRMeshFwd.h:759
tl::expected< T, E > Expected
Definition MRExpected.h:31
Expected< PointCloud > meshToDensePointCloud(const MeshPart &mp, float radius, bool saveNormals=true, const ProgressCallback &cb={})
PointCloud meshToPointCloud(const Mesh &mesh, bool saveNormals=true, const VertBitSet *verts=nullptr)
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
Definition MRMesh.h:24
Definition MRPointCloud.h:17