Merge pull request #1392 from michael-erskine/patch-1
tidy up vertices for computeTransformedBoundingBox
This commit is contained in:
commit
785e7a95aa
@ -197,14 +197,13 @@ export class Utils {
|
||||
*/
|
||||
static computeTransformedBoundingBox (box, transform) {
|
||||
let vertices = [
|
||||
new THREE.Vector3(box.min.x, box.min.y, box.min.z).applyMatrix4(transform),
|
||||
new THREE.Vector3(box.min.x, box.min.y, box.min.z).applyMatrix4(transform),
|
||||
new THREE.Vector3(box.max.x, box.min.y, box.min.z).applyMatrix4(transform),
|
||||
new THREE.Vector3(box.min.x, box.max.y, box.min.z).applyMatrix4(transform),
|
||||
new THREE.Vector3(box.min.x, box.min.y, box.max.z).applyMatrix4(transform),
|
||||
new THREE.Vector3(box.min.x, box.max.y, box.max.z).applyMatrix4(transform),
|
||||
new THREE.Vector3(box.max.x, box.max.y, box.min.z).applyMatrix4(transform),
|
||||
new THREE.Vector3(box.min.x, box.min.y, box.max.z).applyMatrix4(transform),
|
||||
new THREE.Vector3(box.max.x, box.min.y, box.max.z).applyMatrix4(transform),
|
||||
new THREE.Vector3(box.min.x, box.max.y, box.max.z).applyMatrix4(transform),
|
||||
new THREE.Vector3(box.max.x, box.max.y, box.max.z).applyMatrix4(transform)
|
||||
];
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user