Skip to content

Commit 3585caf

Browse files
authored
Merge pull request #14604 from WestLangley/dev-to_buffer_geometry_5
Examples: a few more Geometry -> BufferGeometry
2 parents a8e8a59 + 21445a2 commit 3585caf

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/js/VolumeSlice.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ THREE.VolumeSlice.prototype = {
199199
this.ctx = this.canvas.getContext( '2d' );
200200
this.ctxBuffer = this.canvasBuffer.getContext( '2d' );
201201

202-
this.geometry = new THREE.PlaneGeometry( extracted.planeWidth, extracted.planeHeight );
202+
this.geometry = new THREE.PlaneBufferGeometry( extracted.planeWidth, extracted.planeHeight );
203203

204204
if ( this.mesh ) {
205205

examples/webgl_physics_volume.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@
352352

353353
function createParalellepiped( sx, sy, sz, mass, pos, quat, material ) {
354354

355-
var threeObject = new THREE.Mesh( new THREE.BoxGeometry( sx, sy, sz, 1, 1, 1 ), material );
355+
var threeObject = new THREE.Mesh( new THREE.BoxBufferGeometry( sx, sy, sz, 1, 1, 1 ), material );
356356
var shape = new Ammo.btBoxShape( new Ammo.btVector3( sx * 0.5, sy * 0.5, sz * 0.5 ) );
357357
shape.setMargin( margin );
358358

examples/webvr_vive_sculpt.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@
151151
pivot.rotation.x = Math.PI / 5.5;
152152
controller.add( pivot );
153153

154-
var range = new THREE.Mesh( new THREE.IcosahedronGeometry( 0.03, 3 ), new THREE.MeshBasicMaterial( { opacity: 0.25, transparent: true } ) );
154+
var range = new THREE.Mesh( new THREE.IcosahedronBufferGeometry( 0.03, 3 ), new THREE.MeshBasicMaterial( { opacity: 0.25, transparent: true } ) );
155155
pivot.add( range );
156156

157157
controller1.add( controller.clone() );

0 commit comments

Comments
 (0)