From 360a7e4b1ab493f47fcd2feb74b8ff350219f547 Mon Sep 17 00:00:00 2001 From: isn Date: Fri, 19 Jan 2018 14:33:52 +0300 Subject: [PATCH] remark --- src/gp/gp_Ax3.lxx | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/src/gp/gp_Ax3.lxx b/src/gp/gp_Ax3.lxx index 3111847c62..698e1c126c 100644 --- a/src/gp/gp_Ax3.lxx +++ b/src/gp/gp_Ax3.lxx @@ -44,26 +44,8 @@ inline void gp_Ax3::ZReverse() inline void gp_Ax3::SetAxis(const gp_Ax1& A1) { - Standard_Real dot = A1.Direction().Dot(vxdir); - if(Abs(Abs(dot) - 1.) <= Precision::Angular()) - { - if(dot > 0) - { - vxdir = vydir; - vydir = axis.Direction(); - } - else - vxdir = axis.Direction(); - axis = A1; - } - else - { - Standard_Boolean direct = Direct(); - axis = A1; - vxdir = axis.Direction().CrossCrossed (vxdir, axis.Direction()); - if(direct) { vydir = axis.Direction().Crossed(vxdir); } - else { vydir = vxdir.Crossed(axis.Direction()); } - } + axis.SetLocation(A1.Location()); + SetDirection(A1.Direction()); } inline void gp_Ax3::SetDirection(const gp_Dir& V) -- 2.39.5