POV-Ray : Newsgroups : povray.general : clipped_by bug?! : clipped_by bug?! Server Time
14 Nov 2024 21:15:05 EST (-0500)
  clipped_by bug?!  
From: Rainer Mager
Date: 26 Apr 1999 05:36:18
Message: <37242582.0@news.povray.org>
Hi all,

    Can anyone tell me if this is a bug or correct behavior? I've trying to
make a CSG shape and I have a clipped_by statement withing a union (so it
should only affect that union, right). I also have that union differenced
from another union.
    What I am seeing, however, is that the clipped by is affecting the
entire shape, not just the local union. Any ideas? Oh, this is on POVRay
3.1e.
    What I'm trying to accomplish is that I don't want the hole going all
the way through the screw. It should stop 0.1 above the bottom.


    Here's a code snippet:


#declare Screw = difference {
 union {
  cylinder {
   <0, 0, 0>, <0, 0.1, 0>, 0.5
  }
  sphere {
   <0, 0, 0>, 0.5
   scale <1, 0.5, 1>
   translate <0, 0.1, 0>
  }
 }
 union {
  box {
   <-0.1, -0.5, -0.5>, <0.1, 0.5, 0.5>
   rotate x*45
   translate <0, 0.5, 0>
  }
  box {
   <-0.1, -0.5, -0.5>, <0.1, 0.5, 0.5>
   rotate x*45
   rotate y*90
   translate <0, 0.5, 0>
  }
  clipped_by {
   plane {
    y, 0.1
   }
  }
 }
}



Thanks,

--Rainer


Post a reply to this message

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