News:

Due to heavy spamming attempts on this forum, automatic registration has been disabled. We will approve registration requests as quickly as possible (unless you're a spammer of course :) )

Main Menu

Adding a point moves the original

Started by donone, July 18, 2009, 09:46:23 AM

Previous topic - Next topic

donone

I just produced a line and set the two ends accurately by dbl click setting coords and also to ensure the line was horizontal. At the right end I added a point (by clicking exactly on the endpoint) and set it, no problem.

I added a point at the left end (again exactly on the endpoint, not the line) and found that the added point was 'inside' on the line. Thus my carefully placed horizontal was no more, which also meant that my right point had to be replaced by the 'now' middle point and the right point moved to re-achieve the horizontal line.

I had expected the new left point to do as it had on the right, added a point 'outside' rather than to the 'right' of the selected point. Had the added point at the left end gone to the 'outside' rather than the 'right' all would have been well and I could have set that.
Had I clicked on the line I would have expected what I got.
This suggests that I must always work in a clockwise direction. I hope you understand. When I explain I seem to make it difficult.
You only stop learning when you die.
Sometimes I think I am dead.

David

You are right. I know what you mean.

In fact, the line is drawn from point 1 to point n (the last point).
A new point is inserted at point i+1. This means, that if you add a point at point i, it will be positioned at point i+1.
So, if you add a point at point n (the last point), it will be added as n+1, as an extra point outside the existing line. But if you add it at point 1, it will be inserted as point 2, breaking the existing line. However, as you cannot see where the line starts or ends, this can be sort of confusing as it is not symmetric behavior.

We could improve this by 'add left' and 'add right' functions (which won't really work for vertical lines obviously).
But this solution may be more confusing than it is now.

Maybe simpler is to add the points at the outsides when adding to point 1 or n, and keep it as it is for the other points.

David.

David Hoogvorst. Founder and Owner of DRail Software. Creator of AnyRail.

donone

I thank you again for listening. I agree with you that to choose left or right may be confusing. I would agree with 'outside' for points 1 or n, as I sort of highlighted in my text, and yes leave all others the same. That would be a superb solution in my view, if and when it can be done.
Thanks
You only stop learning when you die.
Sometimes I think I am dead.

David

If only all problems were so simple to solve!

It'll be fixed in the next release.

David.
David Hoogvorst. Founder and Owner of DRail Software. Creator of AnyRail.

David

David Hoogvorst. Founder and Owner of DRail Software. Creator of AnyRail.

donone

You only stop learning when you die.
Sometimes I think I am dead.