提交 fb0e0475 编写于 作者: M Mugen87

Box3Helper: Fix ctor color parameter.

上级 92f08cc7
import { Object3D } from './../core/Object3D';
import { Box3 } from './../math/Box3';
import { Color } from './../math/Color';
import { LineSegments } from './../objects/LineSegments';
export class Box3Helper extends LineSegments {
constructor( object?: Object3D, color?: Color );
constructor( box?: Box3, color?: Color );
box: Box3;
......
......@@ -9,13 +9,13 @@ import { Float32BufferAttribute } from '../core/BufferAttribute.js';
import { BufferGeometry } from '../core/BufferGeometry.js';
import { Object3D } from '../core/Object3D.js';
function Box3Helper( box, hex ) {
function Box3Helper( box, color ) {
this.type = 'Box3Helper';
this.box = box;
var color = ( hex !== undefined ) ? hex : 0xffff00;
color = color || 0xffff00;
var indices = new Uint16Array( [ 0, 1, 1, 2, 2, 3, 3, 0, 4, 5, 5, 6, 6, 7, 7, 4, 0, 4, 1, 5, 2, 6, 3, 7 ] );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册