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; int valence;
if (ringSize & 1) { if (ringSize & 1) {
// boundary vertex // boundary vertex
++ringSize;
manifoldRing[ringSize] = manifoldRing[ringSize-1]; manifoldRing[ringSize] = manifoldRing[ringSize-1];
++ringSize;
valence = -ringSize/2; valence = -ringSize/2;
} else { } else {
valence = ringSize/2; valence = ringSize/2;