View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update | 
|---|---|---|---|---|---|
| 0002360 | File formats | General | public | 2015-12-10 16:17 | 2017-05-04 10:39 | 
| Reporter | l3iggs | Assigned To | keithsloan52 | ||
| Priority | high | Severity | major | Reproducibility | always | 
| Status | closed | Resolution | fixed | ||
| Platform | Linux | OS | Arch Linux | ||
| Summary | 0002360: OpenSCAD import is broken by lack of support for the offset() function | ||||
| Description | OpenSCAD has a function called offset(): https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Transformations#offset A simple example .scad file using this is: offset(r = 10) square(20, center = true); This translates the following .csg content: group() { offset(r = 10, $fn = 0, $fa = 12, $fs = 2) { square(size = [20, 20], center = true); } } When opening/importing either of these, FreeCAD shows me a popup indicating that offset is not supported and the import is aborted. | ||||
| Steps To Reproduce | open offsetTest.scad (attached) | ||||
| Additional Information | Please notify Keith Sloan <keith@sloan-home.co.uk> and Sebastian Hoogen <sebastian@hoogen.de>, Sebastian Hoogen <sebastian@sebastianhoogen.de> | ||||
| Tags | OpenSCAD | ||||
| FreeCAD Information | |||||
| related to | 0002359 | closed | keithsloan52 | OpenSCAD import is broken by lack of support for hull() function | 
|  | |
|  | Confirmed. I opened the attached file in OpenSCAD and exported to .csg to be opened in FreeCAD. When I did, I get a error window: Unsupported Function : offset. Press OK. 
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/freecad-daily/Mod/OpenSCAD/importCSG.py", line 94, in open
    processcsg(filename)
  File "/usr/lib/freecad-daily/Mod/OpenSCAD/importCSG.py", line 145, in processcsg
    result = parser.parse(f.read())
  File "/usr/lib/freecad-daily/Mod/OpenSCAD/ply/yacc.py", line 265, in parse
    return self.parseopt_notrack(input,lexer,debug,tracking,tokenfunc)
  File "/usr/lib/freecad-daily/Mod/OpenSCAD/ply/yacc.py", line 971, in parseopt_notrack
    p.callable(pslice)
  File "/usr/lib/freecad-daily/Mod/OpenSCAD/importCSG.py", line 178, in p_group_action1
    if (len(p[5]) > 1) :
<type 'exceptions.TypeError'>: object of type 'NoneType' has no len()
OS: Ubuntu 16.04.2 LTS Word size of OS: 64-bit Word size of FreeCAD: 64-bit Version: 0.17.10064 (Git) Build type: None Branch: master Hash: d7ed8c4383f394f64dd9314eefa00efae02fb32f Python version: 2.7.12 Qt version: 4.8.7 Coin version: 4.0.0a OCC version: 6.8.0.oce-0.17 | 
|  | @keithsloan52 do you mind checking out this ticket as well? Thx! | 
| Date Modified | Username | Field | Change | 
|---|---|---|---|
| 2015-12-10 16:17 | l3iggs | New Issue | |
| 2015-12-10 16:17 | l3iggs | File Added: offsetTest.scad | |
| 2017-01-16 10:08 | Kunda1 | Project | FreeCAD => File formats | 
| 2017-01-16 10:08 | Kunda1 | Category | Bug => General | 
| 2017-01-27 03:30 | Kunda1 | Relationship added | related to 0002359 | 
| 2017-02-15 06:44 | kkremitzki | Note Added: 0008305 | |
| 2017-02-15 06:45 | kkremitzki | Note Edited: 0008305 | |
| 2017-02-15 06:45 | kkremitzki | Status | new => confirmed | 
| 2017-04-25 23:40 | Kunda1 | Note Added: 0008761 | |
| 2017-05-02 13:57 | wmayer | Changeset attached | => FreeCAD master a328e1fe | 
| 2017-05-02 13:57 | wmayer | Status | confirmed => closed | 
| 2017-05-02 13:57 | wmayer | Resolution | open => fixed | 
| 2017-05-03 19:23 | Kunda1 | Assigned To | => keithsloan52 | 
| 2017-05-04 10:39 | Kunda1 | Tag Attached: OpenSCAD | 
 FreeCAD
 FreeCAD