[OpenSCAD] Any thoughts on using units other than millimeters?

nop head nop.head at gmail.com
Mon May 20 16:27:28 EDT 2019

The problem is STL uses floats, so when converting from double distinct
points can merge and create degenerate triangles and self intersections.
Also OpenSCAD snaps to a grid coarser than floats and the same problems
happen there.

On Mon, 20 May 2019 at 19:44, Frank van der Hulst <drifter.frank at gmail.com>

> OpenSCAD gets a bit flaky down in such small number scales, with floating
>> point conversion losing accuracy.
> Double precision (64-bit) floating point has 53 bits (about 16 decimal
> digits) in the significand, and loses accuracy when adding a small number
> to a large number (or subtracting). However, this loss of accuracy is
> essentially independent of the absolute size of the number, at least until
> you get down to 10^-292 or so. So, unless you're doing astronomy or
> microscopy, multiplying or dividing all numbers by 25.4 won't have any
> noticeable effect on accuracy.
> Frank
> _______________________________________________
> OpenSCAD mailing list
> Discuss at lists.openscad.org
> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscad.org/pipermail/discuss_lists.openscad.org/attachments/20190520/c37a4f31/attachment.html>

More information about the Discuss mailing list