90 int main(
int argc,
char *argv[])
105 scalar scaleFactor = 0;
111 if (importName == exportName)
114 <<
"Output file " << exportName <<
" would overwrite input file."
132 surf.writeStats(
Info);
137 Info<<
"Checking surface orientation" <<
endl;
144 Info<<
"Cleaning up surface" <<
endl;
146 surf.writeStats(
Info);
150 Info<<
"writing " << exportName;
151 if (scaleFactor <= 0)
157 Info<<
" with scaling " << scaleFactor <<
endl;
158 surf.scalePoints(scaleFactor);
159 surf.writeStats(
Info);
164 surf.
write(exportName,
true);
171 surf.writeStats(
Info);
176 Info<<
"Checking surface orientation" <<
endl;
183 Info<<
"Cleaning up surface" <<
endl;
185 surf.writeStats(
Info);
189 Info<<
"writing " << exportName;
190 if (scaleFactor <= 0)
196 Info<<
" with scaling " << scaleFactor <<
endl;
197 surf.scalePoints(scaleFactor);
198 surf.writeStats(
Info);
201 surf.
write(exportName);
209 surf.writeStats(
Info);
214 Info<<
"Checking surface orientation" <<
endl;
221 Info<<
"Cleaning up surface" <<
endl;
223 surf.writeStats(
Info);
227 Info<<
"writing " << exportName;
228 if (scaleFactor <= 0)
234 Info<<
" with scaling " << scaleFactor <<
endl;
235 surf.scalePoints(scaleFactor);
236 surf.writeStats(
Info);
239 surf.
write(exportName);
247 surf.writeStats(
Info);
252 Info<<
"Checking surface orientation" <<
endl;
259 Info<<
"Cleaning up surface" <<
endl;
261 surf.writeStats(
Info);
266 Info<<
"writing " << exportName;
267 if (scaleFactor <= 0)
273 Info<<
" with scaling " << scaleFactor <<
endl;
274 surf.scalePoints(scaleFactor);
275 surf.writeStats(
Info);
278 surf.
write(exportName);
291 Info<<
"runTime.instance() = " << runTime.instance() <<
endl;
292 Info<<
"runTime.timeName() = " << runTime.timeName() <<
endl;
295 Info<<
"write MeshedSurface 'yetAnother' via proxy as surfMesh"
318 Info<<
"surfIn2 = " << surfIn2.size() <<
endl;
320 Info<<
"surfIn = " << surfIn.size() <<
endl;
323 Info<<
"writing surfMesh as obj = oldSurfIn.obj" <<
endl;
324 surfIn.
write(
"oldSurfIn.obj");
327 Info<<
"runTime.instance() = " << runTime.instance() <<
endl;
343 Info<<
"writing surfMesh as well: " << surfOut.objectPath() <<
endl;
360 Info<<
" surf name= " << surfOut.name() <<
nl;
361 Info<<
"rename to anotherSurf" <<
endl;
362 surfOut.rename(
"anotherSurf");
364 Info<<
" surf name= " << surfOut.name() <<
nl;
367 runTime.setTime(
instant(1), 1);
368 surfOut.setInstance(runTime.timeName());
372 Info<<
"writing surfMesh again well: " << surfOut.objectPath() <<
endl;
376 surfOut.
write(
"someName.ofs");
390 Info<<
"write zoneIds (for testing only): "
391 << zoneIds.objectPath() <<
endl;
415 Info<<
"write pointIds (for testing only): "
416 << pointIds.objectPath() <<
endl;
419 Info<<
"surfMesh with these names: " << surfOut.names() <<
endl;