Subversion Repositories gelsvn

Rev

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

Rev 39 Rev 54
Line 55... Line 55...
55
		FaceCirculator fc(f);
55
		FaceCirculator fc(f);
56
		int k;
56
		int k;
57
 
57
 
58
		// M is a matrix that projects a vector onto the orthogonal
58
		// M is a matrix that projects a vector onto the orthogonal
59
		// complement of the face normal
59
		// complement of the face normal
60
		Mat3x3f M;
-
 
61
		Vec3f n = get_normal(f);
60
		Vec3f n = get_normal(f);
-
 
61
		Vec3f a,b;
62
		outer_product(n,n,M);
62
		orthogonal(n, a, b);
63
		M = identity_Mat3x3f() - M;
63
		Mat3x3f M(a,b,n);
64
 
64
 
65
		// Get all projected vertices
65
		// Get all projected vertices
66
		vector<Vec2f> v;		
66
		vector<Vec2f> v;		
67
		for(k=0;!fc.end();++fc,++k)
67
		for(k=0;!fc.end();++fc,++k)
68
			{
68
			{