Skip to content

Commit

Permalink
Mesh: Simplify function name (#25651)
Browse files Browse the repository at this point in the history
  • Loading branch information
WestLangley committed Mar 11, 2023
1 parent 1b4059c commit 4df4643
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/objects/Mesh.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ class Mesh extends Object3D {
const b = index.getX( j + 1 );
const c = index.getX( j + 2 );

intersection = checkBufferGeometryIntersection( this, groupMaterial, raycaster, _ray, uv, uv2, normal, a, b, c );
intersection = checkGeometryIntersection( this, groupMaterial, raycaster, _ray, uv, uv2, normal, a, b, c );

if ( intersection ) {

Expand All @@ -246,7 +246,7 @@ class Mesh extends Object3D {
const b = index.getX( i + 1 );
const c = index.getX( i + 2 );

intersection = checkBufferGeometryIntersection( this, material, raycaster, _ray, uv, uv2, normal, a, b, c );
intersection = checkGeometryIntersection( this, material, raycaster, _ray, uv, uv2, normal, a, b, c );

if ( intersection ) {

Expand Down Expand Up @@ -279,7 +279,7 @@ class Mesh extends Object3D {
const b = j + 1;
const c = j + 2;

intersection = checkBufferGeometryIntersection( this, groupMaterial, raycaster, _ray, uv, uv2, normal, a, b, c );
intersection = checkGeometryIntersection( this, groupMaterial, raycaster, _ray, uv, uv2, normal, a, b, c );

if ( intersection ) {

Expand All @@ -304,7 +304,7 @@ class Mesh extends Object3D {
const b = i + 1;
const c = i + 2;

intersection = checkBufferGeometryIntersection( this, material, raycaster, _ray, uv, uv2, normal, a, b, c );
intersection = checkGeometryIntersection( this, material, raycaster, _ray, uv, uv2, normal, a, b, c );

if ( intersection ) {

Expand Down Expand Up @@ -354,7 +354,7 @@ function checkIntersection( object, material, raycaster, ray, pA, pB, pC, point

}

function checkBufferGeometryIntersection( object, material, raycaster, ray, uv, uv2, normal, a, b, c ) {
function checkGeometryIntersection( object, material, raycaster, ray, uv, uv2, normal, a, b, c ) {

object.getVertexPosition( a, _vA );
object.getVertexPosition( b, _vB );
Expand Down

0 comments on commit 4df4643

Please sign in to comment.