Page 1 of 2

Infinite Line / Ray - Break out understanding ...

Posted: Fri Jul 25, 2014 9:41 pm
by Husky
Right now I don't understand this behavior - maybe somebody could point me in the right direction why it works on this way.

If I draw three entities - a line - a infinite line and a Ray and try then to use the Break out segment tools the result confuse me.

First of all: The Auto trim tool doesn't works on infinite lines and rays without any warning. Why it doesn't works - I don't know? :oops:

Second of all:
My test-drawing is this one:
Husky-2014.07.25-02.png
Husky-2014.07.25-02.png (2.22 KiB) Viewed 16525 times
If I use the "Break out Segment" tool it will work for the "Line" on the left side and for the "Infinite Line" and "Ray" on the right side from the vertical yellow line. Why isn't it working always on the same side?
Husky-2014.07.25-04.png
Husky-2014.07.25-04.png (4.31 KiB) Viewed 16525 times

Re: Infinite Line / Ray - Break out understanding ...

Posted: Mon Jul 28, 2014 10:55 am
by andrew
Thanks for your report.

I've moved this to the bug tracker at:
http://www.qcad.org/bugtracker/index.ph ... sk_id=1078

Re: Infinite Line / Ray - Break out understanding ...

Posted: Mon Jul 28, 2014 3:24 pm
by andrew
Quick fix (replaces scripts/ShapeAlgorithms.js):
https://raw.githubusercontent.com/qcad/ ... orithms.js

Re: Infinite Line / Ray - Break out understanding ...

Posted: Mon Jul 28, 2014 8:19 pm
by Husky
I wasn't sure: Is it me or is it a bug ... 8)

Fix works great for break out's. Thank you!



Now I have also notice that ...

1. I can't use the Stretch tool correctly at a Ray / Infinite Line ... :(
2. Selected Ray / Infinite Lines are providing me the two blue "Handle points" at the beginning of the line: Smart!!! :wink:

Before I used the Stretch tool ...
Husky-2014.07.28-02.png
Husky-2014.07.28-02.png (2.38 KiB) Viewed 16487 times
after I used the Stretch tool to move the rectangle to the left ...
Husky-2014.07.28-03.png
Husky-2014.07.28-03.png (2.52 KiB) Viewed 16487 times

Re: Infinite Line / Ray - Break out understanding ...

Posted: Tue Jul 29, 2014 9:27 am
by andrew
The entities in the first images are no longer a ray and an infinite line but a regular line and three rays.

Stretching is defined as 'moving all end points within a given area while not changing the position of end point outside that area'.

For XLines, stretching has no effect since infinite lines have by definition no endpoints.

For rays, stretching currently has no effect either, since there is no other endpoint which could remain fixed (like for lines). Arguably, stretching a ray should probably simply move the base point if the base point is within the area, thereby moving the entire ray. I'll look into that and check how other CAD systems define stretching for rays.

Re: Infinite Line / Ray - Break out understanding ...

Posted: Tue Jul 29, 2014 6:53 pm
by Husky
Thanks for this logical explanation - it makes sense!

Yes please, check out how other CAD systems handle this issue and keep me (us) posted.

Re: Infinite Line / Ray - Break out understanding ...

Posted: Tue Nov 18, 2014 10:15 pm
by Husky
Hi,

regarding to this topic - "Auto Trim (AX) doesn't works on ray and infinite lines? :(

Re: Infinite Line / Ray - Break out understanding ...

Posted: Wed Dec 03, 2014 8:59 am
by Husky
Husky wrote:Hi,

regarding to this topic - "Auto Trim (AX) doesn't works on ray and infinite lines? :(
Hmm - no answer means that is on purpose? Without any warnings? Just nothing happens when I use the tool?

I would really like to see this working but I'm still not sure what I have to file: A Bug or a Feature request ...

Re: Infinite Line / Ray - Break out understanding ...

Posted: Wed Dec 03, 2014 10:51 am
by Clive
Husky wrote:
Husky wrote:Hi,

regarding to this topic - "Auto Trim (AX) doesn't works on ray and infinite lines? :(
Hmm - no answer means that is on purpose? Without any warnings? Just nothing happens when I use the tool?

I would really like to see this working but I'm still not sure what I have to file: A Bug or a Feature request ...
Hi Husky

Just curious, why would you want to use Autotrim on a ray/infinite line, usually these are used for construction purposes?

Re: Infinite Line / Ray - Break out understanding ...

Posted: Thu Dec 04, 2014 10:01 am
by Husky
Hi Clive,
Clive wrote:Hi Husky

Just curious, why would you want to use Autotrim on a ray/infinite line ...
... because it makes my life easier! 8)

Remember the functionality of the "Break out segment" tool. Used on an infinite line it will change - in dependency where it was used - the infinite line in rays and/or regular lines. The same behavior on a ray - I can break down a ray to a regular line. The nice thing about this - there are no longer just "Construction Lines" and I can use them like all other lines in my drawing.
Time and mouse click saver! :wink:

But, it would be much nicer if I also could use the "Auto Trim" tool for my "Construction" Rays and infinite lines. Of course - they have to convert to regular lines - but that is actually what I'm looking for.

Think about this simple test drawing:
This is the starting situation:
Worldhusky-2014.12.03-01.png
Worldhusky-2014.12.03-01.png (9.56 KiB) Viewed 15556 times
This is the goal (to create a horizontal line (2) between the right vertical line pair:
Worldhusky-2014.12.03-02.png
Worldhusky-2014.12.03-02.png (10.31 KiB) Viewed 15556 times
All information what I have is that this Line (2) has to be 150 units above the green Line (1).

To get it fast done I like to use:
1. the "Parallel with distance" tool, infinite line, distance 150,
2. then "Auto Trim" tool ... only one click ... and it's done!

But as we know - that doesn't works with the "Auto Trim" tool! What else can I do?
I could use:
1. "Parallel with distance" tool, regular line, distance 150 - unfortunately to short - needs more action to get it done.
2. "Parallel with distance" tool, ray, distance 150 - unfortunately works only in plus x or plus y direction - aside from that - needs also much more action to get it done.
3. "Move Copy" tool: Unfortunately I only know the +Y distance and I have now Idea how much I have to move it in minus X - means same problem - it need more steps to get it done.

Ok - I give up - maybe you know a better solution instead to use an infinite line with the Auto Trim tool ... 8)
If yes, please let me know!

Re: Infinite Line / Ray - Break out understanding ...

Posted: Thu Dec 04, 2014 11:01 am
by Clive
Parallel with distance tool will only give you a parallel line/entity of the same type - doesn't it?

I cannot find an absoulute fast way of reaching your goal, but there are many ways of acheiving it, all of them requiring one or two mouse clicks to get it done. Anyway Husky one or two mouse clicks will give your fingers exercise :) .

How about this for one method, using the property editor is a good tool to use.

1.Select line and use parallel with Distance tool
Pic 1.png
Pic 1.png (15.18 KiB) Viewed 15161 times
2.Set required distance and execute the command.
Pic 2.png
Pic 2.png (18.22 KiB) Viewed 15161 times
3.Select new line and change the X coordinate start point in the property editor (you could also change the line length to a 'minus' - number, e.g -50). Hit Enter.
Pic 3.png
Pic 3.png (12.02 KiB) Viewed 15161 times
4.Use 'Break Out' tool to clean up.
Pic 4.png
Pic 4.png (7.38 KiB) Viewed 15161 times
Yes a few clicks required, but hey it gets the job done :wink:

Re: Infinite Line / Ray - Break out understanding ...

Posted: Thu Dec 04, 2014 10:48 pm
by Husky
Clive wrote:Parallel with distance tool will only give you a parallel line/entity of the same type - doesn't it?
No - not anymore! You are able to change the result of a parallel line to a ray or infinite line. Check the option bar .... :wink:
Clive wrote:... all of them requiring one or two mouse clicks to get it done. Anyway Husky one or two mouse clicks will give your fingers exercise :) .
I'm pretty sure we are talking about more than one or two clicks ...
Clive wrote:How about this for one method, using the property editor is a good tool to use ...
... Yes a few clicks required, but hey it gets the job done :wink:
Yes of course! But on the other hand: You can dig a basement hole for a house with a shovel or with an excavator - both methods will get the job done, right? 8)

Re: Infinite Line / Ray - Break out understanding ...

Posted: Fri Dec 05, 2014 10:00 am
by Clive
Husky wrote:No - not anymore! You are able to change the result of a parallel line to a ray or infinite line. Check the option bar .... :wink:
Ah yes, so you can, thanks, need to change my glasses :roll: .
Husky wrote:... Yes a few clicks required, but hey it gets the job done :wink:
Yes of course! But on the other hand: You can dig a basement hole for a house with a shovel or with an excavator - both methods will get the job done, right? 8)
Fair enough :)

Re: Infinite Line / Ray - Break out understanding ...

Posted: Fri Dec 05, 2014 6:43 pm
by J-J
Husky wrote: No - not anymore! You are able to change the result of a parallel line to a ray or infinite line.
I missed that too! quite handy indeed.

Re: Infinite Line / Ray - Break out understanding ...

Posted: Sun Dec 07, 2014 3:31 pm
by andrew
Husky wrote:Hi,

regarding to this topic - "Auto Trim (AX) doesn't works on ray and infinite lines? :(
Bug report at:
http://www.qcad.org/bugtracker/index.ph ... sk_id=1140

Quick fix at:
https://raw.githubusercontent.com/qcad/ ... reakOut.js