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

Function TEST

source/MRTest/MRRegularGridMeshTests.cpp:9–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7{
8
9TEST(MRMesh, makeRegularGridMesh)
10{
11 auto m = makeRegularGridMesh( 2, 2,
12 []( size_t, size_t ) { return true; },
13 []( size_t x, size_t y ) { return Vector3f( (float)x, (float)y, 0 ); } ).value();
14 ASSERT_TRUE( m.topology.checkValidity() );
15
16 m = makeRegularGridMesh( 2, 3,
17 []( size_t, size_t ) { return true; },
18 []( size_t x, size_t y ) { return Vector3f( (float)x, (float)y, 0 ); } ).value();
19 ASSERT_TRUE( m.topology.checkValidity() );
20
21 m = makeRegularGridMesh( 5, 3,
22 []( size_t, size_t ) { return true; },
23 []( size_t x, size_t y ) { return Vector3f( (float)x, (float)y, 0 ); } ).value();
24 ASSERT_TRUE( m.topology.checkValidity() );
25}
26
27} //namespace MR

Callers

nothing calls this directly

Calls 3

makeRegularGridMeshFunction · 0.85
valueMethod · 0.45
checkValidityMethod · 0.45

Tested by

no test coverage detected