added Alloc to support polygon meshes

This commit is contained in:
ganovelli 2008-11-26 17:58:15 +00:00
parent 01750729b6
commit 9d8e452e65
1 changed files with 2 additions and 1 deletions

View File

@ -551,6 +551,7 @@ template<class EAR>
H.pop_back(); H.pop_back();
if(BestEar.IsUpToDate() && !BestEar.IsDegen(nmBit)) if(BestEar.IsUpToDate() && !BestEar.IsDegen(nmBit))
{ {
if((*f).HasPolyInfo()) (*f).Alloc(3);
if(BestEar.Close(ep0,ep1,&*f)) if(BestEar.Close(ep0,ep1,&*f))
{ {
if(!ep0.IsNull()){ if(!ep0.IsNull()){