|
@@ -28,10 +28,10 @@ THREE.BoxLineGeometry = function ( width, height, depth, widthSegments, heightSe
|
|
|
|
|
|
for ( var i = 0; i <= widthSegments; i ++ ) {
|
|
|
|
|
|
- vertices.push( x, - heightHalf, - depthHalf, x, heightHalf, - depthHalf );
|
|
|
- vertices.push( x, heightHalf, - depthHalf, x, heightHalf, depthHalf );
|
|
|
- vertices.push( x, heightHalf, depthHalf, x, - heightHalf, depthHalf );
|
|
|
- vertices.push( x, - heightHalf, depthHalf, x, - heightHalf, - depthHalf );
|
|
|
+ vertices.push( x, - heightHalf, - depthHalf, x, heightHalf, - depthHalf );
|
|
|
+ vertices.push( x, heightHalf, - depthHalf, x, heightHalf, depthHalf );
|
|
|
+ vertices.push( x, heightHalf, depthHalf, x, - heightHalf, depthHalf );
|
|
|
+ vertices.push( x, - heightHalf, depthHalf, x, - heightHalf, - depthHalf );
|
|
|
|
|
|
x += segmentWidth;
|
|
|
|
|
@@ -39,10 +39,10 @@ THREE.BoxLineGeometry = function ( width, height, depth, widthSegments, heightSe
|
|
|
|
|
|
for ( var i = 0; i <= heightSegments; i ++ ) {
|
|
|
|
|
|
- vertices.push( - widthHalf, y, - depthHalf, widthHalf, y, - depthHalf );
|
|
|
- vertices.push( widthHalf, y, - depthHalf, widthHalf, y, depthHalf );
|
|
|
- vertices.push( widthHalf, y, depthHalf, - widthHalf, y, depthHalf );
|
|
|
- vertices.push( - widthHalf, y, depthHalf, - widthHalf, y, - depthHalf );
|
|
|
+ vertices.push( - widthHalf, y, - depthHalf, widthHalf, y, - depthHalf );
|
|
|
+ vertices.push( widthHalf, y, - depthHalf, widthHalf, y, depthHalf );
|
|
|
+ vertices.push( widthHalf, y, depthHalf, - widthHalf, y, depthHalf );
|
|
|
+ vertices.push( - widthHalf, y, depthHalf, - widthHalf, y, - depthHalf );
|
|
|
|
|
|
y += segmentHeight;
|
|
|
|
|
@@ -50,10 +50,10 @@ THREE.BoxLineGeometry = function ( width, height, depth, widthSegments, heightSe
|
|
|
|
|
|
for ( var i = 0; i <= depthSegments; i ++ ) {
|
|
|
|
|
|
- vertices.push( - widthHalf, - heightHalf, z, - widthHalf, heightHalf, z );
|
|
|
- vertices.push( - widthHalf, heightHalf, z, widthHalf, heightHalf, z );
|
|
|
- vertices.push( widthHalf, heightHalf, z, widthHalf, - heightHalf, z );
|
|
|
- vertices.push( widthHalf, - heightHalf, z, - widthHalf, - heightHalf, z );
|
|
|
+ vertices.push( - widthHalf, - heightHalf, z, - widthHalf, heightHalf, z );
|
|
|
+ vertices.push( - widthHalf, heightHalf, z, widthHalf, heightHalf, z );
|
|
|
+ vertices.push( widthHalf, heightHalf, z, widthHalf, - heightHalf, z );
|
|
|
+ vertices.push( widthHalf, - heightHalf, z, - widthHalf, - heightHalf, z );
|
|
|
|
|
|
z += segmentDepth;
|
|
|
|
|
@@ -61,7 +61,7 @@ THREE.BoxLineGeometry = function ( width, height, depth, widthSegments, heightSe
|
|
|
|
|
|
this.addAttribute( 'position', new THREE.Float32BufferAttribute( vertices, 3 ) );
|
|
|
|
|
|
-}
|
|
|
+};
|
|
|
|
|
|
THREE.BoxLineGeometry.prototype = Object.create( THREE.BufferGeometry.prototype );
|
|
|
THREE.BoxLineGeometry.prototype.constructor = THREE.BoxLineGeometry;
|