|
|
This is a good idea, but it will probably not work perfectly, because of
multiple intersections with trace (how do you ensure that you'll get all
of them?). Also, you will run into problems with sharp edges getting
rounded because a sample ray doesn't hit them directly.
I know that Polyray (another very good ray-tracer) has the ability to
convert primatives into wireframe (in fact, it also does scan-line
rendering). I think that this would be a very good thing to add to
POV-Ray, since it would facilitate non-linear transformations (among
other things).
-Nathan Kopp
Jerry Anning wrote:
>
> It should be possible to convert a POV csg to a mesh with Ron Parker's
> Superpatch. I am working on it right now, but you may be able to roll
> your own faster. The basic idea is to use object_bounds to put a box
> around the object, then iterate around that box using trace() to pick
> off points of the object, then use any suitable triangulating algo on
> the point set. If the object is complex, you may want to use additional
> planes at other angles, using the bounding box to ensure that you are
> far enough away.
>
> Jerry Anning
> cle### [at] dholcom
Post a reply to this message
|
|