|
|
Ken wrote:
>
> Could you post the coordinates for the shape you are
> trying to describe ? It would help us if we know what
> you are working with.
>
> Ken Tyler
They are five points in a custom circle.... only at different positions
in Y axis...
//Spider
---8<--- cut here ---8<---
#declare rad1 = 5;
#declare rad2 = 10;
#declare top = <0,20,0>;
#declare middle = <0,15,0>;
#declare low = <0,0,0>; //0,-5,0
#declare thick = 0.1251;
#declare points = 5;
#declare angles = 2*pi / points; // 2*pi = one circle, the angle
between the points
#declare a = ((18)*(pi/180)); //18 degrees to radians. This is so it
will only be one point up. can also be used for rotation/animation...
#declare b = ((18)*(pi/180));
#declare c = ((18)*(pi/180));
//Lets make a point of the calculations... No Y value, that's up... it
stretches in X and Z
#declare top1 = (rad1) *<cos(a+ 1*angles), 0, sin(a+ 1*angles)>+top;
#declare top2 = (rad1) *<cos(a+ 2*angles), 0, sin(a+ 2*angles)>+top;
#declare top3 = (rad1) *<cos(a+ 3*angles), 0, sin(a+ 3*angles)>+top;
#declare top4 = (rad1) *<cos(a+ 4*angles), 0, sin(a+ 4*angles)>+top;
#declare top5 = (rad1) *<cos(a+ 5*angles), 0, sin(a+ 5*angles)>+top;
#declare mid1 = (rad2) *<cos(b+ 1*angles), 0, sin(a+ 1*angles)>+middle;
#declare mid2 = (rad2) *<cos(b+ 2*angles), 0, sin(a+ 2*angles)>+middle;
#declare mid3 = (rad2) *<cos(b+ 3*angles), 0, sin(a+ 3*angles)>+middle;
#declare mid4 = (rad2) *<cos(b+ 4*angles), 0, sin(a+ 4*angles)>+middle;
#declare mid5 = (rad2) *<cos(b+ 5*angles), 0, sin(a+ 5*angles)>+middle;
#declare low1 = (rad1) *<cos(c+ 1*angles), 0, sin(a+ 1*angles)>+low;
#declare low2 = (rad1) *<cos(c+ 2*angles), 0, sin(a+ 2*angles)>+low;
#declare low3 = (rad1) *<cos(c+ 3*angles), 0, sin(a+ 3*angles)>+low;
#declare low4 = (rad1) *<cos(c+ 4*angles), 0, sin(a+ 4*angles)>+low;
#declare low5 = (rad1) *<cos(c+ 5*angles), 0, sin(a+ 5*angles)>+low;
Post a reply to this message
|
|