radial distance - set x=y=0 on SEG_CLOSE command
This commit is contained in:
parent
6a6af26566
commit
8735311f83
1 changed files with 3 additions and 1 deletions
|
@ -209,6 +209,7 @@ private:
|
|||
{
|
||||
if (status_ == closing)
|
||||
{
|
||||
*x = *y = 0.0;
|
||||
status_ = end;
|
||||
return SEG_CLOSE;
|
||||
}
|
||||
|
@ -223,7 +224,8 @@ private:
|
|||
{
|
||||
// Only output a vertex if it's far enough away from the previous
|
||||
break;
|
||||
} else
|
||||
}
|
||||
else
|
||||
{
|
||||
last = vtx;
|
||||
// continue
|
||||
|
|
Loading…
Reference in a new issue