| 450 | |
| 451 | |
| 452 | const 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 | |
| 461 | const Handle_Geom_Curve IfcGeom::util::intersect(const Handle_Geom_Surface& a, const TopoDS_Face& b) { |
| 462 | return intersect(a, BRep_Tool::Surface(b)); |