← All bug reports

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

Type
Feature Request
Status
Closed
Resolution
Won't implement
Category
QCAD (main)
Severity
Low
Priority
Low
Reported version
Development
Operating system
All
Reported
2013-11-06 by anonymous
Closed
2015-11-17 by andrew

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.

Comments (5)

andrew 2013-11-06

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 ;)

Husky 2013-11-06

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.

deleted user 2013-11-06

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.

andrew 2013-11-06

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?

deleted user 2013-11-06

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!

Closure comment

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.)