I think @Kunda1 was asking for a better wording as written some language translators were having problems.
Problem OpenSCAD scad & csg files - PLEASE Add them to this thread - Thanks
Forum rules
and Helpful information
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help
Also, be nice to others! Read the FreeCAD code of conduct!
Also, be nice to others! Read the FreeCAD code of conduct!
-
- Veteran
- Posts: 2764
- Joined: Mon Feb 27, 2012 5:31 pm
Re: Problem OpenSCAD scad & csg files - PLEASE Add them to this thread - Thanks
Re: Problem OpenSCAD scad & csg files - PLEASE Add them to this thread - Thanks
Indeed. Should I make the PR for this or will y'all add it in an upcoming OpenSCAD related commit ?keithsloan52 wrote: ↑Thu Feb 24, 2022 12:42 pmI think @Kunda1 was asking for a better wording as written some language translators were having problems.
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Re: Problem OpenSCAD scad & csg files - PLEASE Add them to this thread - Thanks
Right, I was proposing what I thought was better wording. I'll just add it, I'm tweaking OpenSCAD WB this morning anyway.
Re: Problem OpenSCAD scad & csg files - PLEASE Add them to this thread - Thanks
Nice. I would be happy to but I thought to myself that it would be possible that OpenSCAD would get some love soon and this could be appended to that. Thanks!
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Re: Problem OpenSCAD scad & csg files - PLEASE Add them to this thread - Thanks
Just some minor tweaks: I want to make sure people are aware of the new pipe transfer mechanism (I myself had forgotten about it!) for use with sandboxed copies of FreeCAD and/or OpenSCAD. So I added a short message that tries to detect those installations and write to the console. It won't catch everyone (especially those who don't have messages showing in the console at all), but it's a "soft" test of that detection.
-
- Veteran
- Posts: 2764
- Joined: Mon Feb 27, 2012 5:31 pm
Re: Problem OpenSCAD scad & csg files - PLEASE Add them to this thread - Thanks
This csg file fails both with the standard importer and the alternate importer
Should look like There are obviously easier ways of creating the end result, like with hull etc, but as it works with OpenSCAD it should be possible to import.
Should look like There are obviously easier ways of creating the end result, like with hull etc, but as it works with OpenSCAD it should be possible to import.
Re: Problem OpenSCAD scad & csg files - PLEASE Add them to this thread - Thanks
Here's another SCAD file that fails to import on 0.20, Fedora 35:
https://www.thingiverse.com/download:9777448
The traceback is:
21:28:50 Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib64/freecad/Mod/OpenSCAD/importCSG.py", line 131, in open
processcsg(tmpfile)
File "/usr/lib64/freecad/Mod/OpenSCAD/importCSG.py", line 193, in processcsg
result = parser.parse(f.read())
File "/usr/lib/python3.10/site-packages/ply/yacc.py", line 333, in parse
return self.parseopt_notrack(input, lexer, debug, tracking, tokenfunc)
File "/usr/lib/python3.10/site-packages/ply/yacc.py", line 1120, in parseopt_notrack
p.callable(pslice)
File "/usr/lib64/freecad/Mod/OpenSCAD/importCSG.py", line 658, in p_difference_action
checkObjShape(mybase.Base)
<class 'NameError'>: name 'mybase' is not defined
This is a curious one. When I look at the source indeed there is no place where mybase is defined. Looks like a type, but I'm not sure what mybase should be exactly. I tried changing lines 658 and 659 to mycut.Base and mycut.Tool, but if I do that, then I get a different exception:
21:41:09 Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib64/freecad/Mod/OpenSCAD/importCSG.py", line 131, in open
processcsg(tmpfile)
File "/usr/lib64/freecad/Mod/OpenSCAD/importCSG.py", line 193, in processcsg
result = parser.parse(f.read())
File "/usr/lib/python3.10/site-packages/ply/yacc.py", line 333, in parse
return self.parseopt_notrack(input, lexer, debug, tracking, tokenfunc)
File "/usr/lib/python3.10/site-packages/ply/yacc.py", line 1120, in parseopt_notrack
p.callable(pslice)
File "/usr/lib64/freecad/Mod/OpenSCAD/importCSG.py", line 662, in p_difference_action
mycut.Tool.Shape = mycut.Tool.cut(o.Shape)
<class 'AttributeError'>: 'Part.Feature' object has no attribute 'cut'
https://www.thingiverse.com/download:9777448
The traceback is:
21:28:50 Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib64/freecad/Mod/OpenSCAD/importCSG.py", line 131, in open
processcsg(tmpfile)
File "/usr/lib64/freecad/Mod/OpenSCAD/importCSG.py", line 193, in processcsg
result = parser.parse(f.read())
File "/usr/lib/python3.10/site-packages/ply/yacc.py", line 333, in parse
return self.parseopt_notrack(input, lexer, debug, tracking, tokenfunc)
File "/usr/lib/python3.10/site-packages/ply/yacc.py", line 1120, in parseopt_notrack
p.callable(pslice)
File "/usr/lib64/freecad/Mod/OpenSCAD/importCSG.py", line 658, in p_difference_action
checkObjShape(mybase.Base)
<class 'NameError'>: name 'mybase' is not defined
This is a curious one. When I look at the source indeed there is no place where mybase is defined. Looks like a type, but I'm not sure what mybase should be exactly. I tried changing lines 658 and 659 to mycut.Base and mycut.Tool, but if I do that, then I get a different exception:
21:41:09 Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib64/freecad/Mod/OpenSCAD/importCSG.py", line 131, in open
processcsg(tmpfile)
File "/usr/lib64/freecad/Mod/OpenSCAD/importCSG.py", line 193, in processcsg
result = parser.parse(f.read())
File "/usr/lib/python3.10/site-packages/ply/yacc.py", line 333, in parse
return self.parseopt_notrack(input, lexer, debug, tracking, tokenfunc)
File "/usr/lib/python3.10/site-packages/ply/yacc.py", line 1120, in parseopt_notrack
p.callable(pslice)
File "/usr/lib64/freecad/Mod/OpenSCAD/importCSG.py", line 662, in p_difference_action
mycut.Tool.Shape = mycut.Tool.cut(o.Shape)
<class 'AttributeError'>: 'Part.Feature' object has no attribute 'cut'
Re: Problem OpenSCAD scad & csg files - PLEASE Add them to this thread - Thanks
Thanks for the report -- probably a copy-and-paste error on my part. I've resynchronized that function with @keithsloan52's alt importer, the bug is fixed in git commit 2c6af06fe960600bdfb04c4c9331fe1815e1358f.torriem wrote: ↑Sun Apr 03, 2022 3:42 am Here's another SCAD file that fails to import on 0.20, Fedora 35:
https://www.thingiverse.com/download:9777448
Re: Problem OpenSCAD scad & csg files - PLEASE Add them to this thread - Thanks
x-posting https://forum.freecadweb.org/viewtopic.php?f=10&t=67836
"[CSG import] Structures get doubled when importing certain groups with offset2D"
"[CSG import] Structures get doubled when importing certain groups with offset2D"
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Re: Problem OpenSCAD scad & csg files - PLEASE Add them to this thread - Thanks
In the tracker: issue #6271 CSG file from OpenScad does not render correctly
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs