Tussenpunten van anchorpoints
This commit is contained in:
parent
7329f8e7ae
commit
cc505355b3
1 changed files with 11 additions and 0 deletions
|
@ -51,6 +51,17 @@ function getPathShapeBetweenPoints(p1, p2, corners) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// teken punten tussen alle punten
|
||||||
|
let allCornerPoints = [];
|
||||||
|
for (let index = 0; index < cornerPoints.length; index++) {
|
||||||
|
const c = cornerPoints[index];
|
||||||
|
const nextC = cornerPoints[(index+1)%cornerPoints.length];
|
||||||
|
allCornerPoints.push(c);
|
||||||
|
allCornerPoints.push([.5*(nextC[0]+c[0]), .5*(nextC[1]+c[1])]);
|
||||||
|
}
|
||||||
|
cornerPoints = allCornerPoints;
|
||||||
|
|
||||||
|
|
||||||
// create d:
|
// create d:
|
||||||
let d = "";
|
let d = "";
|
||||||
|
|
Loading…
Reference in a new issue