MCPcopy Create free account
hub / github.com/Geode-solutions/OpenGeode / test_cell_geometry

Function test_cell_geometry

tests/mesh/test-light-regular-grid.cpp:213–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211}
212
213void test_cell_geometry( const geode::LightRegularGrid3D& grid )
214{
215 geode::OpenGeodeMeshException::test(
216 grid.grid_point( { 0, 0, 0 } ) == geode::Point3D( { 1.5, 0, 1 } ),
217 "Wrong point coordinates" );
218 geode::OpenGeodeMeshException::test(
219 grid.grid_point( { 0, 0, 1 } ) == geode::Point3D( { 1.5, 0, 4 } ),
220 "Wrong point coordinates" );
221 geode::OpenGeodeMeshException::test(
222 grid.grid_point( { 1, 1, 1 } ) == geode::Point3D( { 2.5, 2, 4 } ),
223 "Wrong point coordinates" );
224 geode::OpenGeodeMeshException::test(
225 grid.grid_point( { 2, 1, 4 } ) == geode::Point3D( { 3.5, 2, 13 } ),
226 "Wrong point coordinates" );
227}
228
229void test_cell_query( const geode::LightRegularGrid3D& grid )
230{

Callers 2

test_ioFunction · 0.70
testFunction · 0.70

Calls 2

grid_pointMethod · 0.80
testFunction · 0.70

Tested by

no test coverage detected