Edge information from an imported .obj file.


Hi,

Currently, I have just loaded a .obj file, for example: teapot.obj.
I displayed the object in wireframe form so that i can see the edges.

The problem here is, I am trying to get infomation on an edge.For example to get the length of a selected edge.

In the .obj file, it only contains vertices and faces information. So how am I able to choose an edge and get its information.
I heard of winged edge and half edage representation but I do not understand them.

I tried goggle but not able to get much information.Can I get anyhelp on how am I able to do so? or how to implement the data structures in jogl?

Thanks for the help in advance.

Half edge and winded edges are basically structures for representing edges and polygons in general. They are used to study connectivity and neighborhood of a vertex, polygon, and edges. If this is not what you need you may just create a simple un oriented edge datastructure which contains a reference to the 2 vert. that shares it and use this to select an edge, highlight it.

yup… i do need to know the edge’s neighbour information as after i got all the informations, i need to apply some algorithm on it…is there any sample online that shows how half edge is implemented in jogl?