"jr" <cre### [at] gmailcom> wrote:
> "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.
Thanks! If you are interested, this is my small Autolisp program.
I dont know if it works on your specific CAD without adjustments, I'm afraid
not, but the concept is this. 3DFACE ---> STL faces
WARNING all is working in a folder ... C:\CADEXT... and at the end It calls
I put it only as a guide to the code, but it will certainly have to be adapted.
A minimum of experience is needed.
Post a reply to this message
Download 'cad2stl.zip' (3 KB)