POV-Ray : Newsgroups : povray.general : Conversion : Re: Conversion Server Time
31 Jul 2024 12:21:02 EDT (-0400)
  Re: Conversion  
From: andrel
Date: 24 Aug 2007 15:34:20
Message: <46CF33B7.30707@hotmail.com>
Grassblade wrote:
> "RusHHouR" <gee### [at] mailnu> wrote:
>> So... there are NO ways of converting an object consisting of several shapes
>> made in POV-Ray to .obj, .mdl, .3ds, .any-bigger-standard-type-of-mesh?
> IMO, it's possible and, at least conceptually, not too hard to convert an
> arbitrary POV object into a mesh in SDL. Of course it's likely to be
> dreadfully slow.
> The algorithm could be more or less like this:
> -manually bound the object if there is a difference or intersection
> involved;
> -find the unique sphere that passes through all the bounding box points;
> -use the geodesic dome macro that was posted a while back to find points on
> the bounding sphere. The number of points is user supplied, the bigger the
> more detailed the mesh.
> -Pick the first point on the sphere and shoot a single trace toward the
> center of the bounding sphere: if no hit ensues, proceed to next geodesic
> point; otherwise store the point returned by trace.
That only works for objects that are star convex. i.e. objects where for 
every point an outward pointing ray does not cut through the shape. It 
will never work for e.g. a Klein bottle.
> -Repeat for all points.
> You now have a cloud of points. I haven't figured out how to transform them
> in faces yet, 
When you do let me know. I need such an algorithm for many of my 
projects and so do many others. ;)
> but a possibility is to calculate the distance between
> points, if it is less than an user supplied treshold, then the two points
> form an edge.
 From experience I can tell you that that does not work.


Post a reply to this message

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