Inviwo
0.9.10.1
Inviwo documentation
|
A curvilinear grid in nD. More...
#include <structuredgrid.h>
Public Member Functions | |
StructuredGrid (GridPrimitive gridDimension, const std::vector< ind > &numCellsPerDim) | |
Create an nD grid. More... | |
virtual ind | getNumCellsInDimension (ind dim) const |
void | getNumCells (std::vector< ind > &result) const |
virtual CellType | getCellType (GridPrimitive dim, ind index) const override |
Get the cell type (i.e. triangle, quad...; tetrahedron, voxel...) More... | |
virtual void | getConnections (std::vector< ind > &result, ind index, GridPrimitive from, GridPrimitive to, bool positions=false) const override |
Get the map from one element to another E.g. cell to its vertices, vertex to its neighbors, vertex to connected faces. More... | |
Public Member Functions inherited from inviwo::discretedata::Connectivity | |
Connectivity (GridPrimitive gridDimension) | |
GridPrimitive | getDimension () const |
Returns the maximal dimension of the grid. | |
virtual ind | getNumElements (GridPrimitive elementType) const |
Return the number of elements of the given type. More... | |
ElementRange | all (GridPrimitive dim) const |
Range of all elements to iterate over. More... | |
virtual CellType | getCellType (ElementIterator &element) const |
Get the cell type (i.e. triangle, quad...; tetrahedron, voxel...) More... | |
Protected Attributes | |
std::vector< ind > | numCellsPerDimension_ |
Protected Attributes inherited from inviwo::discretedata::Connectivity | |
GridPrimitive | gridDimension_ |
Highest dimension of GridPrimitives. | |
std::vector< ind > | numGridPrimitives_ |
Saves the known number of primitves. | |
A curvilinear grid in nD.
inviwo::discretedata::StructuredGrid::StructuredGrid | ( | GridPrimitive | gridDimension, |
const std::vector< ind > & | numCellsPerDim | ||
) |
Create an nD grid.
gridDimension | Dimension of grid (not vertices) |
numCellsPerDim | Number of cells in each dimension, expect size gridDimension+1 |
|
overridevirtual |
Get the cell type (i.e. triangle, quad...; tetrahedron, voxel...)
dim | Dimension of element (edge, face, volume...) |
index | Index of respective element type |
Reimplemented from inviwo::discretedata::Connectivity.
|
overridevirtual |
Get the map from one element to another E.g. cell to its vertices, vertex to its neighbors, vertex to connected faces.
result | All connected indices in dimension 'to' |
index | Index of element in dimension 'from' |
from | Dimension the index lives in |
to | Dimension the result lives in |
isPosition |
Implements inviwo::discretedata::Connectivity.
Reimplemented in inviwo::discretedata::PeriodicGrid.