Changed many explicit exception throwing for missing components into the shorthand RequireXXXX

This commit is contained in:
Paolo Cignoni 2014-11-03 14:38:05 +00:00
parent 5565647e82
commit df6865a6de
1 changed files with 3 additions and 2 deletions

View File

@ -308,8 +308,9 @@ wrapping function.
VertexPointer farthest=0;
// int t0=clock();
//Requirements
if(!HasVFAdjacency(m)) throw vcg::MissingComponentException("VFAdjacency");
if(!HasPerVertexQuality(m)) throw vcg::MissingComponentException("VertexQuality");
tri::RequireVEAdjacency(m);
tri::RequirePerVertexQuality(m);
assert(!seedVec.empty());
TempDataType TD(m.vert, std::numeric_limits<ScalarType>::max());