POV-Ray : Newsgroups : povray.advanced-users : Bicubic patch macro : Re: Bicubic patch macro Server Time
19 Oct 2024 09:06:11 EDT (-0400)
  Re: Bicubic patch macro  
From: Chris Colefax
Date: 11 Feb 2002 03:44:41
Message: <3c678479@news.povray.org>
Warp <war### [at] tagpovrayorg> wrote:
>   Colefax's PCM macros can place objects on the surface of a bicubic
patch.
> Thus it should be rather easy to adapt it to calculate vertex point on the
> surface of the bicubic patch.

Funnily enough, the pcm.mcr file contains a macro called
PCM_get_patch_point, that takes an array of 16 bezier-patch control points
and a U, V coordinate, and returns a point on the patch's surface
accordingly.  There's also a macro that will convert the control points into
a grid of surface points of arbitrary resolution, and (of course!) the
source for all these calculations is freely available.


Post a reply to this message

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