POV-Ray : Newsgroups : povray.general : clipped_by bug?! : Re: clipped_by bug?! Server Time
14 Nov 2024 21:14:52 EST (-0500)
  Re: clipped_by bug?!  
From: Bob Hughes
Date: 26 Apr 1999 06:14:15
Message: <37242E30.552969B0@aol.com>
From what I can tell so far you are simply getting the boxes cutting all
the way though the screw head. Nothing about the 'clipped_by' that I can
see (yet).
Although, just to add a possibly relevant fact, I once had a very
stubborn CSG object using clipped_by to open the object for use as two
halves (duplicated clipped_by on each half) and previously invisible
parts were then made visible. And only because of the clipped_by near as
I could tell.
I may be back if there's more to this one here, however, as I said, all
I see is the unioned boxes are set too low, or rather, the cylinder
sphere union is not deep enough.


Rainer Mager wrote:
> 
> 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

-- 
 omniVERSE: beyond the universe
  http://members.aol.com/inversez/homepage.htm
 mailto:inv### [at] aolcom?Subject=PoV-News


Post a reply to this message

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