radial distance - set x=y=0 on SEG_CLOSE command

This commit is contained in:
artemp 2015-03-30 12:40:28 +02:00
parent 6a6af26566
commit 8735311f83

View file

@ -209,6 +209,7 @@ private:
{ {
if (status_ == closing) if (status_ == closing)
{ {
*x = *y = 0.0;
status_ = end; status_ = end;
return SEG_CLOSE; return SEG_CLOSE;
} }
@ -223,7 +224,8 @@ private:
{ {
// Only output a vertex if it's far enough away from the previous // Only output a vertex if it's far enough away from the previous
break; break;
} else }
else
{ {
last = vtx; last = vtx;
// continue // continue