43 float getHeight(
const float x,
const float y)
const;
47 float getNullHeight()
const {
return nullHeight;}
51 static const int GRID_LENGTH = 60;
53 typedef std::vector<int> FaceVector;
57 float getHeight(
const OBJ& obj,
const float x,
const float y)
const;
60 static float face_height_at(
const OBJ& obj,
const unsigned int *pTriangle,
const float x,
const float y);
70 GridSpace* getSpace(
const float x,
const float y)
const ;
71 bool face_in_area(
const OBJ& obj,
const unsigned int* pTriangle,
const float xmin,
const float ymin,
const float xmax,
const float ymax)
const;
75 #endif // HEIGHTMAP_HPP
This represents a heightmap for viewer-ground collision.
float getHeight(const float x, const float y) const
Get z Value at (x,y) coordinates.
Heightmap(OBJ *obj)
Construct a heightmap from a loaded OBJ mesh.
A basic Wavefront .OBJ format model loader.
void setNullHeight(float h)
set/retrieve default height