POV-Ray : Newsgroups : povray.general : Help with cutaway_textures : Re: Help with cutaway_textures Server Time
29 Jul 2024 18:19:09 EDT (-0400)
  Re: Help with cutaway_textures  
From: Solar Mike
Date: 14 Dec 2010 21:40:00
Message: <web.4d082a66487b6311aaa700f20@news.povray.org>
clipka <ano### [at] anonymousorg> wrote:
> Am 14.12.2010 05:18, schrieb Solar Mike:
>
> Quote from the docs:
>
> ---------------------------------------
> 3.5.10  Cutaway Textures
> Syntax:
>
>    difference | intersection {
>      OBJECT_1_WITH_TEXTURES
>      OBJECT_2_WITH_NO_TEXTURE
>      cutaway_textures
>    }
> ---------------------------------------
>
> Mind the "_WITH_NO_TEXTURE": cutaway_textures only works if your
> "cutting tool" has no explicit texture set.

Thanks,

You are quite right.  Unfortunately I did not have a texture with my original
problem.  It seems to be more of a problem if I have a union.  Is this expected
to work or am I again missing something?  The problem occurs whether the union
is within an object or not.

intersection {
    myWood()
    object {
        union {
            cylinder {<lWood/2, 0, wWood/2>,<lWood/2, 150, wWood/2>, lWood/4 }
            cylinder {<lWood/2, 0, wWood/3>,<lWood/2, 150, wWood/3>, lWood/4 }
        }
    }
    cutaway_textures
}


Post a reply to this message

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