POV-Ray : Newsgroups : povray.newusers : Fill a space between objects? : Re: Fill a space between objects? Server Time
30 Jul 2024 02:25:26 EDT (-0400)
  Re: Fill a space between objects?  
From: Tom Melly
Date: 1 Nov 2004 18:29:14
Message: <4186c6ca@news.povray.org>
"brandon" <moc.tibroni@drut backwards> wrote in message
news:web.41857bd38ec893ad70f077560@news.povray.org...
> Is there a way to fill a void created by objects?
>

Probably, but as the man said, "you don't want to get there from here".

The problem is that your void is really no different from any other unfilled
space in your scene, and your spline is no help in defining it. It's not
objectively contained by anything.

IMHO you would be better off using basic primitives and CSG to generate your
shape.

For example...

camera {
  location  <0.0, 0, -6.0>
  right     x*image_width/image_height
  look_at   <0.0, 0.0,  0.0>
}


light_source {
  <0, 0, 0>            // light's position (translated below)
  color rgb <1, 1, 1>  // light's color
  translate <-30, 30, -30>
}

// ----------------------------------------


#declare Blade =
difference{
 intersection{
  union{
   cylinder{z*-0.1,z*0.1,1 scale<2.5,1,1>}
   cylinder{z*-0.1,z*0.1,1 scale<2.6,1.1,0.95> pigment{Red}}
  }
  box{<0,0,-0.2>,<-3,1.1,0.2>}
 }
 cylinder{z*-0.2,z*0.2, 1 scale<2.5,0.5,5> translate<-2.75,0,0>}
 cylinder{z*-0.2,z*0.2, 1 scale<2.5,0.5,5> translate<-2.75,0,0> rotate
z*270}
}

#declare Shiriken =
union{
#declare N=0;
#while(N<360)
 object{
  Blade
  rotate z*N
  pigment{Blue}
 }

 #declare N=N+90;
#end
}

object{Shiriken}


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.