In debug mode write a warning message in garbage collection, if the status flags are missing for one of the primitives.
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@659 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
@@ -44,7 +44,6 @@
|
|||||||
//== INCLUDES =================================================================
|
//== INCLUDES =================================================================
|
||||||
|
|
||||||
#include <OpenMesh/Core/Mesh/ArrayKernel.hh>
|
#include <OpenMesh/Core/Mesh/ArrayKernel.hh>
|
||||||
//#include <vector>
|
|
||||||
|
|
||||||
//== NAMESPACES ===============================================================
|
//== NAMESPACES ===============================================================
|
||||||
|
|
||||||
@@ -62,6 +61,17 @@ void ArrayKernel::garbage_collection(std_API_Container_VHandlePointer& vh_to_upd
|
|||||||
bool _v, bool _e, bool _f)
|
bool _v, bool _e, bool _f)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
#ifdef DEBUG
|
||||||
|
#ifndef OM_GARBAGE_NO_STATUS_WARNING
|
||||||
|
if ( !this->has_vertex_status() )
|
||||||
|
omerr() << "garbage_collection: No vertex status available. You can request it: mesh.request_vertex_status() or define OM_GARBAGE_NO_STATUS_WARNING to silence this warning." << std::endl;
|
||||||
|
if ( !this->has_edge_status() )
|
||||||
|
omerr() << "garbage_collection: No edge status available. You can request it: mesh.request_edge_status() or define OM_GARBAGE_NO_STATUS_WARNING to silence this warning." << std::endl;
|
||||||
|
if ( !this->has_face_status() )
|
||||||
|
omerr() << "garbage_collection: No face status available. You can request it: mesh.request_face_status() or define OM_GARBAGE_NO_STATUS_WARNING to silence this warning." << std::endl;
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
int i, i0, i1, nV(n_vertices()), nE(n_edges()), nH(2*n_edges()), nF(n_faces());
|
int i, i0, i1, nV(n_vertices()), nE(n_edges()), nH(2*n_edges()), nF(n_faces());
|
||||||
|
|
||||||
std::vector<VertexHandle> vh_map;
|
std::vector<VertexHandle> vh_map;
|
||||||
|
|||||||
Reference in New Issue
Block a user