From 5f6b23426231199c1bb016e8d5a6101e84185e15 Mon Sep 17 00:00:00 2001 From: Matthias Rambausek Date: Fri, 11 Feb 2022 11:46:55 +0100 Subject: [PATCH] shorter property names --- libsrc/occ/python_occ_shapes.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libsrc/occ/python_occ_shapes.cpp b/libsrc/occ/python_occ_shapes.cpp index 282044c6..57479a4b 100644 --- a/libsrc/occ/python_occ_shapes.cpp +++ b/libsrc/occ/python_occ_shapes.cpp @@ -2348,9 +2348,9 @@ degen_tol : double py::class_> (m, "WorkPlane") .def(py::init(), py::arg("axes")=gp_Ax3(), py::arg("pos")=gp_Ax2d()) - .def_property_readonly("CurrentLocation", &WorkPlane::CurrentLocation) - .def_property_readonly("CurrentDirection", &WorkPlane::CurrentDirection) - .def_property_readonly("StartPnt", &WorkPlane::StartPnt) + .def_property_readonly("cur_loc", &WorkPlane::CurrentLocation) + .def_property_readonly("cur_dir", &WorkPlane::CurrentDirection) + .def_property_readonly("start_pnt", &WorkPlane::StartPnt) .def("MoveTo", &WorkPlane::MoveTo, py::arg("h"), py::arg("v"), "moveto (h,v), and start new wire") .def("Move", &WorkPlane::Move, py::arg("l"), "move 'l' from current position and direction, start new wire") .def("Direction", &WorkPlane::Direction, py::arg("dirh"), py::arg("dirv"), "reset direction to (dirh, dirv)")