|
![](/i/fill.gif) |
"LanuHum" <Lan### [at] yandex ru> 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)
}
Post a reply to this message
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
"And" <49341109@ntnu.edu.tw> wrote:
> "LanuHum" <Lan### [at] yandex ru> 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
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
"And" <49341109@ntnu.edu.tw> wrote:
> "LanuHum" <Lan### [at] yandex ru> wrote:
> > One wish:
> > If L < (2 * R):
> > sphere transform.
> >
> > It is possible for you?
>
> Em... I don't understand what's your meaning.
#version 3.7;
#include "functions.inc"
global_settings {
assumed_gamma 1.000000
max_trace_level 3
}
sky_sphere {
pigment {rgb<0.050, 0.050, 0.050>}
}
#declare Default_texture = texture{pigment {rgb 0.8}}
#include "bezier_spheresweep.inc"
#declare BezierCurve_pts = array[16]{
<-1,0,0.0000><-0.6286,0,0.0000><-0.1439,0,0.0000><-0.04874,0,0.0000>
<-0.04874,0,0.0000><-0.02971,0,0.0000><-0.01903,0,0.0000><0,0,0.0000>
<0,0,0.0000><0.01903,0,0.0000><0.02971,0,0.0000><0.04874,0,0.0000>
<0.04874,0,0.0000><0.1439,0,0.0000><0.6286,0,0.0000><1,0,0.0000>
}
#declare BezierCurve_rs = array[16]{
0.0860,0.0860,0.0860,0.0860
0.0860,0.1406,0.1952,0.2498
0.2498,0.1952,0.1406,0.0860
0.0860,0.0860,0.0860,0.0860
}
#declare data_BezierCurve_ob = object{Shape_Bezierpoints_Sphere_Sweep(yes,12,
BezierCurve_pts, BezierCurve_rs)
texture {Default_texture}
}
object {data_BezierCurve_ob
texture {Default_texture}
matrix <1.000000, 0.000000, 0.000000, 0.000000, -0.000000, -1.000000,
0.000000, 1.000000, -0.000000, 0.000000, 0.000000, 0.000000>
}
light_source {
<5.07,5.58,4.28>
color rgb<1, 1, 1>
fade_distance 25.0000000000
fade_power 1
}
camera {
perspective
location <0,0,0>
look_at <0,0,-1>
right <-1.7777777777777777, 0, 0>
up <0, 1, 0>
angle 49.134343
rotate <-27.098163, 46.688390, -0.903519>
translate <7.481132, 5.343666, 6.507640>
}
Post a reply to this message
Attachments:
Download 'bezier.jpg' (196 KB)
Preview of image 'bezier.jpg'
![bezier.jpg](/povray.binaries.scene-files/attachment/%3Cweb.560409c9c8a9ef087a3e03fe0%40news.povray.org%3E/bezier.jpg?ttop=441393&toff=100&preview=1)
|
![](/i/fill.gif) |