Subversion Repositories gelsvn

Rev

Rev 67 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 67 Rev 94
Line 22... Line 22...
22
		{
22
		{
23
			TET = 0,  // use tetrahedral decomposition 
23
			TET = 0,  // use tetrahedral decomposition 
24
			NOTET = 1  // no tetrahedral decomposition  */
24
			NOTET = 1  // no tetrahedral decomposition  */
25
		};
25
		};
26
 
26
 
-
 
27
	/** \brief Implicit function.
-
 
28
 
27
	/** The implicit function class represents the implicit function we wish 
29
	The implicit function class represents the implicit function we wish 
28
			to polygonize. Derive a class from this one and implement your 
30
			to polygonize. Derive a class from this one and implement your 
29
			implicit primitive in the eval function. Eval takes x,y,z coordinates and
31
			implicit primitive in the eval function. Eval takes x,y,z coordinates and
30
			returns a value. We assume that the surface is the zero level set 
32
			returns a value. We assume that the surface is the zero level set 
31
			and that the negative values are outside. This an arbitrary choice
33
			and that the negative values are outside. This an arbitrary choice
32
			which does not make the code less general. */
34
			which does not make the code less general. */
Line 46... Line 48...
46
	struct TRIANGLE
48
	struct TRIANGLE
47
	{
49
	{
48
		int v0,v1,v2;
50
		int v0,v1,v2;
49
	};
51
	};
50
 
52
 
51
	/** Polygonizer is the class used to perform polygonization.*/
53
	/** \brief Polygonizer is the class used to perform polygonization.*/
52
	class Polygonizer
54
	class Polygonizer
53
		{
55
		{
54
			std::vector<NORMAL> gnormals;  
56
			std::vector<NORMAL> gnormals;  
55
			std::vector<VERTEX> gvertices;  
57
			std::vector<VERTEX> gvertices;  
56
			std::vector<TRIANGLE> gtriangles;
58
			std::vector<TRIANGLE> gtriangles;