1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-08-24 09:13:07 +02:00

image regeneration

This commit is contained in:
Pomax
2020-09-06 09:18:11 -07:00
parent 1de1fc9ce3
commit 17c50a403b
48 changed files with 97 additions and 15074 deletions

View File

@@ -58,7 +58,7 @@ draw() {
drawSegment(segment) {
setStroke( randomColor(0.2) );
setStroke(randomColor(0.2) );
start()
segment.getLUT(16).forEach(p => vertex(p.x, p.y))
end();
@@ -78,7 +78,7 @@ drawBoolean(s1, s2) {
ti = ti.map(s => s.split(`/`).map(parseFloat));
// remove "near enough to be considered duplicate" t pairs
for(let i=ti.length-1; i>0; i--) {
if ( abs(ti[i][0] - ti[i-1][0]) < 0.01 && abs(ti[i][1] - ti[i-1][1]) < 0.01) {
if (abs(ti[i][0] - ti[i-1][0]) < 0.01 && abs(ti[i][1] - ti[i-1][1]) < 0.01) {
ti.splice(i,1);
}
}