How to use the CircleBufferGeometry function from three
Find comprehensive JavaScript three.CircleBufferGeometry code examples handpicked from public code repositorys.
GitHub: amatelus/paintcoin
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,
2
3
2
+ 5 other calls in file
GitHub: ASLS-org/studio
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 })
0
7
0
+ 3 other calls in file
GitHub: demo3d/frame
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);
0
0
0
+ 15 other calls in file
three.Vector3 is the most popular function in three (22341 examples)