MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / loop_to_segments

Function loop_to_segments

src/ifcgeom/kernels/cgal/CgalKernel.cpp:515–520  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

513
514namespace {
515 void loop_to_segments(const cgal_wire_t& wire, std::vector<Kernel_::Segment_3>& segments) {
516 for (int i = 0; i < wire.size(); ++i) {
517 int j = (i + 1) % wire.size();
518 segments.emplace_back(wire[i], wire[j]);
519 }
520 }
521
522 struct intersection_collector {
523

Callers 1

convertMethod · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected