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

Class OutputSTL

source code

OutputNode --+
             |
            OutputSTL

generates a list of strings describing DejaVu geoms in STL (stereolithography) format (don't mix this with standard template library).

Instance Methods [hide private]
  __init__(self)
  getSTL(self, root, filename, sphereQuality=2, cylinderQuality=10)
  NodeRepr(self, geom, matrix)
This method, to be implemented by sublcass, should generate stl, vrml2 etc descriptions of DejaVu geoms
  doitIndexedGeoms(self, geom, matrix)
  doitSpheres(self, geom, matrix)
  doitCylinders(self, geom, matrix)
  doit(self, vert, faces, fn, matrix, invertNormals=False)
  makestl(self, vert, faces, fn)

Inherited from OutputNode: checkGeom, configureProgressBar, countGeoms, loopGeoms, updateProgressBar

Inherited from OutputNode (private): _loopGeomsRec


Method Details [hide private]

__init__(self)
(Constructor)

source code 
None
Overrides: OutputNode.__init__

getSTL(self, root, filename, sphereQuality=2, cylinderQuality=10)

source code 
None

NodeRepr(self, geom, matrix)

source code 
This method, to be implemented by sublcass, should generate stl, vrml2 etc descriptions of DejaVu geoms
Overrides: OutputNode.NodeRepr
(inherited documentation)

doitIndexedGeoms(self, geom, matrix)

source code 
None

doitSpheres(self, geom, matrix)

source code 
None

doitCylinders(self, geom, matrix)

source code 
None

doit(self, vert, faces, fn, matrix, invertNormals=False)

source code 
None

makestl(self, vert, faces, fn)

source code 
None