FreeCAD / FreeCAD

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

Measurement: angle shows wrong value #14269

Open Pendelf opened 4 months ago

Pendelf commented 4 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 4 months ago

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

hlorus commented 4 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.