View Issue Details

IDProjectCategoryView StatusLast Update
0003974SketcherBugpublic2019-05-15 19:12
ReporteropenBrainAssigned To 
Status newResolutionopen 
Product Version0.18 
Target VersionFixed in Version 
Summary0003974: Feature that snaps arc angles to 45° increments don't work correctly (lack of internal precision)
DescriptionWhen using the feature that snaps arc angles to 45° increments, the internal precision is not sufficient & results in weird behavior.
Steps To ReproduceDownload attached file and try to revolve the sketch around sketch Y axis. It fails with a "Revolve axis intersects the sketch" while it is unexpected.
Replacing 90° angles with perpendicular constraints fixes the issue.
Editing the 90° angles and reentering the value manually fixes the issue.
Additional InformationFrom investigations, it seems to be due to lack of decimal precision in the angle values used by the polyline tool.
Below the angle value first after creation by polyline then after manual reentering
>>> Gui.ActiveDocument.Sketch.Object.Constraints[8].Value
>>> Gui.ActiveDocument.Sketch.Object.Constraints[8].Value

Or same with values in degrees
>>> Gui.ActiveDocument.Sketch.Object.Constraints[8].Value*180/math.pi
>>> Gui.ActiveDocument.Sketch.Object.Constraints[8].Value*180/math.pi

This is also seeable by zooming on the small segment line that lies on the Y axis. Below a view just after creation by polyline.
Forum thread (FR)
OS: Ubuntu 18.04.2 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.1.
Build type: Release
Python version: 2.7.15rc1
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: French/France (fr_FR)
(OS: Windows 8.1 - Version: 0.19.16523 - Python version: 2.7.14 - Qt version: 4.8.7)
TagsNo tags attached.



2019-05-15 19:12


arc_snap_bug.FCStd (6,013 bytes)

Issue History

Date Modified Username Field Change
2019-05-15 19:12 openBrain New Issue
2019-05-15 19:12 openBrain File Added: arc_snap_bug.FCStd