[Feature Request] Rectangle from 3 corners

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
GeneFC
Veteran
Posts: 5373
Joined: Sat Mar 19, 2016 3:36 pm
Location: Punta Gorda, FL

Re: [Feature Request] Rectangle from 3 corners

Post by GeneFC »

NewJoker wrote: Tue Jul 26, 2022 5:57 pm [
Why do you think that adding one more item to the drop-down list or one more button to paddle's tool settings widget (the usefulness of which has already been widely discussed so let's not question it here) would force you to change anything in your workflow ? You don't have to press these buttons and they won't occupy any space where other tools could be located.
I think that is exactly what I said. However, the discussion above talks about requiring modifier keys, including comments on whether the old method or the new method should be the default.

There was a lot of discussion several months ago when Paddle first proposed his changes. The initial proposal included replacing numerous icons and changes to operations. That idea was quickly shot down, and I do not believe the current proposals include forcing long-time users to re-learn their habits.

Gene
Jee-Bee
Veteran
Posts: 2566
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: [Feature Request] Rectangle from 3 corners

Post by Jee-Bee »

What is the problem with learning something new?
If everybody talks like you nobody uses CAD but a drawing table....
GeneFC
Veteran
Posts: 5373
Joined: Sat Mar 19, 2016 3:36 pm
Location: Punta Gorda, FL

Re: [Feature Request] Rectangle from 3 corners

Post by GeneFC »

Sorry! :oops:

I will try to change everything I do to follow your lead. :mrgreen:

Sheesh!!!!

Gene
User avatar
paddle
Veteran
Posts: 1364
Joined: Mon Feb 03, 2020 4:47 pm

Re: [Feature Request] Rectangle from 3 corners

Post by paddle »

3 points rectangle/parallelogram is advancing well.
It's quite complex due to the numerous options of the rectangle tool.

If someone wants to help, there is a math/geometry problem to solve :
https://math.stackexchange.com/question ... e-position

Such that the round corners follow the mouse correctly.
User avatar
NewJoker
Veteran
Posts: 2977
Joined: Sun Oct 11, 2020 7:49 pm

Re: [Feature Request] Rectangle from 3 corners

Post by NewJoker »

paddle wrote: Fri Aug 05, 2022 9:23 am 3 points rectangle/parallelogram is advancing well.
Cool :D

Will there be a 3 points by center mode in addition to 3 corners mode ?
Jee-Bee
Veteran
Posts: 2566
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: [Feature Request] Rectangle from 3 corners

Post by Jee-Bee »

not sure if a 3 point parallelogram is that usefull.
- Mainly the usage in compared to just rectangles is really low (and so easy to forget)
- the number of steps that you gain is max 3 (with horizontal / vertical sides it you gain nothing anymore)
(from start: 4 clicks poly line, 2x parallel, 1x angle, 5 x dimensions - From 3 point parallellogram: 3 clicks parallelogram, 1x angle, 5x dimension)

I think that if there comes a implementation that it looks for parallel lines (just like now for straight lines) make much more sense to put time in.
balrobs
Posts: 449
Joined: Fri Apr 24, 2020 8:58 pm

Re: [Feature Request] Rectangle from 3 corners

Post by balrobs »

paddle wrote: Fri Aug 05, 2022 9:23 am 3 points rectangle/parallelogram is advancing well.
It's quite complex due to the numerous options of the rectangle tool.

If someone wants to help, there is a math/geometry problem to solve :
https://math.stackexchange.com/question ... e-position

Such that the round corners follow the mouse correctly.
Hi @paddle ,
That‘s how I would solve the problem:
scan 22-08-05 13-04-00.jpg
scan 22-08-05 13-04-00.jpg (29.55 KiB) Viewed 765 times
Edit: Hopefully better readable!

Code: Select all

r1,2=tan(alpha/2)*[(xD+yD*tan(alpha/2)+-sqrt((xD+yD*tan(alpha/2))^2-(xD^2+yD^2))]
xD=x+y*cos(alpha)
yD=y*sin(alpha)
Last edited by balrobs on Fri Aug 05, 2022 1:08 pm, edited 3 times in total.
User avatar
paddle
Veteran
Posts: 1364
Joined: Mon Feb 03, 2020 4:47 pm

Re: [Feature Request] Rectangle from 3 corners

Post by paddle »

balrobs wrote: Fri Aug 05, 2022 11:08 am Hi @paddle ,
That‘s how I would solve the problem;
Hi @balrobs
Thanks !
Though I'm having trouble reading as the picture dpi is too low.
Could you type the solution directly in the post please?
Thanks !
User avatar
paddle
Veteran
Posts: 1364
Joined: Mon Feb 03, 2020 4:47 pm

Re: [Feature Request] Rectangle from 3 corners

Post by paddle »

NewJoker wrote: Fri Aug 05, 2022 9:56 am
paddle wrote: Fri Aug 05, 2022 9:23 am 3 points rectangle/parallelogram is advancing well.
Cool :D

Will there be a 3 points by center mode in addition to 3 corners mode ?
Yes. Here's a preview of the tool. I changed to icons for the mode and it looks great IMO.
preview 3p squre.png
preview 3p squre.png (72.46 KiB) Viewed 715 times
Jee-Bee wrote: Fri Aug 05, 2022 10:07 am not sure if a 3 point parallelogram is that usefull.
I wasn't sure about that. But in the end 3 points rectangle is a restriction of 3 point parallelogram. And it will be easy to snap to 90 to get a 3 point rectangle. So I thought it would be better.
User avatar
NewJoker
Veteran
Posts: 2977
Joined: Sun Oct 11, 2020 7:49 pm

Re: [Feature Request] Rectangle from 3 corners

Post by NewJoker »

paddle wrote: Fri Aug 05, 2022 12:37 pm Yes. Here's a preview of the tool. I changed to icons for the mode and it looks great IMO.
Looks really great, I can't wait to test it :-)

The frame mode will utilize your new offset tool to provide a predefined rectangle with offset ?
Post Reply