We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb870b5 commit aa24588Copy full SHA for aa24588
1 file changed
core/PhysiCell_cell.cpp
@@ -613,7 +613,9 @@ Cell* Cell::divide( )
613
if( this->functions.cell_division_direction_function )
614
{
615
rand_vec = this->functions.cell_division_direction_function( this );
616
- normalize( &rand_vec );
+ if( default_microenvironment_options.simulate_2D == true ) // ensure vec in XY plane
617
+ { rand_vec[2] = 0.0; }
618
+ normalize( &rand_vec ); // ensure normalized
619
}
620
else
621
0 commit comments