| 88 | } |
| 89 | |
| 90 | std::array< geode::uuid, 9 > add_lines( |
| 91 | const geode::BRep& model, geode::BRepBuilder& builder ) |
| 92 | { |
| 93 | std::array< geode::uuid, 9 > uuids; |
| 94 | for( const auto l : geode::Range{ 9 } ) |
| 95 | { |
| 96 | uuids[l] = builder.add_line(); |
| 97 | builder.set_line_name( uuids[l], absl::StrCat( "line", l + 1 ) ); |
| 98 | } |
| 99 | const auto& temp_line = model.line( |
| 100 | builder.add_line( geode::OpenGeodeEdgedCurve3D::impl_name_static() ) ); |
| 101 | builder.remove_line( temp_line ); |
| 102 | const auto message = absl::StrCat( "BRep should have ", 9, " lines" ); |
| 103 | geode::OpenGeodeModelException::test( model.nb_lines() == 9, message ); |
| 104 | geode::OpenGeodeModelException::test( |
| 105 | geode::detail::count_range_elements( model.lines() ) == 9, message ); |
| 106 | geode::OpenGeodeModelException::test( |
| 107 | model.line( uuids[3] ).name() == "line4", "Wrong Line name" ); |
| 108 | geode::OpenGeodeModelException::test( |
| 109 | model.nb_active_lines() == 9, message ); |
| 110 | builder.set_line_active( uuids[1], false ); |
| 111 | builder.set_line_active( uuids[4], false ); |
| 112 | geode::OpenGeodeModelException::test( |
| 113 | model.nb_active_lines() == 7, "BRep should have 7 active lines" ); |
| 114 | geode::OpenGeodeModelException::test( |
| 115 | model.nb_lines() == 9, "BRep should still have 9 lines" ); |
| 116 | return uuids; |
| 117 | } |
| 118 | |
| 119 | std::array< geode::uuid, 5 > add_surfaces( |
| 120 | const geode::BRep& model, geode::BRepBuilder& builder ) |
no test coverage detected