more intuitive point delete from polygons
[?]
May 15, 2022, 7:03 AM
JRLBUB6LR2JIAKVQNKF3T4BDICUIJ3HEMRRHX56YP5M5SP7ZS3WACDependencies
- [2]
FBDRL6LHdelete points or shapes - [3]
HWPK4SMPnew mode: manhattan - [4]
WDWXNW7Vslightly strange way to move points - [5]
IFGAJAF7add a level of indirection to vertices of shapes - [*]
OTIBCAUJlove2d scaffold - [*]
6LJZN727handle chords - [*]
ZOOY3ME4new mode: circle arc
Change contents
- replacement in main.lua at line 569
shape.mode = 'deleted'if shape.mode == 'polygon' thenlocal idx = table.find(shape.vertices, i)assert(idx)table.remove(shape.vertices, idx)if #shape.vertices < 3 thenshape.mode = 'deleted'endelseshape.mode = 'deleted'end - edit in main.lua at line 663
print(p, shape.p1, shape.p2) - edit in main.lua at line 719[8.371][9.2486]
endfunction table.find(h, x)for k,v in pairs(h) doif v == x thenreturn kendend