swill / kb_builder

A stand alone keyboard CAD generation tool based on FreeCAD.
GNU Affero General Public License v3.0
96 stars 34 forks source link

Custom polygons does not rotate with switch #22

Open dsarmiento opened 5 years ago

dsarmiento commented 5 years ago

When I add custom polygons to the switch with {_c:"0"}, they do not seem to rotate with the switches when they are rotated.

Used the example of ergodox and added _c:"0" to each switch along with the custom polygon of

image

[{x:3.5,_c:"0"},"#\n3",{x:10.5,_c:"0"},"*\n8"], [{y:-0.875,x:2.5,_c:"0"},"@\n2",{x:1,_c:"0"},"$\n4",{x:8.5,_c:"0"},"&\n7",{x:1,_c:"0"},"(\n9"], [{y:-0.875,x:5.5,_c:"0"},"%\n5",{a:7,_c:"0"},"",{x:4.5,_c:"0"},"",{a:4,_c:"0"},"^\n6"], [{y:-0.875,a:7,w:1.5,_c:"0"},"",{a:4,_c:"0"},"!\n1",{x:14.5,_c:"0"},")\n0",{a:7,w:1.5,_c:"0"},""], [{y:-0.375,x:3.5,a:4,_c:"0"},"E",{x:10.5,_c:"0"},"I"], [{y:-0.875,x:2.5,_c:"0"},"W",{x:1,_c:"0"},"R",{x:8.5,_c:"0"},"U",{x:1,_c:"0"},"O"], [{y:-0.875,x:5.5,_c:"0"},"T",{a:7,h:1.5,_c:"0"},"",{x:4.5,h:1.5,_c:"0"},"",{a:4,_c:"0"},"Y"], [{y:-0.875,a:7,w:1.5,_c:"0"},"",{a:4,_c:"0"},"Q",{x:14.5,_c:"0"},"P",{a:7,w:1.5,_c:"0"},""], [{y:-0.375,x:3.5,a:4,_c:"0"},"D",{x:10.5,_c:"0"},"K"], [{y:-0.875,x:2.5,_c:"0"},"S",{x:1,_c:"0"},"F",{x:8.5,_c:"0"},"J",{x:1,_c:"0"},"L"], [{y:-0.875,x:5.5,_c:"0"},"G",{x:6.5,_c:"0"},"H"], [{y:-0.875,a:7,w:1.5,_c:"0"},"",{a:4,_c:"0"},"A",{x:14.5,_c:"0"},":\n;",{a:7,w:1.5,_c:"0"},""], [{y:-0.625,x:6.5,h:1.5,_c:"0"},"",{x:4.5,h:1.5,_c:"0"},""], [{y:-0.75,x:3.5,a:4,_c:"0"},"C",{x:10.5,_c:"0"},"<\n,"], [{y:-0.875,x:2.5,_c:"0"},"X",{x:1,_c:"0"},"V",{x:8.5,_c:"0"},"M",{x:1,_c:"0"},">\n."], [{y:-0.875,x:5.5,_c:"0"},"B",{x:6.5,_c:"0"},"N"], [{y:-0.875,a:7,w:1.5,_c:"0"},"",{a:4,_c:"0"},"Z",{x:14.5,_c:"0"},"?\n/",{a:7,w:1.5,_c:"0"},""], [{y:-0.375,x:3.5,_c:"0"},"",{x:10.5,_c:"0"},""], [{y:-0.875,x:2.5,_c:"0"},"",{x:1,_c:"0"},"",{x:8.5,_c:"0"},"",{x:1,_c:"0"},""], [{y:-0.75,x:0.5,_c:"0"},"",{_c:"0"},"",{x:14.5,_c:"0"},"",{_c:"0"},""], [{r:30,rx:6.5,ry:4.25,y:-1,x:1,_c:"0"},"",{_c:"0"},""], [{h:2,_c:"0"},"",{h:2,_c:"0"},"",{_c:"0"},""], [{x:2,_c:"0"},""], [{r:-30,rx:13,y:-1,x:-3,_c:"0"},"",{_c:"0"},""], [{x:-3,_c:"0"},"",{h:2,_c:"0"},"",{h:2,_c:"0"},""], [{x:-3,_c:"0"},""]

image