Files
superGeometry 2cb65c2146 Stress test: a key tag (rounded plate, a hole, raised text, a rounded edge)
tests/keytag.test.ts builds it by code, each step held to its size: a
50 x 24 x 3 plate with its corners rounded 6, a 6 round hole for the
ring cut through, "SG" raised 1 in the app's own sans, the top outer
edge rounded 1 all round. Then the same tag built by hand on a
phone-sized screen (tests/fixtures/keytag-hand.json): the same volume
and faces.

What the hand build found:

- Sketch fillet: typing a Radius on the card after tapping a corner
  didn't change that corner; it only set the size for the next one.
  The card's Radius now resizes the corner being sized, as its box does.
- One edge of a smooth outline filleted rounds the whole outline (the
  kernel follows tangent edges), so the round all round is one tap.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 21:27:22 +02:00

1 line
9.8 KiB
JSON

{"format":"super","version":2,"name":"Key tag by hand","features":[{"id":"sketch-mwmi9epm-vbqy","name":"Sketch 01","type":"sketch","plane":{"origin":[0,0,0],"xDir":[1,0,0],"normal":[0,0,1]},"entities":[{"id":"3467ok93","kind":"line","a":[-19,-12],"b":[19,-12]},{"id":"vkcnfelg","kind":"line","a":[25,-5.999999999999999],"b":[25,5.999999999999999]},{"id":"g80103qm","kind":"line","a":[19,12],"b":[-19,12]},{"id":"l04sgj7z","kind":"line","a":[-25,5.999999999999999],"b":[-25,-5.999999999999999]},{"id":"xm35q47g","kind":"arc","a":[25,5.999999999999999],"m":[23.242640687119284,10.242640687119284],"b":[19,12]},{"id":"lttccm18","kind":"arc","a":[-19,12],"m":[-23.242640687119284,10.242640687119284],"b":[-25,5.999999999999999]},{"id":"in4gjimr","kind":"arc","a":[-19,-12],"m":[-23.242640687119284,-10.242640687119284],"b":[-25,-5.999999999999999]},{"id":"rin0ni7d","kind":"arc","a":[19,-12],"m":[23.242640687119284,-10.242640687119284],"b":[25,-5.999999999999999]}],"constraints":[{"id":"miws088l","type":"coincident","pts":[{"e":"vkcnfelg","p":"b"},{"e":"xm35q47g","p":"a"}]},{"id":"v10fl5at","type":"tangent","curves":["vkcnfelg","xm35q47g"]},{"id":"mnx07zr0","type":"coincident","pts":[{"e":"g80103qm","p":"a"},{"e":"xm35q47g","p":"b"}]},{"id":"wi41de6p","type":"tangent","curves":["g80103qm","xm35q47g"]},{"id":"5l9swxqf","type":"dim","curves":["xm35q47g"],"prop":"radius","value":6.000000000000007},{"id":"nwejt371","type":"coincident","pts":[{"e":"g80103qm","p":"b"},{"e":"lttccm18","p":"a"}]},{"id":"kbj58rgj","type":"tangent","curves":["g80103qm","lttccm18"]},{"id":"9uwmlusc","type":"coincident","pts":[{"e":"l04sgj7z","p":"a"},{"e":"lttccm18","p":"b"}]},{"id":"hbevi6jz","type":"tangent","curves":["l04sgj7z","lttccm18"]},{"id":"3xnqpwie","type":"dim","curves":["lttccm18"],"prop":"radius","value":6.000000000000009},{"id":"ns62tr1g","type":"coincident","pts":[{"e":"3467ok93","p":"a"},{"e":"in4gjimr","p":"a"}]},{"id":"f3plzzyr","type":"tangent","curves":["3467ok93","in4gjimr"]},{"id":"isgm1dee","type":"coincident","pts":[{"e":"l04sgj7z","p":"b"},{"e":"in4gjimr","p":"b"}]},{"id":"t6ncme9p","type":"tangent","curves":["l04sgj7z","in4gjimr"]},{"id":"hk12blwl","type":"dim","curves":["in4gjimr"],"prop":"radius","value":6.000000000000009},{"id":"yat4e0il","type":"coincident","pts":[{"e":"3467ok93","p":"b"},{"e":"rin0ni7d","p":"a"}]},{"id":"384tl9sn","type":"tangent","curves":["3467ok93","rin0ni7d"]},{"id":"ek21soke","type":"coincident","pts":[{"e":"vkcnfelg","p":"a"},{"e":"rin0ni7d","p":"b"}]},{"id":"ycng9igm","type":"tangent","curves":["vkcnfelg","rin0ni7d"]},{"id":"qx7p6cis","type":"dim","curves":["rin0ni7d"],"prop":"radius","value":6.000000000000009}],"log":[{"op":"Rectangle","n":1},{"op":"Fillet","n":1},{"op":"Constraint","n":4}]},{"id":"extrude-mwmide9w-b8v2","name":"Extrude 01","type":"extrude","source":{"kind":"profile","sketch":"sketch-mwmi9epm-vbqy","regions":[{"c":[-1.778864155554579e-15,-6.442810950641869e-16],"a":1169.016607309687,"k":["3467ok93","g80103qm","in4gjimr","l04sgj7z","lttccm18","rin0ni7d","vkcnfelg","xm35q47g"],"s":[0.5,0.5,0.49999999999997696,0.5,0.49999999999997696,0.49999999999997696,0.5,0.5]}]},"distance":3,"mode":"auto"},{"id":"sketch-mwmidmxv-nlk0","name":"Sketch 02","type":"sketch","plane":{"origin":[0,0,3],"normal":[0,0,1],"xDir":[1,0,0]},"attachedTo":{"body":"extrude-mwmide9w-b8v2","center":[-3.4035141466260467e-16,8.091464265555967e-16,3],"normal":[0,0,1],"area":1169.0973355292326,"step":"extrude-mwmide9w-b8v2","curve":"cap:1@g80103qm:0"},"entities":[{"id":"8jlv9y6u","kind":"circle","center":[-18,0],"radius":3}],"constraints":[{"id":"tgv67j4f","type":"dim","curves":["8jlv9y6u"],"prop":"diameter","value":6}],"log":[{"op":"Circle","n":1}]},{"id":"extrude-mwmidul8-x1ir","name":"Extrude 02","type":"extrude","source":{"kind":"profile","sketch":"sketch-mwmidmxv-nlk0","regions":[{"c":[-18.000000000000004,-6.784790783652516e-16],"a":28.254151827421822,"k":["8jlv9y6u"],"s":[0.5]}]},"distance":-1,"mode":"auto","target":"extrude-mwmide9w-b8v2","extent":"through"},{"id":"sketch-mwmie1lv-6otx","name":"Sketch 03","type":"sketch","plane":{"origin":[0,0,3],"normal":[0,0,1],"xDir":[1,0,0]},"attachedTo":{"body":"extrude-mwmide9w-b8v2","center":[0.4461147865592021,8.953018527608584e-16,3],"normal":[0,0,1],"area":1140.8230016469245,"step":"extrude-mwmide9w-b8v2","curve":"cap:1@g80103qm:0"},"entities":[{"id":"gw2bjj4h","kind":"line","a":[4.065934065934067,2.115384615384615],"b":[2.7472527472527473,2.115384615384615]},{"id":"paf6x4no","kind":"spline","points":[[2.7472527472527473,2.115384615384615],[2.705519307081807,2.562647855616606],[2.5068681318681323,3.114697802197803],[2.0764652014652016,3.613782051282051],[1.3271710927960934,3.966894650488401],[0.31364468864468886,4.046283577533579],[-0.5465888278388285,3.8732925061050043],[-1.1819625686813184,3.434924450549449],[-1.475789835164834,2.8725961538461533],[-1.4190562042124544,1.9011609050671554],[-0.826322115384615,1.272750686813187],[2.28021978021978,0.08241758241758212],[3.545100732600733,-0.8360042735042743],[4.087969322344323,-2.2675328144078146],[3.6576617826617834,-3.878205128205128],[2.3461109203296706,-4.8439646291208796],[0.030501182844933084,-5.103975885225886],[-1.8827266483516478,-4.430898962148962],[-2.9895690247252737,-3.122209821428571],[-3.1730769230769234,-2.1016483516483517]],"closed":false,"mode":"fit"},{"id":"rpl55qen","kind":"line","a":[-3.1730769230769234,-2.1016483516483517],"b":[-1.854395604395604,-2.1016483516483517]},{"id":"et9g3gcg","kind":"spline","points":[[-1.854395604395604,-2.1016483516483517],[-1.6870325854700843,-2.921937003968254],[-1.3240231990231983,-3.4176587301587302],[-0.6718368437118434,-3.8292458409645906],[1.0431929181929185,-4.037698412698413],[2.317612942612943,-3.5370879120879124],[2.7331349206349205,-2.783119658119658],[2.5383947649572653,-1.633828411172161],[1.4766721993284495,-0.9076903998778993],[-1.2427026098901095,0.09593921703296626],[-2.6304945054945055,1.3804945054945055],[-2.7503052503052494,3.1562881562881557],[-1.7716918498168504,4.4758279914529915],[0.1669814560439562,5.1244848901098905],[1.5839629120879124,5.030048076923077],[2.4553571428571432,4.708104395604396],[3.337530525030525,4.019764957264957],[3.834134615384616,3.2376802884615383],[4.040178571428572,2.501073145604395],[4.065934065934067,2.115384615384615]],"closed":false,"mode":"fit"},{"id":"z7nswejm","kind":"line","a":[9.539835164835166,-0.020604395604395975],"b":[13.173076923076922,-0.020604395604395975]},{"id":"hy2c9yv9","kind":"line","a":[13.173076923076922,-0.020604395604395975],"b":[13.173076923076922,-3.6813186813186816]},{"id":"wknew4kw","kind":"spline","points":[[13.173076923076922,-3.6813186813186816],[12.828144078144078,-4.076617826617826],[11.802669986263737,-4.75575206043956],[10.653331043956044,-5.074690934065934],[8.759443681318682,-5.057520604395604],[7.2424450549450565,-4.424793956043956],[6.064608134920636,-3.075635302197802],[5.536572802197803,-1.4448832417582418],[5.460164835164836,-0.384615384615385]],"closed":false,"mode":"fit"},{"id":"t3t6t3k1","kind":"line","a":[5.460164835164836,-0.384615384615385],"b":[5.460164835164836,0.3914835164835164]},{"id":"wy67gd33","kind":"spline","points":[[5.460164835164836,0.3914835164835164],[5.526270604395605,1.4508928571428577],[6.051682692307693,3.203125],[7.184542887667888,4.500581883394384],[8.571428571428573,5.057520604395604],[9.85681852869353,5.126392704517704],[10.994805975274726,4.915221497252748],[12.093063186813188,4.272836538461538],[12.683841765873016,3.53689713064713],[13.015801472832722,2.779113247863247],[13.173076923076922,2.074175824175824]],"closed":false,"mode":"fit"},{"id":"4w4f8l8g","kind":"line","a":[13.173076923076922,2.074175824175824],"b":[11.847527472527473,2.074175824175824]},{"id":"5wyi1ti3","kind":"spline","points":[[11.847527472527473,2.074175824175824],[11.683765453296704,2.674469627594628],[11.10937023046398,3.524424793956044],[10.18372252747253,3.984375],[8.837568681318682,3.988667582417584],[7.750782203907205,3.4268162393162402],[7.157451923076923,2.5463598901098905],[6.847503624847375,1.3323698870573875],[6.792582417582418,0.4052197802197801]],"closed":false,"mode":"fit"},{"id":"1z4byoa5","kind":"line","a":[6.792582417582418,0.4052197802197801],"b":[6.792582417582418,-0.384615384615385]},{"id":"77176rg8","kind":"spline","points":[[6.792582417582418,-0.384615384615385],[6.8432348901098905,-1.20364010989011],[7.194439674908426,-2.461390605921856],[7.990212912087912,-3.5070398351648353],[9.032451923076923,-3.9972527472527473],[10.377031822344323,-4.018167162698413],[11.061507936507937,-3.8534035409035408],[11.66242177960928,-3.513168688949939],[11.854395604395604,-3.331043956043956]],"closed":false,"mode":"fit"},{"id":"386isb2o","kind":"line","a":[11.854395604395604,-3.331043956043956],"b":[11.854395604395604,-1.0920329670329672]},{"id":"mqh4fz3c","kind":"line","a":[11.854395604395604,-1.0920329670329672],"b":[9.539835164835166,-1.0920329670329672]},{"id":"chlp3zmw","kind":"line","a":[9.539835164835166,-1.0920329670329672],"b":[9.539835164835166,-0.020604395604395975]}],"log":[{"op":"Text","n":1}]},{"id":"extrude-mwmiefbz-hs4g","name":"Extrude 03","type":"extrude","source":{"kind":"profile","sketch":"sketch-mwmie1lv-6otx","regions":[{"c":[0.5833475050965873,-0.04697040501427397],"a":29.67851730974041,"k":["et9g3gcg","gw2bjj4h","paf6x4no","rpl55qen"],"s":[0.5,0.5,0.5,0.5]},{"c":[9.321275658255123,-0.1750965337412373],"a":32.00146348914462,"k":["1z4byoa5","386isb2o","4w4f8l8g","5wyi1ti3","77176rg8","chlp3zmw","hy2c9yv9","mqh4fz3c","t3t6t3k1","wknew4kw","wy67gd33","z7nswejm"],"s":[0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5]}]},"distance":1,"mode":"auto","target":"extrude-mwmide9w-b8v2"},{"id":"fillet-mwmigssw-we1x","name":"Fillet 01","type":"fillet","edges":[{"body":"extrude-mwmide9w-b8v2","mid":[0,-12,3],"dir":[1,0,0],"length":38,"steps":["extrude-mwmide9w-b8v2"],"curves":["extrude-mwmide9w-b8v2|3467ok93:0","extrude-mwmide9w-b8v2|cap:1@g80103qm:0"]}],"radius":1}]}