33#include <NDEVR/Model.h>
34#include <NDEVR/GridMesh.h>
41 explicit Grid(
const Geometry& model)
45 uint04 convertToIndex(uint04 x, uint04 y)
const
47 return GridMesh<2>::convertToIndex(Vector<2, uint04>(x, y));
49 Vector<3, fltp08> getGridNormalAt(Vector<2, fltp08> index)
const;
51 Vector<3, fltp08> getGridNormalAt(
const Vector<2, uint04>& index)
const;
53 void calculateGridNormals();
54 Buffer<uint04> getIndexArray();
55 bool processSelection(SelectionInfo& info)
const;
57 template<
class t_type>
58 void setGridVector(VertexProperty property, uint04 x, uint04 y,
const t_type& vector)
60 m_geo.setVertex(property, convertToIndex(x, y), vector);
62 template<
class t_type>
63 t_type getGridVector(VertexProperty property, uint04 x, uint04 y)
const
65 return m_geo.vertex<t_type>(property, convertToIndex(x, y));
68 void triangulate(
const Matrix<fltp08>& matrix, ProgressInfo* log =
nullptr);
69 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:120