33#include <NDEVR/Model.h>
34#include <NDEVR/GridMesh.h>
44 explicit Grid(
const Geometry& model)
48 uint04 convertToIndex(uint04 x, uint04 y)
const
50 return GridMesh<2>::convertToIndex(Vector<2, uint04>(x, y));
52 Vector<3, fltp08> getGridNormalAt(Vector<2, fltp08> index)
const;
54 Vector<3, fltp08> getGridNormalAt(
const Vector<2, uint04>& index)
const;
56 void calculateGridNormals();
57 Buffer<uint04> getIndexArray();
58 bool processSelection(SelectionInfo& info)
const;
60 template<
class t_type>
61 void setGridVector(VertexProperty property, uint04 x, uint04 y,
const t_type& vector)
63 m_geo.setVertex(property, convertToIndex(x, y), vector);
65 template<
class t_type>
66 t_type getGridVector(VertexProperty property, uint04 x, uint04 y)
const
68 return m_geo.vertex<t_type>(property, convertToIndex(x, y));
71 void triangulate(
const Matrix<fltp08>& matrix, ProgressInfo* log =
nullptr);
72 void calculateTangentSpace(
bool calc_tan,
bool calc_bitan);
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:96