Commit 963ba781 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

1. removed spread operatorfrom max function

parent 55768512
......@@ -414,7 +414,13 @@ function place_camera(){
var boxsize;
boxsize = Math.max(...top_bboxsize);
console.log(top_bboxsize);
boxsize = 0;
for(var k=0;k<top_bboxsize.length;k++){
if (parseFloat(top_bboxsize[k])>boxsize) boxsize = parseFloat(top_bboxsize[k]);
}
//boxsize = Math.max(...top_bboxsize);
var view_distance = (boxsize/2)/Math.tan(fov/2);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment