6#ifndef RECTILINEAR_GRID_H
7#define RECTILINEAR_GRID_H
30 std::set<Object::const_ptr> referencedObjects()
const override;
35 Index getNumGhostLayers(
unsigned dim, GhostLayerPosition pos)
override;
36 Index getNumGhostLayers(
unsigned dim, GhostLayerPosition pos)
const override;
38 void setGlobalIndexOffset(
int c,
Index offset)
override;
41 void setNumGhostLayers(
unsigned dim, GhostLayerPosition pos,
unsigned value)
override;
48 Index getNumVertices()
override;
49 Index getNumVertices()
const override;
50 std::pair<Vector, Vector> getBounds()
const override;
53 std::pair<Vector, Vector> cellBounds(
Index elem)
const override;
55 bool inside(
Index elem,
const Vector &point)
const override;
57 InterpolationMode mode = Linear)
const override;
65 mutable Index m_numDivisions[3];
66 mutable const Scalar *m_coords[3];
67 mutable Index m_ghostLayers[3][2];
68 mutable Index m_size = 0;
76 Index ghostLayers[3][2];
78 Data(
const Index numDivX,
const Index numDivY,
const Index numDivZ,
const std::string &name,
81 static Data *create(
const Index numDivX = 0,
const Index numDivY = 0,
const Index numDivZ = 0,
return at least those elements sharing faces with elem, but might also contain those just sharing ver...
Definition: grid.h:33
std::shared_ptr< const Object > const_ptr
Definition: object.h:68
Definition: rectilineargrid.h:21
const Scalar * coords(int c) const
Definition: rectilineargrid.h:45
shm< Scalar >::array & coords(int c)
Definition: rectilineargrid.h:44
Object Base
Definition: rectilineargrid.h:25
Index getNumDivisions(int c) const override
Definition: rectilineargrid.h:34
Index getNumDivisions(int c) override
Definition: rectilineargrid.h:33
Normals::const_ptr normals() const override
Index getGlobalIndexOffset(int c) const override
Definition: rectilineargrid.h:37
Definition: structuredgridbase.h:20
Definition: shm_reference.h:15
Definition: shm_array.h:19
Definition: shm_obj_ref.h:15
#define V_COREEXPORT
Definition: export.h:9
Definition: allobjects.cpp:30
Vector3 Vector
Definition: vector.h:36
const Index InvalidIndex
Definition: index.h:17
float Scalar
Definition: scalar.h:14
uint32_t Index
Definition: index.h:13
#define V_DATA_BEGIN(ObjType)
Definition: object.h:474
#define V_DATA_END(ObjType)
Definition: object.h:481
#define V_OBJECT(ObjType)
declare a new Object type
Definition: object.h:381