]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
0021130: EDF 1746 SMESH: Issue with export in STL format
authoreap <eap@opencascade.com>
Thu, 27 Jan 2011 16:58:49 +0000 (16:58 +0000)
committereap <eap@opencascade.com>
Thu, 27 Jan 2011 16:58:49 +0000 (16:58 +0000)
   export any kind of 2D and 3D elements to STL file becomes possible

src/SMESHGUI/SMESHGUI.cxx

index 308505e8427553693586badc66b6e96837c1117e..259115ba9acc6c165ac302aa97eaa5d3d0a49e8f 100644 (file)
         /*
           there must be check on others mesh elements not equal triangles
         */
-        if (aMesh->NbTriangles() < 1) {
-          SUIT_MessageBox::warning
-            (SMESHGUI::desktop(),
-             QObject::tr("SMESH_WRN_WARNING"),
-             QObject::tr("SMESH_EXPORT_STL1").arg(aMeshName));
-          return;
-        }
-        if (!(aMesh->NbElements() - aMesh->NbTriangles())) {
-          int aRet = SUIT_MessageBox::warning
-            (SMESHGUI::desktop(),
-             QObject::tr("SMESH_WRN_WARNING"),
-             QObject::tr("SMESH_EXPORT_STL2").arg(aMeshName),
-             QObject::tr("SMESH_BUT_YES"),
-             QObject::tr("SMESH_BUT_NO"), 0, 1);
-          if (aRet != 0)
-            return;
-        }
+//         if (aMesh->NbTriangles() < 1) {
+//           SUIT_MessageBox::warning
+//             (SMESHGUI::desktop(),
+//              QObject::tr("SMESH_WRN_WARNING"),
+//              QObject::tr("SMESH_EXPORT_STL1").arg(aMeshName));
+//           return;
+//         }
+//         if (!(aMesh->NbElements() - aMesh->NbTriangles())) {
+//           int aRet = SUIT_MessageBox::warning
+//             (SMESHGUI::desktop(),
+//              QObject::tr("SMESH_WRN_WARNING"),
+//              QObject::tr("SMESH_EXPORT_STL2").arg(aMeshName),
+//              QObject::tr("SMESH_BUT_YES"),
+//              QObject::tr("SMESH_BUT_NO"), 0, 1);
+//           if (aRet != 0)
+//             return;
+//         }
 
         aFilterMapSTL.insert( QObject::tr( "STL_ASCII_FILES_FILTER" ) + " (*.stl)", 1 ); // 1 - ASCII mode
         aFilterMapSTL.insert( QObject::tr( "STL_BIN_FILES_FILTER" )   + " (*.stl)", 0 ); // 0 - Binary mode