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

Class House3DWall

source code

object --+
         |
        House3DWall

Spyder-generated class

module models3d

file /home/sjoerd/data/Spyder-devel/models3d/house.spy

Wiki

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

Validate block

>>>            
for w in windows:
assert w.verticalposition + w.height <= height 
poswidth = list(windows)
poswidth += list(doors)
poswidth.sort(lambda a,b: cmp(a.position, b.position))
for n in range(len(poswidth)):
if n < len(poswidth) - 1: nextpos = poswidth[n+1].position
else: nextpos = width
assert poswidth[n].position + poswidth[n].width <= nextpos               
>>>

Form block

>>>            
MATRIX axis
DEFAULT width 10
MIN width 0
MAX width 100
DEFAULT thickness 2
MIN thickness 0
MAX thickness 100          
DEFAULT height 5
MIN height 0
MAX height 100               
>>>

Converters

Can be converted to:

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]
Integer width
Integer height
Integer thickness
House3DDoorArray doors = []
House3DWallWindowArray windows = []
AxisSystem axis = AxisSystem()
Material material = "defaultmaterial"
Properties [hide private]

Inherited from object: __class__