POV-Ray : Newsgroups : povray.general : POVRay CSG to polygon based models : Re: POVRay CSG to polygon based models Server Time
2 Aug 2024 00:17:46 EDT (-0400)
  Re: POVRay CSG to polygon based models  
From: scott
Date: 24 Feb 2005 17:30:22
Message: <421e557e$1@news.povray.org>
> Second thougt was to create all the simple objects (box, sphere... )
> outside any difference{} and intersection{} blocks and use them as
> basic shape in my objs. This will need some external programm but
> souldn't be to hard to implement but can produce bad results depending on 
> how
> the component was designed.

For this you would effectively have to write a parser for the POV SDL. 
Unless you've written all the SDL with just numbers for all the coordinates 
this would be quite some work.  Compared to that, writing code to do CSG 
operations on meshes would be easy.  (It's not that hard anyway)

Maybe you could patch the POV source somehow to output the raw coordinates 
of objects to your code, then it could create meshes etc.

Sounds like quite a job whatever you decide to do.

It might be quicker to redesign all the components as meshes from scratch.


Post a reply to this message

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