00001 // Wild Magic Source Code 00002 // David Eberly 00003 // http://www.geometrictools.com 00004 // Copyright (c) 1998-2007 00005 // 00006 // This library is free software; you can redistribute it and/or modify it 00007 // under the terms of the GNU Lesser General Public License as published by 00008 // the Free Software Foundation; either version 2.1 of the License, or (at 00009 // your option) any later version. The license is available for reading at 00010 // either of the locations: 00011 // http://www.gnu.org/copyleft/lgpl.html 00012 // http://www.geometrictools.com/License/WildMagicLicense.pdf 00013 // The license applies to versions 0 through 4 of Wild Magic. 00014 // 00015 // Version: 4.0.0 (2006/06/28) 00016 00017 #include "Wm4FoundationPCH.h" 00018 #include "Wm4DelPolyhedronFace.h" 00019 00020 namespace Wm4 00021 { 00022 //---------------------------------------------------------------------------- 00023 template <class Real> 00024 DelPolyhedronFace<Real>::DelPolyhedronFace (int iV0, int iV1, int iV2, 00025 int iNullIndex, DelTetrahedron<Real>* pkTetra) 00026 : 00027 ETManifoldMesh::Triangle(iV0,iV1,iV2) 00028 { 00029 NullIndex = iNullIndex; 00030 Tetra = pkTetra; 00031 } 00032 //---------------------------------------------------------------------------- 00033 template <class Real> 00034 ETManifoldMesh::TPtr DelPolyhedronFace<Real>::TCreator (int iV0, int iV1, 00035 int iV2) 00036 { 00037 return WM4_NEW DelPolyhedronFace<Real>(iV0,iV1,iV2,0,0); 00038 } 00039 //---------------------------------------------------------------------------- 00040 00041 //---------------------------------------------------------------------------- 00042 // explicit instantiation 00043 //---------------------------------------------------------------------------- 00044 template WM4_FOUNDATION_ITEM 00045 class DelPolyhedronFace<float>; 00046 00047 template WM4_FOUNDATION_ITEM 00048 class DelPolyhedronFace<double>; 00049 //---------------------------------------------------------------------------- 00050 }