ATLAS Offline Software
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
SoPolyhedron Class Reference

SoPolyhedron is an Inventor encapsulation of the HepPolyedron class written by E.Chernyaev. More...

#include <SoPolyhedron.h>

Inheritance diagram for SoPolyhedron:
Collaboration diagram for SoPolyhedron:

Classes

struct  Vertex
 

Public Member Functions

 SoPolyhedron ()
 
 SoPolyhedron (const SbPolyhedron &)
 
 SoPolyhedron (const SbPolyhedron *)
 
long hasVertex (Vertex *vertices, long len, Vertex &v)
 
More...
 
void makeShape (SbPolyhedron *)
 
More...
 
virtual void generateAlternateRep ()
 
More...
 
virtual void clearAlternateRep ()
 
More...
 

Static Public Member Functions

static void initClass ()
 

Public Attributes

SoSFNode alternateRep
 
Vertexm_vertices
 
long * m_indices
 
long m_vcount
 
long m_icount
 

Protected Member Functions

virtual void computeBBox (SoAction *, SbBox3f &, SbVec3f &)
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// More...
 
virtual void generatePrimitives (SoAction *)
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// More...
 
virtual ~SoPolyhedron ()
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// More...
 

Private Member Functions

 SO_NODE_HEADER (SoPolyhedron)
 

Private Attributes

SbPolyhedronm_polyhedron
 

Detailed Description

SoPolyhedron is an Inventor encapsulation of the HepPolyedron class written by E.Chernyaev.

In particular SoPolyhedron permits to represent boolean operations over solids. To avoid clashes with other libraries (Geant4) where the HepPolyhedron classes may be found, the HepPolyhedron (through usage of CPP macros) had been renamed SbPolyhedron in the HEPVis lib. The solids are modeled with SbPolyedron objects. The SbPolyhedron permits to produce a new SbPolyhedron according to the boolean operation done on them. The resulting SbPolyhedron is then given to an SoPolyhedron for rendering. Note that a boolean operation could be rendered in wire frame by drawing the contour of the resulting solid (not by drawing the wire frame of a triangulation). See the applications/Polyhedron example.

Definition at line 47 of file SoPolyhedron.h.

Constructor & Destructor Documentation

◆ SoPolyhedron() [1/3]

SoPolyhedron::SoPolyhedron ( )

Definition at line 56 of file SoPolyhedron.cxx.

61 {
62  SO_NODE_CONSTRUCTOR(SoPolyhedron);
63  // SO_NODE_ADD_FIELD(solid,(TRUE));
64  // SO_NODE_ADD_FIELD(reducedWireFrame,(TRUE));
65  SO_NODE_ADD_FIELD(alternateRep,(NULL));
66  setNodeType(EXTENSION);
67 }

◆ SoPolyhedron() [2/3]

SoPolyhedron::SoPolyhedron ( const SbPolyhedron aPolyhedron)

Definition at line 69 of file SoPolyhedron.cxx.

75 {
76  SO_NODE_CONSTRUCTOR(SoPolyhedron);
77  // SO_NODE_ADD_FIELD(solid,(TRUE));
78  // SO_NODE_ADD_FIELD(reducedWireFrame,(TRUE));
79  SO_NODE_ADD_FIELD(alternateRep,(NULL));
80 
81  m_polyhedron = new SbPolyhedron(aPolyhedron);
82  setNodeType(EXTENSION);
84 }

◆ SoPolyhedron() [3/3]

SoPolyhedron::SoPolyhedron ( const SbPolyhedron aPolyhedron)

Definition at line 86 of file SoPolyhedron.cxx.

92 {
93  SO_NODE_CONSTRUCTOR(SoPolyhedron);
94  // SO_NODE_ADD_FIELD(solid,(TRUE));
95  // SO_NODE_ADD_FIELD(reducedWireFrame,(TRUE));
96  SO_NODE_ADD_FIELD(alternateRep,(NULL));
97 
98  m_polyhedron = new SbPolyhedron(*aPolyhedron);
99  setNodeType(EXTENSION);
101 }

◆ ~SoPolyhedron()

SoPolyhedron::~SoPolyhedron ( )
protectedvirtual

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//

Definition at line 103 of file SoPolyhedron.cxx.

107 {
108  delete m_polyhedron;
109  if(m_vertices)
110  delete [] m_vertices;
111  if(m_indices)
112  delete [] m_indices;
113 }

Member Function Documentation

◆ clearAlternateRep()

void SoPolyhedron::clearAlternateRep ( )
virtual

Definition at line 419 of file SoPolyhedron.cxx.

420 {
421  alternateRep.setValue(NULL);
422  //Hmm... no ref/unref??
423 }

◆ computeBBox()

void SoPolyhedron::computeBBox ( SoAction *  ,
SbBox3f &  aBox,
SbVec3f &  aCenter 
)
protectedvirtual

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//

Definition at line 289 of file SoPolyhedron.cxx.

296 {
297  if(!m_polyhedron) return;
298  if(m_polyhedron->GetNoFacets()<=0) { // Abnormal polyhedron.
299  SbVec3f vmin(-1,-1,-1);
300  SbVec3f vmax( 1, 1, 1);
301  aBox.setBounds(vmin,vmax);
302  aCenter.setValue(0,0,0);
303  } else {
304  // SbBool wireFrame = (solid.getValue()==TRUE ? FALSE : TRUE);
305  //DONOTHING HEPVis::SbProjector projector(wireFrame?fProjection:SbProjectionNone);
306  SbBool first = TRUE;
307  float xmn = 0,ymn = 0,zmn = 0;
308  float xmx = 0,ymx = 0,zmx = 0;
309  float xct = 0,yct = 0,zct = 0;
310  SbVec3f point;
311  int count = 0;
312  // Assume all facets are convex quadrilaterals :
313  bool notLastFace;
314  do {
315  HVNormal3D unitNormal;
316  notLastFace = m_polyhedron->GetNextUnitNormal(unitNormal);
317  bool notLastEdge;
318  do {
320  int edgeFlag = 1;
321  notLastEdge = m_polyhedron->GetNextVertex(vertex,edgeFlag);
322  point.setValue(vertex[0],vertex[1],vertex[2]);
323  //DONOTHING projector.project(1,&point);
324  if(first==TRUE) {
325  xct = xmx = xmn = point[0];
326  yct = ymx = ymn = point[1];
327  zct = zmx = zmn = point[2];
328  count++;
329  first = FALSE;
330  } else {
331  xmn = SbMinimum(xmn,point[0]);
332  ymn = SbMinimum(ymn,point[1]);
333  zmn = SbMinimum(zmn,point[2]);
334  //
335  xmx = SbMaximum(xmx,point[0]);
336  ymx = SbMaximum(ymx,point[1]);
337  zmx = SbMaximum(zmx,point[2]);
338  //
339  xct += point[0];
340  yct += point[1];
341  zct += point[2];
342  count++;
343  }
344  //
345  } while (notLastEdge);
346  } while (notLastFace);
347  SbVec3f vmin(xmn,ymn,zmn);
348  SbVec3f vmax(xmx,ymx,zmx);
349  aBox.setBounds(vmin,vmax);
350 
351  if(count==0) {
352  aCenter.setValue(0,0,0);
353  }
354  else {
355  aCenter.setValue(xct/count,yct/count,zct/count);
356  }
357  //DEBUG
358 // std::cout << "vmin: " << xmn << " " << ymn << " " << zmn << std::endl;
359 // std::cout << "vmax: " << xmx << " " << ymx << " " << zmx << std::endl;
360  }
361 
362 
363 }

◆ generateAlternateRep()

void SoPolyhedron::generateAlternateRep ( )
virtual

Definition at line 377 of file SoPolyhedron.cxx.

378 {
379  if (alternateRep.getValue())
381  if( m_polyhedron && ( m_polyhedron->GetNoFacets() > 0 ) ){
382  //SoSeparator *sep = new SoSeparator;
383  SoVertexProperty *vertices = new SoVertexProperty();
384 
385  //Retreive geometry from polyhedron
386  int vno = m_polyhedron->GetNoVertices();
387  for(int i = 0; i < vno; i++){
389  vertex = m_polyhedron->GetVertex(i + 1);
390  vertices->vertex.set1Value (i, vertex[0], vertex[1], vertex[2]);
391  }
392 
393  int fno = m_polyhedron->GetNoFacets();
394  int fcr = 0;
395  int* aface = new int[8 * fno];
396  for(int i = 0; i < fno; i++){
397  int n, inodes[4];
398  //SbVec3d nr = m_polyhedron->GetNormal(i + 1); // not used, gives warning, commenting out:
399  //---
400  m_polyhedron->GetFacet(i + 1, n, inodes);
401  aface[fcr] = (inodes[0] <= vno) ? (inodes[0] - 1) : (0); fcr++;
402  aface[fcr] = (inodes[1] <= vno) ? (inodes[1] - 1) : (0); fcr++;
403  aface[fcr] = (inodes[2] <= vno) ? (inodes[2] - 1) : (0); fcr++;
404  if(n == 4) { aface[fcr] = (inodes[3] <= vno) ? (inodes[3] - 1) : (0); fcr++; }
405  aface[fcr] = -1; fcr++;
406  }
407  SoIndexedFaceSet * faceset = new SoIndexedFaceSet;
408  faceset->coordIndex.setValues(0, fcr, aface);
409  delete [] aface;
410  faceset->vertexProperty = vertices;
411  //sep->addChild(faceset);
412  alternateRep.setValue(faceset);
413  }
414 }

◆ generatePrimitives()

void SoPolyhedron::generatePrimitives ( SoAction *  aAction)
protectedvirtual

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//

  • Activate this comment if u gona return to old method

Definition at line 115 of file SoPolyhedron.cxx.

120 {
121  if(!m_polyhedron) return;
122  if(m_polyhedron->GetNoFacets()<=0) return; // Abnormal polyhedron.
123 
124  SoState *state = aAction->getState();
125  if (!state)
126  return;
127  SbBool useTexFunction =
129  SoTextureCoordinateElement::FUNCTION);
130  const SoTextureCoordinateElement *tce = NULL;
131  SbVec4f texCoord;
132  if (useTexFunction) {
133  tce = SoTextureCoordinateElement::getInstance(state);
134  } else {
135  texCoord[2] = 0.0;
136  texCoord[3] = 1.0;
137  }
138 
139  // if(solid.getValue()==TRUE) {
140  if(true) {
141  SoPrimitiveVertex pv;
142  SbVec3f point, normal;
144  //----------------------------------------
145 #define GEN_VERTEX(pv,x,y,z,s,t,nx,ny,nz) \
146  point.setValue(x,y,z); \
147  normal.setValue(nx,ny,nz); \
148  if (useTexFunction) { \
149  texCoord=tce->get(point,normal); \
150  } else { \
151  texCoord[0]=s; \
152  texCoord[1]=t; \
153  } \
154  pv.setPoint(point); \
155  pv.setNormal(normal); \
156  pv.setTextureCoords(texCoord); \
157  shapeVertex(&pv);
158  //----------------------------------------
161  // For pick action use old method, for for see selected lines
163  if ( aAction->getTypeId().isDerivedFrom(SoPickAction::getClassTypeId()) ){ //comment this line to return on old method
164  // Assume all facets are convex quadrilaterals :
165  bool notLastFace;
166  do {
167  HVNormal3D unitNormal;
168  notLastFace = m_polyhedron->GetNextUnitNormal(unitNormal);
169 
170  beginShape(aAction,POLYGON);
171  bool notLastEdge;
172  int edgeFlag = 1;
173  do {
175  notLastEdge = m_polyhedron->GetNextVertex(vertex,edgeFlag);
176  GEN_VERTEX(pv,
177  vertex[0],
178  vertex[1],
179  vertex[2],
180  0.0,0.0,
181  unitNormal[0],
182  unitNormal[1],
183  unitNormal[2]);
184  } while (notLastEdge);
185  endShape();
186  } while (notLastFace);
187  }
188  else
189  {
190  if(m_vertices){
191  glEnableClientState(GL_VERTEX_ARRAY);
192  glVertexPointer(3, GL_FLOAT, sizeof(Vertex), &m_vertices[0].pos);
193  glEnableClientState(GL_NORMAL_ARRAY);
194  glNormalPointer(GL_FLOAT, sizeof(Vertex), &m_vertices[0].nor);
196  //For I-Method. Comment it if u use II-Method
198  //glDrawElements(GL_TRIANGLES, m_icount, GL_UNSIGNED_INT, m_indices); //comment it if u use II-Method
200  //For II-Method. Comment it if u use I-Method
202  glDrawArrays(GL_TRIANGLES, 0, m_vcount); //comment it if u use I-Method
203  glDisableClientState(GL_VERTEX_ARRAY);
204  glDisableClientState(GL_NORMAL_ARRAY);
205  }
206  } //End of comment for return to old method */
207  } else {//lala
208 // SoPrimitiveVertex pvb,pve;
209 // pve.setTextureCoords(texCoord);
210 // pvb.setTextureCoords(texCoord);
211 
212 // #ifdef __COIN__ // To bypass a bug in invokeLineSegment when picking.
213 // beginShape(aAction,POLYGON);
214 // endShape();
215 // #endif
216 
217 // SbVec3f point;
218 // bool notLastFace;
219 // do {
220 // HVNormal3D unitNormal;
221 // notLastFace = m_polyhedron->GetNextUnitNormal(unitNormal);
222 
223 // SbVec3f normal;
224 // if( false ) {
225 // normal.setValue(0,0,1);
226 // } else {
227 // normal.setValue(unitNormal[0],unitNormal[1],unitNormal[2]);
228 // }
229 
230 // // Treat edges :
231 // int edgeFlag = 1;
232 // int prevEdgeFlag = edgeFlag;
233 // bool notLastEdge;
234 // SbBool firstEdge = TRUE;
235 // do {
236 // HVPoint3D vertex;
237 // notLastEdge = m_polyhedron->GetNextVertex(vertex,edgeFlag);
238 // if(reducedWireFrame.getValue()==FALSE) edgeFlag = 1;
239 // if(firstEdge) {
240 // if(edgeFlag) {
241 // pvb.setNormal(normal);
242 // point.setValue(vertex[0],vertex[1],vertex[2]);
243 // //DONOTHING projector.project(1,&point);
244 // pvb.setPoint(point);
245 // } else {
246 // }
247 // firstEdge = FALSE;
248 // prevEdgeFlag = edgeFlag;
249 // } else {
250 // if(edgeFlag!=prevEdgeFlag) {
251 // if(edgeFlag) { // Pass to a visible edge :
252 // pvb.setNormal(normal);
253 // point.setValue(vertex[0],vertex[1],vertex[2]);
254 // //DONOTHING projector.project(1,&point);
255 // pvb.setPoint(point);
256 // } else { // Pass to an invisible edge :
257 // pve.setNormal(normal);
258 // point.setValue(vertex[0],vertex[1],vertex[2]);
259 // //DONOTHING projector.project(1,&point);
260 // pve.setPoint(point);
261 // invokeLineSegmentCallbacks(aAction,&pvb,&pve);
262 // }
263 // prevEdgeFlag = edgeFlag;
264 // } else {
265 // if(edgeFlag) {
266 // pve.setNormal(normal);
267 // point.setValue(vertex[0],vertex[1],vertex[2]);
268 // //DONOTHING projector.project(1,&point);
269 // pve.setPoint(point);
270 // invokeLineSegmentCallbacks(aAction,&pvb,&pve);
271 // pvb = pve;
272 // } else {
273 // }
274 // }
275 // }
276 // } while (notLastEdge);
277 // } while (notLastFace);
278  }
279 
280  if (state&&state->isElementEnabled(SoGLCacheContextElement::getClassStackIndex())) {
281  //Encourage auto caching
282  SoGLCacheContextElement::shouldAutoCache(state, SoGLCacheContextElement::DO_AUTO_CACHE);
283 #if ((COIN_MAJOR_VERSION>=3)||((COIN_MAJOR_VERSION==2)&&(COIN_MINOR_VERSION>=5)))
284  SoGLCacheContextElement::incNumShapes(state);
285 #endif
286  }
287 }

◆ hasVertex()

long SoPolyhedron::hasVertex ( Vertex vertices,
long  len,
Vertex v 
)
inline

Definition at line 428 of file SoPolyhedron.cxx.

428  {
429  for(long i = 0; i < len; i++){
430  if((v.pos[0] == vertices[i].pos[0]) && (v.pos[1] == vertices[i].pos[1]) && (v.pos[2] == vertices[i].pos[2]) &&
431  (v.nor[0] == vertices[i].nor[0]) && (v.nor[1] == vertices[i].nor[1]) && (v.nor[2] == vertices[i].nor[2]))
432  return i;
433  }
434  return -1;
435 }

◆ initClass()

void SoPolyhedron::initClass ( )
static

Definition at line 47 of file SoPolyhedron.cxx.

48 {
49  [[maybe_unused]] static const bool didInit = [&]() {
50  SO_NODE_INIT_CLASS(SoPolyhedron,SoShape,"Shape");
51  return true;
52  }();
53 }

◆ makeShape()

void SoPolyhedron::makeShape ( SbPolyhedron sp)

Definition at line 521 of file SoPolyhedron.cxx.

522 {
523  if(!sp || (m_polyhedron->GetNoFacets() < 1))
524  return;
525 
526  if(m_vertices){
527  delete [] m_vertices;
528  m_vertices = 0;
529  m_vcount = 0;
530  }
531 
532  if(m_indices){
533  delete [] m_indices;
534  m_indices = 0;
535  m_icount = 0;
536  }
537 
538  int fno = m_polyhedron->GetNoFacets();
539  long faces = 0; //this is primitive face(triangle)
540  for(int i = 0; i < fno; i++){
541  int n, inodes[4];
542  m_polyhedron->GetFacet(i + 1, n, inodes);
543  if(n == 3)
544  faces += 1;
545  else if(n == 4)
546  faces += 2;
547  }
548 
549  if(faces < 1)
550  return;
551 
552  long fcr = 0;
553  long vno = m_polyhedron->GetNoVertices();
554  m_vcount = 3 * faces;
555  m_vertices = new Vertex[m_vcount];
556  for(int i = 0; i < fno; i++){
557  int n, inodes[4];
558  HVPoint3D pos[4];
559 
560  // rbianchi
561  // SbVec3f nor = m_polyhedron->GetNormal(i + 1);
562  HVNormal3D nor = m_polyhedron->GetNormal(i + 1);
563  //---
564  m_polyhedron->GetFacet(i + 1, n, inodes);
565  pos[0] = (inodes[0] <= vno) ? (m_polyhedron->GetVertex(inodes[0])) : (m_polyhedron->GetVertex(1));
566  pos[1] = (inodes[1] <= vno) ? (m_polyhedron->GetVertex(inodes[1])) : (m_polyhedron->GetVertex(1));
567  pos[2] = (inodes[2] <= vno) ? (m_polyhedron->GetVertex(inodes[2])) : (m_polyhedron->GetVertex(1));
568  if(n == 4)
569  pos[3] = (inodes[3] <= vno) ? (m_polyhedron->GetVertex(inodes[3])) : (m_polyhedron->GetVertex(1));
570 
571  if(n >= 3){
572  m_vertices[fcr].pos[0] = pos[0][0]; m_vertices[fcr].nor[0] = nor[0];
573  m_vertices[fcr].pos[1] = pos[0][1]; m_vertices[fcr].nor[1] = nor[1];
574  m_vertices[fcr].pos[2] = pos[0][2]; m_vertices[fcr].nor[2] = nor[2];
575  fcr++;
576  m_vertices[fcr].pos[0] = pos[1][0]; m_vertices[fcr].nor[0] = nor[0];
577  m_vertices[fcr].pos[1] = pos[1][1]; m_vertices[fcr].nor[1] = nor[1];
578  m_vertices[fcr].pos[2] = pos[1][2]; m_vertices[fcr].nor[2] = nor[2];
579  fcr++;
580  m_vertices[fcr].pos[0] = pos[2][0]; m_vertices[fcr].nor[0] = nor[0];
581  m_vertices[fcr].pos[1] = pos[2][1]; m_vertices[fcr].nor[1] = nor[1];
582  m_vertices[fcr].pos[2] = pos[2][2]; m_vertices[fcr].nor[2] = nor[2];
583  fcr++;
584  if(n == 4){
585  m_vertices[fcr].pos[0] = pos[0][0]; m_vertices[fcr].nor[0] = nor[0];
586  m_vertices[fcr].pos[1] = pos[0][1]; m_vertices[fcr].nor[1] = nor[1];
587  m_vertices[fcr].pos[2] = pos[0][2]; m_vertices[fcr].nor[2] = nor[2];
588  fcr++;
589  m_vertices[fcr].pos[0] = pos[2][0]; m_vertices[fcr].nor[0] = nor[0];
590  m_vertices[fcr].pos[1] = pos[2][1]; m_vertices[fcr].nor[1] = nor[1];
591  m_vertices[fcr].pos[2] = pos[2][2]; m_vertices[fcr].nor[2] = nor[2];
592  fcr++;
593  m_vertices[fcr].pos[0] = pos[3][0]; m_vertices[fcr].nor[0] = nor[0];
594  m_vertices[fcr].pos[1] = pos[3][1]; m_vertices[fcr].nor[1] = nor[1];
595  m_vertices[fcr].pos[2] = pos[3][2]; m_vertices[fcr].nor[2] = nor[2];
596  fcr++;
597  }
598  }
599  }
600 }

◆ SO_NODE_HEADER()

SoPolyhedron::SO_NODE_HEADER ( SoPolyhedron  )
private

Member Data Documentation

◆ alternateRep

SoSFNode SoPolyhedron::alternateRep

Definition at line 54 of file SoPolyhedron.h.

◆ m_icount

long SoPolyhedron::m_icount

Definition at line 81 of file SoPolyhedron.h.

◆ m_indices

long* SoPolyhedron::m_indices

Definition at line 79 of file SoPolyhedron.h.

◆ m_polyhedron

SbPolyhedron* SoPolyhedron::m_polyhedron
private

Definition at line 69 of file SoPolyhedron.h.

◆ m_vcount

long SoPolyhedron::m_vcount

Definition at line 80 of file SoPolyhedron.h.

◆ m_vertices

Vertex* SoPolyhedron::m_vertices

Definition at line 78 of file SoPolyhedron.h.


The documentation for this class was generated from the following files:
SoPolyhedron::m_indices
long * m_indices
Definition: SoPolyhedron.h:79
SbPolyhedron
Definition: SbPolyhedron.h:231
SbPolyhedron::GetVertex
HVPoint3D GetVertex(int index) const
Definition: SbPolyhedron.cxx:929
SbPolyhedron::GetNextVertex
bool GetNextVertex(HVPoint3D &vertex, int &edgeFlag) const
Definition: SbPolyhedron.cxx:957
xAOD::Vertex
Vertex_v1 Vertex
Define the latest version of the vertex class.
Definition: Event/xAOD/xAODTracking/xAODTracking/Vertex.h:16
SbPolyhedron::GetFacet
void GetFacet(int iFace, int &n, int *iNodes, int *edgeFlags=0, int *iFaces=0) const
Definition: SbPolyhedron.cxx:1117
PlotCalibFromCool.vmin
vmin
Definition: PlotCalibFromCool.py:696
SoPolyhedron::m_vcount
long m_vcount
Definition: SoPolyhedron.h:80
SoPolyhedron::makeShape
void makeShape(SbPolyhedron *)
Definition: SoPolyhedron.cxx:521
SoPolyhedron::clearAlternateRep
virtual void clearAlternateRep()
Definition: SoPolyhedron.cxx:419
SoPolyhedron::Vertex::nor
float nor[3]
Definition: SoPolyhedron.h:75
SbPolyhedron::GetNormal
HVNormal3D GetNormal(int iFace) const
Definition: SbPolyhedron.cxx:1203
XMLtoHeader.count
count
Definition: XMLtoHeader.py:85
SbPolyhedron::GetNoFacets
int GetNoFacets() const
Definition: SbPolyhedron.h:296
lumiFormat.i
int i
Definition: lumiFormat.py:85
SoPolyhedron::Vertex::pos
float pos[3]
Definition: SoPolyhedron.h:74
beamspotman.n
n
Definition: beamspotman.py:731
python.Constants.TRUE
bool TRUE
for job options legacy (TODO: get rid of these!) ----------------------—
Definition: Control/AthenaCommon/python/Constants.py:22
SoPolyhedron::m_polyhedron
SbPolyhedron * m_polyhedron
Definition: SoPolyhedron.h:69
SoPolyhedron::alternateRep
SoSFNode alternateRep
Definition: SoPolyhedron.h:54
SoPolyhedron::m_vertices
Vertex * m_vertices
Definition: SoPolyhedron.h:78
python.LumiBlobConversion.pos
pos
Definition: LumiBlobConversion.py:18
python.Constants.FALSE
bool FALSE
Definition: Control/AthenaCommon/python/Constants.py:23
SbMinimum
#define SbMinimum(a, b)
Definition: SbMath.h:10
SoPolyhedron::m_icount
long m_icount
Definition: SoPolyhedron.h:81
python.PyAthena.v
v
Definition: PyAthena.py:154
Trk::vertex
@ vertex
Definition: MeasurementType.h:21
DeMoScan.first
bool first
Definition: DeMoScan.py:536
python.changerun.pv
pv
Definition: changerun.py:81
GEN_VERTEX
#define GEN_VERTEX(pv, x, y, z, s, t, nx, ny, nz)
SbPolyhedron::GetNoVertices
int GetNoVertices() const
Definition: SbPolyhedron.h:293
SoPolyhedron
SoPolyhedron is an Inventor encapsulation of the HepPolyedron class written by E.Chernyaev.
Definition: SoPolyhedron.h:47
SbMaximum
#define SbMaximum(a, b)
Definition: SbMath.h:11
Ringer::getType
T getType(const char *cStr)
Return Ringer enumeration of type T identifying string type:
SbPolyhedron::GetNextUnitNormal
bool GetNextUnitNormal(HVNormal3D &normal) const
Definition: SbPolyhedron.cxx:1276
HVPoint3D
Definition: SbPolyhedron.h:188
PlotCalibFromCool.vmax
vmax
Definition: PlotCalibFromCool.py:697