Changeset - d811502e67f8
[Not reviewed]
Michael Guravage - 14 years ago 2011-08-26 16:20:01
michael.guravage@cwi.nl
Added fourth tissue growth protocol: Divide over an arbitrary axis.

--
user: Michael Guravage <michael.guravage@cwi.nl>
branch 'default'
changed src/protocols/MyGrowthModel/mygrowthmodel.cpp
1 file changed with 4 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/protocols/MyGrowthModel/mygrowthmodel.cpp
Show inline comments
 
@@ -32,7 +32,7 @@
 

	
 
QString Mygrowthmodel::ModelID(void) {
 
  // specify the name of your model here
 
  return QString( "Divide over explicit axis" );
 
  return QString( "Divide over an arbitrary axis" );
 
}
 

	
 
// return the number of chemicals your model uses
 
@@ -54,7 +54,9 @@ void Mygrowthmodel::CellHouseKeeping(Cel
 
  c->EnlargeTargetArea(par->cell_expansion_rate);
 

	
 
  if(c->Area() > 2*c->BaseArea()){
 
    c->DivideOverAxis(Vector(0,1,0));
 
    double orientation = Pi*RANDOM();
 
    Vector axis(sin(orientation), cos(orientation), 0.0);
 
    c->DivideOverAxis(axis);
 
  }
 
}
 

	
0 comments (0 inline, 0 general)