Skip to content

Commit

Permalink
Implement vertex id
Browse files Browse the repository at this point in the history
This enables the library user to map the output vertices in the final
triangulation/partition back to the input vertices.  This allows
additional vertex attributes to be mapped from the input vertices onto
the output triangle vertices in a straightforward way.
  • Loading branch information
c42f committed May 10, 2015
1 parent 561ad37 commit 2573d1e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/polypartition.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ typedef double tppl_float;
struct TPPLPoint {
tppl_float x;
tppl_float y;
// User-specified vertex identifier. Note that this isn't used internally
// by the library, but will be faithfully copied around.
int id;

TPPLPoint operator + (const TPPLPoint& p) const {
TPPLPoint r;
Expand Down

0 comments on commit 2573d1e

Please sign in to comment.