View Issue Details

IDProjectCategoryView StatusLast Update
0004353FreeCADBugpublic2020-06-05 14:19
Reporterlaughingrice Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status feedbackResolutionopen 
Product Version0.18 
Summary0004353: parameters of rotate_extrude in CSG files and openscad workbench are ignored
Descriptionimporting a CSG file with rotate_extrude, or using rotate_extrude in the add openscad element in the openscad workbench always uses default values ignoring set ones (true at least for angle and $fn)

It looks like freecad doesn't have an option matching $fn in the menus, but it does have support for angle, but that is ignored as well
Steps To ReproduceIn the openscad workbench press add openscad element and add the following. It should add a pyramid (works correctly if as mesh is ticked), but adds a cone instead

rotate_extrude($fn=4, angle=180)
  polygon([[0,0],[3,3],[0,3]]);

Importing the matching CSG file results with the same effect, presumably, that is the intermediate format for communicating with openscad

rotate_extrude(angle = 180, convexity = 2, $fn = 4, $fa = 12, $fs = 2) {
        polygon(points = [[0, 0], [3, 3], [3, 0]], paths = undef, convexity = 1);
}
Tags#post-to-forum
FreeCAD InformationOS: macOS 10.13
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16146 (Git)
Build type: Release
Branch: (HEAD detached at 0.18.4)
Hash: 980bf9060e28555fecd9e3462f68ca74007b70f8
Python version: 3.6.7
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)

Activities

laughingrice

2020-05-31 04:00

reporter  

Untitled1.csg (151 bytes)   
rotate_extrude(angle = 180, convexity = 2, $fn = 4, $fa = 12, $fs = 2) {
	polygon(points = [[0, 0], [3, 3], [3, 0]], paths = undef, convexity = 1);
}

Untitled1.csg (151 bytes)   

Kunda1

2020-06-05 14:19

administrator   ~0014470

Per guidelines, please open a forum thread first to let the community know. (post the link to the forum thread and post this ticket in the forum thread linking it back here)

Issue History

Date Modified Username Field Change
2020-05-31 04:00 laughingrice New Issue
2020-05-31 04:00 laughingrice File Added: Untitled1.csg
2020-06-05 14:18 Kunda1 Tag Attached: #post-to-forum
2020-06-05 14:19 Kunda1 Status new => feedback
2020-06-05 14:19 Kunda1 Note Added: 0014470