POV-Ray : Newsgroups : povray.general : Interior for bicubic_patches ? : Re: Interior for bicubic_patches ? Server Time
2 Aug 2024 02:21:24 EDT (-0400)
  Re: Interior for bicubic_patches ?  
From: Sascha Ledinsky
Date: 30 Jan 2005 16:06:51
Message: <41fd4c6b$1@news.povray.org>
Manuel Kasten <kas### [at] gmxde> wrote:
 > If not, is there an easy way to convert a bunch of bicubic patches
 > into a (smooth) mesh? If so, how?

Here's some (quite optimized) code that tesselates a bezier patch and 
creates a (smooth) mesh2 object.
It does not yet support u/v mapping, but it should be trivial to add 
that. You can modify it to create a single mesh out of multiple bezier 
patches...

I've attached the macro, with a little test scene:

regards
-Sascha


Post a reply to this message


Attachments:
Download 'us-ascii' (4 KB)

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