X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FDriverUNV%2FUNV2412_Structure.cxx;h=a522ecbc1d5c97ec7436be68ece031a6891d145c;hb=0635c9fc80f67d1e5dc0e94ec85f487286a92070;hp=43699fcd804783e00c848d923e6ea6534f84f468;hpb=c3bf92bd87b770fd81631a3853f7f5bb1ac6a4e8;p=modules%2Fsmesh.git diff --git a/src/DriverUNV/UNV2412_Structure.cxx b/src/DriverUNV/UNV2412_Structure.cxx index 43699fcd8..a522ecbc1 100644 --- a/src/DriverUNV/UNV2412_Structure.cxx +++ b/src/DriverUNV/UNV2412_Structure.cxx @@ -1,22 +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-2008 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 #include @@ -63,7 +65,7 @@ void UNV2412::Read(std::ifstream& in_stream, TDataSet& theDataSet) // end of dataset is reached break; } - + int n_nodes; TRecord aRec; in_stream>>aRec.fe_descriptor_id; @@ -142,9 +144,10 @@ void UNV2412::Write(std::ofstream& out_stream, const TDataSet& theDataSet) bool UNV2412::IsBeam(int theFeDescriptorId){ switch (theFeDescriptorId){ - case 11: - case 21: - case 22: + case 11: // edge with 2 nodes + case 21: + case 22: // edge with 3 nodes + case 23: // curved beam case 24: case 25: return true; @@ -191,11 +194,14 @@ bool UNV2412::IsVolume(int theFeDescriptorId){ case 118: // Solid Quadratic Tetrahedron - TET10 case 112: // Solid Linear Prism - PRISM6 + case 113: // Solid Quadratic Prism - PRISM15 case 115: // Solid Linear Brick - HEX8 case 116: // Solid Quadratic Brick - HEX20 case 117: // Solid Cubic Brick + + case 114: // pyramid of 13 nodes (quadratic) return true; } return false;