removeFile( file_Out );
}
+//=======================================================================
+//function : splitQuads
+//purpose : splits all quadrangles into triangles
+//=======================================================================
+
+static void splitQuads(SMESH_Mesh& aMesh)
+{
+ SMESH_MeshEditor spliter( &aMesh );
+
+ TIDSortedElemSet elems;
+ SMDS_ElemIteratorPtr eIt = aMesh.GetMeshDS()->elementsIterator();
+ while( eIt->more() )
+ elems.insert( elems.end(), eIt->next() );
+
+ spliter.QuadToTri ( elems, /*the13Diag=*/true);
+}
+
//=======================================================================
//function : readResult
//purpose : Read GMF file in case of a mesh with geometry
#endif
Hexotic_In = aTmpDir + "Hexotic"+getSuffix()+"_In.mesh";
removeHexoticFiles(Hexotic_In, Hexotic_Out);
+ splitQuads(aMesh); // quadrangles are no longer acceptable as input
cout << std::endl;
cout << "Creating Hexotic input mesh file : " << Hexotic_In << std::endl;
aMesh.ExportGMF(Hexotic_In.ToCString(), meshDS, true);
removeHexoticFiles(Hexotic_In, Hexotic_Out);
+ splitQuads(aMesh); // quadrangles are no longer acceptable as input
+
cout << std::endl;
cout << "Creating Hexotic input mesh file : " << Hexotic_In << std::endl;
aMesh.ExportGMF(Hexotic_In.ToCString(), aHelper->GetMeshDS());