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
[Code coverage FeaturesPlugin]: Improve coverage of Pipe algorithm
[modules/shaper.git]
/
src
/
FeaturesPlugin
/
Test
/
TestFillWireSolid.py
diff --git
a/src/FeaturesPlugin/Test/TestFillWireSolid.py
b/src/FeaturesPlugin/Test/TestFillWireSolid.py
index d0fd12e4e69890edc0eda5bb63ed19c0fe265c55..35dd3401a86e1a6250ab7b5c749ba114a5739324 100644
(file)
--- a/
src/FeaturesPlugin/Test/TestFillWireSolid.py
+++ b/
src/FeaturesPlugin/Test/TestFillWireSolid.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()
-Wire_1 = model.addWire(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("WIRE", "Wire_1_1")], [model.selection("SOLID", "Box_1_1")])
+Wire_1 = model.addWire(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("WIRE", "Wire_1_1")], [model.selection("SOLID", "Box_1_1")])
model.do()
model.do()
-model.checkResult(
Boolean
_1, model, 1, [0], [0], [0], [9], [18])
-model.testHaveNamingSubshapes(
Boolean
_1, model, Part_1_doc)
+model.checkResult(
Fill
_1, model, 1, [0], [0], [0], [9], [18])
+model.testHaveNamingSubshapes(
Fill
_1, model, Part_1_doc)
model.end()
model.end()