POV-Ray : Newsgroups : povray.advanced-users : struggle with splines : Re: struggle with splines Server Time
6 Oct 2024 13:11:22 EDT (-0400)
  Re: struggle with splines  
From: Warp
Date: 5 Oct 2006 10:25:13
Message: <452515c9@news.povray.org>
Alain <ele### [at] netscapenet> wrote:
> You can circumvent the problem by multiplying everything by 100, and dividing by 
> 100 as you use the values to get the actual positions. It may slightly increase 
> the parsing time, but you are now adding units and avoiding the rounding errors.

  The standard easy way to avoid these errors is not to use floating point
as loop counters. Just use integer loop counters and then create a floating
point variable from it, scaling it to the desired range. As I demonstrated
in another post.

-- 
                                                          - Warp


Post a reply to this message

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