From eae36edf1e1bc68db791a50a5f4889819270e273 Mon Sep 17 00:00:00 2001 From: alteredq Date: Sun, 20 Feb 2011 04:50:35 +0100 Subject: [PATCH] Added Ribbon.js --- src/objects/Ribbon.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/objects/Ribbon.js diff --git a/src/objects/Ribbon.js b/src/objects/Ribbon.js new file mode 100644 index 00000000..b2cebd08 --- /dev/null +++ b/src/objects/Ribbon.js @@ -0,0 +1,18 @@ +/** + * @author alteredq / http://alteredqualia.com/ + */ + +THREE.Ribbon = function ( geometry, materials ) { + + THREE.Object3D.call( this ); + + this.geometry = geometry; + this.materials = materials instanceof Array ? materials : [ materials ]; + + this.flipSided = false; + this.doubleSided = false; + +}; + +THREE.Ribbon.prototype = new THREE.Object3D(); +THREE.Ribbon.prototype.constructor = THREE.Ribbon;