Commit aa5a0d61 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

testing weights

parent 72e22368
......@@ -59,8 +59,10 @@ function hll_f_3d_i(i,v){
//var vec = new x3dom.fields.SFVec3f(mark.align.x-base.x,mark.align.y-base.y,mark.align.z-base.z);
var res = Math.atan2(vec.x,-vec.z)*180/Math.PI + v[2];
if (res> 180) res = res - 360;
if (res<-180) res = res + 360;
console.log("hll_f_3d_i: "+i+" "+res);
//if (res> 180) res = res - 360;
//if (res<-180) res = res + 360;
return res;
}
......@@ -282,7 +284,8 @@ function art_l_i(i){
function art_w_i(i,v){
//return 1;
return 1/art_l_i(i);
//return 1/art_l_i(i);
return art_l_i(i);
}
/**
......@@ -326,6 +329,6 @@ function art2_l_i(i){
}
function art2_w_i(i,v){
return 1;
//return 1/art_l_i(i);
//return 1;
return 1/art_l_i(i);
}
......@@ -1464,8 +1464,13 @@ X3DOMObject.displayMarkInfo = function(index){
}
/*
* Called on ctrl-click over scene
*/
X3DOMObject.createNewMarker = function(x,y,z){
console.log("createNewMarker");
x = parseFloat(x);
y = parseFloat(y);
z = parseFloat(z);
......
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