|
|
I want to make a pipe with any number of points, say starting point then more
than one points. These points are having different radiuses i.e. inner radius
and outer radius. I just make a macro for it with only two points.
#include "functions.inc"
#include "textures.inc"
#include "colors.inc"
camera { location <0, 400, 400> look_at <0, 0, 0> angle 15}
light_source {<10,60,-10> colour rgb 1}
light_source {<10,60,10> colour rgb 1}
light_source {<10,-60,-10> colour rgb 1}
light_source {<-10,-60,10> colour rgb 1}
#macro Pipe(p1, p2, r1, r2, r3, r4)
difference
{
cone {p1, r1, p2, r3 hollow on}
cone {p1, r2, p2, r4 } hollow off
texture{ pigment{ rgb 0.9}}
}
#end
object{
Pipe(<0, 0, 0>, <0, 30, 0>, 20, 10, 40, 20)
hollow on
}
As we know the inner part of pipe is hollow but I'm not able to make this pipe
hollow. Whats wrong in it?
Also how I modify this macro so that I can make a long pipe with different
points i.e. more that two points for it( may be with different radiuses ).
Waiting for reply.
Post a reply to this message
|
|