Topic: 3D representation of a graph with maratis
Hi maratis users 
for one of my university project, I had to do a program that can store the differents points (representing the places of a ski resort) and the roads that link the points together.
all the informations is contain in a file like this one :
5 // nb points
1    villaroger    1200    // name of the points / altitude    
2    2    1425        
3    3    2135        
4    4    2458        
5    aiguille-rouge    3226            
3 // nb edges
1    aiguille-rouge    TPH    2    5 // name of the edge / type of the edge / index of the start point / index of the end point
2    aiguille-rouge1    N    5    4
3    aiguille-rouge2    N    4    3The final purpose is to apply a shortest path algorithm on any of two points of the graph, so i decided to use maratis for a 3d graphical representation of the graph
controls :
-> z,q,s,d : move in the scene (free flight code supply by anaël)
-> maj : display the points name 
-> left click : select first point - second point
-> right click : erase the selection
the source code of the project is contain in the folder, if someone is interested 
Have fun with maratis !
https://www.dropbox.com/s/528kbh3nt4evrpi/published.zip
Last edited by Alinor (2013-11-25 22:53:41)

