diff --git a/vcg/complex/edgemesh/base.h b/vcg/complex/edgemesh/base.h index b98b3d57..030ef24f 100644 --- a/vcg/complex/edgemesh/base.h +++ b/vcg/complex/edgemesh/base.h @@ -24,6 +24,10 @@ History $Log: not supported by cvs2svn $ +Revision 1.6 2005/09/14 14:09:16 spinelli +ConstVertexPointer --> VertexPointer +ConstEdgePointer --> EdgePointer + Revision 1.5 2005/05/17 21:19:37 ganovelli some std::and typename missing (CRS4) @@ -149,7 +153,7 @@ static bool HasPerVertexNormal() { return VertexType::HasNormal() ; } static bool HasPerVertexColor() { return VertexType::HasColor() ; } static bool HasPerVertexMark() { return VertexType::HasMark() ; } static bool HasPerVertexQuality() { return VertexType::HasQuality(); } -static bool HasPerVertexTexture() { return VertexType::HasTexture(); } +static bool HasPerVertexTexCoord(){ return VertexType::HasTexCoord(); } static bool HasPerEdgeColor() { return EdgeType::HasEdgeColor() ; } static bool HasPerEdgeNormal() { return EdgeType::HasEdgeNormal() ; } diff --git a/vcg/complex/tetramesh/base.h b/vcg/complex/tetramesh/base.h index 5a658d05..a988ba9d 100644 --- a/vcg/complex/tetramesh/base.h +++ b/vcg/complex/tetramesh/base.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.12 2005/12/12 11:10:35 ganovelli +modifications to compile with gcc + Revision 1.11 2005/01/12 11:06:54 ganovelli added InitVertexIMark @@ -211,7 +214,7 @@ static bool HasPerVertexNormal() { return VertexType::HasNormal() ; } static bool HasPerVertexColor() { return VertexType::HasColor() ; } static bool HasPerVertexMark() { return VertexType::HasMark() ; } static bool HasPerVertexQuality() { return VertexType::HasQuality(); } -static bool HasPerVertexTexture() { return VertexType::HasTexture(); } +static bool HasPerVertexTexCoord(){ return VertexType::HasTexCoord(); } static bool HasPerTetraNormal() { return TetraType::HasTetraNormal() ; } static bool HasPerTetraMark() { return TetraType::HasTetraMark() ; } diff --git a/vcg/complex/trimesh/append.h b/vcg/complex/trimesh/append.h index 96c98283..7d6eae5a 100644 --- a/vcg/complex/trimesh/append.h +++ b/vcg/complex/trimesh/append.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.5 2006/05/25 04:40:57 cignoni +Updated HasPerFaceColor/Quality to the new style with mesh param. + Revision 1.4 2006/04/11 13:51:21 zifnab1974 commented out one function which does not compile on linux with gcc 3.4.5 @@ -83,7 +86,7 @@ static void ImportVertex(VertexLeft &vl, VertexRight &vr) vl.P().Import(vr.P()); if(vl.HasColor() && vl.HasColor()) vl.C()=vr.C(); if(vl.HasQuality() && vl.HasQuality()) vl.Q()=vr.Q(); - if(vl.HasTexture() && vl.HasTexture()) vl.T()=vr.T(); + if(vl.HasTexCoord() && vl.HasTexCoord()) vl.T()=vr.T(); } static void ImportFace(MeshLeft &ml, MeshRight &mr, FaceLeft &fl, FaceRight &fr, std::vector &remap) @@ -93,7 +96,7 @@ static void ImportFace(MeshLeft &ml, MeshRight &mr, FaceLeft &fl, FaceRight &fr, fl.V(2)=&ml.vert[remap[ Index(mr,fr.V(2))]]; if(HasPerFaceColor(mr) && HasPerFaceColor(ml)) fl.C()=fr.C(); if(HasPerFaceQuality(mr) && HasPerFaceQuality(ml)) fl.Q()=fr.Q(); - if(HasPerWedgeTexture(mr) && HasPerWedgeTexture(ml)) + if(HasPerWedgeTexCoord(mr) && HasPerWedgeTexCoord(ml)) { fl.WT(0)=fr.WT(0); fl.WT(1)=fr.WT(1); diff --git a/vcg/complex/trimesh/base.h b/vcg/complex/trimesh/base.h index 852cb56c..d6086962 100644 --- a/vcg/complex/trimesh/base.h +++ b/vcg/complex/trimesh/base.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.27 2007/02/22 09:18:41 cignoni +Added guards on msvc pragmas + Revision 1.26 2007/02/14 15:31:41 ganovelli Added HasPerVertexFlag @@ -224,7 +227,7 @@ static bool HasPerVertexNormal() { return VertexType::HasNormal() ; } static bool HasPerVertexColor() { return VertexType::HasColor() ; } static bool HasPerVertexMark() { return VertexType::HasMark() ; } static bool HasPerVertexQuality() { return VertexType::HasQuality(); } -static bool HasPerVertexTexture() { return VertexType::HasTexture(); } +static bool HasPerVertexTexCoord(){ return VertexType::HasTexCoord(); } static bool HasPerVertexFlags() { return VertexType::HasFlags(); } static bool HasPerFaceColor() { return FaceType::HasFaceColor() ; } @@ -237,7 +240,7 @@ static bool HasPerWedgeColor() { return FaceType::HasWedgeColor() ; } static bool HasPerWedgeNormal() { return FaceType::HasWedgeNormal() ; } static bool HasPerWedgeMark() { return FaceType::HasWedgeMark() ; } static bool HasPerWedgeQuality() { return FaceType::HasWedgeQuality(); } -static bool HasPerWedgeTexture() { return FaceType::HasWedgeTexture(); } +static bool HasPerWedgeTexCoord() { return FaceType::HasWedgeTexCoord(); } static bool HasFFTopology() { return FaceType::HasFFAdjacency(); } static bool HasVFTopology() { return ((FaceType::HasVFAdjacency())&&(VertexType::HasVFAdjacency())); } @@ -334,7 +337,7 @@ template < class VertContainerType, class FaceContainerType > bool HasPerVertexFlags (const TriMesh < VertContainerType , FaceContainerType> & /*m*/) {return VertContainerType::value_type::HasFlags();} template < class VertContainerType, class FaceContainerType > -bool HasPerWedgeTexture (const TriMesh < VertContainerType , FaceContainerType> & /*m*/) {return FaceContainerType::value_type::HasWedgeTexture();} +bool HasPerWedgeTexCoord (const TriMesh < VertContainerType , FaceContainerType> & /*m*/) {return FaceContainerType::value_type::HasWedgeTexCoord();} template < class VertContainerType, class FaceContainerType > bool HasPerFaceFlags (const TriMesh < VertContainerType , FaceContainerType> & /*m*/) {return FaceContainerType::value_type::HasFlags();} diff --git a/vcg/complex/trimesh/clean.h b/vcg/complex/trimesh/clean.h index c9e2e4ef..50e6e21b 100644 --- a/vcg/complex/trimesh/clean.h +++ b/vcg/complex/trimesh/clean.h @@ -24,6 +24,10 @@ History $Log: not supported by cvs2svn $ +Revision 1.49 2007/02/27 15:17:17 marfr960 +std::numeric_limits::max() -> (std::numeric_limits::max)() +to avoid annoying misunderstaindings on msvc8 + Revision 1.48 2007/01/11 10:12:19 cignoni Removed useless and conflicting inclusion of face.h @@ -978,7 +982,7 @@ private: for (FaceIterator fi = m.face.begin(); fi != m.face.end(); ++fi) if(!(*fi).IsD()) { face::SwapEdge((*fi), 0); - if (HasPerWedgeTexture(m)) + if (HasPerWedgeTexCoord(m)) swap((*fi).WT(0),(*fi).WT(1)); } } diff --git a/vcg/complex/vertexmesh/base.h b/vcg/complex/vertexmesh/base.h index b46339cf..b2e876b5 100644 --- a/vcg/complex/vertexmesh/base.h +++ b/vcg/complex/vertexmesh/base.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.5 2006/08/23 16:49:25 marfr960 +added typedef VertContainer VertexContainer to avoid inconsistency with pre-existing methods + Revision 1.4 2006/08/23 15:32:24 marfr960 added bbox of the mesh vn int->size_t @@ -127,7 +130,7 @@ static bool HasPerVertexNormal() { return VertexType::HasNormal() ; } static bool HasPerVertexColor() { return VertexType::HasColor() ; } static bool HasPerVertexMark() { return VertexType::HasMark() ; } static bool HasPerVertexQuality() { return VertexType::HasQuality(); } -static bool HasPerVertexTexture() { return VertexType::HasTexture(); } +static bool HasPerVertexTexCoord(){ return VertexType::HasTexCoord(); } /// Initialize the imark-system of the faces void InitPointIMark() diff --git a/vcg/simplex/faceplus/component.h b/vcg/simplex/faceplus/component.h index e984db6d..4bd0d94d 100644 --- a/vcg/simplex/faceplus/component.h +++ b/vcg/simplex/faceplus/component.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.15 2007/03/12 15:37:19 tarini +Texture coord name change! "TCoord" and "Texture" are BAD. "TexCoord" is GOOD. + Revision 1.14 2007/02/27 09:32:00 cignoni Added constructor to the VFadj component to comply to the allocator needs @@ -249,20 +252,20 @@ public: TexCoordType &WT(const int i) { return _wt[i]; } TexCoordType const &cWT(const int i) const { return _wt[i]; } static bool HasWedgeTexCoord() { return true; } - static void Name(std::vector & name){name.push_back(std::string("WedgeTexture"));TT::Name(name);} + static void Name(std::vector & name){name.push_back(std::string("WedgeTexCoord"));TT::Name(name);} private: TexCoordType _wt[3]; }; template class WedgeTexCoord2s: public WedgeTexCoord, TT> { -public: static void Name(std::vector & name){name.push_back(std::string("WedgeTexture2s"));TT::Name(name);} +public: static void Name(std::vector & name){name.push_back(std::string("WedgeTexCoord2s"));TT::Name(name);} }; template class WedgeTexCoord2f: public WedgeTexCoord, TT> { -public: static void Name(std::vector & name){name.push_back(std::string("WedgeTexture2f"));TT::Name(name);} +public: static void Name(std::vector & name){name.push_back(std::string("WedgeTexCoord2f"));TT::Name(name);} }; template class WedgeTexCoord2d: public WedgeTexCoord, TT> { -public: static void Name(std::vector & name){name.push_back(std::string("WedgeTexture2d"));TT::Name(name);} +public: static void Name(std::vector & name){name.push_back(std::string("WedgeTexCoord2d"));TT::Name(name);} }; /*------------------------- FLAGS -----------------------------------------*/ diff --git a/vcg/simplex/faceplus/component_occ.h b/vcg/simplex/faceplus/component_occ.h index 8840afc1..65d50ccd 100644 --- a/vcg/simplex/faceplus/component_occ.h +++ b/vcg/simplex/faceplus/component_occ.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.5 2007/01/18 01:29:48 cignoni +commented UberP access method (syntax errors) + Revision 1.4 2006/12/04 10:59:15 ganovelli aggiunte funzioni di override per Has* @@ -56,17 +59,17 @@ compare with OCF(Optional Component Fast) namespace vcg { namespace face { - ///*-------------------------- WedgeTextureOcc ----------------------------------------*/ + ///*-------------------------- WedgeTexCoordOcc ----------------------------------------*/ - template class WedgeTextureOcc: public T { + template class WedgeTexCoordOcc: public T { public: - typedef A WedgeTextureType; - WedgeTextureType &WT(const int&i) {return CAT< vector_occ,WedgeTextureType>::Instance()->Get((FaceType*)this);} - static bool HasWedgeTexture() { return true; } - static bool HasWedgeTextureOcc() { return true; } + typedef A WedgeTexCoordType; + WedgeTexCoordType &WT(const int&i) {return CAT< vector_occ,WedgeTexCoordType>::Instance()->Get((FaceType*)this);} + static bool HasWedgeTexCoord() { return true; } + static bool HasWedgeTexCoordOcc() { return true; } }; - template class WedgeTexturefOcc: public WedgeTextureOcc, T> {}; + template class WedgeTexCoordfOcc: public WedgeTexCoordOcc, T> {}; ///*-------------------------- FACEINFO ----------------------------------------*/ @@ -282,10 +285,10 @@ public: } template < class VertContainerType, class FaceType > - bool HasPerWedgeTexture (const TriMesh < VertContainerType , vector_occ< FaceType > > & m) + bool HasPerWedgeTexCoord (const TriMesh < VertContainerType , vector_occ< FaceType > > & m) { - if(FaceType::HasWedgeTextureOcc()) return m.face.IsEnabledAttribute(); - else return FaceType::FaceType::HasWedgeTexture(); + if(FaceType::HasWedgeTexCoordOcc()) return m.face.IsEnabledAttribute(); + else return FaceType::FaceType::HasWedgeTexCoord(); } template < class VertContainerType, class FaceType > diff --git a/vcg/simplex/faceplus/component_ocf.h b/vcg/simplex/faceplus/component_ocf.h index 40f1e969..9b790252 100644 --- a/vcg/simplex/faceplus/component_ocf.h +++ b/vcg/simplex/faceplus/component_ocf.h @@ -24,6 +24,10 @@ History $Log: not supported by cvs2svn $ +Revision 1.19 2006/11/28 22:34:28 cignoni +Added default constructor with null initialization to adjacency members. +AddFaces and AddVertices NEED to know if the topology is correctly computed to update it. + Revision 1.18 2006/11/07 11:29:24 cignoni Corrected some errors in the reflections Has*** functions @@ -278,13 +282,13 @@ void DisableFFAdjacency() { bool IsWedgeTexEnabled() const {return WedgeTexEnabled;} void EnableWedgeTex() { - assert(VALUE_TYPE::HasWedgeTextureOcf()); + assert(VALUE_TYPE::HasWedgeTexCoordOcf()); WedgeTexEnabled=true; WTV.resize((*this).size(),WedgeTexTypePack()); } void DisableWedgeTex() { - assert(VALUE_TYPE::HasWedgeTextureOcf()); + assert(VALUE_TYPE::HasWedgeTexCoordOcf()); WedgeTexEnabled=false; WTV.clear(); } @@ -423,17 +427,17 @@ public: ///*-------------------------- WEDGE TEXCOORD ----------------------------------*/ -template class WedgeTextureOcf: public TT { +template class WedgeTexCoordOcf: public TT { public: - WedgeTextureOcf(){ } + WedgeTexCoordOcf(){ } typedef A TexCoordType; TexCoordType &WT(const int i) { assert((*this).Base().WedgeTexEnabled); return (*this).Base().WTV[(*this).Index()].wt[i]; } TexCoordType const &cWT(const int i) const { assert((*this).Base().WedgeTexEnabled); return (*this).Base().WTV[(*this).Index()].wt[i]; } - static bool HasWedgeTexture() { return true; } - static bool HasWedgeTextureOcf() { return true; } + static bool HasWedgeTexCoord() { return true; } + static bool HasWedgeTexCoordOcf() { return true; } }; -template class WedgeTexturefOcf: public WedgeTextureOcf, T> {}; +template class WedgeTexCoordfOcf: public WedgeTexCoordOcf, T> {}; ///*-------------------------- InfoOpt ----------------------------------*/ @@ -444,7 +448,7 @@ public: static bool HasFaceColorOcf() { return false; } static bool HasFaceNormalOcf() { return false; } static bool HasFaceMarkOcf() { return false; } - static bool HasWedgeTextureOcf() { return false; } + static bool HasWedgeTexCoordOcf() { return false; } static bool HasFFAdjacencyOcf() { return false; } static bool HasVFAdjacencyOcf() { return false; } @@ -481,10 +485,10 @@ public: } template < class VertContainerType, class FaceType > - bool HasPerWedgeTexture (const TriMesh < VertContainerType , face::vector_ocf< FaceType > > & m) + bool HasPerWedgeTexCoord (const TriMesh < VertContainerType , face::vector_ocf< FaceType > > & m) { - if(FaceType::HasWedgeTextureOcf()) return m.face.IsWedgeTexEnabled(); - else return FaceType::HasWedgeTexture(); + if(FaceType::HasWedgeTexCoordOcf()) return m.face.IsWedgeTexEnabled(); + else return FaceType::HasWedgeTexCoord(); } template < class VertContainerType, class FaceType > diff --git a/vcg/simplex/vertex/base.h b/vcg/simplex/vertex/base.h index e97aee15..a637aba8 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.30 2007/02/26 14:21:44 turini +VTb moved to VTp + Revision 1.29 2007/02/20 14:08:34 ganovelli added QualityType to comply vertexplus type @@ -79,6 +82,9 @@ Revision 1.12 2004/05/10 13:31:13 ganovelli function for edge adjacency added $Log: not supported by cvs2svn $ +Revision 1.30 2007/02/26 14:21:44 turini +VTb moved to VTp + Revision 1.29 2007/02/20 14:08:34 ganovelli added QualityType to comply vertexplus type @@ -176,7 +182,7 @@ Edited Comments and GPL license #include #include -#include +#include #include #include @@ -195,7 +201,7 @@ namespace vcg { * directory. Each file specify a class type with the desired fields. So for example * including 'vcg/simplex/vertex/with/VCVN.h' allow you to use the class VertVCVN that has per-vertex color and normal stored inside. */ -template , class CoordTYPE= Point3 > +template , class CoordTYPE= Point3 > class VERTEX_TYPE { public: @@ -867,7 +873,7 @@ static bool HasQuality() { return false; #endif } -static bool HasTexture() { +static bool HasTexCoord() { #ifdef __VCGLIB_VERTEX_VT return true; #else @@ -918,7 +924,7 @@ inline void Convert( VERT_TYPE &v ) #endif if ((HasQuality())&&(v.HasQuality())) Q()=v.Q(); - if ((HasTexture())&&(v.HasTexture())) + if ((HasTexCoord())&&(v.HasTexCoord())) T()=v.T(); } diff --git a/vcg/simplex/vertex/vertex.h b/vcg/simplex/vertex/vertex.h index 082b6f7e..4c293cad 100644 --- a/vcg/simplex/vertex/vertex.h +++ b/vcg/simplex/vertex/vertex.h @@ -11,7 +11,7 @@ namespace vcg { -template < class VETYPE, class VFTYPE, class VTTYPE,class TCTYPE = TCoord2, class CoordTYPE= Point3 > +template < class VETYPE, class VFTYPE, class VTTYPE,class TCTYPE = TexCoord2, class CoordTYPE= Point3 > class Vertexf : public Vertex {}; template < class VETYPE, class VFTYPE, class VTTYPE> diff --git a/vcg/simplex/vertex/with/atvmvn.h b/vcg/simplex/vertex/with/atvmvn.h index 72864b9f..5009ed00 100644 --- a/vcg/simplex/vertex/with/atvmvn.h +++ b/vcg/simplex/vertex/with/atvmvn.h @@ -16,7 +16,7 @@ namespace vcg { -template < class VETYPE, class VFTYPE, class VTTYPE,class TCTYPE = TCoord2, class CoordTYPE= Point3 > +template < class VETYPE, class VFTYPE, class VTTYPE,class TCTYPE = TexCoord2, class CoordTYPE= Point3 > class VertexATVMVNf : public VertexATVMVN {}; template < class VETYPE, class VFTYPE, class VTTYPE> diff --git a/vcg/simplex/vertexplus/base.h b/vcg/simplex/vertexplus/base.h index 1f89478f..8fc2d1f5 100644 --- a/vcg/simplex/vertexplus/base.h +++ b/vcg/simplex/vertexplus/base.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.9 2007/02/12 19:00:56 ganovelli +added Name(std:vector& n) that fills n with the names of the attribute of the vertex type + Revision 1.8 2006/09/28 17:34:11 cignoni Added Missing GetBBox function @@ -54,7 +57,7 @@ First working version! #define __VCG_VERTEX_PLUS #include -#include +#include #include #include @@ -98,7 +101,7 @@ we have to build the type a step a time (deriving from a single ancestor at a ti */ template -class VertexBase: public vert::EmptyTexture< +class VertexBase: public vert::EmptyTexCoord< vert::EmptyVFAdj< vert::EmptyColor< vert::EmptyQuality< @@ -272,7 +275,7 @@ Coord3f, Coord3d, Normal3s, Normal3f, Normal3d Mark //a int component (incremental mark) BitFlags -Texture2s, Texture2f, Texture2d +TexCoord2s, TexCoord2f, TexCoord2d Color4b Qualitys, Qualityf, Qualityd VFAdj //topology (vertex->face adjacency) diff --git a/vcg/simplex/vertexplus/component.h b/vcg/simplex/vertexplus/component.h index 82664905..91fa754f 100644 --- a/vcg/simplex/vertexplus/component.h +++ b/vcg/simplex/vertexplus/component.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.21 2007/02/18 07:41:32 cignoni +Corrected small syntax errors detected by gcc + Revision 1.20 2007/02/12 19:00:56 ganovelli added Name(std:vector& n) that fills n with the names of the attribute of the vertex type @@ -93,7 +96,7 @@ First working version! #define __VCG_VERTEX_PLUS_COMPONENT #include #include -#include +#include #include namespace vcg { @@ -201,36 +204,36 @@ public: int _imark; }; -/*-------------------------- TEXTURE ----------------------------------------*/ +/*-------------------------- TEXCOORD ----------------------------------------*/ -template class EmptyTexture: public TT { +template class EmptyTexCoord: public TT { public: - typedef vcg::TCoord2 TextureType; - TextureType &T() { static TextureType dummy_texture; assert(0); return dummy_texture; } - static bool HasTexture() { return false; } + typedef vcg::TexCoord2 TexCoordType; + TexCoordType &T() { static TexCoordType dummy_texcoord; assert(0); return dummy_texcoord; } + static bool HasTexCoord() { return false; } static void Name(std::vector & name){TT::Name(name);} }; -template class Texture: public TT { +template class TexCoord: public TT { public: - typedef A TextureType; - TextureType &T() { return _t; } - static bool HasTexture() { return true; } - static void Name(std::vector & name){name.push_back(std::string("Texture"));TT::Name(name);} + typedef A TexCoordType; + TexCoordType &T() { return _t; } + static bool HasTexCoord() { return true; } + static void Name(std::vector & name){name.push_back(std::string("TexCoord"));TT::Name(name);} private: - TextureType _t; + TexCoordType _t; }; -template class Texture2s: public Texture, TT> { - static void Name(std::vector & name){name.push_back(std::string("Texture2s"));TT::Name(name);} +template class TexCoord2s: public TexCoord, TT> { + static void Name(std::vector & name){name.push_back(std::string("TexCoord2s"));TT::Name(name);} }; -template class Texture2f: public Texture, TT> { - static void Name(std::vector & name){name.push_back(std::string("Texture2f"));TT::Name(name);} +template class TexCoord2f: public TexCoord, TT> { + static void Name(std::vector & name){name.push_back(std::string("TexCoord2f"));TT::Name(name);} }; -template class Texture2d: public Texture, TT> { - static void Name(std::vector & name){name.push_back(std::string("Texture2d"));TT::Name(name);} +template class TexCoord2d: public TexCoord, TT> { + static void Name(std::vector & name){name.push_back(std::string("TexCoord2d"));TT::Name(name);} }; /*------------------------- FLAGS -----------------------------------------*/ diff --git a/vcg/simplex/vertexplus/component_occ.h b/vcg/simplex/vertexplus/component_occ.h index 29aabde9..1e2066b3 100644 --- a/vcg/simplex/vertexplus/component_occ.h +++ b/vcg/simplex/vertexplus/component_occ.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.1 2005/10/15 16:24:10 ganovelli +Working release (compilata solo su MSVC), component_occ è migrato da component_opt + ****************************************************************************/ @@ -69,21 +72,21 @@ template class Normal3sOcc: public NormalOcc {}; template class Normal3fOcc: public NormalOcc {}; template class Normal3dOcc: public NormalOcc {}; -/*-------------------------- TEXTURE ----------------------------------------*/ +/*-------------------------- TEXCOORD ----------------------------------------*/ -template class TextureOcc: public T { +template class TexCoordOcc: public T { public: - typedef A TextureType; - TextureType &T() {return CAT< vector_occ,TextureType>::Instance()->Get((VertType*)this); } - static bool HasTexture() { return true; } + typedef A TexCoordType; + TexCoordType &T() {return CAT< vector_occ,TexCoordType>::Instance()->Get((VertType*)this); } + static bool HasTexCoord() { return true; } /* private: - TextureType _t; */ + TexCoordType _t; */ }; -template class Texture2sOcc: public TextureOcc, T> {}; -template class Texture2fOcc: public TextureOcc, T> {}; -template class Texture2dOcc: public TextureOcc, T> {}; +template class TexCoord2sOcc: public TexCoordOcc, T> {}; +template class TexCoord2fOcc: public TexCoordOcc, T> {}; +template class TexCoord2dOcc: public TexCoordOcc, T> {}; ///*------------------------- FLAGS -----------------------------------------*/ @@ -139,4 +142,4 @@ private: } // end namespace vert }// end namespace vcg -#endif \ No newline at end of file +#endif