From 16ed3b4cede2adb8b4ac14525e303771d4d50033 Mon Sep 17 00:00:00 2001 From: dpasukhi Date: Tue, 28 Jan 2025 12:11:53 +0000 Subject: [PATCH] Modeling - Resetting Plane YVector #296 Fix calculation of myOY in GeomPlate_BuildAveragePlane to use cross product with OZ --- src/GeomPlate/GeomPlate_BuildAveragePlane.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GeomPlate/GeomPlate_BuildAveragePlane.cxx b/src/GeomPlate/GeomPlate_BuildAveragePlane.cxx index 50fa051305..28d56ecb10 100644 --- a/src/GeomPlate/GeomPlate_BuildAveragePlane.cxx +++ b/src/GeomPlate/GeomPlate_BuildAveragePlane.cxx @@ -439,7 +439,7 @@ void GeomPlate_BuildAveragePlane::BasePlan(const gp_Vec& OZ) || ((Abs(n1) <= myTol) && (Abs(n3) <= myTol))) { myOX.SetCoord(V3(1), V3(2), V3(3)); - myOY.SetCoord(0, 0, 0); + myOY = OZ ^ myOX; } else {