|
|
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
|
|