Skip to content

Commit aa24588

Browse files
committed
for 2D, set cell_division_direction_function z=0
1 parent eb870b5 commit aa24588

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

core/PhysiCell_cell.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,9 @@ Cell* Cell::divide( )
613613
if( this->functions.cell_division_direction_function )
614614
{
615615
rand_vec = this->functions.cell_division_direction_function( this );
616-
normalize( &rand_vec );
616+
if( default_microenvironment_options.simulate_2D == true ) // ensure vec in XY plane
617+
{ rand_vec[2] = 0.0; }
618+
normalize( &rand_vec ); // ensure normalized
617619
}
618620
else
619621
{

0 commit comments

Comments
 (0)