Changed many explicit exception throwing for missing components into the shorthand RequireXXXX
This commit is contained in:
parent
5565647e82
commit
df6865a6de
|
@ -308,8 +308,9 @@ wrapping function.
|
||||||
VertexPointer farthest=0;
|
VertexPointer farthest=0;
|
||||||
// int t0=clock();
|
// int t0=clock();
|
||||||
//Requirements
|
//Requirements
|
||||||
if(!HasVFAdjacency(m)) throw vcg::MissingComponentException("VFAdjacency");
|
tri::RequireVEAdjacency(m);
|
||||||
if(!HasPerVertexQuality(m)) throw vcg::MissingComponentException("VertexQuality");
|
tri::RequirePerVertexQuality(m);
|
||||||
|
|
||||||
assert(!seedVec.empty());
|
assert(!seedVec.empty());
|
||||||
|
|
||||||
TempDataType TD(m.vert, std::numeric_limits<ScalarType>::max());
|
TempDataType TD(m.vert, std::numeric_limits<ScalarType>::max());
|
||||||
|
|
Loading…
Reference in New Issue