ATLAS Offline Software
Loading...
Searching...
No Matches
SoPolyhedron.cxx File Reference
#include <VP1HEPVis/nodes/SoPolyhedron.h>
#include <Inventor/SbBox.h>
#include <Inventor/actions/SoAction.h>
#include <Inventor/actions/SoPickAction.h>
#include <Inventor/SoPrimitiveVertex.h>
#include <Inventor/elements/SoTextureCoordinateElement.h>
#include <Inventor/elements/SoGLCacheContextElement.h>
#include <Inventor/nodes/SoSeparator.h>
#include <Inventor/nodes/SoIndexedFaceSet.h>
#include <Inventor/nodes/SoVertexProperty.h>
#include <Inventor/C/glue/gl.h>
#include "SbMath.h"
#include <VP1HEPVis/SbPolyhedron.h>

Go to the source code of this file.

Macros

#define GEN_VERTEX(pv, x, y, z, s, t, nx, ny, nz)

Macro Definition Documentation

◆ GEN_VERTEX

#define GEN_VERTEX ( pv,
x,
y,
z,
s,
t,
nx,
ny,
nz )
Value:
point.setValue(x,y,z); \
normal.setValue(nx,ny,nz); \
if (useTexFunction) { \
texCoord=tce->get(point,normal); \
} else { \
texCoord[0]=s; \
texCoord[1]=t; \
} \
pv.setPoint(point); \
pv.setNormal(normal); \
pv.setTextureCoords(texCoord); \
shapeVertex(&pv);
#define y
#define x
#define z