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

Function TEST

source/MRTest/MRIterativeSamplingTests.cpp:11–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9{
10
11TEST( MRMesh, IterativeSampling )
12{
13 auto cloud = meshToPointCloud( makeTorus() );
14 auto numSamples = (int)cloud.validPoints.count() / 2;
15 auto optSamples = pointIterativeSampling( cloud, numSamples );
16 EXPECT_EQ( numSamples, optSamples->count() );
17}
18
19} //namespace MR

Callers

nothing calls this directly

Calls 4

meshToPointCloudFunction · 0.85
makeTorusFunction · 0.85
pointIterativeSamplingFunction · 0.85
countMethod · 0.80

Tested by

no test coverage detected