Dynamic SphereBufferGeometry (three.js) -


i'm attempting dynamically change philength spherebuffgeometry cannot update @ all. there i'm missing this. attempt far:

var newgeo = new three.spherebuffergeometry(this.spheremesh.radius + 100,16,16, 0, math.pi * 2, 0, math.pi * radius / this.spheremesh.radius );  	newgeo.applymatrix( new three.matrix4().makerotationfromeuler( new three.euler( 90 * ( math.pi / 180 ), 0, 0, 'xyz' ) ) );  	this.geometry.attributes.position.array = newgeo.attributes.array;  	// this.geometry.verticesneedupdate = true;  	this.geometry.attributes.position.needsupdate = true;


Comments

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -