27 #ifdef _MSC_VER // Microsoft Visual C++ -- warning level 4 28 #pragma warning( disable : 4611) // interaction between '_setjmp' and C++ object destruction is non-portable 29 #pragma warning( disable : 4996) // function was declared deprecated(strcpy, localtime, etc.) 35 const double QhullQh:: 36 default_factor_epsilon= 1.0;
47 , factor_epsilon(
QhullQh::default_factor_epsilon)
48 , use_output_stream(false)
81 if (curlong || totlong)
82 throw QhullError(10026,
"Qhull error: qhull did not free %d bytes of long memory (%d pieces).", totlong, curlong);
129 qhull_message.append(
"Cannot call maybeThrowQhullMessage() from QH_TRY_(). Or missing 'qh->NOerrexit=true;' after QH_TRY_(){...}.");
160 return "qhull: no message for error. Check cerr or error stream\n";
207 qh_fprintf_stderr(10025,
"Qhull error: qh_fprintf called from a Qhull instance without QhullQh defined\n");
220 vsnprintf(newMessage,
sizeof(newMessage), fmt, args);
227 vsnprintf(newMessage,
sizeof(newMessage), fmt, args);
234 vsnprintf(newMessage,
sizeof(newMessage), fmt, args);
void qh_initqhull_start2(FILE *infile, FILE *outfile, FILE *errfile)
void qh_fprintf_stderr(int msgcode, const char *fmt,...)
QhullRidge – Qhull's ridge structure, ridgeT, as a C++ class.
bool hasQhullMessage() const
hasQhullMessage does not throw errors (~Qhull)
void maybeThrowQhullMessage(int exitCode)
POD type equivalent to qhT. No virtual members.
void checkAndFreeQhullMemory()
int qhull_status
qh_ERRnone if valid
std::ostream * error_stream
overrides errorMessage, use appendQhullMessage()
std::ostream * output_stream
send output to stream
void appendQhullMessage(const std::string &s)
void clearQhullMessage()
clearQhullMessage does not throw errors (~Qhull)
void qh_freeqhull(boolT allmem)
void qh_fprintf(qhT *qh, FILE *fp, int msgcode, const char *fmt,...)
void logErrorLastResort() const
void qh_exit(int exitcode)
void qh_initstatistics(void)
bool use_output_stream
True if using output_stream.
std::string qhullMessage() const
qhullMessage does not throw errors (~Qhull)
void qh_memfreeshort(int *curlong, int *totlong)
void setOutputStream(std::ostream *os)
Updates use_output_stream.
QhullQh()
Derived from qh_new_qhull[user.c].
void setErrorStream(std::ostream *os)
void qh_meminit(FILE *ferr)
std::string qhull_message
Returned messages from libqhull_r.
static void clearGlobalLog()