Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #include "WRLsurfaceFormatCore.H"
00027 #include <OpenFOAM/clock.H>
00028
00029
00030
00031 void Foam::fileFormats::WRLsurfaceFormatCore::writeHeader
00032 (
00033 Ostream& os,
00034 const pointField& pointLst,
00035 const label nFaces,
00036 const UList<surfZone>& zoneLst
00037 )
00038 {
00039 os << "#VRML V2.0 utf8" << nl
00040 << nl
00041 << "# written " << clock::dateTime().c_str() << nl
00042 << "# points : " << pointLst.size() << nl
00043 << "# faces : " << nFaces << nl
00044 << "# zones : " << zoneLst.size() << nl;
00045
00046
00047 forAll(zoneLst, zoneI)
00048 {
00049 os << "# " << zoneI << " " << zoneLst[zoneI].name()
00050 << " (nFaces: " << zoneLst[zoneI].size() << ")" << nl;
00051 }
00052 }
00053
00054
00055 void Foam::fileFormats::WRLsurfaceFormatCore::writeAppearance
00056 (
00057 Ostream& os
00058 )
00059 {
00060 os <<
00061 " appearance Appearance {\n"
00062 " material Material {\n"
00063 " diffuseColor 0.8 0.8 0.8\n"
00064 " specularColor 1.0 1.0 1.0\n"
00065 " shininess 0.5\n"
00066 " transparency 0.0\n"
00067 " }\n"
00068 " }\n";
00069
00070 }
00071
00072
00073