From 8b92788b345dd3bf985e3ba1c18625a307b6778c Mon Sep 17 00:00:00 2001 From: jfa Date: Mon, 19 Dec 2011 11:58:31 +0000 Subject: [PATCH] Mantis issue 0021066: EDF 1622: GetAngle function. --- src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx b/src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx index 5007e4835..4d500a92d 100644 --- a/src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx +++ b/src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx @@ -2017,6 +2017,10 @@ void GEOMImpl_IMeasureOperations::PointCoordinates (Handle(GEOM_Object) theShape Standard_Real GEOMImpl_IMeasureOperations::GetAngle (Handle(GEOM_Object) theLine1, Handle(GEOM_Object) theLine2) { + if (theLine1->GetType() == GEOM_VECTOR && + theLine2->GetType() == GEOM_VECTOR) + return GetAngleBtwVectors(theLine1, theLine2); + SetErrorCode(KO); Standard_Real anAngle = -1.0; -- 2.39.2