vtkwrap_test02.cpp

00001 /***********************************************************************************
00002  * VTKwrap - Simple VTK wrappers                                                   *
00003  * Copyright (C) 2005 Dorival de Moraes Pedroso <dorival.pedroso at gmail.com>     *
00004  *                                                                                 *
00005  * This file is part of VTKwrap.                                                   *
00006  *                                                                                 *
00007  * VTKwrap is free software; you can redistribute it and/or modify it under        *
00008  * the  terms of the GNU General Public License as published by the Free Software  *
00009  * Foundation; either version 2 of the License, or (at your option) any later      *
00010  * version.                                                                        *
00011  *                                                                                 *
00012  * VTKwrap is distributed in the hope that it will be useful, but WITHOUT ANY      *
00013  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A *
00014  * PARTICULAR PURPOSE. See the GNU General Public License for more details.        *
00015  *                                                                                 *
00016  * You should have received a copy of the GNU General Public License along with    *
00017  * VTKwrap; if not, write to the Free Software Foundation, Inc., 51 Franklin       *
00018  * Street, Fifth Floor, Boston, MA 02110-1301, USA                                 *
00019  ***********************************************************************************/
00020 
00021 #include <iostream>
00022 
00023 #include "numerical/meshgrid.h"
00024 
00025 #include "vtkwrap/triangulate.h"
00026 
00027 using std::cout;
00028 using std::endl;
00029 
00030 int main(int argc, char **argv)
00031 {
00032     // Create a meshgrid
00033     MeshGrid mg(0.0,1.0,6,  // X
00034                 0.0,1.0,6,  // Y
00035                 0.0,1.0,6); // Z
00036 
00037     Triangulate T(mg.X(), mg.Y(), mg.Z(), mg.Length(), "tmp.test02.vtk");
00038     T.Start();
00039 
00040     cout << "Triangulate done. File <tmp.test02.vtk> saved\n";
00041 
00042     return 0;
00043 }

Generated on Wed Jan 24 15:56:28 2007 for MechSys by  doxygen 1.4.7