Subversion Repositories gelsvn

Rev

Rev 396 | Rev 432 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 396 Rev 400
Line 25... Line 25...
25
	void draw(const Geometry::AABox& box);
25
	void draw(const Geometry::AABox& box);
26
	
26
	
27
	/// Draw an oriented bounding box
27
	/// Draw an oriented bounding box
28
	void draw(const Geometry::OBox& box);
28
	void draw(const Geometry::OBox& box);
29
	
29
	
30
	
-
 
-
 
30
	/// Draw an object of type T which contains only triangles as wireframe. In practice T = Manifold or TriMesh.
31
	template<typename T>
31
	template<typename T>
32
	inline void draw_triangles_in_wireframe(T& m, bool per_vertex_norms, const CGLA::Vec3f& line_color)
32
	inline void draw_triangles_in_wireframe(T& m, bool per_vertex_norms, const CGLA::Vec3f& line_color)
33
	{
33
	{
34
		static SinglePassWireframeRenderer swr;
34
		static SinglePassWireframeRenderer swr;
35
		swr.enable(line_color);
35
		swr.enable(line_color);
36
		draw(m, per_vertex_norms);
36
		draw(m, per_vertex_norms);
37
		swr.disable();
37
		swr.disable();
38
	}
38
	}
39
	
39
	
-
 
40
	/// Draw an object of type T as wireframe.  In practice T = Manifold or TriMesh.
40
	template<class T>
41
	template<class T>
41
	void draw_wireframe_oldfashioned(T& m, bool per_vertex_norms, const CGLA::Vec3f& line_color);
42
	void draw_wireframe_oldfashioned(T& m, bool per_vertex_norms, const CGLA::Vec3f& line_color);
42
	
43
	
43
	
44
	
44
	
45