Просмотр исходного кода

added comment justifying the detailed computation of the boundingSphere

Juergen Ahting 12 лет назад
Родитель
Сommit
acf315b800
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      src/core/BufferGeometry.js

+ 3 - 0
src/core/BufferGeometry.js

@@ -181,6 +181,9 @@ THREE.BufferGeometry.prototype = {
 
 				box.center( center );
 
+				// hoping to find a boundingSphere with a radius smaller than the
+				//  boundingSphere of the boundingBox:  sqrt(3) smaller in the best case
+
 				var maxRadiusSq = 0;
 
 				for ( var i = 0, il = positions.length; i < il; i += 3 ) {

粤ICP备19079148号