Hello,<br><br>I get segmentation fault while doing surface meshing. After debugging I found the location of the<br>problem but don't know why it should happen.<br><br><br>The problem is with EdgeSwapping module. The problem starts from <br>
<br>void BDS_Mesh::del_edge(BDS_Edge *e)<br>{<br> e->p1->del(e);<br> e->p2->del(e);<br> e->deleted = true;<br>}<br><br>and in the BDS.h file ( In the BDS_Point ) class<br><br>inline void del(BDS_Edge *e)<br>
{<br> std::list<BDS_Edge*>::iterator it = edges.begin();<br> std::list<BDS_Edge*>::iterator ite = edges.end();<br><br> while(it != ite){<br> cout << " EDGE IS " << *it << endl;<br>
if(*it == e){<br> edges.erase(it);<br> break;<br> }<br> ++it;<br> }<br><br>I notice that in the second function for some point in the edgelist, some edge is NULL and <br>that creates the segmenation fault. Here is the output:<br>
<br> EDGE IS 0x1734130<br> EDGE IS 0x7f9a25875a60<br> EDGE IS 0<br>Segmentation fault<br><br>I fail to guess the cases where a point refering to a NULL edge ? Can someone give some hints<br>to resolve this problem ?<br><br>
<br>Thanks.<br>csv<br><br><br>