Subversion Repositories gelsvn

Rev

Rev 362 | Rev 372 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
167 jab 1
#ifndef __GLGRAPHICS_DRAW_H_
2
#define __GLGRAPHICS_DRAW_H_
3
 
4
#include "Geometry/TriMesh.h"
299 jrf 5
#include "Geometry/AABox.h"
6
#include "Geometry/OBox.h"
7
#include "Geometry/BoundingINode.h"
8
#include "Geometry/BoundingLNode.h"
9
#include "Geometry/BoundingTree.h"
331 jab 10
#include "HMesh/Manifold.h"
167 jab 11
 
299 jrf 12
namespace GLGraphics
13
{
362 jab 14
  /// Draw a triangles mesh. Inefficient function that should be compiled into a display list.
331 jab 15
  void draw(const Geometry::TriMesh& tm, bool per_vertex_norms=true);
368 jrf 16
 
17
  void draw(const Geometry::TriMesh& tm, bool per_vertex_norms, bool draw_wire);
18
 
362 jab 19
  /// Draw an axis aligned bounding box
299 jrf 20
  void draw(const Geometry::AABox& box);
362 jab 21
 
22
  /// Draw an oriented bounding box
299 jrf 23
  void draw(const Geometry::OBox& box);
362 jab 24
 
25
  /// Draw a HMesh Manifold
26
  void draw(HMesh::Manifold& m, bool per_vertex_norms=true);
331 jab 27
 
299 jrf 28
 
29
  template<class BoxType>
30
	void draw(const Geometry::BoundingINode<BoxType>& node, int level, int max_level);
31
  template<class BoxType>
32
    void draw(const Geometry::BoundingLNode<BoxType>& node, int level, int max_level);
33
  template<class BoxType>
34
    void draw(const Geometry::BoundingTree<BoxType>& tree, int max_level = 1e6);
167 jab 35
 
299 jrf 36
}
167 jab 37
#endif