提交 9aa6f48c 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #12442 from WestLangley/dev-octree

Octree: improved tree visualization
......@@ -119,8 +119,9 @@
if ( this.scene ) {
this.visualGeometry = new THREE.BoxGeometry( 1, 1, 1 );
this.visualMaterial = new THREE.MeshBasicMaterial( { color: 0xFF0066, wireframe: true, wireframeLinewidth: 1 } );
var helper = new THREE.BoxHelper( new THREE.Mesh( new THREE.BoxGeometry( 1, 1, 1 ) ), 0xff0066 );
this.visualGeometry = helper.geometry;
this.visualMaterial = helper.material;
}
......@@ -773,7 +774,7 @@
if ( this.tree.scene ) {
this.visual = new THREE.Mesh( this.tree.visualGeometry, this.tree.visualMaterial );
this.visual = new THREE.LineSegments( this.tree.visualGeometry, this.tree.visualMaterial );
this.visual.scale.set( this.radiusOverlap * 2, this.radiusOverlap * 2, this.radiusOverlap * 2 );
this.visual.position.copy( this.position );
this.tree.scene.add( this.visual );
......
......@@ -28,7 +28,7 @@
mesh,
meshes = [],
meshesSearch = [],
meshCountMax = 1000,
meshCountMax = 100,
radius = 500,
radiusMax = radius * 10,
radiusMaxHalf = radiusMax * 0.5,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册