POV-Ray : Newsgroups : povray.general : How do I design a dice ? : Re: How do I design a dice ? Server Time
5 Nov 2024 09:24:30 EST (-0500)
  Re: How do I design a dice ?  
From: Marc Jacquier
Date: 8 May 2003 13:21:56
Message: <3eba9234@news.povray.org>

web.3eba6c6944d3a3a6bef0bd7d0@news.povray.org...
> >Is there a simple way, or shall I start with a cube and combine it with
> >cylinders at the edges and spheres at the corners ?
>
> Depends what kind of corners you want. Maybe intersection of box and
sphere
> works.
That's the way I think dices are shaped:
intersection {
  sphere {0,1}
  box {-1, 1 scale sqrt(2)/2 //box sides middles tangent to sphere
  }
 }

then you make a difference with spheres unions to place the dots

Marc


Post a reply to this message

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