//=========================================================================== // GoTools Core - SINTEF Geometry Tools Core library, version 2.0.1 // // Copyright (C) 2000-2007, 2010 SINTEF ICT, Applied Mathematics, Norway. // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License // as published by the Free Software Foundation version 2 of the License. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., // 59 Temple Place - Suite 330, // Boston, MA 02111-1307, USA. // // Contact information: E-mail: tor.dokken@sintef.no // SINTEF ICT, Department of Applied Mathematics, // P.O. Box 124 Blindern, // 0314 Oslo, Norway. // // Other licenses are also available for this software, notably licenses // for: // - Building commercial software. // - Building software whose source code you wish to keep private. //=========================================================================== 00016 #ifndef _GENERALMESH_H 00017 #define _GENERALMESH_H 00018 00019 #include "GoTools/utils/config.h" 00020 00021 namespace Go 00022 { 00023 00027 class RegularMesh; 00028 class LineStrip; 00029 class GenericTriMesh; 00030 00031 00032 class GO_API GeneralMesh 00033 { 00034 public: 00035 virtual ~GeneralMesh(); 00036 00037 virtual int numVertices() = 0; 00038 00039 virtual double* vertexArray() = 0; 00040 00041 virtual double* paramArray() = 0; 00042 00043 virtual int atBoundary(int idx) = 0; 00044 00045 virtual int numTriangles() 00046 { 00047 return 0; 00048 } 00049 00050 virtual unsigned int* triangleIndexArray() = 0; 00051 00052 virtual RegularMesh* asRegularMesh(); 00053 00054 virtual LineStrip* asLineStrip(); 00055 00056 virtual GenericTriMesh* asGenericTriMesh(); 00057 00058 }; 00059 00060 } // namespace Go 00061 00062 00063 00064 00065 #endif // _GENERALMESH_H