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

Function test_permutation

tests/mesh/test-point-set.cpp:60–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60void test_permutation(
61 const geode::PointSet3D& point_set, geode::PointSetBuilder3D& builder )
62{
63 std::vector< geode::index_t > permutation{ 2, 0, 3, 1 };
64 builder.permute_vertices( permutation );
65 geode::OpenGeodeMeshException::test(
66 point_set.point( 2 ) == geode::Point3D(),
67 "Point coordinates have not been correctly permuted" );
68 geode::OpenGeodeMeshException::test(
69 point_set.point( 0 ) == geode::Point3D( { 2.3, 5.0, -1.2 } ),
70 "Point coordinates have not been correctly permuted" );
71}
72
73void test_bounding_box( const geode::PointSet3D& point_set )
74{

Callers 1

testFunction · 0.70

Calls 3

permute_verticesMethod · 0.80
testFunction · 0.70
pointMethod · 0.45

Tested by

no test coverage detected