Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > half edge data structure

Reply
Thread Tools

half edge data structure

 
 
user923005
Guest
Posts: n/a
 
      03-24-2008
On Mar 24, 4:40*am, broli <Brol...@gmail.com> wrote:
> hello i am trying to implement a hald edge data structure.
>
> In my project, I have to read a file that contains the geometrical
> specifications of a 3d object which has been converted into a
> triangular mesh. I have specified the format of the file in a previous
> thread -
>
> http://groups.google.co.in/group/com...f95654400d414d
> (ignore the program bit just read about the format of file)
>
> ^^ I have stored all this information in a vertex list. Sequentially
> in the way they occur. After the coordinates, the file specifies 3
> indices into the vertex list(which point to 3 vertices) needed to
> define a triangle.
>
> Now I'm successfully able to code a program read the data from the
> file
> with the help of data structures that I created for vertex, object and
> But now, I want to implement adjacency queries for which I need half
> edge data structure. I do not understand how to create a half edge
> data structure from this plethora of information (i.e. vertex list and
> triangle list). I looked on *flipcode and found some information about
> the structures involved -
>
> * struct HE_edge
> * * {
>
> * * * * HE_vert* vert; * // vertex at the end of the half-edge
> * * * * HE_edge* pair; * // oppositely oriented adjacent half-edge
> * * * * HE_face* face; * // face the half-edge borders
> * * * * HE_edge* next; * // next half-edge around the face
>
> * * };
>
> * struct HE_vert
> * * {
>
> * * * * float x;
> * * * * float y;
> * * * * float z;
>
> * * * * HE_edge* edge; *// one of the half-edges emantating from the
> vertex
>
> * * };
>
> * *struct HE_face
> * * {
>
> * * * * HE_edge* edge; *// one of the half-edges bordering the face
>
> * * };
>
> Now my main question : How do I fit all this data into the structures
> above ?? Do I need to loop through each vertex in the vertex list and
> each triangle in triangle list ??


You want news:comp.graphics.algorithms.algorithms (especially since I
see that elsethread you are asking about efficiency).
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Lenovo ThinkPad EDGE 13: Bleeding Edge Ian Front Page News 0 02-28-2011 10:18 AM
using both rising edge and falling edge of signal denish VHDL 5 11-17-2008 07:12 PM
ie7 displaying only half of page (cuts page in half)... trint ASP .Net 4 09-11-2007 10:56 AM
Boost.graph - changing edge end-points or copying an edge Ferdi Smit C++ 0 10-10-2005 04:30 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57