pull/434/head
whitequark 2019-05-24 03:39:34 +00:00
parent 6c167db602
commit 9faa7cb0ca
1 changed files with 2 additions and 2 deletions

View File

@ -186,7 +186,7 @@ void SMesh::Simplify(int start) {
if(fabs(bDot) < LENGTH_EPS && fabs(dDot) < LENGTH_EPS) {
conv[WRAP((j+1), convc)] = c;
// and remove the vertex at j, which is a dup
std::move(conv+j+1, conv+convc, conv+(convc-1));
std::move(conv+j+1, conv+convc, conv+j);
convc--;
} else if(fabs(bDot) < LENGTH_EPS && dDot > 0) {
conv[j] = c;
@ -194,7 +194,7 @@ void SMesh::Simplify(int start) {
conv[WRAP((j+1), convc)] = c;
} else if(bDot > 0 && dDot > 0) {
// conv[j] is unchanged, conv[j+1] goes to [j+2]
std::move_backward(conv+j+1, conv+convc, conv+j+2);
std::move_backward(conv+j+1, conv+convc, conv+convc+1);
conv[j+1] = c;
convc++;
} else {