surfMesh changes

- can read MeshedSurface, UnsortedMeshedSurface from surfMesh/
- can write surfMesh in any third-party format
This commit is contained in:
Mark Olesen
2009-03-10 01:37:06 +01:00
parent 8e57ed53f6
commit ce3d79de1c
13 changed files with 337 additions and 239 deletions

View File

@ -278,6 +278,14 @@ int main(int argc, char *argv[])
Info<< "runTime.timeName() = " << runTime.timeName() << endl;
Info<< "write MeshedSurface 'yetAnother' via proxy as surfMesh"
<< endl;
surf.write
(
runTime,
"yetAnother"
);
surfMesh surfIn
(
IOobject
@ -291,7 +299,16 @@ int main(int argc, char *argv[])
);
Info<< "surfIn = " << surfIn.nFaces() << endl;
MeshedSurface<face> surfIn2(runTime, "foobar");
Info<<"surfIn2 = " << surfIn2.size() << endl;
Info<< "surfIn = " << surfIn.size() << endl;
Info<< "writing surfMesh as obj = oldSurfIn.obj" << endl;
surfIn.write("oldSurfIn.obj");
Info<< "runTime.instance() = " << runTime.instance() << endl;