OpenGLContext.scenegraph.indexedfaceset
index
p:\openglcontext\scenegraph\indexedfaceset.py

 
Modules
            
OpenGLContext.scenegraph.arraygeometry
OpenGLContext.scenegraph.polygontessellator
OpenGLContext.triangleutilities

 
Classes
            
ArrayGeometry
IndexedFaceSet
Vertex

 
class IndexedFaceSet(ArrayGeometry)
       
  
__init__(self, points, coordIndex, colors=None, colorIndex=None, colorPerVertex=1, normals=None, normalIndex=None, normalPerVertex=None, textureCoordinates=None, textureCoordinateIndex=None, creaseAngle=0.0, convex=1, lit=1, ccw=1, solid=1)
draw(self) from ArrayGeometry
drawTransparent(self) from ArrayGeometry
render(self, visible=1, lit=1, textured=1, transparent=0) from ArrayGeometry

 
class Vertex
      Holds a single vertex during operations
which tend to mess up vertex indexing and so
prefer to have atomic objects for manipulation.
 
  
__init__(self, point=(0, 0, 0), color=None, normal=None, textureCoordinate=None, vertexID=None)
__repr__(self)
copy(self)

 
Functions
            
build_normalPerVertex(vertices, creaseAngle, vertexArray)
Create a normal vector for each vertex using creaseAngle to determine
whether to smooth or not. Works only for GL_TRIANGLES-style arrays.
 
vertexArray -- x*3 array of coordinates
connectionsArray -- array of vertex indices (i.e. indices into
        vertexArray) must have length a multiple of three (i.e. triangles)
creaseAngle -- radian angle above which faces do not smooth.

 
Data
             __file__ = r'p:\OpenGLContext\scenegraph\indexedfaceset.pyc'
__name__ = 'OpenGLContext.scenegraph.indexedfaceset'