47 if (space != string::npos)
49 cmd =
line.substr(0, space);
75 if (space != string::npos)
77 if (
line.substr(0, space) == cmd)
94 const string& errorMsg
98 if (!cueTo(is, cmd,
args))
101 <<
"Cannot find command " << cmd
121 static scalar colourMap[] =
138 label colourI = zoneI % 8;
139 label colourCompI = 3 * colourI;
141 os <<
"MATERIAL \"" << zoneLst[zoneI].name() <<
"Mat\" rgb "
142 << colourMap[colourCompI] <<
' ' << colourMap[colourCompI+1]
143 <<
' ' << colourMap[colourCompI+2]
144 <<
" amb 0.2 0.2 0.2 emis 0 0 0 spec 0.5 0.5 0.5 shi 10"
149 os <<
"OBJECT world" <<
nl
150 <<
"kids " << zoneLst.
size() <<
endl;
graph_traits< Graph >::vertices_size_type size_type
#define forAll(list, i)
Loop across all elements in list.
bool good() const
Return true if next operation might succeed.
ISstream & getLine(string &, const bool continuation=true)
Read line into a string.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
label size() const
Return the number of elements in the UList.
A class for handling character strings derived from std::string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Foam::argList args(argc, argv)