Functions | |
virtual void | MEDMEM::MESH::write (int index=0, const string &driverName="") |
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.
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.