Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
SoBox.cc File Reference
#include "HEPVis/nodes/SoBox.h"
#include <assert.h>
#include <cmath>
#include <Inventor/SbBox.h>
#include <Inventor/fields/SoSFFloat.h>
#include <Inventor/misc/SoChildList.h>
#include <Inventor/nodes/SoSeparator.h>
#include <Inventor/nodes/SoCube.h>
#include <Inventor/nodes/SoScale.h>
#include <Inventor/actions/SoAction.h>
#include <Inventor/nodes/SoIndexedFaceSet.h>
#include <Inventor/SoPrimitiveVertex.h>
#include <Inventor/elements/SoTextureCoordinateElement.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);

Referenced by Geant4_SoPolyhedron::generatePrimitives(), SoBox::generatePrimitives(), SoCons::generatePrimitives(), SoTrap::generatePrimitives(), SoTrd::generatePrimitives(), and SoTubs::generatePrimitives().