POV-Ray : Newsgroups : povray.binaries.images : Clipped_by problem ? - 2 attachments : Clipped_by problem ? - 2 attachments Server Time
14 Aug 2024 01:18:22 EDT (-0400)
  Clipped_by problem ? - 2 attachments  
From: Rafal 'Raf256' Maj
Date: 29 Dec 2002 07:27:48
Message: <Xns92F388AD7B651raf256com@204.213.191.226>
http://www.raf256.com/pg_troll_bug1_1.png (incorrect image)
this I get when I use both clipped_by and bounded_by with shape objSmile 
that is making hole in main sphere - objScull.

#declare objSmile = sphere_sweep { //.....
    clipped_by { box {<-.6,-.5,-1.5> <+.6,.2,-0.7>} }
    bounded_by { box {<-.6,-.5,-1.5> <+.6,.2,-0.7>} }  
}

difference { 
  object{objScull} // main shape 
  object{objSmile} // hole
}

If I just remove clipped_by :
    //--- clipped_by { box {<-.6,-.5,-1.5> <+.6,.2,-0.7>} }
    bounded_by { box {<-.6,-.5,-1.5> <+.6,.2,-0.7>} }  

then every thing works o.k. and I get :
  http://www.raf256.com/pg_troll_bug1_2.png

---
So in 
  difference{ A B } 
clipped_by of B becames clipped_by of entire difference - is this how it 
should work ?

-- 
#macro g(U,V)(.4*abs(sin(9*sqrt(pow(x-U,2)+pow(y-V,2))))*pow(1-min(1,(sqrt(
pow(x-U,2)+pow(y-V,2))*.3)),2)+.9)#end#macro p(c)#if(c>1)#local l=mod(c,100
);g(2*div(l,10)-8,2*mod(l,10)-8)*p(div(c,100))#else 1#end#end light_source{
y 2}sphere{z*20 9pigment{function{p(26252423)*p(36455644)*p(66656463)}}}//M


Post a reply to this message


Attachments:
Download 'pg_troll_bug1_1.jpg' (6 KB) Download 'pg_troll_bug1_2.jpg' (6 KB)

Preview of image 'pg_troll_bug1_1.jpg'
pg_troll_bug1_1.jpg

Preview of image 'pg_troll_bug1_2.jpg'
pg_troll_bug1_2.jpg


 

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