POV-Ray : Newsgroups : povray.general : Impossible stl file conversion! : Re: Impossible stl file conversion! Server Time
15 Sep 2025 09:55:05 EDT (-0400)
  Re: Impossible stl file conversion!  
From: ingo
Date: 11 Sep 2025 04:05:00
Message: <web.68c28199a068c28c17bac71e8ffb8ce3@news.povray.org>
"Bald Eagle" <cre### [at] netscapenet> wrote:

> #declare MyObject = mesh2 {stl "MyObject.stl" make_arrays ...}

#declare MyStlObject = mesh2{stl "MyObject.stl"}
#declare MyObjObject = mesh2{obj "MyObject.obj"}

that's quite elegant, to extract from a file format, what POV-Ray understands
based on mesh2.

I'd separate extracting array into something like:

mesh2array(mySTLObject, verticesname, normalsname, facesname, uvname,
vertexcoulours etc..)

could result in a bunch of arrays declared with the given names. It should take
mesh & mesh2.

and/or

mesharrays{obj "MyObjObject.obj"} and extract everything the file supports into
arrays, even what's not understood by mesh2, like boning, face normals or non
triangle faces.


ingo


Post a reply to this message

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