From: jfa Date: Mon, 19 Dec 2011 11:58:31 +0000 (+0000) Subject: Mantis issue 0021066: EDF 1622: GetAngle function. X-Git-Tag: V6_5_0a1~112 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8b92788b345dd3bf985e3ba1c18625a307b6778c;p=modules%2Fgeom.git Mantis issue 0021066: EDF 1622: GetAngle function. --- 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;