ATLAS Offline Software
Loading...
Searching...
No Matches
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)

Variables

static HEPVis_BooleanProcessor processor

Macro Definition Documentation

◆ deg

#define deg   (M_PI/180.0)

Definition at line 17 of file SbPolyhedron.cxx.

◆ perMillion

#define perMillion   0.000001

Definition at line 16 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}
static Double_t a

◆ 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}
struct SbFacet::@146305307241173307306147201343177135163056232201 m_edge[4]

◆ 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}
HVPoint3D * m_pV
SbFacet * m_pF

Variable Documentation

◆ processor

HEPVis_BooleanProcessor processor
static

Definition at line 1840 of file SbPolyhedron.cxx.