discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

eps variable used in a library, but I don't see where it is defined.

PC
Patrick Callahan
Tue, Oct 26, 2021 3:30 AM

I'm probably looking right at it, but I have nop head's library open in
Visual Studio and can't find the variable "eps" definition.  My guess is
that eps is short for epsilon. Is it?

I can find numerous references to the variable named "eps."  From an echo
statement, its value is 0.0078125. But I don't see its definition.

What am I missing?

-Pat

I'm probably looking right at it, but I have nop head's library open in Visual Studio and can't find the variable "eps" definition. My guess is that eps is short for epsilon. Is it? I can find numerous references to the variable named "eps." From an echo statement, its value is 0.0078125. But I don't see its definition. What am I missing? -Pat
NH
nop head
Tue, Oct 26, 2021 7:29 AM

It is defined in global_defs.scad
https://github.com/nophead/NopSCADlib/blob/master/global_defs.scad#L49,
which is included everywhere in my library and client code.

It is short for epsilon and is equal to 1/128, which is an exact number on
binary floating point. I use it to prevent z fighting and CSG errors with
coincident faces.

On Tue, 26 Oct 2021 at 04:31, Patrick Callahan pat.callahan1@gmail.com
wrote:

I'm probably looking right at it, but I have nop head's library open in
Visual Studio and can't find the variable "eps" definition.  My guess is
that eps is short for epsilon. Is it?

I can find numerous references to the variable named "eps."  From an echo
statement, its value is 0.0078125. But I don't see its definition.

What am I missing?

-Pat


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

It is defined in global_defs.scad <https://github.com/nophead/NopSCADlib/blob/master/global_defs.scad#L49>, which is included everywhere in my library and client code. It is short for epsilon and is equal to 1/128, which is an exact number on binary floating point. I use it to prevent z fighting and CSG errors with coincident faces. On Tue, 26 Oct 2021 at 04:31, Patrick Callahan <pat.callahan1@gmail.com> wrote: > I'm probably looking right at it, but I have nop head's library open in > Visual Studio and can't find the variable "eps" definition. My guess is > that eps is short for epsilon. Is it? > > I can find numerous references to the variable named "eps." From an echo > statement, its value is 0.0078125. But I don't see its definition. > > What am I missing? > > -Pat > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >