List of all members
orgQhull::Qhull Class Reference

Interface to Qhull from C++. More...

#include <Qhull.h>

Public Member Functions

GetSet
void checkIfQhullInitialized ()
 
int dimension () const
 Dimension of input and result. More...
 
void disableOutputStream ()
 
void enableOutputStream ()
 
countT facetCount () const
 
Coordinates feasiblePoint () const
 
int hullDimension () const
 Dimension of the computed hull. More...
 
bool hasOutputStream () const
 
bool initialized () const
 
const char * inputComment () const
 
QhullPoint inputOrigin ()
 Return origin point for qh.input_dim. More...
 
QhullPoint origin ()
 non-const due to QhullPoint More...
 
QhullQhqh () const
 
const char * qhullCommand () const
 
const char * rboxCommand () const
 
int rotateRandom () const
 Return QRn for repeating QR0 runs. More...
 
void setFeasiblePoint (const Coordinates &c)
 Sets qh.feasible_point via initializeFeasiblePoint. More...
 
countT vertexCount () const
 
Delegated to QhullQh
double angleEpsilon () const
 Epsilon for hyperplane angle equality. More...
 
void appendQhullMessage (const std::string &s)
 
void clearQhullMessage ()
 
double distanceEpsilon () const
 Epsilon for distance to hyperplane. More...
 
double factorEpsilon () const
 Factor for angleEpsilon and distanceEpsilon. More...
 
std::string qhullMessage () const
 
bool hasQhullMessage () const
 
int qhullStatus () const
 
void setErrorStream (std::ostream *os)
 
void setFactorEpsilon (double a)
 
void setOutputStream (std::ostream *os)
 
ForEach
QhullFacet beginFacet () const
 
QhullVertex beginVertex () const
 
void defineVertexNeighborFacets ()
 Automatically called if merging facets or Voronoi diagram. More...
 
QhullFacet endFacet () const
 
QhullVertex endVertex () const
 
QhullFacetList facetList () const
 
QhullFacet firstFacet () const
 
QhullVertex firstVertex () const
 
QhullPoints points () const
 
QhullPointSet otherPoints () const
 
coordTpointCoordinateBegin () const
 Same as points().coordinates() More...
 
coordTpointCoordinateEnd () const
 
QhullVertexList vertexList () const
 Return vertices of the convex hull. More...
 
Methods
double area ()
 
void outputQhull ()
 
void outputQhull (const char *outputflags)
 
void runQhull (const RboxPoints &rboxPoints, const char *qhullCommand2)
 For qhull commands, see http://www.qhull.org/html/qhull.htm or html/qhull.htm. More...
 
void runQhull (const char *inputComment2, int pointDimension, int pointCount, const realT *pointCoordinates, const char *qhullCommand2)
 
double volume ()
 

Private Member Functions

Helpers
void initializeFeasiblePoint (int hulldim)
 

Private Attributes

Members and friends
QhullQhqh_qh
 
Coordinates origin_point
 qhT for this instance More...
 
bool run_called
 origin for qh_qh->hull_dim. Set by runQhull() More...
 
Coordinates feasible_point
 True at start of runQhull. Errors if call again. More...
 

Constructors

feasible point for half-space intersection (alternative to qh.feasible_string for qh.feasible_point)

 Qhull ()
 call runQhull() next More...
 
 Qhull (const RboxPoints &rboxPoints, const char *qhullCommand2)
 
 Qhull (const char *inputComment2, int pointDimension, int pointCount, const realT *pointCoordinates, const char *qhullCommand2)
 
 ~Qhull () throw ()
 
 Qhull (const Qhull &)
 Disable copy constructor and assignment. Qhull owns QhullQh. More...
 
Qhulloperator= (const Qhull &)
 
void allocateQhullQh ()
 

Detailed Description

Interface to Qhull from C++.

Definition at line 43 of file Qhull.h.

Constructor & Destructor Documentation

◆ Qhull() [1/4]

orgQhull::Qhull::Qhull ( )

call runQhull() next

Definition at line 41 of file Qhull.cpp.

◆ Qhull() [2/4]

orgQhull::Qhull::Qhull ( const RboxPoints rboxPoints,
const char *  qhullCommand2 
)

Invokes Qhull on rboxPoints Same as runQhull() For rbox commands, see http://www.qhull.org/html/rbox.htm or html/rbox.htm For qhull commands, see http://www.qhull.org/html/qhull.htm or html/qhull.htm

Definition at line 55 of file Qhull.cpp.

◆ Qhull() [3/4]

orgQhull::Qhull::Qhull ( const char *  inputComment2,
int  pointDimension,
int  pointCount,
const realT pointCoordinates,
const char *  qhullCommand2 
)

Invokes Qhull on a set of input points Same as runQhull() For qhull commands, see http://www.qhull.org/html/qhull.htm or html/qhull.htm

Definition at line 69 of file Qhull.cpp.

◆ ~Qhull()

orgQhull::Qhull::~Qhull ( )
throw (
)

Definition at line 95 of file Qhull.cpp.

◆ Qhull() [4/4]

orgQhull::Qhull::Qhull ( const Qhull )
private

Disable copy constructor and assignment. Qhull owns QhullQh.

Member Function Documentation

◆ allocateQhullQh()

void orgQhull::Qhull::allocateQhullQh ( )
private

Definition at line 80 of file Qhull.cpp.

◆ angleEpsilon()

double orgQhull::Qhull::angleEpsilon ( ) const
inline

Epsilon for hyperplane angle equality.

Definition at line 89 of file Qhull.h.

◆ appendQhullMessage()

void orgQhull::Qhull::appendQhullMessage ( const std::string &  s)
inline

Definition at line 90 of file Qhull.h.

◆ area()

double orgQhull::Qhull::area ( )

Definition at line 143 of file Qhull.cpp.

◆ beginFacet()

QhullFacet orgQhull::Qhull::beginFacet ( ) const
inline

Definition at line 102 of file Qhull.h.

◆ beginVertex()

QhullVertex orgQhull::Qhull::beginVertex ( ) const
inline

Definition at line 103 of file Qhull.h.

◆ checkIfQhullInitialized()

void orgQhull::Qhull::checkIfQhullInitialized ( )

Definition at line 110 of file Qhull.cpp.

◆ clearQhullMessage()

void orgQhull::Qhull::clearQhullMessage ( )
inline

Definition at line 91 of file Qhull.h.

◆ defineVertexNeighborFacets()

void orgQhull::Qhull::defineVertexNeighborFacets ( )

Automatically called if merging facets or Voronoi diagram.

Define QhullVertex::neighborFacets(). Automatically called if merging facets or computing the Voronoi diagram. Noop if called multiple times.

Definition at line 174 of file Qhull.cpp.

◆ dimension()

int orgQhull::Qhull::dimension ( ) const
inline

Dimension of input and result.

Definition at line 69 of file Qhull.h.

◆ disableOutputStream()

void orgQhull::Qhull::disableOutputStream ( )
inline

Definition at line 70 of file Qhull.h.

◆ distanceEpsilon()

double orgQhull::Qhull::distanceEpsilon ( ) const
inline

Epsilon for distance to hyperplane.

Definition at line 92 of file Qhull.h.

◆ enableOutputStream()

void orgQhull::Qhull::enableOutputStream ( )
inline

Definition at line 71 of file Qhull.h.

◆ endFacet()

QhullFacet orgQhull::Qhull::endFacet ( ) const
inline

Definition at line 105 of file Qhull.h.

◆ endVertex()

QhullVertex orgQhull::Qhull::endVertex ( ) const
inline

Definition at line 106 of file Qhull.h.

◆ facetCount()

countT orgQhull::Qhull::facetCount ( ) const
inline

Definition at line 72 of file Qhull.h.

◆ facetList()

QhullFacetList orgQhull::Qhull::facetList ( ) const

Definition at line 186 of file Qhull.cpp.

◆ factorEpsilon()

double orgQhull::Qhull::factorEpsilon ( ) const
inline

Factor for angleEpsilon and distanceEpsilon.

Definition at line 93 of file Qhull.h.

◆ feasiblePoint()

Coordinates orgQhull::Qhull::feasiblePoint ( ) const

Return feasiblePoint for halfspace intersection If called before runQhull(), then it returns the value from setFeasiblePoint. qh.feasible_string overrides this value if it is defined.

Definition at line 120 of file Qhull.cpp.

◆ firstFacet()

QhullFacet orgQhull::Qhull::firstFacet ( ) const
inline

Definition at line 108 of file Qhull.h.

◆ firstVertex()

QhullVertex orgQhull::Qhull::firstVertex ( ) const
inline

Definition at line 109 of file Qhull.h.

◆ hasOutputStream()

bool orgQhull::Qhull::hasOutputStream ( ) const
inline

Definition at line 75 of file Qhull.h.

◆ hasQhullMessage()

bool orgQhull::Qhull::hasQhullMessage ( ) const
inline

Definition at line 95 of file Qhull.h.

◆ hullDimension()

int orgQhull::Qhull::hullDimension ( ) const
inline

Dimension of the computed hull.

Definition at line 74 of file Qhull.h.

◆ initialized()

bool orgQhull::Qhull::initialized ( ) const
inline

Definition at line 76 of file Qhull.h.

◆ initializeFeasiblePoint()

void orgQhull::Qhull::initializeFeasiblePoint ( int  hulldim)
private

initialize qh.feasible_point for half-space intersection Sets from qh.feasible_string if available, otherwise from Qhull::feasible_point called only once from runQhull(), otherwise it leaks memory (the same as qh_setFeasible)

Definition at line 323 of file Qhull.cpp.

◆ inputComment()

const char* orgQhull::Qhull::inputComment ( ) const
inline

Definition at line 77 of file Qhull.h.

◆ inputOrigin()

QhullPoint orgQhull::Qhull::inputOrigin ( )

Return origin point for qh.input_dim.

Definition at line 133 of file Qhull.cpp.

◆ operator=()

Qhull& orgQhull::Qhull::operator= ( const Qhull )
private

◆ origin()

QhullPoint orgQhull::Qhull::origin ( )
inline

non-const due to QhullPoint

Definition at line 80 of file Qhull.h.

◆ otherPoints()

QhullPointSet orgQhull::Qhull::otherPoints ( ) const

Definition at line 197 of file Qhull.cpp.

◆ outputQhull() [1/2]

void orgQhull::Qhull::outputQhull ( )

Definition at line 211 of file Qhull.cpp.

◆ outputQhull() [2/2]

void orgQhull::Qhull::outputQhull ( const char *  outputflags)

Definition at line 222 of file Qhull.cpp.

◆ pointCoordinateBegin()

coordT* orgQhull::Qhull::pointCoordinateBegin ( ) const
inline

Same as points().coordinates()

Definition at line 113 of file Qhull.h.

◆ pointCoordinateEnd()

coordT* orgQhull::Qhull::pointCoordinateEnd ( ) const
inline

Definition at line 114 of file Qhull.h.

◆ points()

QhullPoints orgQhull::Qhull::points ( ) const

Definition at line 191 of file Qhull.cpp.

◆ qh()

QhullQh* orgQhull::Qhull::qh ( ) const
inline

Definition at line 81 of file Qhull.h.

◆ qhullCommand()

const char* orgQhull::Qhull::qhullCommand ( ) const
inline

Definition at line 82 of file Qhull.h.

◆ qhullMessage()

std::string orgQhull::Qhull::qhullMessage ( ) const
inline

Definition at line 94 of file Qhull.h.

◆ qhullStatus()

int orgQhull::Qhull::qhullStatus ( ) const
inline

Definition at line 96 of file Qhull.h.

◆ rboxCommand()

const char* orgQhull::Qhull::rboxCommand ( ) const
inline

Definition at line 83 of file Qhull.h.

◆ rotateRandom()

int orgQhull::Qhull::rotateRandom ( ) const
inline

Return QRn for repeating QR0 runs.

Definition at line 84 of file Qhull.h.

◆ runQhull() [1/2]

void orgQhull::Qhull::runQhull ( const RboxPoints rboxPoints,
const char *  qhullCommand2 
)

For qhull commands, see http://www.qhull.org/html/qhull.htm or html/qhull.htm.

Definition at line 256 of file Qhull.cpp.

◆ runQhull() [2/2]

void orgQhull::Qhull::runQhull ( const char *  inputComment2,
int  pointDimension,
int  pointCount,
const realT pointCoordinates,
const char *  qhullCommand2 
)

pointCoordinates is a array of points, input sites ('d' or 'v'), or halfspaces with offset last ('H') Derived from qh_new_qhull [user.c] For rbox commands, see http://www.qhull.org/html/rbox.htm or html/rbox.htm For qhull commands, see http://www.qhull.org/html/qhull.htm or html/qhull.htm

Definition at line 266 of file Qhull.cpp.

◆ setErrorStream()

void orgQhull::Qhull::setErrorStream ( std::ostream *  os)
inline

Definition at line 97 of file Qhull.h.

◆ setFactorEpsilon()

void orgQhull::Qhull::setFactorEpsilon ( double  a)
inline

Definition at line 98 of file Qhull.h.

◆ setFeasiblePoint()

void orgQhull::Qhull::setFeasiblePoint ( const Coordinates c)
inline

Sets qh.feasible_point via initializeFeasiblePoint.

Definition at line 85 of file Qhull.h.

◆ setOutputStream()

void orgQhull::Qhull::setOutputStream ( std::ostream *  os)
inline

Definition at line 99 of file Qhull.h.

◆ vertexCount()

countT orgQhull::Qhull::vertexCount ( ) const
inline

Definition at line 86 of file Qhull.h.

◆ vertexList()

QhullVertexList orgQhull::Qhull::vertexList ( ) const

Return vertices of the convex hull.

Definition at line 204 of file Qhull.cpp.

◆ volume()

double orgQhull::Qhull::volume ( )

Definition at line 156 of file Qhull.cpp.

Member Data Documentation

◆ feasible_point

Coordinates orgQhull::Qhull::feasible_point
private

True at start of runQhull. Errors if call again.

Definition at line 50 of file Qhull.h.

◆ origin_point

Coordinates orgQhull::Qhull::origin_point
private

qhT for this instance

Definition at line 48 of file Qhull.h.

◆ qh_qh

QhullQh* orgQhull::Qhull::qh_qh
private

Definition at line 47 of file Qhull.h.

◆ run_called

bool orgQhull::Qhull::run_called
private

origin for qh_qh->hull_dim. Set by runQhull()

Definition at line 49 of file Qhull.h.


The documentation for this class was generated from the following files:


hpp-fcl
Author(s):
autogenerated on Fri Jun 2 2023 02:39:03