Removed hideous, nasty, damned bug in polygon component. The ImportData was silently cleaning the vertex references in polygonal faces

This commit is contained in:
Paolo Cignoni 2014-02-18 14:08:28 +00:00
parent b7ed96e083
commit df29c81227
1 changed files with 2 additions and 1 deletions

View File

@ -88,7 +88,7 @@ public:
inline CoordType cP2( const int j ) const { return cV((j+2)%this->VN())->P();}
template <class LeftF>
void ImportData(const LeftF & leftF){ for(int i =0; i < this->VN(); ++i) V(i) = NULL; T::ImportData(leftF);}
void ImportData(const LeftF & leftF){ T::ImportData(leftF);}
inline void Alloc(const int & ns) {
if(_vpoly == NULL){
this->__SetVN(ns);
@ -173,6 +173,7 @@ public:
void ImportData(const LeftF & leftF){T::ImportData(leftF);}
inline void Alloc(const int & ns) {
if( _ffpP == NULL){
printf("Doing an alloc\n");
this->__SetVN(ns);
_ffpP = new FaceType*[this->VN()];
_ffiP = new char[this->VN()];