// Generated by CoffeeScript 1.4.0 (function() { var context, dims, dragger, model, renderAll, scenes, _ref; dims = [[600, 300], [150, 150], [150, 150], [150, 150], [150, 150]]; model = seen.Models["default"](); scenes = new seen.Scene({ fractionalPoints: true, model: model, viewport: (_ref = seen.Viewports).center.apply(_ref, dims[0]) }); scenes.camera.scale(2); $.get('cnr.obj', {}, function(contents) { var shape; shape = seen.Shapes.obj(contents, false); shape.scale(8).translate(0, -30).rotx(Math.PI / 4).roty(-Math.PI / 4).rotz(-Math.PI / 4); seen.Colors.randomSurfaces2(shape); model.add(shape); return renderAll(); }); context = seen.Context("svg", scenes); renderAll = function() { return context.render(); }; dragger = new seen.Drag('svg', { inertia: true }); dragger.on('drag.rotate', function(e) { var xform, _ref1; xform = (_ref1 = seen.Quaternion).xyToTransform.apply(_ref1, e.offsetRelative); model.transform(xform); return renderAll(); }); }).call(this);