POV-Ray : Newsgroups : povray.general : Can I put a bicubic patch into a circle? Server Time
5 Nov 2024 03:15:52 EST (-0500)
  Can I put a bicubic patch into a circle? (Message 1 to 3 of 3)  
From: neodasa
Subject: Can I put a bicubic patch into a circle?
Date: 16 May 2009 14:10:01
Message: <web.4a0f0055caf331cc4f15b2600@news.povray.org>
Can I make a bicubic patch form into a circle with a math formula?
I know I can manually use the control points to do so, but that's too
labor-intensive.  Can it be performed with a math formula for a circle?

Thanks.


Post a reply to this message

From: Tim Attwood
Subject: Re: Can I put a bicubic patch into a circle?
Date: 16 May 2009 23:05:45
Message: <4a0f7f09$1@news.povray.org>
> Can I make a bicubic patch form into a circle with a math formula?
> I know I can manually use the control points to do so, but that's too
> labor-intensive.  Can it be performed with a math formula for a circle?

Sure, you could do that. Or just use vrotate, that's easier.

Here's a macro with some fudge factors thrown in

#macro bicubic_disc(outer_radus, outer_height, inner_radius, inner_height)
   #local o = <outer_radus, outer_height, 0>;
   #local o2 = <outer_radus*1.15, outer_height, 0>;
   #local i = <inner_radius, inner_height*2, 0>;
   bicubic_patch { type 0 u_steps 3 v_steps 3
      vrotate(o,225*y),vrotate(o2,255*y),vrotate(o2,285*y), 
vrotate(o,315*y),
      vrotate(o2,195*y),vrotate(i,225*y),vrotate(i,315*y), 
vrotate(o2,345*y),
      vrotate(o2,165*y),vrotate(i,135*y),vrotate(i,45*y), vrotate(o2,15*y),
      vrotate(o,135*y),vrotate(o2,105*y),vrotate(o2,75*y), vrotate(o,45*y)}
#end


Post a reply to this message

From: clipka
Subject: Re: Can I put a bicubic patch into a circle?
Date: 17 May 2009 13:50:00
Message: <web.4a104d606b626280f0683cea0@news.povray.org>
"neodasa" <klu### [at] nycrrcom> wrote:
> Can I make a bicubic patch form into a circle with a math formula?
> I know I can manually use the control points to do so, but that's too
> labor-intensive.  Can it be performed with a math formula for a circle?

AFAIK you can shape bicubic patches only into an *approximation* of a circle.
Which doesn't make it easier to come up with a nice clean math formula...


Post a reply to this message

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