Trisurf Monte Carlo simulator
Samo Penic
2016-07-13 6415a3e0127eb4278e0975f0ba280840ceb1ef95
src/poly.c
@@ -83,6 +83,7 @@
   if (vlist!=NULL){
   /* Make straight grafted poylmers normal to membrane (polymer brush). Dist. between poly vertices put to 1*/
      ts_int intpoly=vesicle->tape->internal_poly;
      for (i=0;i<poly_list->n;i++){
   
         xnorm=0.0;
@@ -94,6 +95,9 @@
            znorm-=poly_list->poly[i]->grafted_vtx->tristar[j]->znorm;   
         }
         normlength=sqrt(xnorm*xnorm+ynorm*ynorm+znorm*znorm);
         if(intpoly && i%2){
            normlength=-normlength;
         }
         xnorm=xnorm/normlength;
         ynorm=ynorm/normlength;
         znorm=znorm/normlength;