<commit_before>
import * as THREE from '../node_modules/three/build/three.module.js';
import { intersectTris, intersectClosestTri } from './GeometryUtilities.js';
import { arrayToSphere, arrayToBox } from './BoundsUtilities.js';

const intersectvec = new THREE.Vector3();
const boundingBox = new THREE.Box3();
const boundingSphere = new THREE.Sphere();

export default
class MeshBVHNode {

	constructor() {

		this.boundingData = null;
		this.geometry = null;
		this.tris = null;
		this.children = null;

	}

	intersectsRay( ray ) {

		arrayToSphere( this.boundingData, boundingSphere );

		if ( ! ray.intersectsSphere( boundingSphere ) ) return false;

		arrayToBox( this.boundingData, boundingBox );

		return ray.intersectsBox( boundingBox );

		return ray.intersectsSphere( this.boundingSphere ) && ray.intersectsBox( this.boundingBox );

	}<commit_msg>Fix LGTM alert<commit_after>
import * as THREE from '../node_modules/three/build/three.module.js';
import { intersectTris, intersectClosestTri } from './GeometryUtilities.js';
import { arrayToSphere, arrayToBox } from './BoundsUtilities.js';

const intersectvec = new THREE.Vector3();
const boundingBox = new THREE.Box3();
const boundingSphere = new THREE.Sphere();

export default
class MeshBVHNode {

	constructor() {

		this.boundingData = null;
		this.geometry = null;
		this.tris = null;
		this.children = null;

	}

	intersectsRay( ray ) {

		arrayToSphere( this.boundingData, boundingSphere );

		if ( ! ray.intersectsSphere( boundingSphere ) ) return false;

		arrayToBox( this.boundingData, boundingBox );

		return ray.intersectsBox( boundingBox );

	}
{'fraction_non_alphanumeric': 0.1179740580605312, 'fraction_numerical': 0.0024706609017912293, 'mean_word_length': 4.5479452054794525, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3053681', 'n_tokens_mistral': 575, 'n_tokens_neox': 505, 'n_words': 121}