forked from FreeCAD/FreeCAD
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[OpenSCAD] Add $fn and angle to rotate_extrude()
As pointed out in Issue FreeCAD#4353 the OpenSCAD Workbench does not correctly implement the angle parameter to rotate_extrude (it's a relatively recent addition to OpenSCAD), nor does it attempt to do anything with a specified $fn. This commit adds both features. To add $fn handling, the code from the cylinder extrusion was mimicked, allowing FreeCAD to create perfect, smooth representations when $fn exceeds a user specified value in Preferences, but attempting to create OpenSCAD's more discrete representation when using a lower $fn. Note that this determination is made at creation time: if the user later increases the segments parameter in the new object, it will remain prismatic regardless of how high the value is made.
- Loading branch information
Showing
3 changed files
with
142 additions
and
10 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