POV-Ray : Newsgroups : povray.newusers : Clipped_by with blobs and cylinders, what am I doing wrong? : Clipped_by with blobs and cylinders, what am I doing wrong? Server Time
5 Nov 2024 07:19:02 EST (-0500)
  Clipped_by with blobs and cylinders, what am I doing wrong?  
From: Steve
Date: 9 May 2000 13:42:29
Message: <slrn8hgj8a.cle.sjlen@zero-pps.localdomain>
Hi Povers

I've got a blob of cylinders (textured), and when I clip either in a seperate
object or inside the blob I get what I'd expect to get if the blob were
hollow which it isn't, I also get this on a seperate object that's unioned
with the blob eg:

#include "kolors.inc"

#version 3.1;

global_settings{   
                assumed_gamma 2.2
               }

camera{
       location <0,2,-5> 
       look_at <0,1,0>
      }   

box{<-50,-2,-50>,<50,-1,50> pigment{Gold} } 

light_source{ <5,10,-50> color rgb 0.7}
light_source{ <-50,100,-12> color rgb 0.7}
light_source{ <50,100,50> color rgb 0.7}

background {MidnightBlue}

#declare acount = 0;

#declare the_angle = 360/5;

#declare the_rotation = 0;

#declare Petals =

blob{
     threshold 0.025

     #while (acount < 6)

       #declare acount = acount+1;    

       cylinder{<0,-1,0>,<0,1,0>, 1, 1.5
                translate z*1
                rotate y*the_rotation
                texture{
                        pigment {Yellow} 
                        finish{ambient 0.1}
                       }                         
               }
              
       #declare the_rotation = the_rotation+the_angle;
    
     #end // End of while.
         
    } // End of Blob.



#declare FlowerWithCenter =
union{
      object{Petals}
      cylinder{<0,-1,0>,<0,1,0>,1 
               texture{
                       pigment{Blue} 
                       finish{ambient 0.1}
                      }
              }

     } // End of union.

#declare FullFlower =
object{FlowerWithCenter
       clipped_by{ cylinder{<0,-0.5,0>,<0,0.5,0>,5}}
      }

object{FullFlower}

// ****************** End of code *****************


I've checked the docs and can't find anything that explains this. 
I'm sure this used to be easier with differences in older versions. 


-- 
Cheers
Steve              email mailto:sjl### [at] ndirectcouk

%HAV-A-NICEDAY Error not enough coffee  0 pps. 

web http://www.ndirect.co.uk/~sjlen/

or  http://start.at/zero-pps

  6:04pm  up 12 days, 20:05,  4 users,  load average: 1.37, 1.33, 1.22


Post a reply to this message

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