lib/frameworkCreation.py
def createHouse(positionCoef, angle, widthHouse, lengthHouse, heightHouse, widthChannel, lengthChannel, slopeChannel):
	"""Creates a house and returns idHouse, the id of the object created in O.bodies
	
	Parameters:
	- positionCoef  -- position of the house along the channel, means at the top and 0 at the bottom.
	- angle         -- vertical angle of the house.
	- widthHouse    -- width of the house.
	- lengthHouse   -- length of the house.
	- heightHouse   -- height of the house.
	- widthChannel  -- width of the channel.
	- lengthChannel -- length of the channel.
	- heightChannel -- height of the channel.
	- slopeChannel  -- slope of the channel.
	
	"""
	X = widthHouse/2 - lengthChannel*cos(slopeChannel) * positionCoef
	Y = widthChannel / 2
	Z = lengthChannel * positionCoef * sin(slopeChannel) + heightHouse/2 * cos(slopeChannel) - widthHouse * sin(slopeChannel)
	
	house = box(center=(X, Y, Z),orientation=((0,0,1),angle),extents = (widthHouse/2, lengthHouse/2, heightHouse/2), fixed=True, wire=False,color=(1.,0.,0.), material = 'Mat')
	
	return O.bodies.append(house)
Creates a house and returns idHouse, the id of the object created in O.bodies
	
	Parameters:
	- positionCoef  -- position of the house along the channel, means at the top and 0 at the bottom.
	- angle         -- vertical angle of the house.
	- widthHouse    -- width of the house.
	- lengthHouse   -- length of the house.
	- heightHouse   -- height of the house.
	- widthChannel  -- width of the channel.
	- lengthChannel -- length of the channel.
	- heightChannel -- height of the channel.
	- slopeChannel  -- slope of the channel.
	
	
Creates a house and returns idHouse, the id of the object created in O.bodies
Parameters:
positionCoef  -- position of the house along the channel, means at the top and 0 at the bottom.
angle         -- vertical angle of the house.
widthHouse    -- width of the house.
lengthHouse   -- length of the house.
heightHouse   -- height of the house.
widthChannel  -- width of the channel.
lengthChannel -- length of the channel.
heightChannel -- height of the channel.
slopeChannel  -- slope of the channel.
Creates a house and returns idHouse the id of the object created in O . bodies Parameters : positionCoef -- position of the house along the channel means at the top and 0 at the bottom . angle -- vertical angle of the house . widthHouse -- width of the house . lengthHouse -- length of the house . heightHouse -- height of the house . widthChannel -- width of the channel . lengthChannel -- length of the channel . heightChannel -- height of the channel . slopeChannel -- slope of the channel .
def createHouse(positionCoef, angle, widthHouse, lengthHouse, heightHouse, widthChannel, lengthChannel, slopeChannel):
	X = widthHouse/2 - lengthChannel*cos(slopeChannel) * positionCoef
	Y = widthChannel / 2
	Z = lengthChannel * positionCoef * sin(slopeChannel) + heightHouse/2 * cos(slopeChannel) - widthHouse * sin(slopeChannel)
	house = box(center=(X, Y, Z),orientation=((0,0,1),angle),extents = (widthHouse/2, lengthHouse/2, heightHouse/2), fixed=True, wire=False,color=(1.,0.,0.), material = 'Mat')
	return O.bodies.append(house)
def createHouse ( positionCoef , angle , widthHouse , lengthHouse , heightHouse , widthChannel , lengthChannel , slopeChannel ) : X = widthHouse / 2 - lengthChannel * cos ( slopeChannel ) * positionCoef Y = widthChannel / 2 Z = lengthChannel * positionCoef * sin ( slopeChannel ) + heightHouse / 2 * cos ( slopeChannel ) - widthHouse * sin ( slopeChannel ) house = box ( center = ( X , Y , Z ) , orientation = ( ( 0 , 0 , 1 ) , angle ) , extents = ( widthHouse / 2 , lengthHouse / 2 , heightHouse / 2 ) , fixed = True , wire = False , color = ( 1. , 0. , 0. ) , material = 'Mat' ) return O . bodies . append ( house )
Creates a house and returns idHouse, the id of the object created in O.bodies
Parameters:
 positionCoef  -- position of the house along the channel, means at the top and 0 at the bottom.
Creates a house and returns idHouse the id of the object created in O . bodies Parameters : positionCoef -- position of the house along the channel means at the top and 0 at the bottom .
"""Creates a house and returns idHouse, the id of the object created in O.bodies
	
	Parameters:
	- positionCoef  -- position of the house along the channel, means at the top and 0 at the bottom.
	- angle         -- vertical angle of the house.
	- widthHouse    -- width of the house.
	- lengthHouse   -- length of the house.
	- heightHouse   -- height of the house.
	- widthChannel  -- width of the channel.
	- lengthChannel -- length of the channel.
	- heightChannel -- height of the channel.
	- slopeChannel  -- slope of the channel.
	
	"""
positionCoef
angle
widthHouse
lengthHouse
heightHouse
widthChannel
lengthChannel
slopeChannel