6 from salome.geom import geomBuilder
7 geompy = geomBuilder.New(salome.myStudy)
11 box = geompy.MakeBoxDXDYDZ(100,30,100)
13 faces = geompy.SubShapeAllSortedCentres(box, geompy.ShapeType["FACE"])
15 vnorm = geompy.GetNormal(face0)
17 raise RuntimeError, "GetNormal(face0) failed"
19 geompy.addToStudy(face0, "Face0")
20 geompy.addToStudy(vnorm, "Normale to Face0")
21 print "\nNormale of face has been successfully obtained"