/**************************************************************************** * VCGLib o o * * Visual and Computer Graphics Library o o * * _ O _ * * Copyright(C) 2004-2016 \/)\/ * * Visual Computing Lab /\/| * * ISTI - Italian National Research Council | * * \ * * All rights reserved. * * * * 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; either version 2 of the License, or * * (at your option) any later version. * * * * 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 (http://www.gnu.org/licenses/gpl.txt) * * for more details. * * * ****************************************************************************/ #ifndef VCG_USED_TYPES_H #define VCG_USED_TYPES_H #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include namespace vcg{ // dummy mesh struct _Vertex; struct _Edge ; struct _Face ; struct _HEdge ; struct DummyTypes{ typedef _Vertex VertexType; // simplex types typedef _Edge EdgeType; typedef _Face FaceType; typedef char TetraType; typedef _HEdge HEdgeType; // connector types typedef vcg::Point3 CoordType; typedef char ScalarType; typedef VertexType * VertexPointer; typedef EdgeType * EdgePointer ; typedef FaceType * FacePointer ; typedef TetraType * TetraPointer ; typedef HEdgeType * HEdgePointer ; static void Name(std::vector & /*name*/){} template < class LeftV> void ImportData(const LeftV & /*left*/ ) {} }; template struct Use{ template struct AsVertexType: public T{typedef A VertexType; typedef VertexType * VertexPointer ;}; template struct AsEdgeType: public T{typedef A EdgeType; typedef EdgeType * EdgePointer ;}; template struct AsFaceType: public T{typedef A FaceType; typedef FaceType * FacePointer ;}; template struct AsTetraType: public T{typedef A TetraType; typedef TetraType * TetraPointer ;}; template struct AsHEdgeType: public T{typedef A HEdgeType; typedef HEdgeType * HEdgePointer ;}; }; template