View Issue Details

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

 Discussed in

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.


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


There are no notes attached to this issue.

Issue History

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