Commit 5023423e authored by amandaghassaei's avatar amandaghassaei
Browse files

small changes

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