FreeCAD / FreeCAD

This is the official source code of FreeCAD, a free and opensource multiplatform 3D parametric modeler.
https://www.freecad.org
Other
21.12k stars 4.14k forks source link

Measurement: angle shows wrong value #14269

Open Pendelf opened 6 months ago

Pendelf commented 6 months ago

Is there an existing issue for this?

Problem description

When measuring the angle, the program shows the wrong value

Full version info

OS: Windows 11 build 22621
Word size of FreeCAD: 64-bit
Version: 0.22.0dev.37464 (Git)
Build type: Release
Branch: main
Hash: db48a78d5a545bb21a5c80a9fa4b4c983fbbe951
Python 3.11.9, Qt 5.15.13, Coin 4.0.2, Vtk 9.2.6, OCC 7.7.2
Locale: Russian/Russia (ru_RU)
Installed mods: 
  * A2plus.backup1693145886.351258 0.4.60n
  * Assembly3.backup1697878740.3967428 0.12.0
  * Assembly4.backup1697878772.1268227 0.50.3
  * BIM.backup1704622292.3622465 2021.12.0
  * CurvedShapes.backup1704622353.7785401 1.0.5
  * Curves.backup1693145923.4219682 0.6.13
  * Design456.backup1712597574.1363904 0.0.1
  * dodo.backup1712597608.2771313 1.0.1
  * ExplodedAssembly
  * fasteners 0.5.21
  * FEMbyGEN 2.1.0
  * lattice2 1.0.0
  * LCInterlocking
  * Manipulator 1.5.7
  * PieMenu 1.5.0
  * Pyramids-and-Polyhedrons
  * sheetmetal.backup1704622370.7006474 0.3.12

Subproject(s) affected?

Other (specify in description)

Anything else?

Measure https://youtu.be/5TGJqrpUZ6A Angel_problem.zip

Code of Conduct

maxwxyz commented 6 months ago

I guess it currently shows the smallest angle between the two lines which is indeed 30° @hlorus can you confirm?

hlorus commented 6 months ago

MeasureAngle was ported from part's DimensionAngular so it would be good to compare it to the behavior of the old measurement. IIRC it measures the angle between the normals of the elements which can be a bit confusing. Some lines which represent the normals could help with that.

MiqCG commented 1 month ago

it would be good to compare it to the behavior of the old measurement.

Checked the provided example file in 0.21.1 and the Part Design "Measure Angular" tool and it is displayed with the correct angle (not the supplementary one) between the selected segments and with the arc arrow that clarifies what has been measured.

BTW, very nice guitar intro in the vídeo, Pendelf.

Captura de pantalla_2024-10-29_12-35-15

Captura de pantalla_2024-10-29_12-34-37

`[code] OS: Devuan GNU/Linux 5 (daedalus) (XFCE/xfce) Word size of FreeCAD: 64-bit Version: 0.21.1.33694 (Git) AppImage Build type: Release Branch: (HEAD detached at 0.21.1) Hash: f6708547a9bb3f71a4aaade12109f511a72c207c Python 3.10.12, Qt 5.15.8, Coin 4.0.0, Vtk 9.2.5, OCC 7.6.3 Locale: Catalan/Spain (ca_ES) Installed mods: