POV-Ray : Newsgroups : povray.general : Precision problems? : Re: Precision problems? Server Time
4 Oct 2024 14:57:55 EDT (-0400)
  Re: Precision problems?  
From: Cousin Ricky
Date: 26 Jan 2024 11:05:00
Message: <web.65b3d774284cb76f60e0cc3d949c357d@news.povray.org>
Ilya Razmanov <ily### [at] gmailcom> wrote:
> I have a weird problems with some prisms. Please see the file attached,
> it's tiny example. As you can see, both hexagonal prisms and their
> translations are calculated using school math; moreover, when it comes
> to irrational floats, the same values are used whenever possible via
> declaring the variable, so it have no choice but match. Still, there is
> a gap between objects in vertical direction.
>
> I'm out of ideas regarding the cause of it. Any inspiration?

The geometry of the hexagons is off.  Replacing all occurrences of 0.25 with
revsqrtof3/2 will fix it.


Post a reply to this message

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