Skip to content

Commit

Permalink
Mesh: Clean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Sep 16, 2017
1 parent 5bba441 commit 7c2ebf7
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions src/objects/Mesh.js
Expand Up @@ -268,28 +268,25 @@ Mesh.prototype = Object.assign( Object.create( Object3D.prototype ), {

}

} else {
} else if ( position !== undefined ) {

// non-indexed buffer geometry

if ( position ) {

for ( i = 0, l = position.count; i < l; i += 3 ) {
for ( i = 0, l = position.count; i < l; i += 3 ) {

a = i;
b = i + 1;
c = i + 2;
a = i;
b = i + 1;
c = i + 2;

intersection = checkBufferGeometryIntersection( this, raycaster, ray, position, uv, a, b, c );

if ( intersection ) {
intersection = checkBufferGeometryIntersection( this, raycaster, ray, position, uv, a, b, c );

intersection.index = a; // triangle number in positions buffer semantics
intersects.push( intersection );
if ( intersection ) {

}
intersection.index = a; // triangle number in positions buffer semantics
intersects.push( intersection );

}

}

}
Expand Down

0 comments on commit 7c2ebf7

Please sign in to comment.