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

Function add_lines

tests/model/test-section.cpp:73–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73std::array< geode::uuid, 6 > add_lines(
74 const geode::Section& model, geode::SectionBuilder& builder )
75{
76 std::array< geode::uuid, 6 > uuids;
77 for( auto l : geode::Range{ 6 } )
78 {
79 uuids[l] = builder.add_line();
80 }
81 const auto& temp_line = model.line(
82 builder.add_line( geode::OpenGeodeEdgedCurve2D::impl_name_static() ) );
83 builder.remove_line( temp_line );
84 const auto message = absl::StrCat( "Section should have ", 6, " lines" );
85 geode::OpenGeodeModelException::test( model.nb_lines() == 6, message );
86 geode::OpenGeodeModelException::test(
87 geode::detail::count_range_elements( model.lines() ) == 6, message );
88 return uuids;
89}
90
91std::array< geode::uuid, 2 > add_surfaces(
92 const geode::Section& model, geode::SectionBuilder& builder )

Callers 1

testFunction · 0.70

Calls 7

count_range_elementsFunction · 0.85
nb_linesMethod · 0.80
linesMethod · 0.80
testFunction · 0.70
impl_name_staticFunction · 0.50
add_lineMethod · 0.45
remove_lineMethod · 0.45

Tested by

no test coverage detected