How to use the ConeGeometry function from three
Find comprehensive JavaScript three.ConeGeometry code examples handpicked from public code repositorys.
GitHub: vidartf/ipyvolume
50 51 52 53 54 55 56 57 58 59
this.geo_square_2d = new THREE.PlaneGeometry(2, 2, 1, 1) this.geo_point_2d = new THREE.PlaneGeometry(0.1, 0.1, 1, 1) this.geo_triangle_2d = new THREE.CircleGeometry(1, 3, Math.PI/2); this.geo_circle_2d = new THREE.CircleGeometry(1, 32, Math.PI/2); //this.geo = new THREE.ConeGeometry(0.2, 1) this.geo_arrow = new THREE.CylinderGeometry(0, 0.2, 1) this.geos = { diamond: this.geo_diamond, box: this.geo_box,
236
0
2
GitHub: sarahforcier/LSystems
164 165 166 167 168 169 170 171 172 173
makeLeaf(scale) { var geometry = new THREE.ConeGeometry(0.6, 1, 32); // geometry.scale(0.05, 0.05, 0.05); var material = new THREE.MeshLambertMaterial( {color: 0xcccccc, emissive: this.leaf_color} ); var leaf = new THREE.Mesh(geometry, material ); // leaf.scale.set(100,100,100);
35
0
2
7 8 9 10 11 12 13 14 15 16
import ProxyGeometry, {ProxyMaterial} from './proxy_geometry' import RayMarcher from './rayMarching' var BoxGeometry = new THREE.BoxGeometry(1, 1, 1); var SphereGeometry = new THREE.SphereGeometry(1, 32, 32); var ConeGeometry = new THREE.ConeGeometry(1, 1); window.addEventListener('load', function() { var stats = new Stats(); stats.setMode(1);
11
3
6
GitHub: juanuys/boids
54 55 56 57 58 59 60 61 62 63
getBoid(position = new THREE.Vector3(0, 0, 0), quaternion = null, color = 0x156289) { if (color === null) { color = 0x156289 } var geometry = new THREE.ConeGeometry(5, 10, 8) // rotate the geometry, because the face used by lookAt is not the cone's "tip" geometry.rotateX(THREE.Math.degToRad(90)); var mesh = new THREE.Group();
2
5
0
+ 3 other calls in file
GitHub: gchinis/ARWayFinding
10 11 12 13 14 15 16 17 18 19
const createAxes = () => { var axes = new THREE.Object3D(); var coneX = new THREE.Mesh( new THREE.ConeGeometry(0.1, 1), new THREE.MeshLambertMaterial({ color: 0xff0000, wireframe: false })
0
0
7
+ 5 other calls in file
three.Vector3 is the most popular function in three (22341 examples)