Skip to content

Commit

Permalink
r152 (bis) (bis)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Apr 28, 2023
1 parent 31dd96f commit 70cc4e1
Show file tree
Hide file tree
Showing 7 changed files with 67 additions and 67 deletions.
42 changes: 21 additions & 21 deletions build/three.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -11311,7 +11311,7 @@ class BufferGeometry extends EventDispatcher {

const _inverseMatrix$2 = /*@__PURE__*/ new Matrix4();
const _ray$2 = /*@__PURE__*/ new Ray();
const _sphere$5 = /*@__PURE__*/ new Sphere();
const _sphere$4 = /*@__PURE__*/ new Sphere();
const _sphereHitAt = /*@__PURE__*/ new Vector3();

const _vA$1 = /*@__PURE__*/ new Vector3();
Expand Down Expand Up @@ -11459,14 +11459,14 @@ class Mesh extends Object3D {

if ( geometry.boundingSphere === null ) geometry.computeBoundingSphere();

_sphere$5.copy( geometry.boundingSphere );
_sphere$5.applyMatrix4( matrixWorld );
_sphere$4.copy( geometry.boundingSphere );
_sphere$4.applyMatrix4( matrixWorld );

_ray$2.copy( raycaster.ray ).recast( raycaster.near );

if ( _sphere$5.containsPoint( _ray$2.origin ) === false ) {
if ( _sphere$4.containsPoint( _ray$2.origin ) === false ) {

if ( _ray$2.intersectSphere( _sphere$5, _sphereHitAt ) === null ) return;
if ( _ray$2.intersectSphere( _sphere$4, _sphereHitAt ) === null ) return;

if ( _ray$2.origin.distanceToSquared( _sphereHitAt ) > ( raycaster.far - raycaster.near ) ** 2 ) return;

Expand Down Expand Up @@ -12951,7 +12951,7 @@ class Plane {

}

const _sphere$4 = /*@__PURE__*/ new Sphere();
const _sphere$3 = /*@__PURE__*/ new Sphere();
const _vector$6 = /*@__PURE__*/ new Vector3();

class Frustum {
Expand Down Expand Up @@ -13017,29 +13017,29 @@ class Frustum {

if ( object.boundingSphere === null ) object.computeBoundingSphere();

_sphere$4.copy( object.boundingSphere ).applyMatrix4( object.matrixWorld );
_sphere$3.copy( object.boundingSphere ).applyMatrix4( object.matrixWorld );

} else {

const geometry = object.geometry;

if ( geometry.boundingSphere === null ) geometry.computeBoundingSphere();

_sphere$4.copy( geometry.boundingSphere ).applyMatrix4( object.matrixWorld );
_sphere$3.copy( geometry.boundingSphere ).applyMatrix4( object.matrixWorld );

}

return this.intersectsSphere( _sphere$4 );
return this.intersectsSphere( _sphere$3 );

}

intersectsSprite( sprite ) {

_sphere$4.center.set( 0, 0, 0 );
_sphere$4.radius = 0.7071067811865476;
_sphere$4.applyMatrix4( sprite.matrixWorld );
_sphere$3.center.set( 0, 0, 0 );
_sphere$3.radius = 0.7071067811865476;
_sphere$3.applyMatrix4( sprite.matrixWorld );

return this.intersectsSphere( _sphere$4 );
return this.intersectsSphere( _sphere$3 );

}

Expand Down Expand Up @@ -30976,7 +30976,7 @@ const _vector3 = /*@__PURE__*/ new Vector3();
const _matrix4 = /*@__PURE__*/ new Matrix4();
const _vertex = /*@__PURE__*/ new Vector3();

const _sphere$3 = /*@__PURE__*/ new Sphere();


class SkinnedMesh extends Mesh {

Expand Down Expand Up @@ -31059,18 +31059,18 @@ class SkinnedMesh extends Mesh {

}

raycast( raycaster, intersects ) {
// raycast( raycaster, intersects ) {

if ( this.boundingSphere === null ) this.computeBoundingSphere();
// if ( this.boundingSphere === null ) this.computeBoundingSphere();

_sphere$3.copy( this.boundingSphere );
_sphere$3.applyMatrix4( this.matrixWorld );
// _sphere.copy( this.boundingSphere );
// _sphere.applyMatrix4( this.matrixWorld );

if ( raycaster.ray.intersectsSphere( _sphere$3 ) === false ) return;
// if ( raycaster.ray.intersectsSphere( _sphere ) === false ) return;

this._computeIntersections( raycaster, intersects );
// this._computeIntersections( raycaster, intersects );

}
// }

getVertexPosition( index, target ) {

Expand Down
42 changes: 21 additions & 21 deletions build/three.js
Original file line number Diff line number Diff line change
Expand Up @@ -11316,7 +11316,7 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated

const _inverseMatrix$2 = /*@__PURE__*/ new Matrix4();
const _ray$2 = /*@__PURE__*/ new Ray();
const _sphere$5 = /*@__PURE__*/ new Sphere();
const _sphere$4 = /*@__PURE__*/ new Sphere();
const _sphereHitAt = /*@__PURE__*/ new Vector3();

const _vA$1 = /*@__PURE__*/ new Vector3();
Expand Down Expand Up @@ -11464,14 +11464,14 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated

if ( geometry.boundingSphere === null ) geometry.computeBoundingSphere();

_sphere$5.copy( geometry.boundingSphere );
_sphere$5.applyMatrix4( matrixWorld );
_sphere$4.copy( geometry.boundingSphere );
_sphere$4.applyMatrix4( matrixWorld );

_ray$2.copy( raycaster.ray ).recast( raycaster.near );

if ( _sphere$5.containsPoint( _ray$2.origin ) === false ) {
if ( _sphere$4.containsPoint( _ray$2.origin ) === false ) {

if ( _ray$2.intersectSphere( _sphere$5, _sphereHitAt ) === null ) return;
if ( _ray$2.intersectSphere( _sphere$4, _sphereHitAt ) === null ) return;

if ( _ray$2.origin.distanceToSquared( _sphereHitAt ) > ( raycaster.far - raycaster.near ) ** 2 ) return;

Expand Down Expand Up @@ -12956,7 +12956,7 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated

}

const _sphere$4 = /*@__PURE__*/ new Sphere();
const _sphere$3 = /*@__PURE__*/ new Sphere();
const _vector$6 = /*@__PURE__*/ new Vector3();

class Frustum {
Expand Down Expand Up @@ -13022,29 +13022,29 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated

if ( object.boundingSphere === null ) object.computeBoundingSphere();

_sphere$4.copy( object.boundingSphere ).applyMatrix4( object.matrixWorld );
_sphere$3.copy( object.boundingSphere ).applyMatrix4( object.matrixWorld );

} else {

const geometry = object.geometry;

if ( geometry.boundingSphere === null ) geometry.computeBoundingSphere();

_sphere$4.copy( geometry.boundingSphere ).applyMatrix4( object.matrixWorld );
_sphere$3.copy( geometry.boundingSphere ).applyMatrix4( object.matrixWorld );

}

return this.intersectsSphere( _sphere$4 );
return this.intersectsSphere( _sphere$3 );

}

intersectsSprite( sprite ) {

_sphere$4.center.set( 0, 0, 0 );
_sphere$4.radius = 0.7071067811865476;
_sphere$4.applyMatrix4( sprite.matrixWorld );
_sphere$3.center.set( 0, 0, 0 );
_sphere$3.radius = 0.7071067811865476;
_sphere$3.applyMatrix4( sprite.matrixWorld );

return this.intersectsSphere( _sphere$4 );
return this.intersectsSphere( _sphere$3 );

}

Expand Down Expand Up @@ -30981,7 +30981,7 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
const _matrix4 = /*@__PURE__*/ new Matrix4();
const _vertex = /*@__PURE__*/ new Vector3();

const _sphere$3 = /*@__PURE__*/ new Sphere();


class SkinnedMesh extends Mesh {

Expand Down Expand Up @@ -31064,18 +31064,18 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated

}

raycast( raycaster, intersects ) {
// raycast( raycaster, intersects ) {

if ( this.boundingSphere === null ) this.computeBoundingSphere();
// if ( this.boundingSphere === null ) this.computeBoundingSphere();

_sphere$3.copy( this.boundingSphere );
_sphere$3.applyMatrix4( this.matrixWorld );
// _sphere.copy( this.boundingSphere );
// _sphere.applyMatrix4( this.matrixWorld );

if ( raycaster.ray.intersectsSphere( _sphere$3 ) === false ) return;
// if ( raycaster.ray.intersectsSphere( _sphere ) === false ) return;

this._computeIntersections( raycaster, intersects );
// this._computeIntersections( raycaster, intersects );

}
// }

getVertexPosition( index, target ) {

Expand Down
2 changes: 1 addition & 1 deletion build/three.min.js

Large diffs are not rendered by default.

42 changes: 21 additions & 21 deletions build/three.module.js
Original file line number Diff line number Diff line change
Expand Up @@ -11309,7 +11309,7 @@ class BufferGeometry extends EventDispatcher {

const _inverseMatrix$2 = /*@__PURE__*/ new Matrix4();
const _ray$2 = /*@__PURE__*/ new Ray();
const _sphere$5 = /*@__PURE__*/ new Sphere();
const _sphere$4 = /*@__PURE__*/ new Sphere();
const _sphereHitAt = /*@__PURE__*/ new Vector3();

const _vA$1 = /*@__PURE__*/ new Vector3();
Expand Down Expand Up @@ -11457,14 +11457,14 @@ class Mesh extends Object3D {

if ( geometry.boundingSphere === null ) geometry.computeBoundingSphere();

_sphere$5.copy( geometry.boundingSphere );
_sphere$5.applyMatrix4( matrixWorld );
_sphere$4.copy( geometry.boundingSphere );
_sphere$4.applyMatrix4( matrixWorld );

_ray$2.copy( raycaster.ray ).recast( raycaster.near );

if ( _sphere$5.containsPoint( _ray$2.origin ) === false ) {
if ( _sphere$4.containsPoint( _ray$2.origin ) === false ) {

if ( _ray$2.intersectSphere( _sphere$5, _sphereHitAt ) === null ) return;
if ( _ray$2.intersectSphere( _sphere$4, _sphereHitAt ) === null ) return;

if ( _ray$2.origin.distanceToSquared( _sphereHitAt ) > ( raycaster.far - raycaster.near ) ** 2 ) return;

Expand Down Expand Up @@ -12949,7 +12949,7 @@ class Plane {

}

const _sphere$4 = /*@__PURE__*/ new Sphere();
const _sphere$3 = /*@__PURE__*/ new Sphere();
const _vector$6 = /*@__PURE__*/ new Vector3();

class Frustum {
Expand Down Expand Up @@ -13015,29 +13015,29 @@ class Frustum {

if ( object.boundingSphere === null ) object.computeBoundingSphere();

_sphere$4.copy( object.boundingSphere ).applyMatrix4( object.matrixWorld );
_sphere$3.copy( object.boundingSphere ).applyMatrix4( object.matrixWorld );

} else {

const geometry = object.geometry;

if ( geometry.boundingSphere === null ) geometry.computeBoundingSphere();

_sphere$4.copy( geometry.boundingSphere ).applyMatrix4( object.matrixWorld );
_sphere$3.copy( geometry.boundingSphere ).applyMatrix4( object.matrixWorld );

}

return this.intersectsSphere( _sphere$4 );
return this.intersectsSphere( _sphere$3 );

}

intersectsSprite( sprite ) {

_sphere$4.center.set( 0, 0, 0 );
_sphere$4.radius = 0.7071067811865476;
_sphere$4.applyMatrix4( sprite.matrixWorld );
_sphere$3.center.set( 0, 0, 0 );
_sphere$3.radius = 0.7071067811865476;
_sphere$3.applyMatrix4( sprite.matrixWorld );

return this.intersectsSphere( _sphere$4 );
return this.intersectsSphere( _sphere$3 );

}

Expand Down Expand Up @@ -30974,7 +30974,7 @@ const _vector3 = /*@__PURE__*/ new Vector3();
const _matrix4 = /*@__PURE__*/ new Matrix4();
const _vertex = /*@__PURE__*/ new Vector3();

const _sphere$3 = /*@__PURE__*/ new Sphere();


class SkinnedMesh extends Mesh {

Expand Down Expand Up @@ -31057,18 +31057,18 @@ class SkinnedMesh extends Mesh {

}

raycast( raycaster, intersects ) {
// raycast( raycaster, intersects ) {

if ( this.boundingSphere === null ) this.computeBoundingSphere();
// if ( this.boundingSphere === null ) this.computeBoundingSphere();

_sphere$3.copy( this.boundingSphere );
_sphere$3.applyMatrix4( this.matrixWorld );
// _sphere.copy( this.boundingSphere );
// _sphere.applyMatrix4( this.matrixWorld );

if ( raycaster.ray.intersectsSphere( _sphere$3 ) === false ) return;
// if ( raycaster.ray.intersectsSphere( _sphere ) === false ) return;

this._computeIntersections( raycaster, intersects );
// this._computeIntersections( raycaster, intersects );

}
// }

getVertexPosition( index, target ) {

Expand Down
2 changes: 1 addition & 1 deletion build/three.module.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "three",
"version": "0.152.1",
"version": "0.152.2",
"description": "JavaScript 3D library",
"type": "module",
"main": "./build/three.js",
Expand Down

0 comments on commit 70cc4e1

Please sign in to comment.