POV-Ray : Newsgroups : povray.bugreports : Slice of apple pie : Slice of apple pie Server Time
23 Apr 2024 07:09:33 EDT (-0400)
  Slice of apple pie  
From: kurtz le pirate
Date: 10 Apr 2023 10:49:43
Message: <64342207$1@news.povray.org>
Hello,

As the subject indicates, the goal is to create a "slice" of the disk.

With this macro, everything works fine (image on the left)
#macro corner(r,e,a)
 #if(a<360)
  difference {
   cylinder { <0, -e, 0>, <0, e, 0>, r }
   object { complementWedge(a) }
   }
 #else
  cylinder { <0, -e, 0>, <0, e, 0>, a }
 #end
#end


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



With the help of this macro :
#macro complementWedge(a)
 object {
  Wedge(360-a)
  rotate a*y
  }
#end



Bug ?
Note that the use of cylinder does not bother me more than that.


-- 
Kurtz le pirate
Compagnie de la Banquise


Post a reply to this message


Attachments:
Download 'issue.jpg' (29 KB)

Preview of image 'issue.jpg'
issue.jpg


 

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