POV-Ray : Newsgroups : povray.beta-test : Difference issue : Re: Difference issue Server Time
18 May 2024 08:43:52 EDT (-0400)
  Re: Difference issue  
From: jotito
Date: 3 Jul 2012 14:40:01
Message: <web.4ff33c35fff3bb238aa27d610@news.povray.org>
>
> OK ... so what's new (I'm confused) are you trying to do this:
>
> difference
> {
>     box{<-2,1,-2>, < 2,4, 2> }
>     box{< 0,0,-3>, < 3,2, 3> }
>     box{< 0,3,-3>, < 3,5, 3> }
>     texture {Gold_Texture}
> }
>
> or this:
>
> difference
> {
>     box{<-2,1,-2>, < 2,4, 2> }
>     box{< 0,0,-3>, < 3,3, 3> }
>     box{< 0,2,-3>, < 3,5, 3> }
>     texture {Gold_Texture}
> }
>
> because if it's the 2nd one why not just do this:
>
> box{<-2,1,-2>, < 0,4, 2> }
>
> .. I mean yer just choppin' off the pos x portion of the main box!
>
> Jim

What I am doing is creating a Military Tank using CSG. I detected that a part of
the tank was hollow, or "semi-hollow". The same thing that happens when you
extract an object from itself:
difference
{
   box{A,B}
   box{A,B}
}

But I am aware of that problem and I always avoid it. So I made a detailed
inspection of the code. After hours of checking the code I finally found the
bug.

The code I posted here is just a minimal example of how to reproduce the bug.

Of course I can fix the thing with some "tricks", but that is not the point, I
think is better if a bug is fixed rather than avoiding it using tricks.

I am not asking for a way to avoid the bug, what I want is to inform the
existence of this bug.


Post a reply to this message

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