7 from salome.geom
import geomBuilder
8 geompy = geomBuilder.New(salome.myStudy)
11 point = geompy.MakeVertex(15., 23., 80.)
14 coords = geompy.PointCoordinates(point)
18 def IsEqual(val1, val2):
return (math.fabs(val1 - val2) < tolerance)
20 if IsEqual(coords[0], 15.)
and IsEqual(coords[1], 23.)
and IsEqual(coords[2], 80.):
21 print "All values are OK."
23 print "Coordinates of point must be (15, 23, 80), but returned (",
24 print coords[0],
", ", coords[1],
", ", coords[2],
")"