00001 /**************************************************************************** 00002 * VCGLib o o * 00003 * Visual and Computer Graphics Library o o * 00004 * _ O _ * 00005 * Copyright(C) 2004 \/)\/ * 00006 * Visual Computing Lab /\/| * 00007 * ISTI - Italian National Research Council | * 00008 * \ * 00009 * All rights reserved. * 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 * This program is distributed in the hope that it will be useful, * 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00019 * GNU General Public License (http://www.gnu.org/licenses/gpl.txt) * 00020 * for more details. * 00021 * * 00022 ****************************************************************************/ 00023 /**************************************************************************** 00024 History 00025 00026 $Log: not supported by cvs2svn $ 00027 Revision 1.6 2005/01/26 22:45:34 cignoni 00028 Release 4.04 00029 final updates for gcc compiling issues 00030 00031 Revision 1.5 2004/05/14 00:32:36 ganovelli 00032 just color and quality on the vertex 00033 00034 00035 00036 ****************************************************************************/ 00037 #ifndef _CMESH_H 00038 #define _CMESH_H 00039 00040 #pragma warning(disable:4786 4804 4666) 00041 00042 #include <math.h> 00043 #include <vcg/space/index/grid_static_ptr.h> 00044 #include <vcg/complex/trimesh/base.h> 00045 00046 // Vertex, Face, Mesh and Grid definitions. 00047 #include <vcg/simplex/vertex/base.h> 00048 #include <vcg/simplex/vertex/component.h> 00049 #include <vcg/simplex/face/base.h> 00050 #include <vcg/simplex/face/component.h> 00051 #include <vcg/simplex/face/component_rt.h> 00052 class MyEdge; 00053 class CFace; 00054 class CVertex : public vcg::VertexSimp2<CVertex,MyEdge,CFace,vcg::vertex::Coord3d,vcg::vertex::Qualityf,vcg::vertex::Normal3d,vcg::vertex::Color4b,vcg::vertex::BitFlags> {}; 00055 class CFace : public vcg::FaceSimp2< CVertex,MyEdge,CFace,vcg::face::VertexRef, vcg::face::Normal3d, vcg::face::EdgePlane,vcg::face::Color4b,vcg::face::Mark,vcg::face::BitFlags> {}; 00056 class CMesh : public vcg::tri::TriMesh< std::vector<CVertex>, std::vector<CFace> > {}; 00057 00058 #endif