Package DejaVu :: Module DataOutput
[hide private]
[frames] | no frames]

Module DataOutput

source code

Classes [hide private]
  OutputNode
This base class recursively loops over a given DejaVu geom tree and computes the transformation matrices at each level.
  OutputSTL
generates a list of strings describing DejaVu geoms in STL (stereolithography) format (don't mix this with standard template library).
  OutputVRML2
generates a list of strings describing DejaVu geoms in VRML 2.0 format.
  DatGUI
basic gui for DataOutput
  STLGUI
this is the gui for OutputSTL
  VRML2GUI
This is the gui for OutputVRML2:

Functions [hide private]
  IndexedPolgonsAsSMFString(geometry)
listOfStrings <-- IndexedPolgonsAsSMFString(geometry) For a given IndexedPolygons geoemtry this function generates the textual SMF description.
  writePolygonsAsSMF(geometry, filename)
Write a IndexedPolygons geometry to a file
  ParseSMFString(stringList)
v,f,n,c,r <-- ParseSMFString(stringList) Parse an ascii SMF file and returnes a list of 3D vertices, triangular faces (0-based indices, faces with more edges generate warnings), normals, colors and 2D texture coordinates.
  readSMF(filename)
Read an SMF ascii file and return an IndexedPolygons geometry

Function Details [hide private]

IndexedPolgonsAsSMFString(geometry)

source code 
listOfStrings <-- IndexedPolgonsAsSMFString(geometry) For a given IndexedPolygons geoemtry this function generates the textual SMF description. Currently supports vertices (v), faces (f), normals(n) and colors (c). Normals and color binding mstring are generated automatically. Texture indices (r) are not used yet but could be used to store any integer property.

writePolygonsAsSMF(geometry, filename)

source code 
Write a IndexedPolygons geometry to a file

ParseSMFString(stringList)

source code 
v,f,n,c,r <-- ParseSMFString(stringList) Parse an ascii SMF file and returnes a list of 3D vertices, triangular faces (0-based indices, faces with more edges generate warnings), normals, colors and 2D texture coordinates.

readSMF(filename)

source code 
Read an SMF ascii file and return an IndexedPolygons geometry