|
|
"And" <49341109@ntnu.edu.tw> wrote:
>
> I'm not sure what causes this, but I drew some spheres in addition, it fits the
> terminals of the curve. Or you actually drew three dimension coordinates but you
> output just two dimension coordinate data?
I don't understand.
Two spheres coincide with coordinates.
The third sphere doesn't coincide.
#version 3.7;
#include "shapes.inc"
#include "functions.inc"
global_settings {
assumed_gamma 1.000000
}
sky_sphere {
pigment {rgb<0.050, 0.050, 0.050>}
}
#declare Default_texture = texture{pigment {rgb 0.8}}
#declare Material = texture{
pigment{color rgbft <0.0485,0.8000,0.0262,0.0000,0.0000>}
}
#declare Material_001 = texture{
pigment{color rgbft <0.8000,0.0068,0.1947,0.0000,0.0000>}
}
#declare Material_002 = texture{
pigment{color rgbft <0.0107,0.0259,0.8000,0.0000,0.0000>}
}
#declare Material_003 = texture{
pigment{color rgbft <0.0227,0.8000,0.0175,0.0000,0.0000>}
}
#declare Material_004 = texture{
pigment{color rgbft <0.8000,0.0196,0.0155,0.0000,0.0000>}
}
#declare data_Cylinder_shape_002_ob = cylinder { <0,0,1>,<0,0,-1>,1
}
#declare data_Cylinder_shape_001_ob = cylinder { <0,0,1>,<0,0,-1>,1
}
#declare data_Cylinder_shape_ob = cylinder { <0,0,1>,<0,0,-1>,1
}
#declare data_Sphere_shape_002_ob = sphere { 0,1
}
#declare data_Sphere_shape_001_ob = sphere { 0,1
}
#declare data_Sphere_shape_ob = sphere { 0,1
}
union {
}
#declare BezierCurve_bezier_points = array[8]{
<-1,0><-0.5,0.5><0,0><1,0>
<1,0><2,0><1.025,2.45><2.025,2.45>
}
#include "bezier_spheresweep.inc"
#declare data_BezierCurve_ob = object{Shape_Bezierpoints_Sphere_Sweep(20,
BezierCurve_bezier_points, 0.02)
texture {Material_001}
}
object {data_Cylinder_shape_002_ob
texture {Material_004}
matrix <-0.000000, -0.035411, 0.000000, 0.000000, -0.000000, -0.035411,
17.995750, -0.000001, 0.000000, 0.000000, 0.000000, 0.000000>
}
object {data_Cylinder_shape_001_ob
texture {Material_003}
matrix <0.035411, 0.000000, 0.000000, 0.000000, 0.035411, 0.000000,
0.000000, 0.000000, 19.020086, 0.000000, 0.000000, 0.000000>
}
object {data_Cylinder_shape_ob
texture {Material_002}
matrix <0.035411, 0.000000, 0.000000, 0.000000, -0.000000, -0.035411,
0.000000, 13.345572, -0.000001, 0.000000, 0.000000, 0.000000>
}
object {data_Sphere_shape_002_ob
texture {Material}
matrix <0.203845, 0.000000, 0.000000, 0.000000, -0.000000, -0.203845,
0.000000, 0.203845, -0.000000, 2.025354, 1.852481, -2.450227>
}
object {data_Sphere_shape_001_ob
texture {Material}
matrix <0.203845, 0.000000, 0.000000, 0.000000, -0.000000, -0.203845,
0.000000, 0.203845, -0.000000, 1.000000, 0.000000, 0.000000>
}
object {data_Sphere_shape_ob
texture {Material}
matrix <0.203845, 0.000000, 0.000000, 0.000000, -0.000000, -0.203845,
0.000000, 0.203845, -0.000000, -1.000000, 0.000000, 0.000000>
}
object {data_BezierCurve_ob
texture {Material_001}
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_sweep.jpg' (188 KB)
Preview of image 'bezier_sweep.jpg'
|
|