/usr/include/MAdLib/CheckMesh.h is in libmadlib-dev 1.3.0-2.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | // -*- C++ -*-
// -------------------------------------------------------------------
// MAdLib - Copyright (C) 2008-2009 Universite catholique de Louvain
//
// See the Copyright.txt and License.txt files for license information.
// You should have received a copy of these files along with MAdLib.
// If not, see <http://www.madlib.be/license/>
//
// Please report all bugs and problems to <contrib@madlib.be>
//
// Authors: Jean-Francois Remacle, Gaetan Compere
// -------------------------------------------------------------------
#ifndef _CHECKMESH_H_
#define _CHECKMESH_H_
#include "MeshDataBaseInterface.h"
namespace MAd {
// -------------------------------------------------------------------
typedef enum MeshStatus {
VALID = 0,
NEGATIVE_VOLUME = 1,
GEOM_INCOMPATIBILITY = 2,
WRONG_EDGE_TO_RGN_CONN = 3,
WRONG_FACE_TO_RGN_CONN = 4,
WRONG_FACE_TO_VTX_CONN = 5,
WRONG_EDGE_CONN = 6,
WRONG_ENTITY_POINTERS = 7,
WRONG_ITERATORS = 8,
WRONG_PARAMETERS = 9
} MeshStatus;
// -------------------------------------------------------------------
typedef enum checkType {
CHECK_ALL,
CHECK_VOLUME,
CHECK_GEOM_COMPATIBILITY,
CHECK_EDGE_TO_RGN_CONN,
CHECK_FACE_TO_RGN_CONN,
CHECK_FACE_TO_VTX_CONN,
CHECK_EDGE_CONN,
CHECK_ENTITY_POINTERS,
CHECK_ITERATORS,
CHECK_PARAMETERS
} checkType;
// -------------------------------------------------------------------
// return 1 if the mesh passes the test successfully, 0 otherwise
bool checkMesh(MDB_Mesh * mesh, checkType type=CHECK_ALL, int verbose=1,
std::ostream& out=std::cout, MeshStatus * status=NULL);
// -------------------------------------------------------------------
}
#endif
|