Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F112225372
QhullSet.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, May 9, 02:10
Size
1 KB
Mime Type
text/x-c
Expires
Sun, May 11, 02:10 (1 d, 5 h)
Engine
blob
Format
Raw Data
Handle
26026361
Attached To
rCADDMESH CADD_mesher
QhullSet.cpp
View Options
/****************************************************************************
**
** Copyright (c) 2008-2012 C.B. Barber. All rights reserved.
** $Id: //main/2011/qhull/src/libqhullrcpp/QhullSet.cpp#1 $$Change: 1640 $
** $DateTime: 2014/01/15 09:12:08 $$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
setelemT
*
sizep
;
if
(
!
set
)
return
(
0
);
sizep
=
SETsizeaddr_
(
set
);
if
((
size
=
sizep
->
i
))
{
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
Log In to Comment