MEDYAN.InTriPointIdx
Union{}
An index identifying a specific in-triangle point on a membrane mesh. In-triangle points are particles embedded in a triangular face of a membrane, parameterized by barycentric coordinates, that diffuse along the surface during BAOAB integration and can participate in mechanical links and chemical reactions.
This index may be invalidated by remove_in_tri_point! (swap-erase reorders the storage) or by membrane removal. Mesh adaptation does not invalidate the index — it only changes which triangle the point is on.
Use a Tag{InTriPointIdx} for a long-term reference that remains valid across mutations.
Constructors
InTriPointIdx(): Creates a null in-triangle point index with both indices set to 0InTriPointIdx(memb_idx::Integer, pt_idx::Integer): Creates an in-triangle point index for the specified membrane and point
Fields
memb_idx::UInt32: Index of the membrane in the contextpt_idx::UInt32: Index of the in-triangle point withinm.metaattr.intripoints
Related Functions
See make_in_tri_point!, remove_in_tri_point!, update_in_tri_point!.