Subversion Repositories gelsvn

Rev

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

Rev Author Line No. Line
443 jab 1
#ifndef __GEOMETRY_TESSELATE_H
2
#define __GEOMETRY_TESSELATE_H
362 jab 3
 
4
#include "CGLA/Vec3f.h"
5
#include "Util/Grid2D.h"
6
#include "IndexedFaceSet.h"
7
 
8
namespace Geometry
9
{
10
 
11
	class ParSurf
12
{
13
public:
14
	virtual CGLA::Vec3f operator()(float u, float v) const = 0;
15
};
16
 
17
extern float MAX_ERR;
18
extern float MAX_DIST;
19
extern int ADAPTIVE;
20
 
21
 
22
void tessellate(IndexedFaceSet& face_set, ParSurf& s,
23
			   float u_min, float u_max, float v_min, float v_max, 
24
			   int n, int m);
25
 
26
void tessellate(IndexedFaceSet& face_set, ParSurf& s, 
27
			   Util::Grid2D<CGLA::Vec3f>& inigrid);
28
 
29
void tessellate(IndexedFaceSet& face_set, ParSurf& s, 
30
			   std::vector<CGLA::Vec2f> uv_points,
31
			   std::vector<CGLA::Vec3i> triangles);
32
}
33
 
34
#endif