]> SALOME platform Git repositories - modules/shaper.git/blob - src/FeaturesPlugin/doc/examples/create_normal_to_face.py
Salome HOME
Minor corrections for the user's guide.
[modules/shaper.git] / src / FeaturesPlugin / doc / examples / create_normal_to_face.py
1 from salome.shaper import model
2 import os
3
4 ### Create a Box
5 model.begin()
6 Box_1 = model.addBox(Part_1_doc, 10, 10, 10)
7 model.do()
8
9 ### Create a top face of the box normal
10 Normal_1 = model.getNormal(Part_1_doc, model.selection("FACE", "Box_1_1/Top"))
11 model.do()
12
13 model.end()