Commit db1fa0ef authored by amandaghassaei's avatar amandaghassaei
Browse files

closed crease

parent 13b86cc5
......@@ -166,11 +166,11 @@ function initControls(globals){
//quad panels
creaseParams.push(0);
break;
case 2:
case 3:
//outline
shouldSkip = true;
break;
case 3:
case 2:
//crease
creaseParams.push(Math.PI);
break;
......
......@@ -7,13 +7,13 @@ function Crease(edge, face1Index, face2Index, targetTheta, type, node1, node2, i
//face1 corresponds to node1, face2 to node2
this.edge = edge;
if (targetTheta>0) this.edge.highlight();
for (var i=0;i<edge.nodes.length;i++){
edge.nodes[i].addInvCrease(this);
}
this.face1Index = face1Index;
this.face2Index = face2Index;
this.targetTheta = targetTheta;
if (this.targetTheta==Math.PI) console.log("here");
this.type = type;
this.node1 = node1;
this.node2 = node2;
......
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