updated files from meshfrac_alt
[meshfrac] / src / frac.h
index 03ae4e6..0049f09 100644 (file)
@@ -3,16 +3,20 @@
 
 #include "cmesh.h"
 #include "cgmath/cgmath.h"
+#include "geom.h"
 
 struct frac_cell {
        cgm_vec3 pt;
+       struct poly *polys;
+       int num_polys;
+
        struct cmesh *mesh;
-       cgm_vec4 *planes;                       /* dynarr */
 };
 
 struct fracture {
        struct cmesh *mesh;                     /* no ownership */
        struct frac_cell *cells;        /* dynarr */
+       float cell_gap;
 };
 
 int frac_init(struct fracture *frac);