![]() |
GemaMesh
The GeMA Mesh Plugin
|
Basic implementation for a "Gema cell", adding the information about the offset of its nodes in the global mesh data node vector. More...
#include <gmpGemaCell.h>


Public Member Functions | |
| GmpGemaCell (GmCellMesh *mesh, int meshId, int id, int offset) | |
| Constructs a cell given its id and associated mesh id. | |
| virtual int | nodeIndex (int localIndex) const |
| virtual void | nodes (int *nodeList, bool ghost) const |
| virtual bool | setNodes (const int *nodeList) |
| int | offset () const |
| Returns the offset in the global mesh cell nodes vector for this cell. | |
| void | setOffset (int offset) |
Public Member Functions inherited from GmpCellBaseWithId< Base, Proxy, CellMeshData, T, N, VN > | |
| virtual int | cellId () const |
| virtual GmCellMesh * | mesh () const |
| virtual int | meshId () const |
| virtual bool | active () const |
| virtual void | setActive (bool active) |
| virtual void | replaceCellId (int id, bool keepActiveFlag) |
Public Member Functions inherited from GmpCellBase< Base, Proxy, CellMeshData, T, N, VN > | |
| GmpCellBase () | |
| Constructs a cell. | |
| virtual int | numNodes () const |
| virtual void | pushProxy (lua_State *L, const GmLogCategory &logger) |
| virtual GmCellType | type () const |
| virtual int | propertyIndex (int propertySet) const |
| virtual bool | setProperties (const int *propList, int nprop) |
Protected Attributes | |
| int | _nodeOffset |
| Index in the mesh data for the first node for this cell. | |
Protected Attributes inherited from GmpCellBaseWithId< Base, Proxy, CellMeshData, T, N, VN > | |
| int | _cellId |
| The cell index inside the mesh. MSB is used to control if the cell is active or not. | |
Additional Inherited Members | |
Protected Member Functions inherited from GmpCellBaseWithId< Base, Proxy, CellMeshData, T, N, VN > | |
| GmpCellBaseWithId (int cellId, int meshId) | |
| Constructs a cell given its id and associated mesh id. | |
Protected Member Functions inherited from GmpCellBase< Base, Proxy, CellMeshData, T, N, VN > | |
| CellMeshData * | meshData () const |
| Returns the mesh data object associated with this cell's mesh. | |
Basic implementation for a "Gema cell", adding the information about the offset of its nodes in the global mesh data node vector.
If the mesh is homogeneous, the offset could be replaced by a simple calculation based on the cell id but due to structure alignment needs, the size of a cell would NOT be reduced so we don't bother to try that distintion.
1.8.15