How to use the CircleBufferGeometry function from three

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

130
131
132
133
134
135
136
137
138
139
const texture = new THREE.DataTexture(formatImageData(this.imageData),
  this.imageData.width, this.imageData.height, THREE.RGBAFormat, THREE.UnsignedByteType);
texture.needsUpdate = true;
texture.flipY = true;

const circleGeometry = new THREE.CircleBufferGeometry(RADIUS + (THICKNESS / 4), SEGMENTS);

const circleMaterial = this.material.clone();
Object.assign(circleMaterial, {
  bumpMap: texture,
fork icon2
star icon3
watch icon2

+ 5 other calls in file

1076
1077
1078
1079
1080
1081
1082
1083
1084

}

static prepareCapInstance() {

  let capGeometry = new THREE.CircleBufferGeometry(BEAM_TOP_RADIUS, 40);
  let capMaterial = new THREE.MeshBasicMaterial({
    side: THREE.DoubleSide
  })
fork icon0
star icon7
watch icon0

+ 3 other calls in file

91
92
93
94
95
96
97
98
99
100
this.camera.position.z = 15;
this.camera.position.y = 1.85;
this.scene.add(this.camera);

// Add reticule
var geometry = new THREE.CircleBufferGeometry(0.002, 32);
var material = new THREE.MeshBasicMaterial({ color: 0xff00aa });
var circle = new THREE.Mesh(geometry, material);
circle.position.set(0, 0, -0.2);
// this.camera.add(circle);
fork icon0
star icon0
watch icon0

+ 15 other calls in file

Other functions in three

Sorted by popularity

function icon

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