mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 04:50:34 +05:00
optional name for WorkPlane.LineTo
This commit is contained in:
parent
0c809f4d2b
commit
a69eefa0db
@ -1515,7 +1515,9 @@ DLL_HEADER void ExportNgOCCShapes(py::module &m)
|
||||
.def(py::init<gp_Ax3, gp_Ax2d>(), py::arg("axis")=gp_Ax3(), py::arg("pos")=gp_Ax2d())
|
||||
.def("MoveTo", &WorkPlane::MoveTo)
|
||||
.def("Direction", &WorkPlane::Direction)
|
||||
.def("LineTo", &WorkPlane::LineTo)
|
||||
// .def("LineTo", &WorkPlane::LineTo)
|
||||
.def("LineTo", [](WorkPlane&wp, double x, double y, optional<string> name) { return wp.LineTo(x, y, name); },
|
||||
py::arg("x"), py::arg("y"), py::arg("name")=nullopt)
|
||||
.def("ArcTo", &WorkPlane::ArcTo)
|
||||
.def("Arc", &WorkPlane::Arc)
|
||||
.def("Rotate", &WorkPlane::Rotate)
|
||||
|
Loading…
Reference in New Issue
Block a user