 
   addElement: (ef, x, y) ->
     e = new ef.constructor(@baseRect, x, y, 50)
+    e.props.name = @ve.namemanager.getName(e.constructor.name.toLowerCase())
     @ve.render()
     e
 

    @clearPropsGUI()
    @ve.render()


#VisualEnvironment holds the state associated with the Threejs objects used
#to render Surfaces and the ElementBox. This class also contains methods

    @camera.position.z = 200
    @mouseh = new MouseHandler(this)
    @raycaster = new THREE.Raycaster()
    @namemanager = new NameManager()

  render: ->
    @renderer.clear()
