POV-Ray : Newsgroups : povray.general : How to ... : Re: How to ... Server Time
27 Apr 2024 00:11:24 EDT (-0400)
  Re: How to ...  
From: kurtz le pirate
Date: 27 Nov 2021 11:39:12
Message: <61a25f30$1@news.povray.org>
On 22/11/2021 17:23, kurtz le pirate wrote:
> Hello,
> 
> I have a surface defined by a set of points <x,y,z> and for each point, 
> its color.
> 
> In your opinion, which object/method is the most appropriate to 
> represent such a surface?


I'm moving slowly. I can now build my surface by generating a mesh from 
my set of points exactly as for a height_field.
But I'm still struggling with the color story.

I have this scheme on the <x,z> plane

+--> z
|
V
x

     |     |     |
--- * --- * --- * ---
     |     |     |
--- * --- * --- * ---
     |     |     |
--- * --- * --- * ---
     |     |     |
--- * --- * --- * ---
     |     |     |


Each "*" is my points. This points are on a "square grid".
I convert this grid to triangle. I get :

     |     |     |
--- * --- * --- * ---
     |   / |   / |
     |  /  |  /  |  /
     | /   | /   | /
--- * --- * --- * ---
   / |   / |   / |
  /  |  /  |  /  |  /
/   | /   | /   | /
--- * --- * --- * ---
   / |   / |   / |
  /  |  /  |  /  |  /
/   | /   | /   | /
--- * --- * --- * ---
     |     |     |

I obtain a set of triangles schematized below.
These triangles compose the mesh which is easy to display.

But ... for the color, I still don't know how to do it :(
The color is "at" a point "*". impossible to find out how to give the 
color to which triangle.


One more time, any suggestion ?





-- 
Kurtz le pirate
Compagnie de la Banquise


Post a reply to this message

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