]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
fix doc/example/createNormalToFace
authorNicolas RECHATIN <nicolas.rechatin@cea.fr>
Mon, 28 Jun 2021 13:30:58 +0000 (15:30 +0200)
committerNicolas RECHATIN <nicolas.rechatin@cea.fr>
Mon, 28 Jun 2021 13:30:58 +0000 (15:30 +0200)
doc/examples/createNormalToFace.py [deleted file]
doc/examples/createNormalToFaceAtVertex.py [deleted file]
src/FeaturesPlugin/doc/examples/createNormalToFace.py
src/FeaturesPlugin/doc/examples/createNormalToFaceAtVertex.py

diff --git a/doc/examples/createNormalToFace.py b/doc/examples/createNormalToFace.py
deleted file mode 100644 (file)
index c89e07c..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-from salome.shaper import model
-import os
-
-model.begin()
-Box_1 = model.addBox(Part_1_doc, 10, 10, 10)
-model.do()
-    
-### Create BoundingBox
-Normal_1 = model.getNormal(Part_1_doc, model.selection("FACE", "Box_1_1/Top"))
-model.do()
-
-model.end()
diff --git a/doc/examples/createNormalToFaceAtVertex.py b/doc/examples/createNormalToFaceAtVertex.py
deleted file mode 100644 (file)
index eb0071e..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-
-from salome.shaper import model
-import os
-
-model.begin()
-Box_1 = model.addBox(Part_1_doc, 10, 10, 10)
-model.do()
-    
-Normal_1 = model.getNormal(Part_1_doc, model.selection("FACE", "Box_1_1/Front"), model.selection("VERTEX", "[Box_1_1/Front][Box_1_1/Right][Box_1_1/Bottom]"))
-model.do()
-
-model.end()
index a1f9730113fdfc5a8de7204d5eb11fd99dbfc0cd..c89e07c6b2ce429919a0492935d02a9a05eaa85d 100644 (file)
@@ -2,14 +2,11 @@ from salome.shaper import model
 import os
 
 model.begin()
-file_path = os.path.join(os.getenv("DATA_DIR"),"Shapes","Brep","box1.brep")
-partSet = model.moduleDocument()
-Part_1 = model.addPart(partSet)
-Part_1_doc = Part_1.document()
-Import_1 = model.addImport(Part_1_doc,file_path)
+Box_1 = model.addBox(Part_1_doc, 10, 10, 10)
 model.do()
     
 ### Create BoundingBox
-Normal_1 = model.getNormal(Part_1_doc, model.selection("FACE", "box1_1/Shape_6"))
+Normal_1 = model.getNormal(Part_1_doc, model.selection("FACE", "Box_1_1/Top"))
 model.do()
+
 model.end()
index c59aa67c5a7d4b7bc02bb9e5b42c8bd53810fbcb..eb0071efb2a017becc51353f13dc69a9a50ff8c9 100644 (file)
@@ -3,15 +3,10 @@ from salome.shaper import model
 import os
 
 model.begin()
-file_path = os.path.join(os.getenv("DATA_DIR"),"Shapes","Brep","box1.brep")
-partSet = model.moduleDocument()
-Part_1 = model.addPart(partSet)
-Part_1_doc = Part_1.document()
-Import_1 = model.addImport(Part_1_doc,file_path)
+Box_1 = model.addBox(Part_1_doc, 10, 10, 10)
 model.do()
     
-### Create BoundingBox
-Normal_1 = model.getNormal(Part_1_doc, model.selection("FACE", "box1_1/Shape_6"), 
-                                    model.selection("VERTEX", "[box1_1/Shape_2][box1_1/Shape_4][box1_1/Shape_6]"))
+Normal_1 = model.getNormal(Part_1_doc, model.selection("FACE", "Box_1_1/Front"), model.selection("VERTEX", "[Box_1_1/Front][Box_1_1/Right][Box_1_1/Bottom]"))
 model.do()
+
 model.end()