View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0004751||Arch||Bug||public||2021-09-24 13:18||2021-09-24 13:20|
|Summary||0004751: Wrong shape generation for ArchStructure with non-normalized node coordinates|
|Description||When a beam is created, nodes are normalized to the internal model with second node at (positive length, 0,0) and rotation, hence beam axis aligned to local x-axis and rotation stored in placement. Then subsequently, only length and rotation are used for shape generation. For example, if a beam is entered with node coordinates (0,0,0) and (-4010,0,0), they are normalized to (0,0,0) and (4010,0,0) and the structure rotation will be set to 180° around z-axis (see example file in forum discussion.|
With a legacy file, where at one point apparently shapes where generated differently and node coordinates where not normalized, the once properly generated shape may have a wrong orientation after recompute. Also, when node coordinates are edited directly, they are not normalized and length and rotation are not updated, leading to the same discrepancy between node coordinates and shape.
Instead, I believe normalization should be checked and recalculated to the internal model before shape generation and on change of node coordinates, but I cannot oversee the implications on previous behaviour and potential legacy files.
|Steps To Reproduce||1. Open the file from forum https://forum.freecadweb.org/download/file.php?id=163600|
2. Switch on node display for the structure and observe generated shape.
3. Recompute shape.
4. The shape will be in the wrong place.
|Tags||No tags attached.|
|FreeCAD Information||OS: Windows 10 Version 2009|
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24291 (Git)
Build type: Release
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.0
Locale: German/Germany (de_DE)