F5 does not work

Use this forum to ask questions about how to do things in QCAD.

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files and screenshots.

Post one question per topic.

Post Reply
abercet
Newbie Member
Posts: 7
Joined: Mon Mar 05, 2018 9:24 pm
Location: WIMY(FRANCE)

F5 does not work

Post by abercet » Sat Mar 01, 2025 7:20 am

The rotation F5 shortcut does no work this two object selected.
I.e. two ligne selected
Could you solve this problem.
Best regards, thinks.
Attachments
Capture d'écran 2025-03-01 071157.png
Capture d'écran 2025-03-01 071157.png (53.33 KiB) Viewed 27789 times

CVH
Premier Member
Posts: 4954
Joined: Wed Sep 27, 2017 4:17 pm

Re: F5 does not work

Post by CVH » Sat Mar 01, 2025 8:29 am

Hi,

Confirmed.
Recently implemented Center of Rotation = Centroid of convex bounding polygon fails (3.31.2).
Also refer to this conversation.

Probably because there is no size in Y and calculations (sum of products divided by factors) with zero make everything NaN.
An edge case that is overlooked.
Similar when there is no size in X.
Similar when they were drawn at 45°.

The solution is to force the old default behavior.
See menu: Edit .. Application Preferences .. Edit .. Rotate
Select the method: = Center of bounding box.

Please file a Bug report on QCAD Bugtracker :wink:

The use of the Centroid was intended to ensures reversibility.
:arrow: Fails the intention for these inline shapes drawn at an angle not [0-45-90-135-180-225-270-315-360] degrees.
But it is more complex then that, it can also fail to rotate at all.

Kinda expected failing but on another level.

BTW:
With two Line segments of unequal length the center of rotation will never be in the middle of the void.
Unless you place the relative zero there and use the third option by preference.
Then it is more practical to use RO with the center of rotation defined by Snap Middle Manual (SN)

PS:
Although the approach with a Hull is a bit different.
This issue is also one of the reasons why the 2D Centroids methods that I contributed do not handle multiple shapes.
See menu Misc .. Information .. 2D Centroids.
Also refer to this topic, summing wire centroids in this case.

Regards,
CVH

Post Reply

Return to “QCAD 'How Do I' Questions”