How to use the Curve function from three
Find comprehensive JavaScript three.Curve code examples handpicked from public code repositorys.
GitHub: arturitu/webvr-ribbons
6 7 8 9 10 11 12 13 14 15
this.linesAdded = []; THREE.Object3D.call(this); var KnotCurve = THREE.Curve.create( function() { },
0
7
1
1 2 3 4 5 6 7 8 9
var mag = require('vectors/mag')(3) var hexStringFromSphericalCoords = require('./../services/hex-string-from-spherical-coords') // TODO: give to world var generateFiber = function (sphericalCoords) { var fiber = new THREE.Curve() fiber.getPoint = function (t) { var eta = sphericalCoords.eta, phi = sphericalCoords.phi, theta = 2 * Math.PI * t
0
3
4
+ 3 other calls in file
GitHub: thatbimgirl/api
86 87 88 89 90 91 92 93 94
bottomPoints.push(new THREE.Vector2(x,z)); console.log(x,y,z); //bottomPoints.push([x,y]); }; } //const bottomCurve = new THREE.Curve(bottomPoints); //const bottomShape = new THREE.Shape(bottomCurve); //var a = THREE.ShapeUtils.area(bottomPoints); //const unique = [...new Set(bottomPoints.map(item => item))]
0
0
0
GitHub: twalk4821/kelsiWorld3D
146 147 148 149 150 151 152 153 154 155
rightEye.position.z += 1; head.add(rightEye); camera.position.z = 10; function EllipticCurve() { THREE.Curve.call( this ); } EllipticCurve.prototype = Object.create( THREE.Curve.prototype ); EllipticCurve.prototype.constructor = EllipticCurve;
0
0
1
+ 7 other calls in file
three.Vector3 is the most popular function in three (22341 examples)