Commit 155dff77 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

a few minor changes

parent ba3f0fab
...@@ -305,8 +305,8 @@ function x3dom_align_art(){ ...@@ -305,8 +305,8 @@ function x3dom_align_art(){
result.v[0] = result.v[0]*180/Math.PI; result.v[0] = result.v[0]*180/Math.PI;
result.v[1] = result.v[1]*180/Math.PI; result.v[1] = result.v[1]*180/Math.PI;
result.v[0] = bring_angle_to_range_deg(result.v[0],-180,180); //result.v[0] = bring_angle_to_range_deg(result.v[0],-180,180);
result.v[1] = bring_angle_to_range_deg(result.v[1],-180,180); //result.v[1] = bring_angle_to_range_deg(result.v[1],-180,180);
apply_alignment_dialog_art([0,0,0],result.v,result.count,result.error,true); apply_alignment_dialog_art([0,0,0],result.v,result.count,result.error,true);
......
...@@ -93,19 +93,25 @@ function bring_angle_to_range_deg(a,a0,a1){ ...@@ -93,19 +93,25 @@ function bring_angle_to_range_deg(a,a0,a1){
var res = a; var res = a;
var c = 0; var c = 0;
console.log("Bringing value "+a+" to range ["+a0+","+a1+"]");
while ((res<a0)||(res>a1)){ while ((res<a0)||(res>a1)){
c++; c++;
console.log("a = "+res);
if (res<a0) { if (res<a0) {
res += 360; res += 360;
}else if (res>a1){ }else if (res>a1){
res -= 360; res -= 360;
} }
if (c==100){ if (c==100){
console.log("test"); console.log("done");
break; break;
} }
} }
console.log(" result = "+res);
return res; return res;
} }
...@@ -1469,8 +1469,6 @@ X3DOMObject.displayMarkInfo = function(index){ ...@@ -1469,8 +1469,6 @@ X3DOMObject.displayMarkInfo = function(index){
*/ */
X3DOMObject.createNewMarker = function(x,y,z){ X3DOMObject.createNewMarker = function(x,y,z){
console.log("createNewMarker");
x = parseFloat(x); x = parseFloat(x);
y = parseFloat(y); y = parseFloat(y);
z = parseFloat(z); 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