|
|
| CutCellFaceOverrides () noexcept |
| | Constructor. Holds no cell.
|
|
| ~CutCellFaceOverrides () noexcept=default |
| | Destructor.
|
|
void | clear () noexcept |
| | Drop every entry.
|
| void | beginCell (const IntVect &a_cell) |
| | Open the entries of a cell.
|
| void | beginFace (const int a_face, const int a_reason) |
| | Open a face of the cell last begun.
|
| void | addPolygon (const RealVect *a_vertices, const int *a_vertexEdges, const int a_numVertices) |
| | Add a polygon to the face last begun.
|
|
void | endCell () noexcept |
| | Drop the cell last begun if no face was added to it.
|
| int | numCells () const noexcept |
| | Number of cells with entries.
|
| int | find (const IntVect &a_cell) const noexcept |
| | A cell's position among the cells with entries.
|
| const IntVect & | cell (const int a_index) const noexcept |
| | The cell at an index.
|
| void | faces (const int a_index, int &a_begin, int &a_end) const noexcept |
| | The faces of a cell, as a range of face indices.
|
| int | face (const int a_face) const noexcept |
| | Which face of its cell a face entry is.
|
| int | reason (const int a_face) const noexcept |
| | Why a face entry overrides its face.
|
| void | polygons (const int a_face, int &a_begin, int &a_end) const noexcept |
| | The polygons of a face entry, as a range of polygon indices.
|
| void | vertices (const int a_polygon, int &a_begin, int &a_end) const noexcept |
| | The vertices of a polygon, as a range of vertex indices.
|
| const RealVect & | vertex (const int a_vertex) const noexcept |
| | A vertex position, in its cell's frame.
|
| int | vertexEdge (const int a_vertex) const noexcept |
| | The cell edge a vertex came from.
|
| int | linearSize (const int a_index) const noexcept |
| | Bytes one cell's entries occupy in a linear buffer.
|
| void | linearOut (void *a_buffer, const int a_index) const noexcept |
| | Write one cell's entries into a linear buffer: its faces, each with its polygons, each with its vertices. The cell itself is not written; whoever reads the buffer knows which cell it is for.
|
| int | linearIn (const void *a_buffer, const IntVect &a_cell) |
| | Read one cell's entries from a buffer written by linearOut, and add them for a cell.
|
| bool | equals (const CutCellFaceOverrides &a_other) const noexcept |
| | Whether two sets of entries are the same, bit for bit.
|
The faces of a box's cut cells that do not come from the cells' own chords.
A cut cell's body is built from its surface, and most of its faces are exactly what the surface's chords give. Two kinds of face are not. A face onto a cell the finer level carries is described at the finer level's resolution: the chord is replaced by the finer cells' chords, merged into the polygons stored here, less any quadrant across which the finer level filled a cell. A face onto a cell this level filled is closed, and what it gave up becomes interface in the plane of that face; such a face stores no polygon, only that it is closed. With these the body of every cut cell is a function of its own surface and its own entries here, and needs nothing from its neighbours or from the finer level.
In two dimensions a face is a segment, and the finer level's description of it is its crossing, which the surface already carries. What is left to store is which half of a face on a refinement boundary is closed, where the finer cell across it was filled, and which faces are closed onto a filled cell; no polygon is stored.
Stored compressed, in the order the faces are applied: the cells in increasing order, each with its faces, each face with its polygons, each polygon with its vertices. A cell's restricted faces come before its closed ones, and each kind in increasing face order, which is the order a body applies them in. Cells are ordered as a BoxIterator meets them, the highest direction the most significant, and found by bisection in that order.