X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FDriverSTL%2FDriverSTL_W_SMDS_Mesh.cxx;h=7704cf26cbc9feb375701611656fa7513da4dafd;hb=aa67cc96d730566d202d1014d97b7f0b3a4d71f4;hp=04ce4058a724f18879cecfc256a2859fab3c57ec;hpb=e4737e85f0da6d3f90fd08f6be1c2825195fe16f;p=modules%2Fsmesh.git diff --git a/src/DriverSTL/DriverSTL_W_SMDS_Mesh.cxx b/src/DriverSTL/DriverSTL_W_SMDS_Mesh.cxx index 04ce4058a..7704cf26c 100644 --- a/src/DriverSTL/DriverSTL_W_SMDS_Mesh.cxx +++ b/src/DriverSTL/DriverSTL_W_SMDS_Mesh.cxx @@ -1,21 +1,24 @@ -// 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.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org +// Copyright (C) 2007-2010 CEA/DEN, EDF R&D, OPEN CASCADE +// +// 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. +// +// 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 @@ -69,7 +72,7 @@ Driver_Mesh::Status DriverSTL_W_SMDS_Mesh::Perform() // static methods static void writeInteger( const Standard_Integer& theVal, - OSD_File& ofile ) + OSD_File& ofile ) { union { Standard_Integer i; @@ -88,7 +91,7 @@ static void writeInteger( const Standard_Integer& theVal, } static void writeFloat ( const Standard_ShortReal& theVal, - OSD_File& ofile) + OSD_File& ofile) { union { Standard_ShortReal f; @@ -177,7 +180,7 @@ Driver_Mesh::Status DriverSTL_W_SMDS_Mesh::writeAscii() const SMDS_ElemIteratorPtr aNodeIter = aFace->nodesIterator(); for (; aNodeIter->more(); ) { - SMDS_MeshNode* node = (SMDS_MeshNode*)aNodeIter->next(); + SMDS_MeshNode* node = (SMDS_MeshNode*)aNodeIter->next(); buf += " vertex "; sprintf (sval,"% 12e",node->X()); buf += sval; @@ -228,7 +231,7 @@ Driver_Mesh::Status DriverSTL_W_SMDS_Mesh::writeBinary() const } // write number of triangles - unsigned int NBT = nbTri; + //unsigned int NBT = nbTri; aFile.Write((Standard_Address)sval,LABEL_SIZE); writeInteger(nbTri,aFile); @@ -247,10 +250,10 @@ Driver_Mesh::Status DriverSTL_W_SMDS_Mesh::writeBinary() const SMDS_ElemIteratorPtr aNodeIter = aFace->nodesIterator(); for (; aNodeIter->more(); ) { - SMDS_MeshNode* node = (SMDS_MeshNode*)aNodeIter->next(); - writeFloat(node->X(),aFile); - writeFloat(node->Y(),aFile); - writeFloat(node->Z(),aFile); + SMDS_MeshNode* node = (SMDS_MeshNode*)aNodeIter->next(); + writeFloat(node->X(),aFile); + writeFloat(node->Y(),aFile); + writeFloat(node->Z(),aFile); } aFile.Write (&dum,2); }