2004-03-29 10:36:26 +02:00
|
|
|
|
/****************************************************************************
|
|
|
|
|
* VCGLib o o *
|
|
|
|
|
* Visual and Computer Graphics Library o o *
|
|
|
|
|
* _ O _ *
|
|
|
|
|
* Copyright(C) 2004 \/)\/ *
|
|
|
|
|
* 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. *
|
|
|
|
|
* *
|
|
|
|
|
****************************************************************************/
|
|
|
|
|
/****************************************************************************
|
|
|
|
|
History
|
|
|
|
|
|
|
|
|
|
$Log: not supported by cvs2svn $
|
2007-02-18 08:41:32 +01:00
|
|
|
|
Revision 1.20 2007/02/12 19:00:56 ganovelli
|
|
|
|
|
added Name(std:vector<std::string>& n) that fills n with the names of the attribute of the vertex type
|
|
|
|
|
|
2007-02-12 20:00:56 +01:00
|
|
|
|
Revision 1.19 2006/12/11 23:40:57 ganovelli
|
|
|
|
|
Has*Opt migrated to Has*Occ
|
|
|
|
|
|
2006-12-12 00:40:57 +01:00
|
|
|
|
Revision 1.18 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.
|
|
|
|
|
|
2006-11-28 23:34:28 +01:00
|
|
|
|
Revision 1.17 2006/01/09 13:58:56 cignoni
|
|
|
|
|
Added Initialization of Color in Vertex and Face Components
|
|
|
|
|
|
2006-01-09 14:58:56 +01:00
|
|
|
|
Revision 1.16 2005/11/22 23:58:03 cignoni
|
|
|
|
|
Added intiailization of flags to zero in the constructor,
|
|
|
|
|
|
2005-11-23 00:58:03 +01:00
|
|
|
|
Revision 1.15 2005/11/18 15:44:51 cignoni
|
|
|
|
|
Access to constant normal changed from by val to by reference
|
|
|
|
|
|
2005-11-18 16:44:51 +01:00
|
|
|
|
Revision 1.14 2005/11/16 23:02:37 cignoni
|
|
|
|
|
Added some missing members to EmptyMark
|
|
|
|
|
Standardized name of flags. It is plural becouse each simplex has many flag.
|
|
|
|
|
|
2005-11-17 00:02:37 +01:00
|
|
|
|
Revision 1.13 2005/11/14 23:50:57 cignoni
|
|
|
|
|
Added Incremental Mark
|
|
|
|
|
|
2005-11-15 00:50:57 +01:00
|
|
|
|
Revision 1.12 2005/11/12 18:35:49 cignoni
|
|
|
|
|
Changed HasFlag -> HasFlags
|
|
|
|
|
|
2005-11-12 19:35:49 +01:00
|
|
|
|
Revision 1.11 2005/11/01 18:17:52 cignoni
|
|
|
|
|
Added an assert(0) in all the accesses to empty components
|
|
|
|
|
|
2005-11-01 19:17:52 +01:00
|
|
|
|
Revision 1.10 2005/10/15 16:24:10 ganovelli
|
|
|
|
|
Working release (compilata solo su MSVC), component_occ <EFBFBD> migrato da component_opt
|
|
|
|
|
|
2005-10-15 18:24:10 +02:00
|
|
|
|
Revision 1.9 2005/10/14 13:30:07 cignoni
|
|
|
|
|
Added constant access functions and reflective functions (HasSomething stuff)
|
|
|
|
|
to all the components This is the first really working version...
|
|
|
|
|
|
2005-10-14 15:30:07 +02:00
|
|
|
|
Revision 1.8 2005/10/07 15:19:54 cignoni
|
|
|
|
|
minor updates to keep it in line with the rest of the library
|
|
|
|
|
|
2005-10-07 17:20:00 +02:00
|
|
|
|
Revision 1.7 2004/05/10 13:50:32 cignoni
|
|
|
|
|
Updated names of adj functions to the new standards
|
|
|
|
|
|
2004-05-10 15:50:32 +02:00
|
|
|
|
Revision 1.6 2004/04/05 11:53:06 cignoni
|
|
|
|
|
addend constant access funcs
|
|
|
|
|
|
2004-04-05 13:53:06 +02:00
|
|
|
|
Revision 1.5 2004/04/03 13:35:51 cignoni
|
|
|
|
|
minor changes
|
|
|
|
|
|
2004-04-03 15:35:51 +02:00
|
|
|
|
Revision 1.4 2004/03/31 13:15:28 cignoni
|
|
|
|
|
Added optional cpmponent
|
|
|
|
|
|
2004-03-31 15:15:28 +02:00
|
|
|
|
Revision 1.3 2004/03/31 12:28:37 ganovelli
|
|
|
|
|
*** empty log message ***
|
|
|
|
|
|
2004-03-31 14:28:37 +02:00
|
|
|
|
Revision 1.2 2004/03/29 14:26:38 cignoni
|
|
|
|
|
Error in color
|
|
|
|
|
|
2004-03-29 16:26:38 +02:00
|
|
|
|
Revision 1.1 2004/03/29 08:36:26 cignoni
|
|
|
|
|
First working version!
|
|
|
|
|
|
2004-03-29 10:36:26 +02:00
|
|
|
|
|
|
|
|
|
****************************************************************************/
|
|
|
|
|
#ifndef __VCG_VERTEX_PLUS_COMPONENT
|
|
|
|
|
#define __VCG_VERTEX_PLUS_COMPONENT
|
2007-02-12 20:00:56 +01:00
|
|
|
|
#include <vector>
|
2005-10-15 18:24:10 +02:00
|
|
|
|
#include <vcg/space/point3.h>
|
|
|
|
|
#include <vcg/space/tcoord2.h>
|
|
|
|
|
#include <vcg/space/color4.h>
|
2004-03-29 10:36:26 +02:00
|
|
|
|
|
|
|
|
|
namespace vcg {
|
|
|
|
|
namespace vert {
|
|
|
|
|
/*
|
|
|
|
|
Some naming Rules
|
|
|
|
|
All the Components that can be added to a vertex should be defined in the namespace vert:
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/*------------------------- COORD -----------------------------------------*/
|
|
|
|
|
template <class T> class EmptyCoord: public T {
|
|
|
|
|
public:
|
|
|
|
|
typedef vcg::Point3f CoordType;
|
|
|
|
|
typedef CoordType::ScalarType ScalarType;
|
|
|
|
|
|
|
|
|
|
CoordType &P() { static CoordType coord(0, 0, 0); return coord; }
|
2005-11-01 19:17:52 +01:00
|
|
|
|
const CoordType &P() const { static CoordType coord(0, 0, 0); assert(0); return coord; }
|
|
|
|
|
const CoordType &cP() const { static CoordType coord(0, 0, 0); assert(0); return coord; }
|
2004-03-29 10:36:26 +02:00
|
|
|
|
CoordType &UberP() { static CoordType coord(0, 0, 0); return coord; }
|
2005-10-14 15:30:07 +02:00
|
|
|
|
static bool HasCoord() { return false; }
|
2007-02-12 20:00:56 +01:00
|
|
|
|
static void Name(std::vector<std::string> & name){T::Name(name);}
|
2005-10-14 15:30:07 +02:00
|
|
|
|
|
2004-03-29 10:36:26 +02:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
template <class A, class T> class Coord: public T {
|
|
|
|
|
public:
|
|
|
|
|
typedef A CoordType;
|
|
|
|
|
typedef typename CoordType::ScalarType ScalarType;
|
|
|
|
|
CoordType &P() { return _coord; }
|
2004-04-05 13:53:06 +02:00
|
|
|
|
const CoordType &P() const { return _coord; }
|
|
|
|
|
const CoordType &cP() const { return _coord; }
|
2004-03-29 10:36:26 +02:00
|
|
|
|
CoordType &UberP() { return _coord; }
|
2005-10-14 15:30:07 +02:00
|
|
|
|
|
|
|
|
|
static bool HasCoord() { return true; }
|
2007-02-18 08:41:32 +01:00
|
|
|
|
static void Name(std::vector<std::string> & name){name.push_back(std::string("Coord"));T::Name(name);}
|
2007-02-12 20:00:56 +01:00
|
|
|
|
|
2004-03-29 10:36:26 +02:00
|
|
|
|
private:
|
|
|
|
|
CoordType _coord;
|
|
|
|
|
};
|
2007-02-12 20:00:56 +01:00
|
|
|
|
template <class T> class Coord3f: public Coord<vcg::Point3f, T> {
|
|
|
|
|
public: static void Name(std::vector<std::string> & name){name.push_back(std::string("Coord3f"));T::Name(name);}
|
|
|
|
|
};
|
|
|
|
|
template <class T> class Coord3d: public Coord<vcg::Point3d, T> {
|
|
|
|
|
public: static void Name(std::vector<std::string> & name){name.push_back(std::string("Coord3d"));T::Name(name);}
|
|
|
|
|
};
|
2004-03-29 10:36:26 +02:00
|
|
|
|
|
|
|
|
|
/*-------------------------- NORMAL ----------------------------------------*/
|
|
|
|
|
|
|
|
|
|
template <class T> class EmptyNormal: public T {
|
|
|
|
|
public:
|
|
|
|
|
typedef vcg::Point3s NormalType;
|
2005-11-01 19:17:52 +01:00
|
|
|
|
NormalType &N() { static NormalType dummy_normal(0, 0, 0); assert(0); return dummy_normal; }
|
|
|
|
|
const NormalType cN()const { static NormalType dummy_normal(0, 0, 0); assert(0); return dummy_normal; }
|
2004-04-03 15:35:51 +02:00
|
|
|
|
static bool HasNormal() { return false; }
|
2006-12-12 00:40:57 +01:00
|
|
|
|
static bool HasNormalOcc() { return false; }
|
2007-02-12 20:00:56 +01:00
|
|
|
|
static void Name(std::vector<std::string> & name){T::Name(name);}
|
|
|
|
|
|
2004-03-29 10:36:26 +02:00
|
|
|
|
};
|
|
|
|
|
template <class A, class T> class Normal: public T {
|
|
|
|
|
public:
|
|
|
|
|
typedef A NormalType;
|
|
|
|
|
NormalType &N() { return _norm; }
|
2005-11-18 16:44:51 +01:00
|
|
|
|
const NormalType &cN() const { return _norm; }
|
2004-04-03 15:35:51 +02:00
|
|
|
|
static bool HasNormal() { return true; }
|
2007-02-12 20:00:56 +01:00
|
|
|
|
static void Name(std::vector<std::string> & name){name.push_back(std::string("Normal"));T::Name(name);}
|
|
|
|
|
|
2004-03-29 10:36:26 +02:00
|
|
|
|
private:
|
|
|
|
|
NormalType _norm;
|
|
|
|
|
};
|
|
|
|
|
|
2007-02-12 20:00:56 +01:00
|
|
|
|
template <class T> class Normal3s: public Normal<vcg::Point3s, T> {
|
|
|
|
|
public:static void Name(std::vector<std::string> & name){name.push_back(std::string("Normal3s"));T::Name(name);}
|
|
|
|
|
};
|
|
|
|
|
template <class T> class Normal3f: public Normal<vcg::Point3f, T> {
|
|
|
|
|
public: static void Name(std::vector<std::string> & name){name.push_back(std::string("Normal3f"));T::Name(name);}
|
|
|
|
|
};
|
|
|
|
|
template <class T> class Normal3d: public Normal<vcg::Point3d, T> {
|
|
|
|
|
public: static void Name(std::vector<std::string> & name){name.push_back(std::string("Normal3d"));T::Name(name);}
|
|
|
|
|
};
|
2004-03-29 10:36:26 +02:00
|
|
|
|
|
2005-11-15 00:50:57 +01:00
|
|
|
|
|
|
|
|
|
/*-------------------------- INCREMENTAL MARK ----------------------------------------*/
|
|
|
|
|
|
|
|
|
|
template <class T> class EmptyMark: public T {
|
|
|
|
|
public:
|
|
|
|
|
static bool HasMark() { return false; }
|
2006-12-12 00:40:57 +01:00
|
|
|
|
static bool HasMarkOcc() { return false; }
|
2005-11-17 00:02:37 +01:00
|
|
|
|
inline void InitIMark() { }
|
|
|
|
|
inline int & IMark() { assert(0); static int tmp=-1; return tmp;}
|
|
|
|
|
inline const int & IMark() const {return 0;}
|
2007-02-12 20:00:56 +01:00
|
|
|
|
static void Name(std::vector<std::string> & name){T::Name(name);}
|
2005-11-17 00:02:37 +01:00
|
|
|
|
|
2005-11-15 00:50:57 +01:00
|
|
|
|
};
|
|
|
|
|
template <class T> class Mark: public T {
|
|
|
|
|
public:
|
|
|
|
|
static bool HasMark() { return true; }
|
2006-12-12 00:40:57 +01:00
|
|
|
|
static bool HasMarkOcc() { return true; }
|
2005-11-15 00:50:57 +01:00
|
|
|
|
inline void InitIMark() { _imark = 0; }
|
|
|
|
|
inline int & IMark() { return _imark;}
|
|
|
|
|
inline const int & IMark() const {return _imark;}
|
2007-02-12 20:00:56 +01:00
|
|
|
|
static void Name(std::vector<std::string> & name){name.push_back(std::string("Mark"));T::Name(name);}
|
2005-11-15 00:50:57 +01:00
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
int _imark;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/*-------------------------- TEXTURE ----------------------------------------*/
|
2004-03-29 10:36:26 +02:00
|
|
|
|
|
2005-10-07 17:20:00 +02:00
|
|
|
|
template <class TT> class EmptyTexture: public TT {
|
2004-03-29 10:36:26 +02:00
|
|
|
|
public:
|
|
|
|
|
typedef vcg::TCoord2<float,1> TextureType;
|
2005-11-01 19:17:52 +01:00
|
|
|
|
TextureType &T() { static TextureType dummy_texture; assert(0); return dummy_texture; }
|
2004-03-29 10:36:26 +02:00
|
|
|
|
static bool HasTexture() { return false; }
|
2007-02-12 20:00:56 +01:00
|
|
|
|
static void Name(std::vector<std::string> & name){TT::Name(name);}
|
|
|
|
|
|
2006-12-12 00:40:57 +01:00
|
|
|
|
};
|
2005-10-07 17:20:00 +02:00
|
|
|
|
template <class A, class TT> class Texture: public TT {
|
2004-03-29 10:36:26 +02:00
|
|
|
|
public:
|
|
|
|
|
typedef A TextureType;
|
|
|
|
|
TextureType &T() { return _t; }
|
|
|
|
|
static bool HasTexture() { return true; }
|
2007-02-18 08:41:32 +01:00
|
|
|
|
static void Name(std::vector<std::string> & name){name.push_back(std::string("Texture"));TT::Name(name);}
|
2004-03-29 10:36:26 +02:00
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
TextureType _t;
|
|
|
|
|
};
|
|
|
|
|
|
2007-02-12 20:00:56 +01:00
|
|
|
|
template <class TT> class Texture2s: public Texture<TCoord2<short,1>, TT> {
|
|
|
|
|
static void Name(std::vector<std::string> & name){name.push_back(std::string("Texture2s"));TT::Name(name);}
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
template <class TT> class Texture2f: public Texture<TCoord2<float,1>, TT> {
|
|
|
|
|
static void Name(std::vector<std::string> & name){name.push_back(std::string("Texture2f"));TT::Name(name);}
|
|
|
|
|
};
|
|
|
|
|
template <class TT> class Texture2d: public Texture<TCoord2<double,1>, TT> {
|
|
|
|
|
static void Name(std::vector<std::string> & name){name.push_back(std::string("Texture2d"));TT::Name(name);}
|
|
|
|
|
};
|
2004-03-29 10:36:26 +02:00
|
|
|
|
|
|
|
|
|
/*------------------------- FLAGS -----------------------------------------*/
|
2005-11-17 00:02:37 +01:00
|
|
|
|
template <class T> class EmptyBitFlags: public T {
|
2004-03-29 10:36:26 +02:00
|
|
|
|
public:
|
2005-10-14 15:30:07 +02:00
|
|
|
|
typedef int FlagType;
|
|
|
|
|
/// Return the vector of Flags(), senza effettuare controlli sui bit
|
2005-11-01 19:17:52 +01:00
|
|
|
|
int &Flags() { static int dummyflags(0); assert(0); return dummyflags; }
|
2004-03-29 10:36:26 +02:00
|
|
|
|
const int Flags() const { return 0; }
|
2005-11-12 19:35:49 +01:00
|
|
|
|
static bool HasFlags() { return false; }
|
2007-02-12 20:00:56 +01:00
|
|
|
|
static void Name(std::vector<std::string> & name){T::Name(name);}
|
2005-10-14 15:30:07 +02:00
|
|
|
|
|
2004-03-29 10:36:26 +02:00
|
|
|
|
};
|
|
|
|
|
|
2005-11-17 00:02:37 +01:00
|
|
|
|
template <class T> class BitFlags: public T {
|
2004-03-29 10:36:26 +02:00
|
|
|
|
public:
|
2005-11-23 00:58:03 +01:00
|
|
|
|
BitFlags(){_flags=0;}
|
|
|
|
|
typedef int FlagType;
|
2005-10-14 15:30:07 +02:00
|
|
|
|
int &Flags() {return _flags; }
|
|
|
|
|
const int Flags() const {return _flags; }
|
2005-11-17 00:02:37 +01:00
|
|
|
|
static bool HasFlags() { return true; }
|
2007-02-12 20:00:56 +01:00
|
|
|
|
static void Name(std::vector<std::string> & name){name.push_back(std::string("BitFlags"));T::Name(name);}
|
2004-03-29 10:36:26 +02:00
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
int _flags;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/*-------------------------- COLOR ----------------------------------*/
|
|
|
|
|
|
|
|
|
|
template <class T> class EmptyColor: public T {
|
|
|
|
|
public:
|
2004-04-03 15:35:51 +02:00
|
|
|
|
typedef vcg::Color4b ColorType;
|
2005-11-01 19:17:52 +01:00
|
|
|
|
ColorType &C() { static ColorType dumcolor(vcg::Color4b::White); assert(0); return dumcolor; }
|
2004-03-29 10:36:26 +02:00
|
|
|
|
static bool HasColor() { return false; }
|
2007-02-12 20:00:56 +01:00
|
|
|
|
static void Name(std::vector<std::string> & name){T::Name(name);}
|
|
|
|
|
|
2004-03-29 10:36:26 +02:00
|
|
|
|
};
|
|
|
|
|
template <class A, class T> class Color: public T {
|
|
|
|
|
public:
|
2006-01-09 14:58:56 +01:00
|
|
|
|
Color():_color(vcg::Color4b::White) {}
|
2004-03-29 10:36:26 +02:00
|
|
|
|
typedef A ColorType;
|
|
|
|
|
ColorType &C() { return _color; }
|
|
|
|
|
static bool HasColor() { return true; }
|
2007-02-12 20:00:56 +01:00
|
|
|
|
static void Name(std::vector<std::string> & name){name.push_back(std::string("Color"));T::Name(name);}
|
|
|
|
|
|
2004-03-29 10:36:26 +02:00
|
|
|
|
private:
|
|
|
|
|
ColorType _color;
|
|
|
|
|
};
|
|
|
|
|
|
2007-02-18 08:41:32 +01:00
|
|
|
|
template <class TT> class Color4b: public vert::Color<vcg::Color4b, TT> {
|
2007-02-12 20:00:56 +01:00
|
|
|
|
static void Name(std::vector<std::string> & name){name.push_back(std::string("Color4b"));TT::Name(name);}
|
|
|
|
|
};
|
2004-03-29 10:36:26 +02:00
|
|
|
|
|
|
|
|
|
/*-------------------------- Quality ----------------------------------*/
|
|
|
|
|
|
|
|
|
|
template <class T> class EmptyQuality: public T {
|
|
|
|
|
public:
|
|
|
|
|
typedef float QualityType;
|
2005-11-01 19:17:52 +01:00
|
|
|
|
QualityType &Q() { static QualityType dummyQuality(0); assert(0); return dummyQuality; }
|
2004-03-29 10:36:26 +02:00
|
|
|
|
static bool HasQuality() { return false; }
|
2007-02-12 20:00:56 +01:00
|
|
|
|
static void Name(std::vector<std::string> & name){T::Name(name);}
|
|
|
|
|
|
2004-03-29 10:36:26 +02:00
|
|
|
|
};
|
2007-02-18 08:41:32 +01:00
|
|
|
|
template <class A, class TT> class Quality: public TT {
|
2004-03-29 10:36:26 +02:00
|
|
|
|
public:
|
|
|
|
|
typedef A QualityType;
|
|
|
|
|
QualityType &Q() { return _quality; }
|
|
|
|
|
static bool HasQuality() { return true; }
|
2007-02-12 20:00:56 +01:00
|
|
|
|
static void Name(std::vector<std::string> & name){name.push_back(std::string("Quality"));TT::Name(name);}
|
2004-03-29 10:36:26 +02:00
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
QualityType _quality;
|
|
|
|
|
};
|
|
|
|
|
|
2007-02-18 08:41:32 +01:00
|
|
|
|
template <class TT> class Qualitys: public Quality<short, TT> {
|
2007-02-12 20:00:56 +01:00
|
|
|
|
static void Name(std::vector<std::string> & name){name.push_back(std::string("Qualitys"));TT::Name(name);}
|
|
|
|
|
};
|
2007-02-18 08:41:32 +01:00
|
|
|
|
template <class TT> class Qualityf: public Quality<float, TT> {
|
2007-02-12 20:00:56 +01:00
|
|
|
|
static void Name(std::vector<std::string> & name){name.push_back(std::string("Qualityf"));TT::Name(name);}
|
|
|
|
|
};
|
2007-02-18 08:41:32 +01:00
|
|
|
|
template <class TT> class Qualityd: public Quality<double, TT> {
|
2007-02-12 20:00:56 +01:00
|
|
|
|
static void Name(std::vector<std::string> & name){name.push_back(std::string("Qualityd"));TT::Name(name);}
|
|
|
|
|
};
|
2004-03-29 10:36:26 +02:00
|
|
|
|
|
|
|
|
|
/*----------------------------- VFADJ ------------------------------*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
template <class T> class EmptyVFAdj: public T {
|
|
|
|
|
public:
|
2005-11-01 19:17:52 +01:00
|
|
|
|
typename T::FacePointer &VFp() { static typename T::FacePointer fp=0; assert(0); return fp; }
|
|
|
|
|
typename T::FacePointer cVFp() { static typename T::FacePointer fp=0; assert(0); return fp; }
|
2004-05-10 15:50:32 +02:00
|
|
|
|
int &VFi(){static int z=0; return z;};
|
2004-03-29 10:36:26 +02:00
|
|
|
|
static bool HasVFAdjacency() { return false; }
|
2006-12-12 00:40:57 +01:00
|
|
|
|
static bool HasVFAdjacencyOcc() { return false; }
|
2007-02-12 20:00:56 +01:00
|
|
|
|
static void Name(std::vector<std::string> & name){ T::Name(name);}
|
2004-03-29 10:36:26 +02:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
template <class T> class VFAdj: public T {
|
|
|
|
|
public:
|
2006-11-28 23:34:28 +01:00
|
|
|
|
VFAdj(){_fp=0;}
|
2005-10-07 17:20:00 +02:00
|
|
|
|
typename T::FacePointer &VFp() {return _fp; }
|
2005-10-14 15:30:07 +02:00
|
|
|
|
typename T::FacePointer cVFp() {return _fp; }
|
2004-05-10 15:50:32 +02:00
|
|
|
|
int &VFi() {return _zp; }
|
2004-03-29 10:36:26 +02:00
|
|
|
|
static bool HasVFAdjacency() { return true; }
|
2006-12-12 00:40:57 +01:00
|
|
|
|
static bool HasVFAdjacencyOcc() { return true; }
|
2007-02-12 20:00:56 +01:00
|
|
|
|
static void Name(std::vector<std::string> & name){name.push_back(std::string("VFAdj"));T::Name(name);}
|
|
|
|
|
|
2004-03-29 10:36:26 +02:00
|
|
|
|
private:
|
2004-03-31 15:15:28 +02:00
|
|
|
|
typename T::FacePointer _fp ;
|
|
|
|
|
int _zp ;
|
2004-03-29 10:36:26 +02:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // end namespace vert
|
|
|
|
|
}// end namespace vcg
|
2005-10-07 17:20:00 +02:00
|
|
|
|
#endif
|