Merge pull request #420 from c64kernal/dev

Fix incorrect padding of manifold ring
This commit is contained in:
Takahito Tejima 2015-04-16 14:51:10 -07:00
commit a6ea4a0249

View File

@ -364,8 +364,8 @@ ProtoBasis::ProtoBasis(Vtr::Level const & level, Index faceIndex, int fvarChanne
int valence;
if (ringSize & 1) {
// boundary vertex
++ringSize;
manifoldRing[ringSize] = manifoldRing[ringSize-1];
++ringSize;
valence = -ringSize/2;
} else {
valence = ringSize/2;