Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix for the issue #2724 : dump with Weak naming selection leads to error
[modules/shaper.git]
/
src
/
FeaturesPlugin
/
Test
/
TestFillFaceSolid.py
diff --git
a/src/FeaturesPlugin/Test/TestFillFaceSolid.py
b/src/FeaturesPlugin/Test/TestFillFaceSolid.py
index a99fa556f2ce0c71ca7e790abe6ec5218fd50e97..f7e144562fb3db0eb1ed20514b6c39ff7f63394f 100644
(file)
--- a/
src/FeaturesPlugin/Test/TestFillFaceSolid.py
+++ b/
src/FeaturesPlugin/Test/TestFillFaceSolid.py
@@
-1,4
+1,4
@@
-## Copyright (C) 2017 CEA/DEN, EDF R&D
+## Copyright (C) 201
4-201
7 CEA/DEN, EDF R&D
##
## This library is free software; you can redistribute it and/or
## modify it under the terms of the GNU Lesser General Public
##
## This library is free software; you can redistribute it and/or
## modify it under the terms of the GNU Lesser General Public
@@
-18,6
+18,7
@@
## email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
##
## email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
##
+# -*- coding: utf-8 -*-
from SketchAPI import *
from SketchAPI import *
@@
-49,12
+50,12
@@
SketchConstraintRadius_1 = Sketch_1.setRadius(SketchArc_1.results()[1], "L+Shift
SketchConstraintDistanceVertical_1 = Sketch_1.setVerticalDistance(SketchAPI_Line(SketchLine_1).startPoint(), SketchLine_2.startPoint(), 5)
SketchConstraintDistance_1 = Sketch_1.setDistance(SketchAPI_Line(SketchLine_1).startPoint(), SketchLine_3.startPoint(), "Shift", True)
model.do()
SketchConstraintDistanceVertical_1 = Sketch_1.setVerticalDistance(SketchAPI_Line(SketchLine_1).startPoint(), SketchLine_2.startPoint(), 5)
SketchConstraintDistance_1 = Sketch_1.setDistance(SketchAPI_Line(SketchLine_1).startPoint(), SketchLine_3.startPoint(), "Shift", True)
model.do()
-Face_1 = model.addFace(Part_1_doc, [model.selection("WIRE", "Sketch_1/
Wire-SketchArc_1_2f-SketchLine_2f-SketchLine_3f
")])
-
Boolean
_1 = model.addFill(Part_1_doc, [model.selection("FACE", "Face_1_1")], [model.selection("SOLID", "Box_1_1")])
+Face_1 = model.addFace(Part_1_doc, [model.selection("WIRE", "Sketch_1/
Face-SketchArc_1_2f-SketchLine_2f-SketchLine_3f_wire
")])
+
Fill
_1 = model.addFill(Part_1_doc, [model.selection("FACE", "Face_1_1")], [model.selection("SOLID", "Box_1_1")])
model.do()
model.do()
-model.checkResult(
Boolean
_1, model, 1, [4], [0], [4], [15], [30])
-model.testHaveNamingSubshapes(
Boolean
_1, model, Part_1_doc)
+model.checkResult(
Fill
_1, model, 1, [4], [0], [4], [15], [30])
+model.testHaveNamingSubshapes(
Fill
_1, model, Part_1_doc)
model.end()
model.end()