提交 5df5fc57 编写于 作者: M Mr.doob

WebGLObjects: Faster checkEdge.

上级 06eb8c06
......@@ -271,10 +271,11 @@ THREE.WebGLObjects = function ( gl, properties, info ) {
function checkEdge( edges, a, b ) {
if ( edges[ a + '|' + b ] === true ) return false;
var hash = a < b ? a + '_' + b : b + '_' + a;
edges[ a + '|' + b ] = true;
edges[ b + '|' + a ] = true;
if ( edges.hasOwnProperty( hash ) ) return false;
edges[ hash ] = 1;
return true;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册