From f942a424f3629dada6dcd80c1d8f69fe7e852217 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Tue, 3 Mar 2026 16:20:07 -0700 Subject: [PATCH] fix: Correct ElCLib point conversion function names Co-authored-by: aider (gemini/gemini-2.5-pro) --- src/ApplicationController.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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);