Difference between revisions of "Fill the intersection area of three circles"
From JSXGraph Wiki
Jump to navigationJump to searchA WASSERMANN (talk | contribs) |
A WASSERMANN (talk | contribs) |
||
Line 8: | Line 8: | ||
c.updateDataArray = function() { | c.updateDataArray = function() { | ||
− | // The | + | // The three paths have to be connected |
this.dataX = cu1.dataX.slice(0,-1).concat(cu2.dataX).concat(cu3.dataX); | this.dataX = cu1.dataX.slice(0,-1).concat(cu2.dataX).concat(cu3.dataX); | ||
this.dataY = cu1.dataY.slice(0,-1).concat(cu2.dataY).concat(cu3.dataY); | this.dataY = cu1.dataY.slice(0,-1).concat(cu2.dataY).concat(cu3.dataY); | ||
+ | console.log(this.dataX.length); | ||
if (this.dataX.length<4) { | if (this.dataX.length<4) { | ||
this.bezierDegree = 1; | this.bezierDegree = 1; |