+ if(show_planes) {
+ bind_program(0);
+
+ glPushAttrib(GL_ENABLE_BIT);
+ glDisable(GL_LIGHTING);
+
+ poly = frac.cells[cur_cell].polys;
+ for(i=0; i<frac.cells[cur_cell].num_polys; i++) {
+ glBegin(GL_LINE_LOOP);
+ glColor3f(0.5, 0.5, 0);
+ for(j=0; j<dynarr_size(poly->verts); j++) {
+ glVertex3fv(&poly->verts[j].pos.x);
+ }
+ glEnd();
+ poly++;
+ }
+
+ glPopAttrib();
+ }
+
+ if(show_shell) {
+ bind_program(sdr);
+ cmesh_draw(frac.cells[cur_cell].mesh);
+ }
+