Commit 1b956f36 authored by amandaghassaei's avatar amandaghassaei
Browse files

trying to fix fold angle import

parent cd85ae89
......@@ -275,7 +275,9 @@ function initControls(globals){
var normal2 = (vec2.cross(vec1)).normalize();
var x =;
var y = normal1.cross((json.vertices_coords[v2].clone().sub(json.vertices_coords[v1])).normalize()).dot(normal2);
creaseParams.push(Math.atan2(y, x));
var angle = Math.atan2(y, x);
angle = Math.abs(angle)*foldSign;
Supports Markdown
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