POV-Ray : Newsgroups : povray.general : Minimum Distance Function : Re: Minimum Distance Function Server Time
20 Apr 2024 10:34:11 EDT (-0400)
  Re: Minimum Distance Function  
From: Bald Eagle
Date: 11 Jul 2022 13:35:00
Message: <web.62cc5ed46fb4e4481f9dae3025979125@news.povray.org>
"jceddy" <jce### [at] gmailcom> wrote:

> When I inverse-transform the test point, do a minimum distance vector to the
> original mesh data, then transform that direction vector back to take the
> length, the result is slightly off from the version where I keep a parallel
> version of the mesh data around that I recalculate by transforming all the
> vertices whenever the mesh's Trans changes.

What if instead of re-transforming the mesh data, you transform the reference
point to measure the length?
Then it's only ever one transform in either direction.

I'm only guessing, based on what I'm envisioning you doing...


Post a reply to this message

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