From: skl Date: Thu, 19 Jun 2008 06:06:36 +0000 (+0000) Subject: Update for bug 0019891 from Mantis. X-Git-Tag: V4_1_4a1~29 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6ceddcd35e6a7891df4dc81727c720da3c533e5f;p=modules%2Fgeom.git Update for bug 0019891 from Mantis. --- diff --git a/src/GEOM_SWIG/geompyDC.py b/src/GEOM_SWIG/geompyDC.py index 6c5f5fac4..cdb8854ed 100644 --- a/src/GEOM_SWIG/geompyDC.py +++ b/src/GEOM_SWIG/geompyDC.py @@ -81,6 +81,7 @@ salome.salome_init() from salome import * import GEOM +import math ## Enumeration ShapeType as a dictionary # @ingroup l1_geompy_auxiliary @@ -2423,6 +2424,11 @@ class geompyDC(GEOM._objref_GEOM_Gen): anAngle = self.MeasuOp.GetAngle(theShape1, theShape2) RaiseIfFailed("GetAngle", self.MeasuOp) return anAngle + def GetAngleRadians(self, theShape1, theShape2): + # Example: see GEOM_TestMeasures.py + anAngle = self.MeasuOp.GetAngle(theShape1, theShape2)*math.pi/180. + RaiseIfFailed("GetAngleRadians", self.MeasuOp) + return anAngle ## @name Curve Curvature Measurement # Methods for receiving radius of curvature of curves