POV-Ray : Newsgroups : povray.general : Preserving textures through CSG : Re: Preserving textures through CSG Server Time
1 Aug 2024 12:21:11 EDT (-0400)
  Re: Preserving textures through CSG  
From: Slime
Date: 2 Oct 2005 03:35:50
Message: <433f8dd6$1@news.povray.org>
> union {
>   difference {
>     object {Thing}
>     plane{-y, 0}
>     cutaway_textures
>   }
>   difference {
>     object {Thing}
>     plane{-y, 0 rotate<60, 0, 0>}
>     cutaway_textures
>   }
> }


I don't think that would have the desired effect in some cases. Here's what
I would do:

#declare cutpart = intersection
{
    plane{-y, 0}
    plane{-y, 0 rotate<60, 0, 0>}
}

union
{
    difference {
        cylinder{-x, y, 1}
        object {cutpart}
        pigment{Red}
    }
     difference {
        cylinder{x, -y, 1}
        object {cutpart}
        pigment{Yellow}
    }
}

 - Slime
 [ http://www.slimeland.com/ ]


Post a reply to this message

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