Package Scientific :: Package Visualization :: Module VRML2 :: Class Polygons
[hide private]
[frames] | no frames]

Class Polygons



VRMLObject --+    
             |    
   ShapeObject --+
                 |
                Polygons

Polygons

Instance Methods [hide private]
  __init__(self, points, index_lists, **attr)
  memoKey(self)
  writeSpecification(self, file)

Inherited from ShapeObject: __add__, use, writeToFile

Inherited from VRMLObject: __copy__, __getitem__, __setitem__


Class Variables [hide private]

Inherited from ShapeObject: attribute_names


Method Details [hide private]

__init__(self, points, index_lists, **attr)
(Constructor)

 
Parameters:
  • points (sequence of Scientific.Geometry.Vector) - a sequence of points
  • index_lists (sequence of list) - a sequence of index lists, one for each polygon. The index list for a polygon defines which points are vertices of the polygon.
  • attr - graphics attributes as keyword parameters
Overrides: ShapeObject.__init__

memoKey(self)

 

writeSpecification(self, file)