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

Function TEST

source/MRTest/MRGridSamplingTests.cpp:8–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6{
7
8TEST( MRMesh, GridSampling )
9{
10 auto sphereMesh = makeUVSphere();
11 auto numVerts = sphereMesh.topology.numValidVerts();
12 auto samples = verticesGridSampling( sphereMesh, 0.5f );
13 auto sampleCount = samples->count();
14 EXPECT_LE( sampleCount, numVerts );
15}
16
17} // namespace MR

Callers

nothing calls this directly

Calls 4

makeUVSphereFunction · 0.85
verticesGridSamplingFunction · 0.85
countMethod · 0.80
numValidVertsMethod · 0.45

Tested by

no test coverage detected