6#ifndef STRUCTURED_GRID_H
7#define STRUCTURED_GRID_H
37 Index getNumGhostLayers(
unsigned dim, GhostLayerPosition pos)
override;
38 Index getNumGhostLayers(
unsigned dim, GhostLayerPosition pos)
const override;
40 void setGlobalIndexOffset(
int c,
Index offset)
override;
43 void setNumGhostLayers(
unsigned dim, GhostLayerPosition pos,
unsigned value)
override;
46 Index getNumVertices()
const override;
47 std::pair<Vector, Vector> getBounds()
const override;
50 std::pair<Vector, Vector> cellBounds(
Index elem)
const override;
52 bool inside(
Index elem,
const Vector &point)
const override;
54 InterpolationMode mode = Linear)
const override;
56 bool hasCelltree()
const override;
58 bool validateCelltree()
const override;
65 mutable Index m_numDivisions[3];
66 mutable Index m_ghostLayers[3][2];
69 void createCelltree(
Index dims[])
const;
76 Index numDivisions[3];
77 Index ghostLayers[3][2];
79 Data(
const Index numVert_x,
const Index numVert_y,
const Index numVert_z,
const std::string &name,
82 static Data *create(
const Index numVert_x = 0,
const Index numVert_y = 0,
const Index numVert_z = 0,
#define ARCHIVE_ASSUME_ABSTRACT(obj)
Definition: archives_config.h:466
Definition: celltree.h:172
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: structuredgridbase.h:20
Definition: structuredgrid.h:24
Index getGlobalIndexOffset(int c) const override
Definition: structuredgrid.h:39
Index getNumDivisions(int c) override
Definition: structuredgrid.h:35
Normals::const_ptr normals() const override
CelltreeInterface< 3 >::Celltree Celltree
Definition: structuredgrid.h:29
Coords Base
Definition: structuredgrid.h:28
Index getNumDivisions(int c) const override
Definition: structuredgrid.h:36
Scalar Scalar
Definition: vec.h:23
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
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