ATLAS Offline Software
Classes | Macros | Functions
SbPolyhedron.cxx File Reference
#include <VP1HEPVis/SbPolyhedron.h>
#include <cassert>
#include <float.h>
#include "BooleanProcessor.h"
#include "PolygonTriangulator.h"
#include <map>
#include <set>
Include dependency graph for SbPolyhedron.cxx:

Go to the source code of this file.

Classes

class  SbPolyhedronPolygonXSect::Internals
 

Macros

#define perMillion   0.000001
 
#define deg   (M_PI/180.0)
 

Functions

int iabs (int a)
 
float ffabs (float a)
 
HVPoint3D operator+ (const HVPoint3D &v1, const HVPoint3D &v2)
 
std::ostream & operator<< (std::ostream &ostr, const SbFacet &facet)
 
std::ostream & operator<< (std::ostream &ostr, const SbPolyhedron &ph)
 

Macro Definition Documentation

◆ deg

#define deg   (M_PI/180.0)

Definition at line 18 of file SbPolyhedron.cxx.

◆ perMillion

#define perMillion   0.000001

Definition at line 17 of file SbPolyhedron.cxx.

Function Documentation

◆ ffabs()

float ffabs ( float  a)
inline

Definition at line 25 of file SbPolyhedron.cxx.

25  {
26  return a < 0.0f ? -a : a;
27 }

◆ iabs()

int iabs ( int  a)
inline

Definition at line 22 of file SbPolyhedron.cxx.

22  {
23  return a < 0 ? -a : a;
24 }

◆ operator+()

HVPoint3D operator+ ( const HVPoint3D v1,
const HVPoint3D v2 
)

Definition at line 43 of file SbPolyhedron.cxx.

43  {
44  return HVPoint3D(v1[0] + v2[0],v1[1] + v2[1],v1[2] + v2[2]);
45 }

◆ operator<<() [1/2]

std::ostream& operator<< ( std::ostream &  ostr,
const SbFacet facet 
)

Definition at line 118 of file SbPolyhedron.cxx.

118  {
119  for (int k=0; k<4; k++) {
120  ostr << " " << facet.m_edge[k].v << "/" << facet.m_edge[k].f;
121  }
122  return ostr;
123 }

◆ operator<<() [2/2]

std::ostream& operator<< ( std::ostream &  ostr,
const SbPolyhedron ph 
)

Definition at line 125 of file SbPolyhedron.cxx.

125  {
126  ostr << std::endl;
127  ostr << "Nverteces=" << ph.m_nvert << ", Nfacets=" << ph.m_nface << std::endl;
128  int i;
129  for (i=1; i<=ph.m_nvert; i++) {
130  ostr << "xyz(" << i << ")="
131  << ph.m_pV[i][0] << ' ' << ph.m_pV[i][1] << ' ' << ph.m_pV[i][2]
132  << std::endl;
133  }
134  for (i=1; i<=ph.m_nface; i++) {
135  ostr << "face(" << i << ")=" << ph.m_pF[i] << std::endl;
136  }
137  return ostr;
138 }
SbPolyhedron::m_pF
SbFacet * m_pF
Definition: SbPolyhedron.h:240
SbFacet::f
int f
Definition: SbPolyhedron.h:222
lumiFormat.i
int i
Definition: lumiFormat.py:85
SbPolyhedron::m_pV
HVPoint3D * m_pV
Definition: SbPolyhedron.h:239
SbFacet::v
int v
Definition: SbPolyhedron.h:222
ReadCellNoiseFromCoolCompare.v2
v2
Definition: ReadCellNoiseFromCoolCompare.py:364
SbPolyhedron::m_nface
int m_nface
Definition: SbPolyhedron.h:238
a
TList * a
Definition: liststreamerinfos.cxx:10
HVPoint3D
Definition: SbPolyhedron.h:188
SbPolyhedron::m_nvert
int m_nvert
Definition: SbPolyhedron.h:238
fitman.k
k
Definition: fitman.py:528
SbFacet::m_edge
struct SbFacet::@66 m_edge[4]