X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FFeaturesPlugin%2FTest%2FTestBooleanFuse_CompSolid_Face.py;h=f612e515fc6c4c5b051e03ef76d213798093033c;hb=037fe596b0fb33397a23058aa89594f477c6c77a;hp=90d0037bb71a13f1f878799f568d4dbd0c86e975;hpb=b6bd0f11102c19e24e85a2c16c0c5644ec9261ae;p=modules%2Fshaper.git diff --git a/src/FeaturesPlugin/Test/TestBooleanFuse_CompSolid_Face.py b/src/FeaturesPlugin/Test/TestBooleanFuse_CompSolid_Face.py index 90d0037bb..f612e515f 100644 --- a/src/FeaturesPlugin/Test/TestBooleanFuse_CompSolid_Face.py +++ b/src/FeaturesPlugin/Test/TestBooleanFuse_CompSolid_Face.py @@ -1,22 +1,21 @@ -## Copyright (C) 2018-20xx 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 -## License as published by the Free Software Foundation; either -## version 2.1 of the License, or (at your option) any later version. -## -## This library is distributed in the hope that it will be useful, -## but WITHOUT ANY WARRANTY; without even the implied warranty of -## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -## Lesser General Public License for more details. -## -## You should have received a copy of the GNU Lesser General Public -## License along with this library; if not, write to the Free Software -## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -## -## See http:##www.salome-platform.org/ or -## email : webmaster.salome@opencascade.com -## +# Copyright (C) 2018-2021 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 +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +# from salome.shaper import model from GeomAPI import GeomAPI_Shape @@ -61,6 +60,12 @@ model.testNbSubShapes(Fuse_1, GeomAPI_Shape.VERTEX, [32]) model.testResultsVolumes(Fuse_1, [785.398163397447774514148477465]) Fuse_2 = model.addFuse(Part_1_doc, [model.selection("SOLID", "Extrusion_1_1_3"), model.selection("SOLID", "Extrusion_1_1_1")], [model.selection("FACE", "Fuse_1_1_1")]) -assert(Fuse_2.feature().error() != "") +model.testNbResults(Fuse_2, 1) +model.testNbSubResults(Fuse_2, [2]) +model.testNbSubShapes(Fuse_2, GeomAPI_Shape.SOLID, [2]) +model.testNbSubShapes(Fuse_2, GeomAPI_Shape.FACE, [19]) +model.testNbSubShapes(Fuse_2, GeomAPI_Shape.EDGE, [82]) +model.testNbSubShapes(Fuse_2, GeomAPI_Shape.VERTEX, [164]) +model.testResultsVolumes(Fuse_2, [25803.607097738855372881516814232]) model.end()