ATLAS Offline Software
Loading...
Searching...
No Matches
SbPolyhedron.cxx File Reference
#include <VP1HEPVis/SbPolyhedron.h>
#include <cassert>
#include <memory>
#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 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 26 of file SbPolyhedron.cxx.

26 {
27 return a < 0.0f ? -a : a;
28}
static Double_t a

◆ iabs()

int iabs ( int a)
inline

Definition at line 23 of file SbPolyhedron.cxx.

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

◆ operator+()

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

Definition at line 44 of file SbPolyhedron.cxx.

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

◆ operator<<() [1/2]

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

Definition at line 119 of file SbPolyhedron.cxx.

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

◆ operator<<() [2/2]

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

Definition at line 126 of file SbPolyhedron.cxx.

126 {
127 ostr << std::endl;
128 ostr << "Nverteces=" << ph.m_nvert << ", Nfacets=" << ph.m_nface << std::endl;
129 int i;
130 for (i=1; i<=ph.m_nvert; i++) {
131 ostr << "xyz(" << i << ")="
132 << ph.m_pV[i][0] << ' ' << ph.m_pV[i][1] << ' ' << ph.m_pV[i][2]
133 << std::endl;
134 }
135 for (i=1; i<=ph.m_nface; i++) {
136 ostr << "face(" << i << ")=" << ph.m_pF[i] << std::endl;
137 }
138 return ostr;
139}
HVPoint3D * m_pV
SbFacet * m_pF

Variable Documentation

◆ processor

HEPVis_BooleanProcessor processor
static

Definition at line 1841 of file SbPolyhedron.cxx.