throw exception -> RequireXXXX refactoring
This commit is contained in:
parent
3b38917e95
commit
f456e8aca3
|
@ -226,8 +226,8 @@ class Quadric
|
||||||
static void computeCurvature(MeshType & m)
|
static void computeCurvature(MeshType & m)
|
||||||
{
|
{
|
||||||
Allocator<MeshType>::CompactVertexVector(m);
|
Allocator<MeshType>::CompactVertexVector(m);
|
||||||
|
tri::RequireCompactness(m);
|
||||||
if(!HasFVAdjacency(m)) throw vcg::MissingComponentException("FVAdjacency");
|
tri::RequireVFAdjacency(m);
|
||||||
|
|
||||||
vcg::tri::UpdateTopology<MeshType>::VertexFace(m);
|
vcg::tri::UpdateTopology<MeshType>::VertexFace(m);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue