Quick Examples

This page contains links and brief descriptions to quick CC3D demos that show off answers to user requests and questions.

For a more complete list of models and demos see the Models page, which include much more complex models as well as models for nanoHUB.


Track the location of a cell with a tail

Want to keep track of where a cell has been? You can use a user created "field" to track the center of mass (COM) of a cell pretty easily. Or, you could create a plot. Here we show both; Left is the cell field showing 4 cells, center is a scientific plot tracking the COM of each cell, right is the track displayed as a field. In the field display, the value assigned to each tracking pixel is the MCS, so the first location gets colored blue and the most recent red in the heat maps.

screen shot

Here is the zip file of the CC3D project.
Don't forget to open a new window in Player and tell that window to display "cell_track" instead of the default "Cell_Field".


Create a set of cells that look like fibers

What if you want to generate arbitrary shaped cells in CC3D? Here we'll do the specific case of generating long thin (fibrous) cells.

screen shot

Here is the zip file of the CC3D project


Create a set of cells at defined locations using Python in CC3D

If you can mathematically define your cell locations then CC3D/Python can place your cells. (Or, just use a random number generator if you don't really care exactly where the cells are.) Here we will create a circle of cells of different cell types.

screen shot

Here is the zip file of the CC3D project


Import an image into CC3D

You can use the Python Image Library (PIL or Image) to import an image into CC3D. You can then load a version of the image into a user controlled field. This might be handy for converting a cell layout you created in a program like PowerPoint, or to import an image from a microscope. Or, you never know when you might want to model a dog. :)

This process is a bit more complex than the examples above so there is a page describing how to do it.

Below on the left is a bitmap (bmp) photo, on the right the photo after importing into CC3D and displaying it as a user controlled field. We don't have color control in CC3D so the field is displayed with CC3D's standard heat map color bar.

Doggles!


Import an image into CC3D and convert into cells

You can use the Python Image Library (PIL or Image) to import an image into CC3D and then convert that image into a cell field in CC3D. If you use a drawing program to created fields as colored shapes outlined with black edges this project will convert the regions into cells based on the colors and use the black lines to define the boundary between cells.

This process is a more complex than the examples above so there is a page describing how to do it.

Below on the left is a bitmap (.bmp) image of a cell field created in PowerPoint. The cells are outlined in black and the colors define the cell types. This particular layout is a very crude representation of converging blood vessels in the liver with the green regions representing hepatocytes (the major parenchymal cell of the liver), the blue regions the blood vessel lumen (that is, the blood) and the small red cells are anchors for creating new portions of blood.

Drawn cells Cells in CC3D


CompuCell3D: QuickModels (last edited 2020-09-18 21:03:14 by JamesSluka)