Page MenuHomec4science

QhullSet.cpp
No OneTemporary

File Metadata

Created
Wed, Jul 17, 10:42

QhullSet.cpp

/****************************************************************************
**
** Copyright (C) 2008-2010 C.B. Barber. All rights reserved.
** $Id: //product/qhull/main/rel/cpp/QhullSet.cpp#21 $$Change: 1193 $
** $DateTime: 2010/01/23 11:31:35 $$Author: bbarber $
**
****************************************************************************/
#//! QhullSet -- Qhull's facet structure, facetT, as a C++ class
#include "QhullError.h"
#include "QhullSet.h"
#ifdef _MSC_VER // Microsoft Visual C++ -- warning level 4
#endif
namespace orgQhull {
#//static members
setT QhullSetBase::
s_empty_set;
// Same code for qh_setsize [qset.c] and QhullSetBase::count
int QhullSetBase::count(const setT *set)
{
int size;
const int *sizep;
if (!set)
return(0);
sizep= SETsizeaddr_(set);
if ((size= *sizep)) {
size--;
if (size > set->maxsize) {
// FIXUP QH11022 How to add additional output to a error? -- qh_setprint(qhmem.ferr, "set: ", set);
throw QhullError(10032, "QhullSet internal error: current set size %d is greater than maximum size %d\n",
size, set->maxsize);
}
}else
size= set->maxsize;
return size;
}
}//namespace orgQhull

Event Timeline