X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=test.hdfs%2FBearingSeparator.py;fp=test.hdfs%2FBearingSeparator.py;h=1db90edd93dc55ddb1ba46f7aa039b0924c55e8a;hb=25dd17618de110a874968f1436c9c1a88c7a7f56;hp=0000000000000000000000000000000000000000;hpb=30e30f8e0387a716727a054ef5c586038ed86049;p=modules%2Fshaper.git diff --git a/test.hdfs/BearingSeparator.py b/test.hdfs/BearingSeparator.py new file mode 100644 index 000000000..1db90edd9 --- /dev/null +++ b/test.hdfs/BearingSeparator.py @@ -0,0 +1,31 @@ +# Copyright (C) 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 +# + +if __name__ == "__main__": + aPartFeature = locals()["Part_1"] + model.testNbResults(aPartFeature, 1) + model.testNbSubResults(aPartFeature, [0]) + model.testNbSubShapes(aPartFeature, GeomAPI_Shape.SOLID, [1]) + model.testNbSubShapes(aPartFeature, GeomAPI_Shape.FACE, [115]) + model.testNbSubShapes(aPartFeature, GeomAPI_Shape.EDGE, [890]) + model.testNbSubShapes(aPartFeature, GeomAPI_Shape.VERTEX, [1780]) + model.testResultsVolumes(aPartFeature, [1311.87963636394]) + model.testResultsAreas(aPartFeature, [3765.24411189]) + + assert(model.checkPythonDump())