Gain Point Information about the X,Y,Z coordinates of the surface with Terragen

Started by bewaehrungshelfer, May 20, 2010, 02:20:53 PM

Previous topic - Next topic

bewaehrungshelfer

Hello fellow Terragen community. I'm a Geomatics student
and I have the following problem: I'm currently writing a c++ program that reads randomly organized points ( their xyz-values) and then sorts them
in order to create a dxf-file with the 3D-Triangles  of the linked 3D-Points.
The points form a height grid, they all are equally arranged copys of the surface. The aperture or opening width is constant as i said.

Does anybody know how to gain information from a generated Height Map (in Terragen  1 or 2)
about the X,Y,Z coordinates of the surface. Ideally the aperture width should be equal
and the extracted points should be organized in a grid

What I want to do is organize the points (with the coordinates) in a asci file (file.txt for example)
and feed it to my c++ program.

The file fed to the program looks this way:

pointnumber       X-Value                      Y-Value                     Height "Z-Value"
(not important)   here Gauss-Krueger

10017      3413538.0000      5374755.0000      113.248
10099      3413540.0000      5374750.0000      113.682
10095      3413539.0000      5374755.0000      113.136
10066      3413540.0000      5374755.0000      113.498
10085      3413545.0000      5374748.0000      116.321
10003      3413542.0000      5374755.0000      112.168
10063      3413538.0000      5374748.0000      117.099
10005      3413545.0000      5374752.0000      114.615

I am thankful for any reply.
Greetings
Axel

jritchie777

I don't know if this will help, if I'm understanding you right you want to get the Terrain X,Y,Z coordinates from the Terragen terrain file to feed into your C++ program.  If so, then you check out Wilbur - it is listed on the resources page of Planetside.  Very neat little program to import & export terrain stats.

It might be what you are looking for, here is the link:

http://www.ridgenet.net/~jslayton/software.html


Hope this helps.
JR

Oshyan

I agree, another app that deals with heightfields would probably get you the data you want easier.

- Oshyan

bewaehrungshelfer

@jritchie777 and also Oshyan

thank you very much. The idea with wilbur was great. This little programm exactly featured the application i needed.
i now have so many more possibilties and the results i get are also a lot more significant.

Awesome!