未验证 提交 3585caf4 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #14604 from WestLangley/dev-to_buffer_geometry_5

Examples: a few more Geometry -> BufferGeometry
......@@ -199,7 +199,7 @@ THREE.VolumeSlice.prototype = {
this.ctx = this.canvas.getContext( '2d' );
this.ctxBuffer = this.canvasBuffer.getContext( '2d' );
this.geometry = new THREE.PlaneGeometry( extracted.planeWidth, extracted.planeHeight );
this.geometry = new THREE.PlaneBufferGeometry( extracted.planeWidth, extracted.planeHeight );
if ( this.mesh ) {
......
......@@ -352,7 +352,7 @@
function createParalellepiped( sx, sy, sz, mass, pos, quat, material ) {
var threeObject = new THREE.Mesh( new THREE.BoxGeometry( sx, sy, sz, 1, 1, 1 ), material );
var threeObject = new THREE.Mesh( new THREE.BoxBufferGeometry( sx, sy, sz, 1, 1, 1 ), material );
var shape = new Ammo.btBoxShape( new Ammo.btVector3( sx * 0.5, sy * 0.5, sz * 0.5 ) );
shape.setMargin( margin );
......
......@@ -151,7 +151,7 @@
pivot.rotation.x = Math.PI / 5.5;
controller.add( pivot );
var range = new THREE.Mesh( new THREE.IcosahedronGeometry( 0.03, 3 ), new THREE.MeshBasicMaterial( { opacity: 0.25, transparent: true } ) );
var range = new THREE.Mesh( new THREE.IcosahedronBufferGeometry( 0.03, 3 ), new THREE.MeshBasicMaterial( { opacity: 0.25, transparent: true } ) );
pivot.add( range );
controller1.add( controller.clone() );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册