| 77 | } |
| 78 | |
| 79 | void test_edges( const geode::PolyhedralSolid3D& polyhedral_solid ) |
| 80 | { |
| 81 | geode::Point3D answer{ { 1.1, 4.8, 3.5 } }; |
| 82 | const auto vertices = polyhedral_solid.edges().edge_vertices( 0 ); |
| 83 | geode::OpenGeodeMeshException::test( |
| 84 | polyhedral_solid.edge_barycenter( vertices ) == answer, |
| 85 | "Wrong edge barycenter" ); |
| 86 | geode::OpenGeodeMeshException::test( |
| 87 | polyhedral_solid.edge_length( vertices ) - 11.3842 < 1e-6, |
| 88 | "Wrong edge length" ); |
| 89 | } |
| 90 | |
| 91 | void test_create_polyhedra( const geode::PolyhedralSolid3D& polyhedral_solid, |
| 92 | geode::PolyhedralSolidBuilder3D& builder ) |
no test coverage detected