33#include <NDEVR/Model.h>
34#include <NDEVR/GridMesh.h>
43 class NDEVR_DESIGN_API Grid :
public GridMesh<2>
50 explicit Grid(
const Geometry& model)
60 uint04 convertToIndex(uint04 x, uint04 y)
const
62 return GridMesh<2>::convertToIndex(Vector<2, uint04>(x, y));
70 Vector<3, fltp08> getGridNormalAt(Vector<2, fltp08> index)
const;
77 Vector<3, fltp08> getGridNormalAt(
const Vector<2, uint04>& index)
const;
82 void calculateGridNormals();
88 Buffer<uint04> getIndexArray();
95 bool processSelection(SelectionInfo& info)
const;
104 template<
class t_type>
105 void setGridVector(VertexProperty property, uint04 x, uint04 y,
const t_type& vector)
107 m_geo.setVertex(property, convertToIndex(x, y), vector);
117 template<
class t_type>
118 t_type getGridVector(VertexProperty property, uint04 x, uint04 y)
const
120 return m_geo.vertex<t_type>(property, convertToIndex(x, y));
128 void triangulate(
const Matrix<fltp08>& matrix, InfoPipe* log =
nullptr);
135 void calculateTangentSpace(
bool calc_tan,
bool calc_bitan);
Stores a uniform grid of data in N dimensions into a Geometry object.
The primary namespace for the NDEVR SDK.
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...