-// Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2013 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
#include "SMDSAbs_ElementType.hxx"
#include "SMDS_ElemIterator.hxx"
+struct TLocalSize
+{
+ TLocalSize( int theNbNodes, double theSize)
+ {
+ nbNodes = theNbNodes;
+ size = theSize;
+ }
+ int nbNodes;
+ double size;
+};
+
/*!
* \brief Driver Writing a mesh into a GMF file.
*/
{
_exportRequiredGroups = toExport;
}
-
+
virtual Status Perform();
+ Status PerformSizeMap();
+ void AddSizeMapFromMesh( SMESHDS_Mesh* mesh, double size);
+// void WriteSizeMapFromMesh( double size );
+// void AddSizeMapSection( int meshID, int nbControlPoints );
+// void AppendSize( int meshID, double size );
+// int NbVerticesInFile();
+// int OpenFileToWrite();
+// void CloseFile( int );
private:
SMDS_ElemIteratorPtr elementIterator(SMDSAbs_GeometryType type);
bool _exportRequiredGroups;
+ int mySizeMapVerticesNumber;
+ std::list<SMESHDS_Mesh*> mySizeMapMeshes;
+ std::list<TLocalSize> myLocalSizes;
};
#endif