|
|
tiocfaidh schrieb:
> could you show me a small example, im trying to play around with the variables
> but its not working, get a huge shape
Make sure to use vectors for A and B.
For instance:
#local A = <0,0,0>;
#local B = <0,2,0>;
#local Radius = 0.8;
#local Thickness = 0.2;
difference {
#local Dir = vnormalize(B-A);
cylinder { A,B,Radius }
cylinder { A-Dir*0.01,B+Dir*0.01,Radius-Thickness }
}
or, with all the math already worked out and hard-coded:
difference {
cylinder { <0,0,0>, <0,2,0>, 0.8 }
cylinder { <0,-0.02,0>, <0,2.02,0>, 0.6 }
}
Post a reply to this message
|
|