Commit 5023423e authored by amandaghassaei's avatar amandaghassaei

small changes

parent 1b956f36
......@@ -276,7 +276,9 @@ function initControls(globals){
var x = normal1.dot(normal2);
var y = normal1.cross((json.vertices_coords[v2].clone().sub(json.vertices_coords[v1])).normalize()).dot(normal2);
var angle = Math.atan2(y, x);
angle = Math.abs(angle)*foldSign;
if (Math.abs(Math.PI-Math.abs(angle)) < 0.2){
angle = Math.PI*foldSign;
}
creaseParams.push(angle);
break;
}
......
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