[OpenSCAD] Any thoughts on using units other than millimeters?
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
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.
> OpenSCAD mailing list
> Discuss at lists.openscad.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Discuss