iMSTK
Interactive Medical Simulation Toolkit
Public Attributes | List of all members
imstk::CellIndexElement Struct Reference

Represents a cell by a single cell id OR by N vertex ids. Which case can be determined by the idCount. More...

#include <imstkCollisionData.h>

Public Attributes

int ids [4] = { -1, -1, -1, -1 }
 
int parentId = -1
 
int idCount = 0
 
CellTypeId cellType = IMSTK_VERTEX
 

Detailed Description

Represents a cell by a single cell id OR by N vertex ids. Which case can be determined by the idCount.

Possible cells may be: point, edge, triangle, quad, or tetrahedron maximum 4 ids (tetrahedron by vertex ids is maximum cell it could represent)

Sometimes parentId is provided. It usually refers to some parent cell. Can be ambiguous though. Dictated by the individual CollisionDetectionAlgorithm.

Definition at line 66 of file imstkCollisionData.h.


The documentation for this struct was generated from the following file: