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

Function triangulatePointCloud

source/MRMesh/MRPointCloudTriangulation.cpp:248–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246} // anonymous namespace
247
248std::optional<Mesh> triangulatePointCloud( const PointCloud& pointCloud, const TriangulationParameters& params /*= {} */,
249 const ProgressCallback& progressCb )
250{
251 MR_TIMER;
252 PointCloudTriangulator triangulator( pointCloud, params );
253 const VertBitSet none;
254 if ( triangulator.triangulate( pointCloud.hasNormals() ? none : pointCloud.validPoints, progressCb ) )
255 return triangulator.takeTargetMesh();
256 return {};
257}
258
259bool triangulateHoles( Mesh & mesh, const TriangulateHolesParams& params, const ProgressCallback& progressCb )
260{

Callers 4

TestTriangulationMethod · 0.85
EMSCRIPTEN_BINDINGSFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls 3

hasNormalsMethod · 0.80
takeTargetMeshMethod · 0.80
triangulateMethod · 0.45

Tested by 1

TestTriangulationMethod · 0.68