POV-Ray : Newsgroups : povray.binaries.programming : Fix for improved intersection routine for CSG-Intersection objects - csg.cpp (1/1) : Re: Fix for improved intersection routine for CSG-Intersection objects - csg.cpp (1/1) Server Time
26 Apr 2024 06:13:07 EDT (-0400)
  Re: Fix for improved intersection routine for CSG-Intersection objects - csg.cpp (1/1)  
From: Andreas Kaiser
Date: 13 Feb 2004 15:19:54
Message: <81cq20h81d1rvagleafjjskhv5n6l7o0qf@4ax.com>
On Tue, 13 Jan 2004 09:59:00 GMT, kai### [at] siemenscom (Andreas
Kaiser) wrote:

>Attached you'll find csg.cpp with an improved intersection routine for
>CSG-Intersection objects (together with two small but necessary
>changes in Union- and Merge-intersection).

(I'm replying to myself here)

If you use this patch you should not place the subtracted objects into
a union/merge object.

Instead of 

intersection // or difference
  {
  object1
  union
    {
    object2
    object3
    ...
    }
  ...
  }

you should use

intersection // or difference
  {
  object1
  object2
  object3
  ...
  ...
  }


-- 
Andreas


Post a reply to this message

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