提交 7c2ebf71 编写于 作者: M Mr.doob

Mesh: Clean up.

上级 5bba4414
......@@ -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 );
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册