Module Spyder :: Class Polygon
[hide private]
[frames] | no frames]

Class Polygon

source code

object --+
         |
        Polygon

Spyder-generated class

module tarantula

file /home/sjoerd/Spyder-devel/tarantula/Tarantula.spy

Description

Self-contained class for polygon data

Looking from the outside, vertices should be specified counter-clockwise

If specified, the normal should point inward

Normals for every vertex can be specified, too (for smooth lighting)

If a material other than "defaultmaterial" is used,

it must be elsewhere defined and show()'ed as a NewMaterial

Texture coordinates are not yet implemented in Tarantula

Wiki

http://www.spyderware.nl/wiki/classes/Polygon

Length block

>>>            
return len(vertices)               
>>>

Validate block

>>>            
assert texturecoords == None or len(texturecoords) == len(vertices)
assert vertexnormals == None or len(vertexnormals) == len(vertices)               
>>>

Converters

Can be converted to:

Can be converted from:

Registered methods:

Instance Methods [hide private]

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]
 
three_dimensional() source code
Instance Variables [hide private]
CoordinateArray vertices
Material material = "defaultmaterial"
AxisSystem axis = AxisSystem()
*CoordinateArray texturecoords
*Vector normal
*VectorArray vertexnormals
Properties [hide private]

Inherited from object: __class__