POV-Ray : Newsgroups : povray.off-topic : STL binary floating data. : Re: STL binary floating data. Server Time
23 Feb 2024 01:34:06 EST (-0500)
  Re: STL binary floating data.  
From: jr
Date: 9 Mar 2020 13:15:01
Message: <web.5e667876517dbb51451952ca0@news.povray.org>

"GioSeregni" <gms### [at] hotmailcom> wrote:
> HI all.
> One of my interests is export shapes during my work with IntelliCAD (but Autocad
> is the same), using the lisp language at runtime.
> I write *.pov, *.inc and *.stl also.
> Unfortunately from cad i can only write STL with the heavy ASCII format, because
> I have a problem with the lisp.
> Autocad uses double precision float numbers. STL binary want single precision
> floats. But the AutoLISP (seems that) does not allow me this conversion.
> Allow me to ask here, maybe some experienced 3D programmer knows a solution?
> Thanks in advanced!
> G.

STL to POV-Ray conversion has been discussed before, people seem to use various

not being an "experienced 3D programmer" (but interested in file format
conversion(s)), I'd be tempted to output ASCII as now, then use a small (Tcl[*])
script to convert to binary STL.

regards, jr.

[*] guessing that, coming from LISP, you'll appreciate Tcl's list handling.

Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.