diff --git a/vcg/simplex/vertex/base.h b/vcg/simplex/vertex/base.h index 79cfbd08..aa34eda1 100644 --- a/vcg/simplex/vertex/base.h +++ b/vcg/simplex/vertex/base.h @@ -23,6 +23,9 @@ /**************************************************************************** History $Log: not supported by cvs2svn $ +Revision 1.19 2004/09/28 15:24:56 fiorin +DUMMY classes definition moved into vcg namespace + Revision 1.18 2004/08/25 15:15:27 ganovelli minor changes to comply gcc compiler (typename's and stuff) @@ -48,6 +51,9 @@ Revision 1.12 2004/05/10 13:31:13 ganovelli function for edge adjacency added $Log: not supported by cvs2svn $ +Revision 1.19 2004/09/28 15:24:56 fiorin +DUMMY classes definition moved into vcg namespace + Revision 1.18 2004/08/25 15:15:27 ganovelli minor changes to comply gcc compiler (typename's and stuff) @@ -131,14 +137,14 @@ namespace vcg { @param FLTYPE (Template Parameter) Specifies the scalar field of the vertex coordinate type. @param VFTYPE (Template Parameter) Specifies the type for the face, needed only for VF adjacency. */ -template > class VERTEX_TYPE +template , class CoordTYPE= Point3 > class VERTEX_TYPE { public: /// The scalar type used to represent coords (i.e. float, double, ...) typedef FLTYPE ScalarType; /// The coordinate type used to represent the point (i.e. Point3f, Point3d, ...) - typedef Point3 CoordType; + typedef CoordTYPE CoordType; typedef Point3 NormalType; /// The type base of the vertex, useful for recovering the original typename after user subclassing typedef VERTEX_TYPE BaseVertexType; diff --git a/vcg/simplex/vertex/vertex.h b/vcg/simplex/vertex/vertex.h new file mode 100644 index 00000000..082b6f7e --- /dev/null +++ b/vcg/simplex/vertex/vertex.h @@ -0,0 +1,22 @@ +#ifndef __VCGLIB_VERTEX__BASE__TYPE +#define __VCGLIB_VERTEX__BASE__TYPE + + +#define VERTEX_TYPE Vertex + +#include + + +#undef VERTEX_TYPE + + +namespace vcg { +template < class VETYPE, class VFTYPE, class VTTYPE,class TCTYPE = TCoord2, class CoordTYPE= Point3 > +class Vertexf : public Vertex {}; + +template < class VETYPE, class VFTYPE, class VTTYPE> +class Vertexd : public Vertex {}; + +} + +#endif