Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2012-02

level curve and surface generation code

4 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Felipe Monteiro de Carvalho

Hello,

I was wondering if anyone has seen Pascal code around for these two tasks

1> generate level curves from an array of 3D points

2> Generate a 3D surface from an array of 3D points. Here so far my best idea is using the marching cubes algorithm. I'd prefer only triangles, since those fit better to OpenGL.

thanks,

Felipe Monteiro de Carvalho

Reply by email

Felipe Monteiro de Carvalho
to leledumbo
leledumbo wrote

Pretty good! Unfortunatelly in my case the input is much more complex. Here it seams to be a grid with heights given as input. I have an array of 3D points. Maybe I should first generate a grid of heights and then try the code here.

And I got something wrong in the other question. The english terminology is "countour line", in portuguese it is "Curva de nivel", and my direct translation didn't work out very well =)

Felipe Monteiro de Carvalho

Reply by email

Jorge Aldo G. de F. Junior
to Felipe Monteiro de Carvalho

i can translate for you if you need

2012/2/20 Felipe Monteiro de Carvalho :

Show quoted text 19 lines
On Mon, Feb 20, 2012 at 3:59 PM, leledumbo wrote: > Something like > http://www.sulaco.co.za/opengl_project_terrain_generation_using_heightmaps.htm > terrain ? Pretty good! Unfortunatelly in my case the input is much more complex. Here it seams to be a grid with heights given as input. I have an array of 3D points. Maybe I should first generate a grid of heights and then try the code here. And I got something wrong in the other question. The english terminology is "countour line", in portuguese it is "Curva de nivel", and my direct translation didn't work out very well =) -- Felipe Monteiro de Carvalho _______________________________________________ fpc-pascal maillist  -   http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply by email