|
|
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
|
|