* Sets the upper and lower bounds of this box so it encloses the position data * in the given array. * * @param {Array } array - An array holding 3D position data. * @return {Box3} A reference to this bounding box.
( array )
| 63 | * @return {Box3} A reference to this bounding box. |
| 64 | */ |
| 65 | setFromArray( array ) { |
| 66 | |
| 67 | this.makeEmpty(); |
| 68 | |
| 69 | for ( let i = 0, il = array.length; i < il; i += 3 ) { |
| 70 | |
| 71 | this.expandByPoint( _vector.fromArray( array, i ) ); |
| 72 | |
| 73 | } |
| 74 | |
| 75 | return this; |
| 76 | |
| 77 | } |
| 78 | |
| 79 | /** |
| 80 | * Sets the upper and lower bounds of this box so it encloses the position data |
no test coverage detected