Subversion Repositories gelsvn

Rev

Rev 219 | Rev 222 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 219 Rev 220
Line 138... Line 138...
138
							 not fixed by the check above. */
138
							 not fixed by the check above. */
139
							 
139
							 
140
						if(valency(he->next->vert)<5)
140
						if(valency(he->next->vert)<5)
141
								return false;
141
								return false;
142
 
142
 
143
						if((valency(he->vert) + valency(he->opp->vert) ) > 12)
143
						if((valency(he->vert) + valency(he->opp->vert) ) > 13)
144
								return false;
144
								return false;
145
 
145
 
146
						return true;
146
						return true;
147
				}
147
				}
148
 
148
 
Line 157... Line 157...
157
						q += Q2;
157
						q += Q2;
158
 
158
 
159
						float err;
159
						float err;
160
						Vec3d opt_pos(0);
160
						Vec3d opt_pos(0);
161
 
161
 
162
						//cout << q.determinant() << endl;
-
 
163
						if (q.determinant()>= 1e-5)
162
						if (q.determinant()>= 1e-15)
164
						{
163
						{
165
								opt_pos = q.opt_pos(1e-5);
164
								opt_pos = q.opt_pos(0.001);
166
								err = q.error(opt_pos);
165
								err = q.error(opt_pos);
167
						}
166
						}
168
						else
167
						else
169
						{
168
						{
170
								// To see the effectivenes of the scheme, we can create 
169
								// To see the effectivenes of the scheme, we can create