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

Class Face3D

source code

object --+
         |
        Face3D

Spyder-generated class

module tarantula

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

Description

Face class, should be part of a class that defines vertices and materials

Material definition is optional;

if none is defined, the material of the parent class should be used

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)

Texture coordinates are not yet implemented in Tarantula

Wiki

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

Length block

>>>            
return len(vertices)               
>>>

Validate block

>>>            
assert texturecoords == None or len(texturecoords) == len(vertices)
assert vertexnormals == None or len(vertexnormals) == len(vertices)               
>>>
Instance Methods [hide private]

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

Instance Variables [hide private]
IntegerArray vertices = []
*Material material
*Coordinate2DArray texturecoords
*Vector normal
*VectorArray vertexnormals
Properties [hide private]

Inherited from object: __class__