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

Method intersect

src/ifcgeom/kernels/opencascade/base_utils.cpp:452–459  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

450
451
452const Handle_Geom_Curve IfcGeom::util::intersect(const Handle_Geom_Surface& a, const Handle_Geom_Surface& b) {
453 GeomAPI_IntSS x(a, b, 1.e-7);
454 if (x.IsDone() && x.NbLines() == 1) {
455 return x.Line(1);
456 } else {
457 return Handle_Geom_Curve();
458 }
459}
460
461const Handle_Geom_Curve IfcGeom::util::intersect(const Handle_Geom_Surface& a, const TopoDS_Face& b) {
462 return intersect(a, BRep_Tool::Surface(b));

Callers 1

mainFunction · 0.45

Calls 4

MoreMethod · 0.80
push_backMethod · 0.80
NextMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected