POV-Ray : Newsgroups : povray.binaries.images : Antony Gormley simulation : Re: Antony Gormley simulation Server Time
14 Jul 2025 00:42:20 EDT (-0400)
  Re: Antony Gormley simulation  
From: Bald Eagle
Date: 5 Dec 2017 07:40:01
Message: <web.5a2692a82471086bc437ac910@news.povray.org>
Thomas de Groot <tho### [at] degrootorg> wrote:
> Incidentally, replacing:
>
> #declare MinZ = floor(Min.z);
> #declare MinY = floor(Min.y);
> #declare MinX = floor(Min.x);
> #declare MaxZ = ceil(Max.z);
> #declare MaxY = ceil(Max.y);
> #declare MaxX = ceil(Max.x);
>
> by:
>
> #declare MinZ = Min.z;
> #declare MinY = Min.y;
> #declare MinX = Min.x;
> #declare MaxZ = Max.z;
> #declare MaxY = Max.y;
> #declare MaxX = Max.x;
>
> speeds up the parsing manifold. From a couple of minutes (Steps=0.01;)
> to a couple of seconds. Results are identical though it may generate
> problems of course where the the limit and the object are identical.
>
> --
> Thomas

That's HIGHLY unexpected, since it's only 6 rounding directives.
I only did that to give integers for referencing array items.

It's not like any of that gets looped...   :O


Post a reply to this message

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