mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-04-24 22:32:03 +05:00
Update for bug 0019891 from Mantis.
This commit is contained in:
parent
664cfe7b2f
commit
6ceddcd35e
@ -81,6 +81,7 @@ salome.salome_init()
|
|||||||
from salome import *
|
from salome import *
|
||||||
|
|
||||||
import GEOM
|
import GEOM
|
||||||
|
import math
|
||||||
|
|
||||||
## Enumeration ShapeType as a dictionary
|
## Enumeration ShapeType as a dictionary
|
||||||
# @ingroup l1_geompy_auxiliary
|
# @ingroup l1_geompy_auxiliary
|
||||||
@ -2423,6 +2424,11 @@ class geompyDC(GEOM._objref_GEOM_Gen):
|
|||||||
anAngle = self.MeasuOp.GetAngle(theShape1, theShape2)
|
anAngle = self.MeasuOp.GetAngle(theShape1, theShape2)
|
||||||
RaiseIfFailed("GetAngle", self.MeasuOp)
|
RaiseIfFailed("GetAngle", self.MeasuOp)
|
||||||
return anAngle
|
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
|
## @name Curve Curvature Measurement
|
||||||
# Methods for receiving radius of curvature of curves
|
# Methods for receiving radius of curvature of curves
|
||||||
|
Loading…
x
Reference in New Issue
Block a user