X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FBuildAPI%2FBuildAPI_Face.cpp;h=419281b7aba9e268e37d44355860432322750b4a;hb=f60dc9dd94d5d4b0ea07e3e3cbfd5b3028f0942d;hp=930021d3911b27fe15c8bf0b6bb080d74d281c82;hpb=7f2ee5f249f762b336a68cebb006ea83b50caa50;p=modules%2Fshaper.git diff --git a/src/BuildAPI/BuildAPI_Face.cpp b/src/BuildAPI/BuildAPI_Face.cpp index 930021d39..419281b7a 100644 --- a/src/BuildAPI/BuildAPI_Face.cpp +++ b/src/BuildAPI/BuildAPI_Face.cpp @@ -1,11 +1,26 @@ -// Copyright (C) 2014-20xx CEA/DEN, EDF R&D --> - -// File: BuildAPI_Face.cpp -// Created: 09 June 2016 -// Author: Dmitry Bobylev +// Copyright (C) 2014-2017 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 +// #include "BuildAPI_Face.h" +#include #include //================================================================================================== @@ -39,7 +54,16 @@ void BuildAPI_Face::setBase(const std::list& theBaseObje execute(); } -// TODO(spo): make add* as static functions of the class +//================================================================================================== +void BuildAPI_Face::dump(ModelHighAPI_Dumper& theDumper) const +{ + FeaturePtr aBase = feature(); + std::string aPartName = theDumper.name(aBase->document()); + + theDumper << aBase << " = model.addFace(" << aPartName << ", " + << aBase->selectionList(BuildPlugin_Face::BASE_OBJECTS_ID()) << ")" << std::endl; +} + //================================================================================================== FacePtr addFace(const std::shared_ptr& thePart, const std::list& theBaseObjects)