mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-18 14:00:33 +05:00
0021130: EDF 1746 SMESH: Issue with export in STL format
export any kind of 2D and 3D elements to STL file becomes possible
This commit is contained in:
parent
d0b5d6090a
commit
20b841039b
@ -403,23 +403,23 @@
|
|||||||
/*
|
/*
|
||||||
there must be check on others mesh elements not equal triangles
|
there must be check on others mesh elements not equal triangles
|
||||||
*/
|
*/
|
||||||
if (aMesh->NbTriangles() < 1) {
|
// if (aMesh->NbTriangles() < 1) {
|
||||||
SUIT_MessageBox::warning
|
// SUIT_MessageBox::warning
|
||||||
(SMESHGUI::desktop(),
|
// (SMESHGUI::desktop(),
|
||||||
QObject::tr("SMESH_WRN_WARNING"),
|
// QObject::tr("SMESH_WRN_WARNING"),
|
||||||
QObject::tr("SMESH_EXPORT_STL1").arg(aMeshName));
|
// QObject::tr("SMESH_EXPORT_STL1").arg(aMeshName));
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
if (!(aMesh->NbElements() - aMesh->NbTriangles())) {
|
// if (!(aMesh->NbElements() - aMesh->NbTriangles())) {
|
||||||
int aRet = SUIT_MessageBox::warning
|
// int aRet = SUIT_MessageBox::warning
|
||||||
(SMESHGUI::desktop(),
|
// (SMESHGUI::desktop(),
|
||||||
QObject::tr("SMESH_WRN_WARNING"),
|
// QObject::tr("SMESH_WRN_WARNING"),
|
||||||
QObject::tr("SMESH_EXPORT_STL2").arg(aMeshName),
|
// QObject::tr("SMESH_EXPORT_STL2").arg(aMeshName),
|
||||||
QObject::tr("SMESH_BUT_YES"),
|
// QObject::tr("SMESH_BUT_YES"),
|
||||||
QObject::tr("SMESH_BUT_NO"), 0, 1);
|
// QObject::tr("SMESH_BUT_NO"), 0, 1);
|
||||||
if (aRet != 0)
|
// if (aRet != 0)
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
|
|
||||||
aFilterMapSTL.insert( QObject::tr( "STL_ASCII_FILES_FILTER" ) + " (*.stl)", 1 ); // 1 - ASCII mode
|
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
|
aFilterMapSTL.insert( QObject::tr( "STL_BIN_FILES_FILTER" ) + " (*.stl)", 0 ); // 0 - Binary mode
|
||||||
|
Loading…
Reference in New Issue
Block a user