提交 6694f455 编写于 作者: W WestLangley

Geometry -> BufferGeometry

上级 69866e88
......@@ -100,12 +100,16 @@
//
var GrannyKnot = new THREE.Curves.GrannyKnot();
var GrannyKnot = new THREE.Curves.GrannyKnot();
var torus = new THREE.ParametricGeometries.TorusKnotGeometry( 50, 10, 50, 20, 2, 3 );
var sphere = new THREE.ParametricGeometries.SphereGeometry( 50, 20, 10 );
var tube = new THREE.ParametricGeometries.TubeGeometry( GrannyKnot, 100, 3, 8, true, false );
torus = new THREE.BufferGeometry().fromGeometry( torus );
sphere = new THREE.BufferGeometry().fromGeometry( sphere );
tube = new THREE.BufferGeometry().fromGeometry( tube );
object = new THREE.Mesh( torus, material );
object.position.set( - 200, 0, - 200 );
scene.add( object );
......@@ -160,7 +164,7 @@
camera.lookAt( scene.position );
scene.traverse( function( object ) {
scene.traverse( function ( object ) {
if ( object.isMesh === true ) {
......
......@@ -424,6 +424,8 @@
var centerOffset = -0.5 * ( textGeo.boundingBox.max.x - textGeo.boundingBox.min.x );
textGeo = new THREE.BufferGeometry().fromGeometry( textGeo );
textMesh1 = new THREE.Mesh( textGeo, materials );
textMesh1.position.x = centerOffset;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册