mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 05:20:34 +05:00
robust Axis to Axes conversion
This commit is contained in:
parent
ec9d028c60
commit
3ab8ffbdc1
@ -152,9 +152,7 @@ DLL_HEADER void ExportNgOCCBasic(py::module &m)
|
|||||||
return gp_Ax3(p,N, Vx);
|
return gp_Ax3(p,N, Vx);
|
||||||
}), py::arg("p")=gp_Pnt(0,0,0), py::arg("n")=gp_Vec(0,0,1), py::arg("h")=gp_Vec(1,0,0))
|
}), py::arg("p")=gp_Pnt(0,0,0), py::arg("n")=gp_Vec(0,0,1), py::arg("h")=gp_Vec(1,0,0))
|
||||||
.def(py::init([](gp_Ax1 ax1) {
|
.def(py::init([](gp_Ax1 ax1) {
|
||||||
gp_Ax3 ax;
|
return gp_Ax3(ax1.Location(), ax1.Direction());
|
||||||
ax.SetAxis(ax1);
|
|
||||||
return ax;
|
|
||||||
}), py::arg("axis"))
|
}), py::arg("axis"))
|
||||||
.def(py::init<gp_Ax2>())
|
.def(py::init<gp_Ax2>())
|
||||||
.def_property("p", [](gp_Ax3 & ax) { return ax.Location(); }, [](gp_Ax3&ax, gp_Pnt p) { ax.SetLocation(p); })
|
.def_property("p", [](gp_Ax3 & ax) { return ax.Location(); }, [](gp_Ax3&ax, gp_Pnt p) { ax.SetLocation(p); })
|
||||||
|
Loading…
Reference in New Issue
Block a user