- Anonymous
Author | Committer | Branch | Timestamp | Parent |
---|---|---|---|---|
abdullah | abdullahtahiriyo | master | 2019-06-22 13:19:13 | master 933ed45e |
Affected Issues | 0003974: Feature that snaps arc angles to 45° increments don't work correctly (lack of internal precision) | |||
Changeset | Sketcher: Polyline snap arc to 45 degrees bug fix ================================================= fixes 0003974 Snapping to 45 degrees during arc creation (hold ctrl during an arc within a polyline), resulted in reduced precision, because Gui::Command::doCommand %f defaults only to six decimal positions, which is a poor representation in radians of, for example, 90 degrees. A work-around could have been to hardcode a higher number of decimals, as in %0.Xf. However, I do not like such magic numbers. The solution chosen is to use an App.Quantity object using as units degrees, which leads to no loss of precision. |
|||
mod - src/Mod/Sketcher/Gui/CommandCreateGeo.cpp | Diff File |