|
![](/i/fill.gif) |
On 19 Nov 2001 09:02:19 -0500, Warp wrote:
> paul jones <pdj### [at] psu edu> wrote:
>: I am having difficulty filling a closed mesh (made in Rhino v1.1,
>: exported as "pov-mesh") with media of any kind. Am I missing something?
>
> Meshes have no inside, which means they have no interior, which means
> they can't have media.
This is one of those oft-misunderstood things. Patch objects do have an
interior, because none of the interior effects (media, IOR, attenuation, etc.)
care about whether a point is inside or outside the object. I've demonstrated
this before, but just for the heck of it...
#include "textures.inc"
plane {-z,-5
pigment {Hex_Tiles_Ptrn() color_map {[.1 rgb 1][.1 rgb 0]} rotate 90*x
scale .5}
finish {ambient 1}
}
union {
bicubic_patch {type 1 u_steps 3 v_steps 3
<-1,-1,0> <-1,-.5,0> <-1,.5,0> <-1,1,0>
<-.5,-1,0> <-.5,-.5,.5> <-.5,.5,.5> <-.5,1,0>
<.5,-1,0> <.5,-.5,.5> <.5,.5,.5> <.5,1,0>
<1,-1,0> <1,-.5,0> <1,.5,0> <1,1,0>
}
bicubic_patch {type 1 u_steps 3 v_steps 3
<-1,-1,0> <-1,-.5,0> <-1,.5,0> <-1,1,0>
<-.5,-1,0> <-.5,-.5,-.5> <-.5,.5,-.5> <-.5,1,0>
<.5,-1,0> <.5,-.5,-.5> <.5,.5,-.5> <.5,1,0>
<1,-1,0> <1,-.5,0> <1,.5,0> <1,1,0>
}
pigment {color rgbt 1}
interior {ior 1.5}
}
camera {location -5*z look_at 0}
--
plane{-z,-3normal{crackle scale.2#local a=5;#while(a)warp{repeat x flip x}rotate
z*60#local a=a-1;#end translate-9*x}pigment{rgb 1}}light_source{-9red 1rotate 60
*z}light_source{-9rgb y rotate-z*60}light_source{9-z*18rgb z}text{ttf"arial.ttf"
"RP".01,0translate-<.6,.4,.02>pigment{bozo}}light_source{-z*3rgb-.2}//Ron Parker
Post a reply to this message
|
![](/i/fill.gif) |