- added default constructor to VFAdjType

- removed compile time error on Av.reserve function call
This commit is contained in:
granzuglia 2014-11-06 23:21:04 +00:00
parent 177cf43069
commit af5f31d4f7
1 changed files with 2 additions and 1 deletions

View File

@ -107,7 +107,7 @@ public:
if (MarkEnabled) MV.reserve(_size);
if (NormalEnabled) NV.reserve(_size);
if (TexCoordEnabled) TV.reserve(_size);
if (VFAdjacencyEnabled) AV.reserve(_size,VFAdjType::Zero());
if (VFAdjacencyEnabled) AV.reserve(_size);
if (CurvatureEnabled) CuV.reserve(_size);
if (CurvatureDirEnabled) CuDV.reserve(_size);
if (RadiusEnabled) RadiusV.reserve(_size);
@ -233,6 +233,7 @@ void DisableTexCoord() {
}
struct VFAdjType {
VFAdjType():_fp(0),_zp(-1) {}
VFAdjType(typename VALUE_TYPE::FacePointer fp, int zp):_fp(fp),_zp(zp){}
typename VALUE_TYPE::FacePointer _fp ;
int _zp ;