From 805794c6e8b7c16e6219f75076fcbc76221d551d Mon Sep 17 00:00:00 2001 From: pants Date: Tue, 6 Sep 2016 15:18:18 -0400 Subject: added some comments --- src/fracture.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/fracture.h b/src/fracture.h index 349e59e..a9973ea 100644 --- a/src/fracture.h +++ b/src/fracture.h @@ -37,14 +37,17 @@ typedef enum bound_t { } bound_t; typedef struct { - uint_t ne; - uint_t nv; - uint_t dnv; + uint_t ne; // number of edges + uint_t nv; // number of vertices + uint_t dnv; // number of dual vertices uint_t nv_break; uint_t num_bounds; - uint_t *ev; + // 2*ne length array. edge i connects vertices ev[2*i], ev[2*i+1] < nv + uint_t *ev; uint_t *ev_break; + // nv+1 length array. vertex i has degree vei[i+1]-vei[i], vei[0] = 0 uint_t *vei; + // vei[nv] length array. vertex i is connected to edges ve[vei[i]+j], 0 <= j < vei[i+1]-vei[i] uint_t *ve; uint_t *bound_inds; uint_t *bound_verts; -- cgit v1.2.3-70-g09d2