POV-Ray : Newsgroups : povray.newusers : ex post facto difference - "negative" objects : Re: ex post facto difference - "negative" objects Server Time
14 May 2024 03:28:33 EDT (-0400)
  Re: ex post facto difference - "negative" objects  
From: clipka
Date: 27 Aug 2013 18:42:00
Message: <521d2b38$1@news.povray.org>
Am 27.08.2013 23:19, schrieb Bald Eagle:
>
>> You can make a difference of two objects in order to do that.
>
> Indeed.  My question was, can I "force" a difference to take place _outside_ of
> a formal difference{} directive?
>
> For example, _somewhere_ in the SDL is a box{} defining a wall of the structure.
> The idea is that I can define a whole room as an addition - including the
> doorway - and simply tack on that object {room rotate translate} statement to
> the end of the SDL, and the doorway would not only overlap the wall, but "cut" a
> hole in it.

I guess what you want is

     union {
       difference {
         object { room        rotate ... translate ... }
         box { ... }
       }
       object { door_and_frame rotate ... translate ... }
     }

which is perfectly possible (also note what I did there do add the 
actual door and frame).


Post a reply to this message

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