POV-Ray : Newsgroups : povray.binaries.scene-files : My bezier spline sphere sweep new version : Re: My bezier spline sphere sweep new version Server Time
25 Apr 2024 07:07:21 EDT (-0400)
  Re: My bezier spline sphere sweep new version  
From: And
Date: 21 Sep 2015 08:05:00
Message: <web.55fff147c8a9ef0865cdfd2e0@news.povray.org>
"And" <49341109@ntnu.edu.tw> wrote:
> "LanuHum" <Lan### [at] yandexru> wrote:
> > "And" <49341109@ntnu.edu.tw> wrote:
> > > As title. This time support merge and variable radii.
> >
> > Thanks! Show the .pov file to understand how to assign radius.
> > :)
>
>
> I would put a .pov file latter.
> But show you first here.
> Like this:
>
>
>
> #declare pts =
> array[4]{
> <0,0,0>,<0.3,0,0>,<0.7,0,0>,<1,0,0>
> }
>
> #declare rs =
> array[4]{
> 0.1,0.2,0.15,0.1
> }
>
>
> object{
> Shape_Bezierpoints_Sphere_Sweep(yes, 20, pts, rs)
> }


Basically each control point corresponds with one radius. Like the example, the
position at the first control point is the first radius. The second and the
third radii represent the trend. And the fourth radius represents the radius at
the fourth control point.


Post a reply to this message

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