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:
-
Polygon
(converts from PolygonArray)
Can be converted from:
Registered methods:
|
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__init__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
|
|
Inherited from object:
__class__
|