Archived

This topic is now archived and is closed to further replies.

3-D Mesh from Random Points

This topic is 5507 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi I have 3-d points in a file (Format : x, y, z) and want to generate a 3-D surface / Mesh from it. Can anybody tell me how to generate a surface from random data? Remeber points are not in any uniform form. Regards, Faisal

Share this post


Link to post
Share on other sites
Ok first you have to get an x,z plane. ( hmm the easier way is to get an square shape x,z plane)

Then you randomly modify y.

In the end of this operation you will have many xyz points.

To create a real solid plane you have to connect logically every 3 points in to triangles :D

Ex.
x.y.z
-------
0.0.0
1.0.0 triangle 01
0.1.0

1.0.0
1.1.0 triangle 02
0.1.0

When you connect these points to a triangles, you shold get a simple one square plane :D ( ahh it''a just an idea )

you can use a loop to make it larger ...

Actually i have the same problem ... implementing this in GL4Java :D ( Hope it will help you )

Share this post


Link to post
Share on other sites
see the faq at the comp.graphics.algorithms usenet group

http://uk.geocities.com/sloppyturds/kea/kea.html
http://uk.geocities.com/sloppyturds/gotterdammerung.html

Share this post


Link to post
Share on other sites