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
High level objects history implementation for Translation, Rotation and Scale features.
[modules/shaper.git]
/
src
/
FeaturesPlugin
/
Test
/
TestFillShellSolid.py
diff --git
a/src/FeaturesPlugin/Test/TestFillShellSolid.py
b/src/FeaturesPlugin/Test/TestFillShellSolid.py
index 1b78fe4c15b0d9a8f0d3cd94d6ad1a7609907cc4..15deb078a6b1a529724663df297672205c6a52bb 100644
(file)
--- a/
src/FeaturesPlugin/Test/TestFillShellSolid.py
+++ b/
src/FeaturesPlugin/Test/TestFillShellSolid.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 *
@@
-50,14
+51,14
@@
SketchConstraintDistanceVertical_1 = Sketch_1.setVerticalDistance(SketchAPI_Line
SketchConstraintDistance_1 = Sketch_1.setDistance(SketchAPI_Line(SketchLine_1).startPoint(), SketchLine_3.startPoint(), "Shift", True)
model.do()
Plane_5 = model.addPlane(Part_1_doc, model.selection("FACE", "Box_1_1/Left"), "Shift", True)
SketchConstraintDistance_1 = Sketch_1.setDistance(SketchAPI_Line(SketchLine_1).startPoint(), SketchLine_3.startPoint(), "Shift", True)
model.do()
Plane_5 = model.addPlane(Part_1_doc, model.selection("FACE", "Box_1_1/Left"), "Shift", True)
-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("FACE", "Plane_2")])
+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("FACE", "Plane_2")])
Shell_1 = model.addShell(Part_1_doc, [model.selection("FACE", "Fill_1_1_2"), model.selection("FACE", "Fill_1_1_1")])
Shell_1 = model.addShell(Part_1_doc, [model.selection("FACE", "Fill_1_1_2"), model.selection("FACE", "Fill_1_1_1")])
-
Boolean
_2 = model.addFill(Part_1_doc, [model.selection("SHELL", "Shell_1_1")], [model.selection("SOLID", "Box_1_1")])
+
Fill
_2 = model.addFill(Part_1_doc, [model.selection("SHELL", "Shell_1_1")], [model.selection("SOLID", "Box_1_1")])
model.do()
model.do()
-model.checkResult(
Boolean
_2, model, 1, [0], [0], [6], [22], [44])
-model.testHaveNamingSubshapes(
Boolean
_2, model, Part_1_doc)
+model.checkResult(
Fill
_2, model, 1, [0], [0], [6], [22], [44])
+model.testHaveNamingSubshapes(
Fill
_2, model, Part_1_doc)
model.end()
model.end()