         line.material.color.setRGB opts.material.color
 
         if opts.in_frame
-            @update_bounding_box line
+            @updateBoundingBox line
         @scene.add line
 
     add_point: (opts) ->

            d = 1.5*Math.max(dim.x, dim.y, dim.z)
            @camera.position.set avg.x+d, avg.y+d, avg.z+d/2

        if @opts.frame_thickness isnt 0
            # set the color and linewidth of the bounding box
            @bounding_box.material.color = @opts.frame_color
            @bounding_box.material.linewidth = @opts.frame_thickness

            # add the bounding box to the scene
            @scene.add @bounding_box

            if @_frame_labels?
                for x in @_frame_labels
                    @scene.remove x

            if @opts.label_fontsize isnt 0
                @_frame_labels = []

                min.divide @opts.aspect_ratio
                avg.divide @opts.aspect_ratio

            text             : required
            fontsize         : 12
            fontface         : 'Arial'
            material         : required
            constant_size    : true  # if true, then text is automatically resized when the camera moves;
            in_frame         : true
            # WARNING: if constant_size, don't remove text from scene (or if you do, note that it is slightly inefficient still.)
