discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Constructive Syntax Library for Openscad: no difference(), no for(), no intersection() used

P
pproj@posteo.de
Mon, Jun 7, 2021 4:25 PM

this is very weird, it works with the sameĀ  2021.01 (git 41f58fe) on my
Ubuntu 20.04......

could you try the same or a newer appimage (if not already)? or perhaps
re-download the Constructive lib?

the stack trace is not showing the actual cause, sadly.
we would have to asterisk/comment out each of the 6 tubeFast() calls to
even try to localize it.
does the mount-demo.scad work either?
Peter

On 07.06.21 17:26, LenStruttmann wrote:

I'm using OpenSCAD version 2021.01 (git 41f58fe) on Ubuntu 20.04.

Here is the complete log from when I attempt pulley-demo.scad:

OpenSCAD 2021.01
https://www.openscad.org/ https://www.openscad.org/

Copyright (C) 2009-2021 The OpenSCAD Developers
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at
your option) any later version.

Loaded design
'/home/len/Downloads/constructive-main/examples/pulley-demo.scad'.
Compiling design (CSG Tree generation)...
ECHO: "Assembling: ", ["screws", "bearing", "tube", "wheel"]
WARNING: cylinder(h=0, ...) in file constructive-compiled.scad, line 1915
TRACE: called by 'cylinder' in file constructive-compiled.scad, line 1915
TRACE: called by 'children' in file constructive-compiled.scad, line 690
TRACE: called by 'children' in file constructive-compiled.scad, line 763
TRACE: called by 'multmatrix' in file constructive-compiled.scad, line
760
TRACE: called by 'g' in file constructive-compiled.scad, line 690
TRACE: called by 'up' in file constructive-compiled.scad, line 1913
TRACE: called by 'difference' in file constructive-compiled.scad, line
1863
TRACE: called by 'if' in file constructive-compiled.scad, line 1861
TRACE: called by 'scale' in file constructive-compiled.scad, line 1847
TRACE: called by 'translate' in file constructive-compiled.scad, line
1845
TRACE: called by 'tubeFast' in file constructive-compiled.scad, line 2514
TRACE: called by 'children' in file constructive-compiled.scad, line 763
Compiling design (CSG Products generation)...

Sent from the OpenSCAD mailing list archive
http://forum.openscad.org/ at Nabble.com.


OpenSCAD mailing list
To unsubscribe send an email todiscuss-leave@lists.openscad.org

this is very weird, it works with the sameĀ  2021.01 (git 41f58fe) on my Ubuntu 20.04...... could you try the same or a newer appimage (if not already)? or perhaps re-download the Constructive lib? the stack trace is not showing the actual cause, sadly. we would have to asterisk/comment out each of the 6 tubeFast() calls to even try to localize it. does the mount-demo.scad work either? Peter On 07.06.21 17:26, LenStruttmann wrote: > I'm using OpenSCAD version 2021.01 (git 41f58fe) on Ubuntu 20.04. > > Here is the complete log from when I attempt pulley-demo.scad: > > OpenSCAD 2021.01 > https://www.openscad.org/ <https://www.openscad.org/> > > Copyright (C) 2009-2021 The OpenSCAD Developers > This program is free software; you can redistribute it and/or modify > it under the terms of the GNU General Public License as published by > the Free Software Foundation; either version 2 of the License, or (at > your option) any later version. > > Loaded design > '/home/len/Downloads/constructive-main/examples/pulley-demo.scad'. > Compiling design (CSG Tree generation)... > ECHO: "Assembling: ", ["screws", "bearing", "tube", "wheel"] > WARNING: cylinder(h=0, ...) in file constructive-compiled.scad, line 1915 > TRACE: called by 'cylinder' in file constructive-compiled.scad, line 1915 > TRACE: called by 'children' in file constructive-compiled.scad, line 690 > TRACE: called by 'children' in file constructive-compiled.scad, line 763 > TRACE: called by 'multmatrix' in file constructive-compiled.scad, line > 760 > TRACE: called by 'g' in file constructive-compiled.scad, line 690 > TRACE: called by 'up' in file constructive-compiled.scad, line 1913 > TRACE: called by 'difference' in file constructive-compiled.scad, line > 1863 > TRACE: called by 'if' in file constructive-compiled.scad, line 1861 > TRACE: called by 'scale' in file constructive-compiled.scad, line 1847 > TRACE: called by 'translate' in file constructive-compiled.scad, line > 1845 > TRACE: called by 'tubeFast' in file constructive-compiled.scad, line 2514 > TRACE: called by 'children' in file constructive-compiled.scad, line 763 > Compiling design (CSG Products generation)... > ------------------------------------------------------------------------ > Sent from the OpenSCAD mailing list archive > <http://forum.openscad.org/> at Nabble.com. > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email todiscuss-leave@lists.openscad.org
P
pproj@posteo.de
Mon, Jun 7, 2021 4:31 PM

Thanks len!
i will need to address it, it uses cylinder(h=0) to reduce CSG nesting
(avoiding an If()-block) with older openscad versions this had
significant speed improvemnts, had not checked if this changed, yet.

On 07.06.21 18:12, LenStruttmann wrote:

Found it:

In Preferences -> Advanced -> OpenSCAD Language Features

...I had both of these checked.

Since you routinely pass h=0 to cylinder(), my OpenSCAD complained
loudly.


Sent from the OpenSCAD mailing list archive
http://forum.openscad.org/ at Nabble.com.


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

Thanks len! i will need to address it, it uses cylinder(h=0) to reduce CSG nesting (avoiding an If()-block) with older openscad versions this had significant speed improvemnts, had not checked if this changed, yet. On 07.06.21 18:12, LenStruttmann wrote: > Found it: > > In Preferences -> Advanced -> OpenSCAD Language Features > > ...I had both of these checked. > > Since you routinely pass h=0 to cylinder(), my OpenSCAD complained > loudly. > > > ------------------------------------------------------------------------ > Sent from the OpenSCAD mailing list archive > <http://forum.openscad.org/> at Nabble.com. > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org
TP
Torsten Paul
Mon, Jun 7, 2021 4:33 PM

On 07.06.21 18:25, pproj@posteo.de wrote:

the stack trace is not showing the actual cause, sadly.

I think it's WARNING for cylinder with height = 0 and "Stop on
first warning" enabled.

I'm not getting that warning with the release version either,
so maybe it's missing a file locally or something?

ciao,
Torsten.

On 07.06.21 18:25, pproj@posteo.de wrote: > the stack trace is not showing the actual cause, sadly. I think it's WARNING for cylinder with height = 0 and "Stop on first warning" enabled. I'm not getting that warning with the release version either, so maybe it's missing a file locally or something? ciao, Torsten.