]> SALOME platform Git repositories - modules/geom.git/blobdiff - doc/salome/gui/GEOM/input/tui_point_coordinates.doc
Salome HOME
Merge from V6_main 11/02/2013
[modules/geom.git] / doc / salome / gui / GEOM / input / tui_point_coordinates.doc
index 0f138367b4089b2f9f524e68a2025f2afc9ac7e6..6fbb9c9a60d946504a3f599c64441b80017f09fa 100644 (file)
@@ -1,27 +1,7 @@
 /*!
 
 \page tui_point_coordinates_page Point Coordinates
+\include point_coordinates.py
+<a href="../../examples/GEOM/point_coordinates.py">Download this script</a>
 
-\code
-import math
-import geompy
-
-# create a point
-point = geompy.MakeVertex(15., 23., 80.)
-
-# get the coordinates of the point and check its values
-coords = geompy.PointCoordinates(point)
-
-# check the obtained coordinate values
-tolerance = 1.e-07
-def IsEqual(val1, val2): return (math.fabs(val1 - val2) < tolerance)
-
-if IsEqual(coords[0], 15.) and IsEqual(coords[1], 23.) and IsEqual(coords[2], 80.):
-    print "All values are OK."
-else :
-    print "Coordinates of point must be (15, 23, 80), but returned (",
-    print coords[0], ", ", coords[1], ", ", coords[2], ")"
-    pass
-\endcode
-
-*/
\ No newline at end of file
+*/