FS#968 - Option to divide by half numbers etc..

Opened by -- (clive) - Wednesday, 06 November 2013, 14:42 GMT+1
Last edited by Andrew (andrew) - Tuesday, 17 November 2015, 11:40 GMT+1
Task Type Feature Request Main Closed Andrew (andrew) All Low Normal Development Undecided Undecided 0 No

Details

Would it be possible to change the Divide tool, so that one can divide by e.g. 4.5 or 7.75 etc...? Instead of just whole numbers, like it is at present.

Closed by  Andrew (andrew)
Tuesday, 17 November 2015, 11:40 GMT+1
Reason for closing:  Won't implement
Additional comments about closing:  Dividing a length into N equal parts where N is not a whole number does not work. Perhaps a new feature request can be created which describes what tool is required (e.g. split entities into segments of equal length + a shorter segment for the rest, etc.)
Comment by Andrew (andrew) - Wednesday, 06 November 2013, 15:40 GMT+1

Thanks for the suggestion. Can you elaborate on your use case a bit?

Note that if you divide a line into four equally long segments, there is only one possible solution:

`----|----|----|----`

With 4.5 segments, there are two possible solutions:

`----|----|----|----|--`

or:

`--|----|----|----|----`

So this would either be implied (always use the first solution, starting from start point) or interactive.

Please forgive me the ASCII-art ;)

Comment by Husky (Husky) - Wednesday, 06 November 2013, 18:50 GMT+1

Hi - in this example I would ask you for an interactive fife solution tool ...

I'm right now not sure what Clive is looking for.
Does he like to have the possibility to use fractions for Parts (your two possibility example) or does he like to have the possibility to divide a line just in equal segments.

Comment by -- (clive) - Wednesday, 06 November 2013, 21:59 GMT+1

I'm so sorry guys - I mean the 'Split Entities tool', not the Divide tool.
What I'm asking isn't really logical...but this is what I am looking for here.

For example if I have a line that is 12MM long, I can use the split entities tool and choose to split it up into 4 equal segments...giving me 4 x 3MM long segments.

Lets say I want to split the same line into equal segments but enter 4.5 in the parts field! Currently I cant do this - but if I could type in 4.5 instead into the parts field and maybe select an additional option to have equal segments - then I wonder could I get 4 x 2.66MM long segments.

I hope I have explained this properly here (probably not) but I hope you get the idea.

Comment by Andrew (andrew) - Wednesday, 06 November 2013, 22:12 GMT+1
I'm so sorry guys - I mean the 'Split Entities tool', not the Divide tool

Yes, I got that :)

Lets say I want to split the same line into equal segments but enter 4.5 in the parts field!

That seems like a contradiction though. 4.5 parts cannot result in N equal length segments. E.g. 12mm / 4.5 = 2.666, for example:

```|-------------------------------12--------------------------------|
|----2.666----|----2.666----|----2.666----|----2.666----|--1.333--|```
Currently I cant do this - but if I could type in 4.5 instead into the parts field and maybe select an additional option to have equal segments - then I wonder could I get 4 x 2.66MM long segments.

4 x 2.666 = 10.666, so the length of the total length would change. I.e. do you want to delete the last (half) segment in that case?

Comment by -- (clive) - Wednesday, 06 November 2013, 22:20 GMT+1

What the tool would need is an option to set the length (e.g. 12MM)to be divided by 4.5 (not parts)then set the number of parts, so in fact extra input fields would be required here.

I am just thinking this out as I go along really! I was faced with a similar task at work today and something like this in QCAD would be invaluable.

So maybe the Divide tool is the one to have the extra fields in order to do this after all!