artem-ogre/CDT

edges Parameter not in CDT::Triangulation

Sum80 opened this issue · 3 comments

Sum80 commented

When using the code.

#include "CDT.h"
CDT::Triangulation cdt;
cdt.insertVertices(/* points /);
cdt.eraseSuperTriangle();
/
access triangles / = cdt.triangles;
/
access vertices / = cdt.vertices;
/
access boundary edges */ = cdt.edges;

edges is not a member of CDT::Triangulation.

Hi, @Sum80,

Thank you for creating the issue. There was a change: edges are calculated on request. Please use extractEdgesFromTriangles to calculate edges from triangles. I will update the documentation to reflect this.

I have updated the README.md:

  • only fixed edges are still available via fixedEdges
  • all edges can be calculated on demand
/* access boundary (fixed) edges */ = cdt.fixedEdges;
/* calculate all edges (on demand) */ = CDT::extractEdgesFromTriangles(cdt.triangles);

Feel free to re-open if I missed something and thanks again.