POV-Ray : Newsgroups : povray.programming : Mesh Single Precision? : Mesh Single Precision? Server Time
28 Jul 2024 12:28:00 EDT (-0400)
  Mesh Single Precision?  
From: Geoff Wedig
Date: 27 Jun 2001 07:23:38
Message: <3b39c23a@news.povray.org>
Well, I've gone and done it.  After avoiding taking the plunge for so long,
I've gone and started writing my own patch.  In my patch, I'm attempting to
deform meshes based upon simulations to allow a cloth-style simulation of
non-rectangular surfaces.

For the most part, it's going pretty well.  However, in working with it,
I've found that the vertices of meshes are stored as single-precision
values.  This has caused a lot of problems, since the precision of the
simulation, which requires a lot of small increments, is compromised by
this.  Does anyone out there who's worked in the code more than I know why
meshes are stored this way?  I'd think that you'd want to store vertices as
double precision for the same reason that you store the locations of other
objects as doubles.

So, anyone know why this is the way it is?

Geoff


Post a reply to this message

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