VTK/Tutorials/TriangleGeometryOnly: Difference between revisions
From KitwarePublic
Jump to navigationJump to search
Daviddoria (talk | contribs) No edit summary |
Daviddoria (talk | contribs) |
(No difference)
|
Revision as of 15:15, 8 April 2009
<source lang="cpp"> 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);
} </source>