View Issue Details

IDProjectCategoryView StatusLast Update
0004589FreeCADBugpublic2021-03-13 21:21
Reporteredwilliams16 Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status confirmedResolutionopen 
PlatformMacOSOSXOS Version10.13.6
Product Version0.19 
Summary0004589: Edit|Placement generates the wrong Center when object is already translated.
Description

 Discussed in https://forum.freecadweb.org/viewtopic.php?f=3&t=56393

 
Steps To Reproduce  Create a nominal part box.
  In the properties, set position_y to 30 mm
  Open Edit|Placement
  Click on "Center of Mass"
  Choose x-axis
  Try various angles and note that the body translates as well as rotating about an axis through the CG.

 Note that the documentation and user expectation would expect only that the axis of rotation would shift from the box origin to through the CG.
 The problem is that the "Center" should be relative to the box's local origin and should not have the translation added in. In the code, the "position" needs to be subtracted from the CG location so it is relative.

  The same error occurs when using the "selected points" dialog. The point locations need to have the position vector subtracted from them to create the center.

 From https://wiki.freecadweb.org/Placement#Using_.22Center.22_to_Control_Axis_of_Rotation

"Now consider the case of selecting 2 points. You would select the 2 desired points, and then click the Selected points button. The coordinates of the midpoint between the 2 selected points get placed into the X, Y, and Z spinboxes within the Center section. Now any rotation done on the object will be about this center of rotation."

  except this isn't what happens if the object is already translated...
TagsNo tags attached.
FreeCAD InformationOS: macOS High Sierra (10.13)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24267 (Git)
Build type: Release
Branch: master
Hash: b2ca86d8d72b636011a73394bf9bcdedb3b109b7
Python version: 3.8.8
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: C/Default (C)

Activities

yorik

2022-03-03 13:55

administrator   ~0017004

This ticket has been migrated to GitHub as issue 6172.

Issue History

Date Modified Username Field Change
2021-03-08 02:18 edwilliams16 New Issue
2021-03-13 21:21 Kunda1 Status new => confirmed