Dynamic geometry allows manipulation with individual mesh geometry vertices during simulation. This section provides an overview of related methods.
NOTE: this documentation is not generated automatically and may get out of date. Check the generated API reference when needed.
In MCell, vertices are represented with class Vec3. It has attributes: x, y, z, and a method .tolist() that returns the coordinates as a Python list with three elements. Class Vec3 also provides usual operators such as +, -, *, /, ==.
This subsection lists several methods used for introspecting geometry state:
Model.get_vertex - Returns coordinates of a vertex as Vec3.
Model.get_wall - Returns information about a wall belonging to a given object.
Model.get_vertex_unit_normal - Returns sum of all wall normals that use this vertex normalized to a unit vector of length 1um. This represents the unit vector pointing outwards from the vertex.
Model.get_wall_unit_normal - Returns wall normal of length 1um.
Special Attributes and Methods¶
Wall.is_movable - The attribute says whether the wall can be moved through calls to Model.apply_vertex_moves. If False, all changes to vertices are ignored.
Model.pair_molecules - Allows to pair surface molecules on different objects. When a wall of one molecule is moved, wall of the second paired molecule is also moved. See Model.apply_vertex_moves for more details.