MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / meshToPointCloud

Function meshToPointCloud

source/MRMesh/MRMeshToPointCloud.cpp:8–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6{
7
8PointCloud meshToPointCloud( const Mesh& mesh, bool saveNormals /*= true */, const VertBitSet* verts )
9{
10 PointCloud res;
11 res.points = mesh.points;
12 res.validPoints = mesh.topology.getVertIds( verts );
13 if(saveNormals)
14 res.normals = computePerVertNormals( mesh );
15 return res;
16}
17
18}

Callers 5

TESTFunction · 0.85
TESTFunction · 0.85
TestTriangulationMethod · 0.85
EMSCRIPTEN_BINDINGSFunction · 0.85
ObjectPointsMethod · 0.85

Calls 1

computePerVertNormalsFunction · 0.85

Tested by 3

TESTFunction · 0.68
TESTFunction · 0.68
TestTriangulationMethod · 0.68