Salome HOME
small modification
[modules/geom.git] / doc / salome / gui / GEOM / input / tui_normal_face.doc
1 /*!
2
3 \page tui_normal_face_page Normal to a Face
4
5 \code
6 import geompy
7 import math
8
9 # create a box
10 box = geompy.MakeBoxDXDYDZ(100,30,100)
11
12 faces = geompy.SubShapeAllSortedCentres(box, geompy.ShapeType["FACE"])
13 face0 = faces[0]
14 vnorm = geompy.GetNormal(face0)
15 if vnorm is None:
16   raise RuntimeError, "GetNormal(face0) failed"
17 else:
18   geompy.addToStudy(face0, "Face0")
19   geompy.addToStudy(vnorm, "Normale to Face0")
20   print "\nNormale of face has been successfully obtained"
21 \endcode
22
23 */