X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FVTKViewer%2FVTKViewer_ShrinkFilter.cxx;h=b92e2f1efb945b4215af450a5ccba4571f0e1d1f;hb=refs%2Fheads%2Fngr%2Fpython3_dev_pv5.4;hp=3391c08c7cad9eae79e8ad96d46edcdf39466f8a;hpb=f830c97c748d8f8a6a7eccc8e3a58e19066a1181;p=modules%2Fgui.git diff --git a/src/VTKViewer/VTKViewer_ShrinkFilter.cxx b/src/VTKViewer/VTKViewer_ShrinkFilter.cxx index 3391c08c7..b92e2f1ef 100755 --- a/src/VTKViewer/VTKViewer_ShrinkFilter.cxx +++ b/src/VTKViewer/VTKViewer_ShrinkFilter.cxx @@ -1,30 +1,28 @@ -// SALOME OBJECT : kernel of SALOME component +// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE // -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// 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. -// -// 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) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, +// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS // +// 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 +// + +// SALOME OBJECT : kernel of SALOME component // File : SALOME_GeometryFilter.cxx // Author : Michael ZORIN -// Module : SALOME -// $Header$ #include "VTKViewer_ShrinkFilter.h" @@ -37,7 +35,6 @@ #include #include -vtkCxxRevisionMacro(VTKViewer_ShrinkFilter, "$Revision$"); vtkStandardNewMacro(VTKViewer_ShrinkFilter); /*!Constructor. Sets store mapping to zero.*/ @@ -70,11 +67,11 @@ int VTKViewer_ShrinkFilter::RequestData( int i, j, numIds, abort=0; vtkIdType cellId, numCells, numPts; vtkIdType oldId, newId; - vtkFloatingPointType center[3], *p, pt[3]; + double center[3], *p, pt[3]; vtkPointData *pd, *outPD;; vtkIdList *ptIds, *newPtIds; vtkIdType tenth; - vtkFloatingPointType decimal; + double decimal; vtkDebugMacro(<<"Shrinking cells"); @@ -149,7 +146,7 @@ int VTKViewer_ShrinkFilter::RequestData( oldId = ptIds->GetId(i); newId = newPts->InsertNextPoint(pt); if(myStoreMapping) - myVTK2ObjIds.push_back(oldId); + myVTK2ObjIds.push_back(oldId); newPtIds->InsertId(i,newId); outPD->CopyData(pd, oldId, newId);