Subversion Repositories gelsvn

Rev

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

Rev 373 Rev 417
Line 343... Line 343...
343
		}
343
		}
344
	}
344
	}
345
	
345
	
346
	void quadric_simplify(Manifold& m, double keep_fraction, double singular_thresh, bool choose_optimal_positions)
346
	void quadric_simplify(Manifold& m, double keep_fraction, double singular_thresh, bool choose_optimal_positions)
347
	{
347
	{
348
		srand(1210);
348
		gel_srand(1210);
349
		int F = m.no_faces();
349
		int F = m.no_faces();
350
		int max_work = max(0, F- static_cast<int>(keep_fraction * F));
350
		int max_work = max(0, F- static_cast<int>(keep_fraction * F));
351
		QuadricSimplifier qsim(m, singular_thresh, choose_optimal_positions);
351
		QuadricSimplifier qsim(m, singular_thresh, choose_optimal_positions);
352
		qsim.reduce(max_work);
352
		qsim.reduce(max_work);
353
	}
353
	}