![]() |
TAPs 0.7.7.3
|
00001 /****************************************************************************** 00002 TAPsXVertex.cpp 00003 00004 (X <==> Extra) 00005 XVertex class is a class for 3D vertex with Extra Information. 00006 00007 SUKITTI PUNAK (11/01/2004) 00008 UPDATE (11/10/2004) 00009 ******************************************************************************/ 00010 #include "TAPsXVertex.hpp" 00011 // Using Inclusion Model (i.e. definitions are included in declarations) 00012 // (this name.cpp is included in name.hpp) 00013 // Each friend is defined directly inside its declaration. 00014 00015 BEGIN_NAMESPACE_TAPs 00016 //============================================================================= 00017 // Constructors 00018 //----------------------------------------------------------------------------- 00019 template <typename T> 00020 XVertex<T>::XVertex () : Vertex<T>(), m_viFaceRing()/*, m_viVertexRing()*/ 00021 {} 00022 //----------------------------------------------------------------------------- 00023 template <typename T> 00024 XVertex<T>::XVertex ( int faceRingSize, /*int valence,*/ T x, T y, T z, Vector3<T> normal ) 00025 : Vertex<T>( x, y, z, normal[0], normal[1], normal[2] ), 00026 m_viFaceRing( faceRingSize )/*, m_viVertexRing( valence )*/ 00027 {} 00028 //----------------------------------------------------------------------------- 00029 template <typename T> 00030 XVertex<T>::XVertex ( int faceRingSize, /*int valence,*/ T a[3], Vector3<T> normal ) 00031 : Vertex<T>( a[0], a[1], a[2], normal[0], normal[1], normal[2] ), 00032 m_viFaceRing( faceRingSize )/*, m_viVertexRing( valence )*/ 00033 {} 00034 //----------------------------------------------------------------------------- 00035 template <typename T> 00036 XVertex<T>::XVertex ( XVertex<T> const &xv ) 00037 : Vertex<T>( xv.m_vPosit, xv.m_vNormal ), 00038 m_viFaceRing( xv.m_viFaceRing )/*, m_viVertexRing( xv.m_viVertexRing )*/ 00039 {} 00040 //----------------------------------------------------------------------------- 00041 template <typename T> 00042 XVertex<T>::~XVertex () 00043 {} 00044 //----------------------------------------------------------------------------- 00045 //============================================================================= 00046 // Assignment Operator 00047 //----------------------------------------------------------------------------- 00048 template <typename T> 00049 inline XVertex<T> & XVertex<T>::operator= ( XVertex<T> const &xv ) 00050 { 00051 this->m_vPosit = xv.m_vPosit; 00052 this->m_vNormal = xv.m_vNormal; 00053 this->m_viFaceRing = xv.m_viFaceRing; 00054 return *this; 00055 } 00056 //----------------------------------------------------------------------------- 00057 //============================================================================= 00058 END_NAMESPACE_TAPs 00059 //345678901234567890123456789012345678901234567890123456789012345678901234567890 00060 //--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8