Problem OpenSCAD scad & csg files - PLEASE Add them to this thread - Thanks

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
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!
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Problem OpenSCAD scad & csg files - PLEASE Add them to this thread - Thanks

Post by Kunda1 »

chennes wrote: Fri Apr 29, 2022 1:51 pm I was not able to reproduce the problem reported in the ticket -- FreeCAD loaded the file fine for me using
chennes wrote: Mon May 16, 2022 3:38 pmissue #6810
Thanks @chennes!

Also there is issue #6271
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
User avatar
Kuzma30
Posts: 163
Joined: Wed Oct 24, 2018 11:50 am
Location: Ukraine

Re: Problem OpenSCAD scad & csg files - PLEASE Add them to this thread - Thanks

Post by Kuzma30 »

RealThunder's A3 Wiki translation, join the project https://crowdin.com/project/freecad-asm3-wiki
User avatar
chennes
Veteran
Posts: 3876
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: Problem OpenSCAD scad & csg files - PLEASE Add them to this thread - Thanks

Post by chennes »

I'm not really sure why we're keeping the prototype around, anyway, but I went ahead and fixed the bug :) .
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
unphased
Posts: 4
Joined: Tue May 17, 2022 5:45 am

Re: Problem OpenSCAD scad & csg files - PLEASE Add them to this thread - Thanks

Post by unphased »

Hi all. Based on a helpful comment from a Redditor I have the following information:

Screenshot:

Image

About:

Code: Select all

OS: Ubuntu 20.04.3 LTS (ubuntu:GNOME/ubuntu)
Word size of FreeCAD: 64-bit
Version: 0.20.
Build type: Release
Branch: unknown
Hash: 469c36e3ccd58fb254e731d4f1ed96f8268f8507
Python 3.8.10, Qt 5.12.8, Coin 4.0.0, OCC 7.5.2
Locale: English/United States (en_US)
Site with background on SCAD file on which you can see how it's supposed to look: https://3dprints.electronsmith.com/m12- ... king-foot/

Direct link to SCAD file: https://3dprints.electronsmith.com/wp-c ... older.scad

Let me know if there are any other missing information. Previously I tried to ask here about a loading error I was getting (volume = 0 "shape is invalid") but now it loads without errors but does not load properly.
unphased
Posts: 4
Joined: Tue May 17, 2022 5:45 am

Re: Problem OpenSCAD scad & csg files - PLEASE Add them to this thread - Thanks

Post by unphased »

Hi all. Based on a helpful comment from a Redditor I now know to provide the following information:

Screenshot:

Image

About:

Code: Select all

OS: Ubuntu 20.04.3 LTS (ubuntu:GNOME/ubuntu)
Word size of FreeCAD: 64-bit
Version: 0.20.
Build type: Release
Branch: unknown
Hash: 469c36e3ccd58fb254e731d4f1ed96f8268f8507
Python 3.8.10, Qt 5.12.8, Coin 4.0.0, OCC 7.5.2
Locale: English/United States (en_US)
Site with background on SCAD file on which you can see how it's supposed to look: https://3dprints.electronsmith.com/m12- ... king-foot/

How it's supposed to look as opened in openscad:

Image

Direct link to SCAD file: https://3dprints.electronsmith.com/wp-c ... older.scad

Let me know if there are any other missing information. Previously I tried to ask here about a loading error I was getting (volume = 0 "shape is invalid") but now it loads without errors but does not load properly.
keithsloan52
Veteran
Posts: 2756
Joined: Mon Feb 27, 2012 5:31 pm

Re: Problem OpenSCAD scad & csg files - PLEASE Add them to this thread - Thanks

Post by keithsloan52 »

The alternate importer https://github.com/KeithSloan/OpenSCAD_Alt_Import

Gets a bit closer but no cigar
Image 22-05-2022 at 11.13.jpg
Image 22-05-2022 at 11.13.jpg (372.64 KiB) Viewed 1904 times
unphased
Posts: 4
Joined: Tue May 17, 2022 5:45 am

Re: Problem OpenSCAD scad & csg files - PLEASE Add them to this thread - Thanks

Post by unphased »

keithsloan52 wrote: Sun May 22, 2022 10:15 am The alternate importer https://github.com/KeithSloan/OpenSCAD_Alt_Import

Gets a bit closer but no cigar
Thank you so much for testing!
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Problem OpenSCAD scad & csg files - PLEASE Add them to this thread - Thanks

Post by Kunda1 »

issue #6271 is still open
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
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Problem OpenSCAD scad & csg files - PLEASE Add them to this thread - Thanks

Post by Kunda1 »

Hard to keep track of unanswered forum posts presenting scad issues. Should we start tracking them in a separate tracker? Like FreeCAD-OpenSCAD-Workbench or something?
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
malorezzanzo00492
Posts: 4
Joined: Sat Aug 13, 2022 9:24 pm

Re: Problem OpenSCAD scad & csg files - PLEASE Add them to this thread - Thanks

Post by malorezzanzo00492 »

There's a problem with linear_extrude()offset()union(){} and with linear_extrude()offset()union(){}.
In the second case FreeCAD gives this error:
File "...", line ..., in p_offset_action
if subobj.Shape.Volume == 0 :
<class 'RuntimeError'>: shape is invalid
In the first case, instead, it seems to ignore the union() instruction.
Post Reply