POV-Ray : Newsgroups : povray.general : Preserving textures through CSG : Re: Preserving textures through CSG Server Time
1 Aug 2024 12:19:18 EDT (-0400)
  Re: Preserving textures through CSG  
From: Rarius
Date: 1 Oct 2005 19:02:56
Message: <433f15a0$1@news.povray.org>
You aren't understanding what I need to do... Here is a better example...

difference
{
    union
    {
        cylinder{-x, y, 1 pigment{Red}}
        cylinder{x, -y, 1 pigment{Yellow}}
    }
    plane{-y, 0}
    cutaway_textures
}

This works fine, but I have actually found out that my problem is that 
instead of a simple plane, I was trying to cut the object with an 
intersection as follows:

difference
{
    union
    {
        cylinder{-x, y, 1 pigment{Red}}
        cylinder{x, -y, 1 pigment{Yellow}}
    }
    intersection
    {
        plane{-y, 0}
        plane{-y, 0 rotate<60, 0, 0>}
    }
    cutaway_textures
}

Rarius


Post a reply to this message

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