POV-Ray : Newsgroups : povray.programming : "minus" clause : "minus" clause Server Time
17 May 2024 04:05:30 EDT (-0400)
  "minus" clause  
From: Andrey K 
Date: 18 Jan 2007 17:35:00
Message: <web.45aff57c945f1bc98123242a0@news.povray.org>
Pre Scriptum: Sorry for my english language.

N.B. Abstract article.

I think, may the "minus" clause be useful for "union" and "merge" ?
Often need make hole, and then allocate in this hole some object. For
example:
wall_object, window_hole_object, and window_frame_object (with glasses and
curtains :) ).

Normal way, to make it:

union{
  // making wall with hole
  difference{
    wall_object
    window_hole_object
  }
  // making holled wall with window
  window_frame_object
}

Using "minus" clause:

union{
  wall_object
  // making wall with hole
  MINUS window_hole_object
  // making holled wall with window
  window_frame_object
}

Difference between both cases not very match, but (I think), second case is
more readable.


Post a reply to this message

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