12 #include "QhullPoint.h"
13 #include "QhullFacetSet.h"
14 #include "QhullVertex.h"
15 #include "QhullFacet.h"
18 #pragma warning( disable : 4611)
19 #pragma warning( disable : 4996)
26 s_empty_vertex= {0,0,0,0,0,
32 QhullVertex::QhullVertex(
const Qhull &q)
33 : qh_vertex(&s_empty_vertex)
38 QhullVertex::QhullVertex(
const Qhull &q, vertexT *v)
39 : qh_vertex(v ? v : &s_empty_vertex)
48 QhullFacetSet QhullVertex::
49 neighborFacets()
const
51 if(!neighborFacetsDefined()){
52 throw QhullError(10034,
"Qhull error: neighboring facets of vertex %d not defined. Please call Qhull::defineVertexNeighborFacets() beforehand.",
id());
54 return QhullFacetSet(qh_qh, qh_vertex->neighbors);
65 using orgQhull::QhullPoint;
66 using orgQhull::QhullFacet;
67 using orgQhull::QhullFacetSet;
68 using orgQhull::QhullFacetSetIterator;
69 using orgQhull::QhullVertex;
73 operator<<(ostream &os,
const QhullVertex::PrintVertex &pr)
75 QhullVertex v= *pr.vertex;
76 QhullPoint p= v.point();
77 if(*pr.print_message){
78 os << pr.print_message <<
" ";
82 os <<
"p" << p.id() <<
" (v" << v.id() <<
"): ";
83 const realT *c= p.coordinates();
84 for(
int k= p.dimension(); k--; ){
87 if(v.getVertexT()->deleted){
90 if(v.getVertexT()->delridge){
91 os <<
" ridgedeleted";
94 if(v.neighborFacetsDefined()){
95 QhullFacetSetIterator i= v.neighborFacets();
97 os <<
" neighborFacets:";
100 if(++
count % 100 == 0){
103 QhullFacet f= i.next();
104 os <<
" f" << f.id();
ostream & operator<<(ostream &os, const QhullVertex::PrintVertex &pr)
Duplicate of qh_printvertex [io_r.c].
QhullRidge – Qhull's ridge structure, ridgeT, as a C++ class.