Skip to Content.
Sympa Menu

cgal-discuss - [CGAL-discuss] I cannot verify the traveling route saved on 3D model using Halfedge

Subject: CGAL users discussion list

List archive

[CGAL-discuss] I cannot verify the traveling route saved on 3D model using Halfedge


Chronological Thread 
  • From: "samuel kim" <>
  • To: <>
  • Subject: [CGAL-discuss] I cannot verify the traveling route saved on 3D model using Halfedge
  • Date: Thu, 8 May 2008 18:32:23 +0200
  • Organization: Purdue

Title: [CGAL-discuss] I cannot verify the traveling route saved on 3D model using Halfedge

Hi all,

I have been trying to traveling triangles of 3D model for my research. But the problem is that the half edge handle return different values whenever reload 3D model. What I am doing now,

1)      In encoder, open any 3D model(.off) using CGAL,  as traveling triangles of mesh by using halfedge, determine whether  go to the right direction or left direction on each triangle and save the route into a file, namely the file contains the traveling information on triangles of the mesh. And shows traveled triangles.

2)      In decoder, open the same 3D model(.off), and start traveling according to the saved route from the file.  And shows the traveled triangles.

    In comparison of the above two, the result shows different route on the 3D model. But the first starting triangle is exactly same. Can you help me to make the same traveling on the same 3D model? If you have a idea please share with me, I have spent almost a week on this. I am using the below pseudo source code.

Halfedge_handle pHalfedge = pFacet->facet_begin();     

Halfedge_handle pRight_Halfedge = pHalfedge->next()->opposite();

Halfedge_handle pLeft_Halfedge = pHalfedge->prev()->opposite();

do{

//Some source code here

// for traveling to the right triangle from the current triangle               

If(right == true)

pHalfedge = pRight_Halfedge;

else

pHalfedge = pLeft_Halfedge;

}while(exit !=true)

Thank you in advance.

Samuel




Archive powered by MHonArc 2.6.16.

Top of Page