CadTools and xTurn (Vehicle Turning Software) Forum

CadTools General Category => CadTools General => Topic started by: pavloun on August 31, 2011, 09:51:35 AM

Title: Polyline stationing bug
Post by: pavloun on August 31, 2011, 09:51:35 AM
Hello,
I`ve spotted a bug in Track station and offset from polyline command (program version 1.1.650).
It returns incorrect values for every point except the first one.

Best regards.
Title: Re: Polyline stationing bug
Post by: Lars on August 31, 2011, 01:27:40 PM
Hi!

Thanks for pointing it out! Yes there must be a variable that I've forgott to reset. This will be fixed later today.

/Lars
Title: Re: Polyline stationing bug
Post by: cr_raul on August 31, 2011, 06:12:51 PM
I saw this problem but it only occurred when the first part of the polyline was an arc. once it happened at the end of the polyline but that was also an arc segment.
Title: Re: Polyline stationing bug
Post by: Lars on August 31, 2011, 09:03:40 PM
Let’s hope I’ve managed to fix all odd behavior in that function. I’ve also fixed a focus issue after the message box was closed and a ENTER key when aborting the command.
Title: Re: Polyline stationing bug
Post by: pavloun on September 01, 2011, 11:04:31 AM
Thx for quick reply

I saw this problem but it only occurred when the first part of the polyline was an arc. once it happened at the end of the polyline but that was also an arc segment.

Yes, the problem shows up on polylines with arc segments or simple arcs. The calculation still gets weird when the arc goes from 4th to 1st quadrant (I attached a scheme).

Ed: quadrants
Title: Re: Polyline stationing bug
Post by: cr_raul on September 01, 2011, 11:26:20 AM
a quick fix for this would be to transform the polyline in 3dpoly to eliminate the arc
Title: Re: Polyline stationing bug
Post by: Lars on September 01, 2011, 01:57:39 PM
I need to look into this more, I'm not sure if this function ever worked as planned? There must be something wrong in my angle calculation. I've spotted same problem in a similar function.

I'll be back, thanks for the attached sample.
Title: Re: Polyline stationing bug
Post by: Lars on September 01, 2011, 11:28:03 PM
I need to look into this more, I'm not sure if this function ever worked as planned? There must be something wrong in my angle calculation. I've spotted same problem in a similar function.

I'll be back, thanks for the attached sample.

The bug is fixed (Build 652)