VTK/Tutorials/TriangleGeometryOnly

From KitwarePublic
< VTK‎ | Tutorials
Revision as of 14:57, 8 April 2009 by Daviddoria (talk | contribs) (New page: void TestWritePointSquare(const string &OutputFile, const char FileType) { //setup points vector<Point> Points; Points.push_back(Point(-1, 1, 0)); Points.push_back(Point(1, 1, 0)); ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

void TestWritePointSquare(const string &OutputFile, const char FileType) { //setup points vector<Point> Points; Points.push_back(Point(-1, 1, 0)); Points.push_back(Point(1, 1, 0)); Points.push_back(Point(1, -1, 0)); Points.push_back(Point(-1, -1, 0));

//setup model ModelClass Model; Model.Points = Points;

//write model

if(FileType == 'u') VtuWrite(Model, OutputFile); else if(FileType == 'p') VtpWrite(Model, OutputFile);

}