Commit db1fa0ef authored by amandaghassaei's avatar amandaghassaei
Browse files

closed crease

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