create edge from two vertices

This commit is contained in:
Joachim Schoeberl 2024-09-28 20:29:12 +02:00
parent ce3f627e36
commit c4dbe60f78

View File

@ -1407,6 +1407,9 @@ DLL_HEADER void ExportNgOCCShapes(py::module &m)
BRepLib::BuildCurves3d(edge);
return edge;
}))
.def(py::init([] (const TopoDS_Vertex & v1, const TopoDS_Vertex & v2) {
return BRepBuilderAPI_MakeEdge(v1, v2).Edge();
}))
.def("Value", [](const TopoDS_Edge & e, double s) {
double s0, s1;
auto curve = BRep_Tool::Curve(e, s0, s1);