]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Mantis issue 0021066: EDF 1622: GetAngle function.
authorjfa <jfa@opencascade.com>
Mon, 19 Dec 2011 11:58:31 +0000 (11:58 +0000)
committerjfa <jfa@opencascade.com>
Mon, 19 Dec 2011 11:58:31 +0000 (11:58 +0000)
src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx

index 5007e4835c47a0388685d2f6fb4f7e84bb773b58..4d500a92d236293a6bcdfd2e1f9bda5ea8178387 100644 (file)
@@ -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;