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)
|
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
|
||||||
|
|
Loading…
Reference in a new issue