Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use relative chord tolerance instead of absolute.
Commit 89eb208 has improved the overall situation with chord tolerance, but it changed the display chord tolerance to use an absolute value in millimeters as a stopgap measure. This commit changes the display chord tolerance to be specified in percents of entity bounding box instead of millimeters. As a result, the linearized curves are both zoom level and sketch scale independent. In order to compute the bounding box, all entities are generated twice. However, this shouldn't result in a noticeable slowdown, since the bounding box calculation does not need the expensive triangle mesh generation and the solver will converge immediately on the second run. Since the meaning of the preference has changed, a new name is used (ChordTolerancePct instead of ChordTolerance), so that it would be reset to the default value after updating SolveSpace. The default value, 0.5%, was selected using trial and error by judging whether cylinders of moderate dimensions were looking aesthetically pleasing enough. After this change, the only real function of the spacebar shortcut is to reload imported groups, since manual regeneration should not change anything anymore unless there is a bug.
- Loading branch information
1 parent
fc68804
commit 34a5d87
Showing
4 changed files
with
27 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters