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
Sun, Jun 6, 2021 11:45 AM

Hello,

the Constructive Library (about 1900 lines of Code) i just have released
https://github.com/solidboredom/constructive,

takes a different approach to OpenScad Syntax: you rarely need
difference(), for(), intersection() or their one-to-one equivalents, a
for() block  In the library's own dialect might look like:

pieces(4)  X(every(35)) turnXY(vals(10,25,-15,40))  cube(10);

It is all valid OpenScad, you do need any additional programs, just the
OpenScad and the constructive-compiled.scad file.

The Constuctive-Syntax tries to align more with mechanical construction
of parts and less with mathematical concepts like arrays, vectors and
functions. (but they are heavily used behind the scenes). So it aims to
be more concise and fluent for mechanical parts than vanilla OpenScad.
It allows you to make holes from Modules and really good deal more.

For about 5 years now i have been working on it and using it a lot. Now
I really hope others will find it just as useful, as i do. I am barely
writing any vanilla OpenScad any more.

If somebody likes the Ideas, you are welcome to join work on it. It is
released under GPL2, and I appreciate
additions/discussions/collaboration. Perhaps, some Ideas can be used by
the OpenScad itself.

There is barely any documentation yet. I will add it topic-wise, when
any questions arise if there will be interest at all.

For a basic introduction to its syntax and some possibilities, look at
the explanations inside the example below, or ask me directly. Here is
an example with approx 100 lines of actual code (see also an animated
.GIF in the Attachment):

https://github.com/solidboredom/constructive/blob/main/examples/mount-demo.scad

there is also another Example at:

https://github.com/solidboredom/constructive/blob/main/examples/pulley-demo.scad

There are many more features useful for complex models, like its own
minimalistic type-subsystem,

basic inheritance of construction parts (still needs improvement), or
inverse transformations like in :

g(X(10),Y(15),turnXY(45),X(30))

    g(backwards([X(10),Y(15),turnXY(45),X(30)])

        box(10);

Try it! i hope you will find it as useful as i do.

Peter

Hello, the Constructive Library (about 1900 lines of Code) i just have released https://github.com/solidboredom/constructive, takes a different approach to OpenScad Syntax: you rarely need difference(), for(), intersection() or their one-to-one equivalents, a for() block  In the library's own dialect might look like: pieces(4)  X(every(35)) turnXY(vals(10,25,-15,40))  cube(10); It is all valid OpenScad, you do need any additional programs, just the OpenScad and the constructive-compiled.scad file. The Constuctive-Syntax tries to align more with mechanical construction of parts and less with mathematical concepts like arrays, vectors and functions. (but they are heavily used behind the scenes). So it aims to be more concise and fluent for mechanical parts than vanilla OpenScad. It allows you to make holes from Modules and really good deal more. For about 5 years now i have been working on it and using it a lot. Now I really hope others will find it just as useful, as i do. I am barely writing any vanilla OpenScad any more. If somebody likes the Ideas, you are welcome to join work on it. It is released under GPL2, and I appreciate additions/discussions/collaboration. Perhaps, some Ideas can be used by the OpenScad itself. There is barely any documentation yet. I will add it topic-wise, when any questions arise if there will be interest at all. For a basic introduction to its syntax and some possibilities, look at the explanations inside the example below, or ask me directly. Here is an example with approx 100 lines of actual code (see also an animated .GIF in the Attachment): https://github.com/solidboredom/constructive/blob/main/examples/mount-demo.scad there is also another Example at: https://github.com/solidboredom/constructive/blob/main/examples/pulley-demo.scad There are many more features useful for complex models, like its own minimalistic type-subsystem, basic inheritance of construction parts (still needs improvement), or inverse transformations like in : g(X(10),Y(15),turnXY(45),X(30))     g(backwards([X(10),Y(15),turnXY(45),X(30)])         box(10); Try it! i hope you will find it as useful as i do. Peter
J
jon
Sun, Jun 6, 2021 11:49 PM

Peter:

I took a quick look at the mount demo.  It is interesting, but also
overwhelming.  A step-by-step tutorial, that adds new features and
concepts one-at-a-time might be easier for me to digest.  Perhaps others
will find it easier than I do.   You've been sitting with it for years,
so it is all familiar to you.

I am impressed by your creativity and determination.

Jon

On 6/6/2021 7:45 AM, pproj@posteo.de wrote:

Hello,

the Constructive Library (about 1900 lines of Code) i just have
released https://github.com/solidboredom/constructive,

takes a different approach to OpenScad Syntax: you rarely need
difference(), for(), intersection() or their one-to-one equivalents, a
for() block  In the library's own dialect might look like:

pieces(4)  X(every(35)) turnXY(vals(10,25,-15,40))  cube(10);

It is all valid OpenScad, you do need any additional programs, just
the OpenScad and the constructive-compiled.scad file.

The Constuctive-Syntax tries to align more with mechanical
construction of parts and less with mathematical concepts like arrays,
vectors and functions. (but they are heavily used behind the scenes).
So it aims to be more concise and fluent for mechanical parts than
vanilla OpenScad. It allows you to make holes from Modules and really
good deal more.

For about 5 years now i have been working on it and using it a lot.
Now I really hope others will find it just as useful, as i do. I am
barely writing any vanilla OpenScad any more.

If somebody likes the Ideas, you are welcome to join work on it. It is
released under GPL2, and I appreciate
additions/discussions/collaboration. Perhaps, some Ideas can be used
by the OpenScad itself.

There is barely any documentation yet. I will add it topic-wise, when
any questions arise if there will be interest at all.

For a basic introduction to its syntax and some possibilities, look at
the explanations inside the example below, or ask me directly. Here is
an example with approx 100 lines of actual code  (see also an animated
.GIF in the Attachment):

https://github.com/solidboredom/constructive/blob/main/examples/mount-demo.scad

there is also another Example at:

https://github.com/solidboredom/constructive/blob/main/examples/pulley-demo.scad

There are many more features useful for complex models, like its own
minimalistic type-subsystem,

basic inheritance of construction parts (still needs improvement), or
inverse transformations like in :

g(X(10),Y(15),turnXY(45),X(30))

    g(backwards([X(10),Y(15),turnXY(45),X(30)])

        box(10);

Try it! i hope you will find it as useful as i do.

Peter


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

Peter: I took a quick look at the mount demo.  It is interesting, but also overwhelming.  A step-by-step tutorial, that adds new features and concepts one-at-a-time might be easier for me to digest.  Perhaps others will find it easier than I do.   You've been sitting with it for years, so it is all familiar to you. I am impressed by your creativity and determination. Jon On 6/6/2021 7:45 AM, pproj@posteo.de wrote: > > Hello, > > the Constructive Library (about 1900 lines of Code) i just have > released https://github.com/solidboredom/constructive, > > takes a different approach to OpenScad Syntax: you rarely need > difference(), for(), intersection() or their one-to-one equivalents, a > for() block  In the library's own dialect might look like: > > pieces(4)  X(every(35)) turnXY(vals(10,25,-15,40))  cube(10); > > It is all valid OpenScad, you do need any additional programs, just > the OpenScad and the constructive-compiled.scad file. > > The Constuctive-Syntax tries to align more with mechanical > construction of parts and less with mathematical concepts like arrays, > vectors and functions. (but they are heavily used behind the scenes). > So it aims to be more concise and fluent for mechanical parts than > vanilla OpenScad. It allows you to make holes from Modules and really > good deal more. > > For about 5 years now i have been working on it and using it a lot. > Now I really hope others will find it just as useful, as i do. I am > barely writing any vanilla OpenScad any more. > > If somebody likes the Ideas, you are welcome to join work on it. It is > released under GPL2, and I appreciate > additions/discussions/collaboration. Perhaps, some Ideas can be used > by the OpenScad itself. > > There is barely any documentation yet. I will add it topic-wise, when > any questions arise if there will be interest at all. > > For a basic introduction to its syntax and some possibilities, look at > the explanations inside the example below, or ask me directly. Here is > an example with approx 100 lines of actual code  (see also an animated > .GIF in the Attachment): > > https://github.com/solidboredom/constructive/blob/main/examples/mount-demo.scad > > there is also another Example at: > > https://github.com/solidboredom/constructive/blob/main/examples/pulley-demo.scad > > There are many more features useful for complex models, like its own > minimalistic type-subsystem, > > basic inheritance of construction parts (still needs improvement), or > inverse transformations like in : > > g(X(10),Y(15),turnXY(45),X(30)) > >     g(backwards([X(10),Y(15),turnXY(45),X(30)]) > >         box(10); > > Try it! i hope you will find it as useful as i do. > > Peter > > > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org
L
LenStruttmann
Mon, Jun 7, 2021 1:35 AM

I could not get the demos to work in OpenSCAD 2021.01

Loaded design
'/home/len/Downloads/constructive-main/examples/mount-demo.scad'.
Compiling design (CSG Tree generation)...
ECHO: "Assembling: ", ["screws", "base", "mountEnds"]
WARNING: cylinder(h=0, ...) in file constructive-compiled.scad, line 1915

...which confuses me since constructive-compiled.scad only has 1894 lines.

--
Sent from: http://forum.openscad.org/

I could not get the demos to work in OpenSCAD 2021.01 Loaded design '/home/len/Downloads/constructive-main/examples/mount-demo.scad'. Compiling design (CSG Tree generation)... ECHO: "Assembling: ", ["screws", "base", "mountEnds"] WARNING: cylinder(h=0, ...) in file constructive-compiled.scad, line 1915 ...which confuses me since constructive-compiled.scad only has 1894 lines. -- Sent from: http://forum.openscad.org/
P
pproj@posteo.de
Mon, Jun 7, 2021 10:05 AM

Hello Len,
Thanks for checking it out, i am using a much newer openscad 2021.04.21 ,
Perhaps it was a bug in openscad. i will install the 2021.01 to
investigate and write a bit later.
On 07.06.21 03:35, LenStruttmann wrote:

I could not get the demos to work in OpenSCAD 2021.01

Loaded design
'/home/len/Downloads/constructive-main/examples/mount-demo.scad'.
Compiling design (CSG Tree generation)...
ECHO: "Assembling: ", ["screws", "base", "mountEnds"]
WARNING: cylinder(h=0, ...) in file constructive-compiled.scad, line 1915

...which confuses me since constructive-compiled.scad only has 1894
lines.

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

Hello Len, Thanks for checking it out, i am using a much newer openscad 2021.04.21 , Perhaps it was a bug in openscad. i will install the 2021.01 to investigate and write a bit later. On 07.06.21 03:35, LenStruttmann wrote: > I could not get the demos to work in OpenSCAD 2021.01 > > Loaded design > '/home/len/Downloads/constructive-main/examples/mount-demo.scad'. > Compiling design (CSG Tree generation)... > ECHO: "Assembling: ", ["screws", "base", "mountEnds"] > WARNING: cylinder(h=0, ...) in file constructive-compiled.scad, line 1915 > > ...which confuses me since constructive-compiled.scad only has 1894 > lines. > ------------------------------------------------------------------------ > 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 10:55 AM

Is it a bug in Openscad?

I have tried it now with 2021.01 (git 41f58fe) (Appimage build) and it
works without any warnings on my UBUNTU 20.04.
what OS are you on?

The only other thing which comes to my mind: could it be a possible
character encoding issue when using Windows vs Linux?
 IMHO this could occur if one downloads library files from Github
individually or by copy pasting, instead of downloading them all at once
as a zip.

I have attached a screenshot of how to do download as zip from Github.
You will probably not need it, but i find Github pages very confusing
personally, so perhaps it will help somebody anyway.

could you send me the errors/warnings output you get?
and if possible try with a different, but recent openscad version from
https://openscad.org/downloads.html
they only have a fairly recent ones on the download page, so i would
expect them all to work

this would help me a lot a lot to locate the cause.

Peter

On 07.06.21 12:05, pproj@posteo.de wrote:

Hello Len,
Thanks for checking it out, i am using a much newer openscad 2021.04.21 ,
Perhaps it was a bug in openscad. i will install the 2021.01 to
investigate and write a bit later.
On 07.06.21 03:35, LenStruttmann wrote:

I could not get the demos to work in OpenSCAD 2021.01

Loaded design
'/home/len/Downloads/constructive-main/examples/mount-demo.scad'.
Compiling design (CSG Tree generation)...
ECHO: "Assembling: ", ["screws", "base", "mountEnds"]
WARNING: cylinder(h=0, ...) in file constructive-compiled.scad, line
1915

...which confuses me since constructive-compiled.scad only has 1894
lines.

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


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

Is it a bug in Openscad? I have tried it now with 2021.01 (git 41f58fe) (Appimage build) and it works without any warnings on my UBUNTU 20.04. what OS are you on? The only other thing which comes to my mind: could it be a possible character encoding issue when using Windows vs Linux?  IMHO this could occur if one downloads library files from Github individually or by copy pasting, instead of downloading them all at once as a zip. I have attached a screenshot of how to do download as zip from Github. You will probably not need it, but i find Github pages very confusing personally, so perhaps it will help somebody anyway. could you send me the errors/warnings output you get? and if possible try with a different, but recent openscad version from https://openscad.org/downloads.html they only have a fairly recent ones on the download page, so i would expect them all to work this would help me a lot a lot to locate the cause. Peter On 07.06.21 12:05, pproj@posteo.de wrote: > Hello Len, > Thanks for checking it out, i am using a much newer openscad 2021.04.21 , > Perhaps it was a bug in openscad. i will install the 2021.01 to > investigate and write a bit later. > On 07.06.21 03:35, LenStruttmann wrote: >> I could not get the demos to work in OpenSCAD 2021.01 >> >> Loaded design >> '/home/len/Downloads/constructive-main/examples/mount-demo.scad'. >> Compiling design (CSG Tree generation)... >> ECHO: "Assembling: ", ["screws", "base", "mountEnds"] >> WARNING: cylinder(h=0, ...) in file constructive-compiled.scad, line >> 1915 >> >> ...which confuses me since constructive-compiled.scad only has 1894 >> lines. >> ------------------------------------------------------------------------ >> 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 > > > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org
TP
Torsten Paul
Mon, Jun 7, 2021 11:34 AM

I've just tried the mount-demo.scad with the latest nightly
build OpenSCAD Version: 2021.05.31.nightly (git 1a9430f) and
I'm not seeing any warnings or errors and the model seems to
be fine at first glance comparing against the pictures posted
earlier.

ciao,
Torsten.

I've just tried the mount-demo.scad with the latest nightly build OpenSCAD Version: 2021.05.31.nightly (git 1a9430f) and I'm not seeing any warnings or errors and the model seems to be fine at first glance comparing against the pictures posted earlier. ciao, Torsten.
P
pproj@posteo.de
Mon, Jun 7, 2021 11:45 AM

Thanks Torsten!
do you think, it could be OS-specific behaviour at all? are you on linux
yourself?
I used to get warnings at non-exising line numbers with some of 2020
openscad versions, but with newer ones it was fixed, i beleive.

On 07.06.21 13:34, Torsten Paul wrote:

I've just tried the mount-demo.scad with the latest nightly
build OpenSCAD Version: 2021.05.31.nightly (git 1a9430f) and
I'm not seeing any warnings or errors and the model seems to
be fine at first glance comparing against the pictures posted
earlier.

ciao,
Torsten.


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

Thanks Torsten! do you think, it could be OS-specific behaviour at all? are you on linux yourself? I used to get warnings at non-exising line numbers with some of 2020 openscad versions, but with newer ones it was fixed, i beleive. On 07.06.21 13:34, Torsten Paul wrote: > I've just tried the mount-demo.scad with the latest nightly > build OpenSCAD Version: 2021.05.31.nightly (git 1a9430f) and > I'm not seeing any warnings or errors and the model seems to > be fine at first glance comparing against the pictures posted > earlier. > > ciao, > Torsten. > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org
P
pproj@posteo.de
Mon, Jun 7, 2021 1:00 PM

Jon, thanks for the nice words,
yes, you are right, i just did not want to spend much time on the
documentation/tutorials first,just to see how nobody would be really
interested. this kind of happened before to me.

the library itself i use myself a lot, so the effort spent on it helps
me in my other projects, but the tutorials i did not need pesonally, so far.
But now the reception is hopefully positive  there is will be a reason
for it.
i just hope there will be enough interest in the community
Peter

On 07.06.21 01:49, jon wrote:

Peter:

I took a quick look at the mount demo.  It is interesting, but also
overwhelming.  A step-by-step tutorial, that adds new features and
concepts one-at-a-time might be easier for me to digest.  Perhaps
others will find it easier than I do.   You've been sitting with it
for years, so it is all familiar to you.

I am impressed by your creativity and determination.

Jon

On 6/6/2021 7:45 AM, pproj@posteo.de wrote:

Hello,

the Constructive Library (about 1900 lines of Code) i just have
released https://github.com/solidboredom/constructive,

takes a different approach to OpenScad Syntax: you rarely need
difference(), for(), intersection() or their one-to-one equivalents,
a for() block  In the library's own dialect might look like:

pieces(4)  X(every(35)) turnXY(vals(10,25,-15,40))  cube(10);

It is all valid OpenScad, you do need any additional programs, just
the OpenScad and the constructive-compiled.scad file.

The Constuctive-Syntax tries to align more with mechanical
construction of parts and less with mathematical concepts like
arrays, vectors and functions. (but they are heavily used behind the
scenes). So it aims to be more concise and fluent for mechanical
parts than vanilla OpenScad. It allows you to make holes from Modules
and really good deal more.

For about 5 years now i have been working on it and using it a lot.
Now I really hope others will find it just as useful, as i do. I am
barely writing any vanilla OpenScad any more.

If somebody likes the Ideas, you are welcome to join work on it. It
is released under GPL2, and I appreciate
additions/discussions/collaboration. Perhaps, some Ideas can be used
by the OpenScad itself.

There is barely any documentation yet. I will add it topic-wise, when
any questions arise if there will be interest at all.

For a basic introduction to its syntax and some possibilities, look
at the explanations inside the example below, or ask me directly.
Here is an example with approx 100 lines of actual code  (see also an
animated .GIF in the Attachment):

https://github.com/solidboredom/constructive/blob/main/examples/mount-demo.scad

there is also another Example at:

https://github.com/solidboredom/constructive/blob/main/examples/pulley-demo.scad

There are many more features useful for complex models, like its own
minimalistic type-subsystem,

basic inheritance of construction parts (still needs improvement), or
inverse transformations like in :

g(X(10),Y(15),turnXY(45),X(30))

    g(backwards([X(10),Y(15),turnXY(45),X(30)])

        box(10);

Try it! i hope you will find it as useful as i do.

Peter


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

Jon, thanks for the nice words, yes, you are right, i just did not want to spend much time on the documentation/tutorials first,just to see how nobody would be really interested. this kind of happened before to me. the library itself i use myself a lot, so the effort spent on it helps me in my other projects, but the tutorials i did not need pesonally, so far. But now the reception is hopefully positive  there is will be a reason for it. i just hope there will be enough interest in the community Peter On 07.06.21 01:49, jon wrote: > > Peter: > > I took a quick look at the mount demo.  It is interesting, but also > overwhelming.  A step-by-step tutorial, that adds new features and > concepts one-at-a-time might be easier for me to digest.  Perhaps > others will find it easier than I do.   You've been sitting with it > for years, so it is all familiar to you. > > I am impressed by your creativity and determination. > > Jon > > > On 6/6/2021 7:45 AM, pproj@posteo.de wrote: >> >> Hello, >> >> the Constructive Library (about 1900 lines of Code) i just have >> released https://github.com/solidboredom/constructive, >> >> takes a different approach to OpenScad Syntax: you rarely need >> difference(), for(), intersection() or their one-to-one equivalents, >> a for() block  In the library's own dialect might look like: >> >> pieces(4)  X(every(35)) turnXY(vals(10,25,-15,40))  cube(10); >> >> It is all valid OpenScad, you do need any additional programs, just >> the OpenScad and the constructive-compiled.scad file. >> >> The Constuctive-Syntax tries to align more with mechanical >> construction of parts and less with mathematical concepts like >> arrays, vectors and functions. (but they are heavily used behind the >> scenes). So it aims to be more concise and fluent for mechanical >> parts than vanilla OpenScad. It allows you to make holes from Modules >> and really good deal more. >> >> For about 5 years now i have been working on it and using it a lot. >> Now I really hope others will find it just as useful, as i do. I am >> barely writing any vanilla OpenScad any more. >> >> If somebody likes the Ideas, you are welcome to join work on it. It >> is released under GPL2, and I appreciate >> additions/discussions/collaboration. Perhaps, some Ideas can be used >> by the OpenScad itself. >> >> There is barely any documentation yet. I will add it topic-wise, when >> any questions arise if there will be interest at all. >> >> For a basic introduction to its syntax and some possibilities, look >> at the explanations inside the example below, or ask me directly. >> Here is an example with approx 100 lines of actual code  (see also an >> animated .GIF in the Attachment): >> >> https://github.com/solidboredom/constructive/blob/main/examples/mount-demo.scad >> >> there is also another Example at: >> >> https://github.com/solidboredom/constructive/blob/main/examples/pulley-demo.scad >> >> There are many more features useful for complex models, like its own >> minimalistic type-subsystem, >> >> basic inheritance of construction parts (still needs improvement), or >> inverse transformations like in : >> >> g(X(10),Y(15),turnXY(45),X(30)) >> >>     g(backwards([X(10),Y(15),turnXY(45),X(30)]) >> >>         box(10); >> >> Try it! i hope you will find it as useful as i do. >> >> Peter >> >> >> >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email todiscuss-leave@lists.openscad.org
L
LenStruttmann
Mon, Jun 7, 2021 3:26 PM

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/

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: http://forum.openscad.org/

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/ 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: http://forum.openscad.org/
L
LenStruttmann
Mon, Jun 7, 2021 4:12 PM

Found it:

In Preferences -> Advanced -> OpenSCAD Language Features

...I had both of these checked.
http://forum.openscad.org/file/t3150/Screenshot_from_2021-06-07_11-09-55.png

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

--
Sent from: http://forum.openscad.org/

Found it: In Preferences -> Advanced -> OpenSCAD Language Features ...I had both of these checked. <http://forum.openscad.org/file/t3150/Screenshot_from_2021-06-07_11-09-55.png> Since you routinely pass h=0 to cylinder(), my OpenSCAD complained loudly. -- Sent from: http://forum.openscad.org/