POV-Ray : Newsgroups : povray.bugreports : Slice of apple pie : Re: Slice of apple pie Server Time
10 May 2024 11:53:17 EDT (-0400)
  Re: Slice of apple pie  
From: Bald Eagle
Date: 11 Apr 2023 06:45:00
Message: <web.64353916e157d61c1f9dae3025979125@news.povray.org>
William F Pokorny <ano### [at] anonymousorg> wrote:

> I believe what your are seeing is the fact the disc, like the plane, is
> defined in the code as having and inside (as being a 'basic object'
> rather than a 'patch object') so it can be used in CSG.

That's certainly what it looks like to me.   That slice is HUGE.

Thanks for the pointer to Wedge () - I thought it was in one of those inc files,
but wasn't sure where.   It's shapes.inc


Simply adding clipped_by and bounded_by makes for a quick fix/workaround

//The same macro but using the "disc" object show the issue
//(image on the right)
#macro corner2 (r,e,a)
 #if(a<360)
  difference {
   disc { <0,0,0>, y, r }
   object { complementWedge(a) }
   clipped_by {box {<-r, -e, -r>, <r, e, r>}}
   bounded_by {clipped_by}
   }
 #else
  disc { <0,0,0>, y, r }
 #end
#end



- BW


Post a reply to this message

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