discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

why does this script preview so differently from the render?

JB
Jon Bondy
Sat, Sep 19, 2026 1:20 PM

I now use a Template to create all of the default values for all of my
programs; it would be trivial for me to add $convexity to my Template to
achieve what I desire.  Well.  As trivial as editing JSON by hand.

Having a place in OpenSCAD (inside Preferences) to set these default
values ($fn, $convexity) and even other user-defined values (like inches
[25.4], eps [0.01], etc) would be even better, since I never change
these values in my programs.  Of course, then my programs would not work
properly when sent to others.  But if these default values were stored
inside my version of OpenSCAD and automatically inserted at the top of
every program I created, then I could share my programs with others.

I just re-invented the default Template, the Template that is
automatically inserted at the top of every new program.  I still like
the idea.

Jon

On 9/18/2026 9:08 PM, Jordan Brown via Discuss wrote:

On 9/18/2026 5:16 PM, Michael Marx (spin) via Discuss wrote:

Increasing the default has been raised a number of times, but no
ideal number comes up.

My favorite concept is to add a variable $convexity, which supplies
the default convexity for all consumers in its scope.  It would be as
if every built-in module that accepts a "convexity" argument was
declared with the parameter  "convexity=$convexity". $convexity could
default to 1, or it could default to some larger number; the key fact
is that the program could readily override that default.  Having
$convexity default to 1 would be 99.9% compatible (excluding only
existing programs that use $convexity for their own purposes), and a
program that wants to make its life simple could set it to 10 at the
top level.  Having $convexity default to 10 would make life easier in
most cases, but would be slightly incompatible; a program that wants
to return to 99.9% compatibility could explicitly set it to 1 at the
top level.


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

--
This email has been checked for viruses by AVG antivirus software.
www.avg.com

I now use a Template to create all of the default values for all of my programs; it would be trivial for me to add $convexity to my Template to achieve what I desire.  Well.  As trivial as editing JSON by hand. Having a place in OpenSCAD (inside Preferences) to set these default values ($fn, $convexity) and even other user-defined values (like inches [25.4], eps [0.01], etc) would be even better, since I never change these values in my programs.  Of course, then my programs would not work properly when sent to others.  But if these default values were stored inside my version of OpenSCAD and automatically inserted at the top of every program I created, then I could share my programs with others. I just re-invented the default Template, the Template that is automatically inserted at the top of every new program.  I still like the idea. Jon On 9/18/2026 9:08 PM, Jordan Brown via Discuss wrote: > On 9/18/2026 5:16 PM, Michael Marx (spin) via Discuss wrote: >> >> Increasing the default has been raised a number of times, but no >> ideal number comes up. >> > > My favorite concept is to add a variable $convexity, which supplies > the default convexity for all consumers in its scope.  It would be as > if every built-in module that accepts a "convexity" argument was > declared with the parameter  "convexity=$convexity". $convexity could > default to 1, or it could default to some larger number; the key fact > is that the program could readily override that default.  Having > $convexity default to 1 would be 99.9% compatible (excluding only > existing programs that use $convexity for their own purposes), and a > program that wants to make its life simple could set it to 10 at the > top level.  Having $convexity default to 10 would make life easier in > most cases, but would be slightly incompatible; a program that wants > to return to 99.9% compatibility could explicitly set it to 1 at the > top level. > > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email todiscuss-leave@lists.openscad.org -- This email has been checked for viruses by AVG antivirus software. www.avg.com