OpenGLContext.shadow.edgeset
Class encapsulating the set of edges within an IndexedFaceSet
Functions
Classes
Set of edges for calculating ShadowVolume
Attributes:
points -- pointer to triangle vertex array
normals -- pointer to per-triangle normals
singleEdges -- set of edges with only a single face
attached, Nx2x3 set of edge-points
singleVectors -- planar equations of faces where only
a single face is attached to an edge
singleIndices -- triangle indices for single-faced edges
doubleEdges -- set of edges with only two faces
attached, Nx2x3 set of edge-points
doubleVectors -- planar equations of faces where two faces
are attached to the edge
doubleEdges -- triangle indices for double-faced edges
planeEquations -- set of all planeEquations
shadowvolumes -- cache of Light:ShadowVolume mappings
__init__(
self
,
points
,
normals
= None
,
ccw
= 1
)
Initialize the EdgeSet
- points
- n*3 array of points, n%3 == 0, where each set of three points defines a single triangle in ccw winding
- normals
- optional array of per-triangle normals, will be calculated if necessary
- ccw
- boolean indicating whether counter-clock-wise winding is to be used (normal OpenGL/VRML winding) if false, then use clockwise winding (Note that this has never been tested, as I don't have any cw geometry around to test with, and haven't felt energetic enough to work around the standard tools to make any)