How to use the ConeGeometry function from three

Find comprehensive JavaScript three.ConeGeometry code examples handpicked from public code repositorys.

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,
fork icon236
star icon0
watch icon2

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);
fork icon35
star icon0
watch icon2

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);
fork icon11
star icon3
watch icon6

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();
fork icon2
star icon5
watch icon0

+ 3 other calls in file

-1
fork icon0
star icon0
watch icon1

+ 3 other calls in file

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
    })
fork icon0
star icon0
watch icon7

+ 5 other calls in file

Other functions in three

Sorted by popularity

function icon

three.Vector3 is the most popular function in three (22341 examples)