Xiaobin Wu wrote:
> During one of my research projects, I needed to quickly create the> ray-tracing images of subdivision surfaces. What I did is to subdivide> the object offline and import the subdivided surface into Pov-Ray,> which of course led to huge pov-ray files.> > I found it extremely convenient to have the mesh2 object directly support> the subdivision algorithms. So I and another student (Jianhua Fan) spent> some> time to expand the mesh2 object so that it can be directly used to> generate smooth subdivision surfaces.> > The new syntax would be:> mesh2 {> subdivision {> substeps n // n= steps of subdivision> flatshading // optional flag to set flat shading> }> > vertex_list ...> ...> }> > Anyway, the examples and new executable can be downloaded from> > http://www.cise.ufl.edu/~xwu/Pov-Sub
The source would be important to evaluate your patch. Concerning the
syntax - 'flatshading' is a bad choice for the keyword - a simple
'smooth' would be more descriptive and already exists from heightfields.
Christoph
--
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 01 May. 2004 _____./\/^>_*_<^\/\.______