lib/toxi/THREE/ToxiclibsSupport.js
function(obj_or_mesh,threeMaterials){
            var toxiTriangleMesh;
            if(arguments.length == 1){ //it needs to be an param object
                toxiTriangleMesh = obj_or_mesh.geometry;
                threeMaterials = obj_or_mesh.materials;
            } else {
                toxiTriangleMesh = obj_or_mesh;
            }
            var threeMesh = this.createMesh(toxiTriangleMesh,threeMaterials);
            this.scene.add(threeMesh);
            return threeMesh;
        }
function(obj_or_mesh,threeMaterials){
            var toxiTriangleMesh;
            if(arguments.length == 1){ //it needs to be an param object
                toxiTriangleMesh = obj_or_mesh.geometry;
                threeMaterials = obj_or_mesh.materials;
            } else {
                toxiTriangleMesh = obj_or_mesh;
            }
            var threeMesh = this.createMesh(toxiTriangleMesh,threeMaterials);
            this.scene.add(threeMesh);
            return threeMesh;
        }
function ( obj_or_mesh , threeMaterials ) { var toxiTriangleMesh ; if ( arguments . length == 1 ) { //it needs to be an param object toxiTriangleMesh = obj_or_mesh . geometry ; threeMaterials = obj_or_mesh . materials ; } else { toxiTriangleMesh = obj_or_mesh ; } var threeMesh = this . createMesh ( toxiTriangleMesh , threeMaterials ) ; this . scene . add ( threeMesh ) ; return threeMesh ; }
add a toxiclibs.js mesh to the three.js scene
@param {Object|toxi.geom.mesh.TriangleMesh} obj_or_mesh either an options object or
the toxiclibsjs mesh
--
@param {toxi.geom.mesh.Trianglemesh} [obj_or_mesh.geometry] the mesh in the options object
@param {THREE.Material} [obj_or_mesh.material] the three.js material for the mesh
@param {boolean} [obj_or_mesh.holdInDictionary] should ToxiclibsSupport hold a reference?
--
@param {THREE.Material} [threeMaterials] the three.js material for the mesh
add a toxiclibs . js mesh to the three . js scene