CenterOfMass plugin monitors changes n the lattice and updates centroids of the
i denotes pixels belonging to a given cell. To obtain
coordinates of a center of mass of a given cell we divide centroids by
This plugin is aware of boundary conditions and centroids are calculated properly regardless which boundary conditions are used. The CC3DML syntax is very simple:
To access center of mass coordinates from Python we use the following syntax:
print('x-component of COM is:', cell.xCOM) print ('y-component of COM is:', cell.yCOM) print ('z-component of COM is:', cell.zCOM)
Center of mass parameters in Python are read only. Any attempt to modify them will likely mess up the simulation.