Mesh I/O

Functions

virtual void MEDMEM::MESH::write (int index=0, const string &driverName="")

Detailed Description

These methods describe how to read and write meshes. Generally speaking, meshes should be read via a constructor and should be written with the addDriver()/write() methods.


Function Documentation

void MESH::write ( int  index = 0,
const string &  driverName = "" 
) [virtual, inherited]

Writes all the content of the MESH using driver referenced by the integer handle returned by a addDriver call.

Example :

//...
// Attaching the driver to file "output.med", meshname "Mesh"
int driver_handle = mesh.addDriver(MED_DRIVER, "output.med", "Mesh");
// Writing the content of mesh to the file 
mesh.write(driver_handle);

References MEDMEM::MESH::_drivers.

Generated on Sat May 1 01:31:48 2010 for Med Memory Users' Guide by  doxygen 1.6.3