diff --git a/src/ApplicationController.cpp b/src/ApplicationController.cpp index 5c81ad1..786e0d5 100644 --- a/src/ApplicationController.cpp +++ b/src/ApplicationController.cpp @@ -155,14 +155,14 @@ void ApplicationController::addRectangle(const gp_Pnt& corner1, const gp_Pnt& co const auto& plane = m_activeSketch->plane(); - gp_Pnt2d p1_2d = ElCLib::To2d(corner1, plane); - gp_Pnt2d p3_2d = ElCLib::To2d(corner2, plane); + gp_Pnt2d p1_2d = ElCLib::Value(corner1, plane); + gp_Pnt2d p3_2d = ElCLib::Value(corner2, plane); gp_Pnt2d p2_2d(p3_2d.X(), p1_2d.Y()); gp_Pnt2d p4_2d(p1_2d.X(), p3_2d.Y()); - gp_Pnt p2_3d = ElCLib::To3d(p2_2d, plane); - gp_Pnt p4_3d = ElCLib::To3d(p4_2d, plane); + gp_Pnt p2_3d = ElCLib::Value(p2_2d, plane); + gp_Pnt p4_3d = ElCLib::Value(p4_2d, plane); TopoDS_Edge e1 = BRepBuilderAPI_MakeEdge(corner1, p2_3d); TopoDS_Edge e2 = BRepBuilderAPI_MakeEdge(p2_3d, corner2);