OpenGLContext.scenegraph.vertex
Low-level holder for vertex information
Classes
Holds a single vertex during operations
which tend to mess up vertex indexing and so
prefer to have atomic objects for manipulation.
color
coordIndex
indexKey
metaIndex
normal
point
textureCoordinate
__init__(
self
,
point
= (0, 0, 0)
,
color
= None
,
normal
= None
,
textureCoordinate
= None
,
metaIndex
= -1
,
coordIndex
= -1
,
indexKey
= None
)
Initialize the Vertex
- point
- three-dimensional coordinate
- color
- optional three-float color
- normal
- optional three-dimensional normalized vector
- textureCoordinate
- optional two-dimensional texture coordinate
- metaIndex
- optional integer index into the source index array (i.e. coordIndex[metaIndex], colorIndex[metaIndex],... is the index which produced the vertex.