221187e60c
tests/bracket.test.ts builds it by code, each step held to its size: the L drawn on the side plane and pulled out 20 each side, the inside corner rounded 5, a gusset on an offset plane mirrored (Copy) to the other side and joined, two slots (a box and two circles each) cut through the foot, a round hole through the upright, the four outer corners rounded 6. Then the same bracket built by hand on a phone-sized screen (tests/fixtures/bracket-hand.json): the same volume and faces. What the hand build found: - Sketch, on a phone: the first point typed (X, Y), then a length and an angle, and Enter: the shape was dropped. Typing the first point lets go of the finger's spot, and Enter only placed the point with a spot to go by. It is placed as Done places it now. - Sketch Mirror: the shapes tapped one by one, a rectangle's width label sat under its edge, where the circle's bottom was. The label took the tap and every shape picked so far was let go. The size and constraint labels are only tapped in Select now; in the other tools a tap goes to the drawing under them. - Sketch Mirror: the axis tapped beside a slot 5 from it, zoomed out: the slot was within a finger's reach, and was let go instead of mirrored. A shape near an axis only wins when the tap is right on it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 line
8.5 KiB
JSON
1 line
8.5 KiB
JSON
{"format":"super","version":2,"name":"Bracket by hand","features":[{"id":"sketch-mwmhaflc-anj7","name":"Sketch 01","type":"sketch","plane":{"origin":[0,0,0],"xDir":[0,1,0],"normal":[1,0,0]},"entities":[{"id":"fxhpu7ob","kind":"line","a":[0,0],"b":[60,0]},{"id":"6ar48d32","kind":"line","a":[60,0],"b":[60,5]},{"id":"cgmvde5q","kind":"line","a":[60,5],"b":[5,5]},{"id":"0m40f482","kind":"line","a":[5,5],"b":[5,50]},{"id":"gg2iar9g","kind":"line","a":[5,50],"b":[0,50]},{"id":"uql1ahwb","kind":"line","a":[0,50],"b":[3.061616997868383e-15,0]}],"constraints":[{"id":"x2dwezxj","type":"fix","pts":[{"e":"fxhpu7ob","p":"a"}],"at":[0,0]},{"id":"7b6vav46","type":"horizontal","curves":["fxhpu7ob"]},{"id":"b2kx5524","type":"dim","curves":["fxhpu7ob"],"prop":"length","value":60},{"id":"an7stq5a","type":"coincident","pts":[{"e":"fxhpu7ob","p":"b"},{"e":"6ar48d32","p":"a"}]},{"id":"glny36wz","type":"vertical","curves":["6ar48d32"]},{"id":"vnyrwcj5","type":"dim","curves":["6ar48d32"],"prop":"length","value":5},{"id":"g5pdl4ew","type":"coincident","pts":[{"e":"6ar48d32","p":"b"},{"e":"cgmvde5q","p":"a"}]},{"id":"1q99ms8a","type":"horizontal","curves":["cgmvde5q"]},{"id":"ajcqmxlh","type":"dim","curves":["cgmvde5q"],"prop":"length","value":55},{"id":"yeurpoio","type":"coincident","pts":[{"e":"cgmvde5q","p":"b"},{"e":"0m40f482","p":"a"}]},{"id":"fwir2unk","type":"vertical","curves":["0m40f482"]},{"id":"r9q4dm50","type":"dim","curves":["0m40f482"],"prop":"length","value":45},{"id":"1o89bp8q","type":"coincident","pts":[{"e":"0m40f482","p":"b"},{"e":"gg2iar9g","p":"a"}]},{"id":"99jd1hk5","type":"horizontal","curves":["gg2iar9g"]},{"id":"rl5a7mng","type":"dim","curves":["gg2iar9g"],"prop":"length","value":5},{"id":"mlgwv1yl","type":"coincident","pts":[{"e":"gg2iar9g","p":"b"},{"e":"uql1ahwb","p":"a"}]},{"id":"p2mfaoba","type":"coincident","pts":[{"e":"uql1ahwb","p":"b"},{"e":"fxhpu7ob","p":"a"}]},{"id":"5azl9sya","type":"vertical","curves":["uql1ahwb"]}],"log":[{"op":"Line","n":6}]},{"id":"extrude-mwmhb81q-7jds","name":"Extrude 01","type":"extrude","source":{"kind":"profile","sketch":"sketch-mwmhaflc-anj7","regions":[{"c":[18.214285714285715,13.214285714285714],"a":525,"k":["0m40f482","6ar48d32","cgmvde5q","fxhpu7ob","gg2iar9g","uql1ahwb"],"s":[0.5,0.5,0.5,0.5,0.5,0.5]}]},"distance":20,"mode":"auto","symmetric":true},{"id":"fillet-mwmhc4ji-qfmf","name":"Fillet 01","type":"fillet","edges":[{"body":"extrude-mwmhb81q-7jds","mid":[0,5,5],"dir":[1,0,0],"length":40,"steps":["extrude-mwmhb81q-7jds"],"curves":["extrude-mwmhb81q-7jds|0m40f482:0","extrude-mwmhb81q-7jds|cgmvde5q:0"]}],"radius":5},{"id":"plane-mwmhd03y-v404","name":"Plane 01","type":"plane","kind":"offset","plane":{"origin":[0,0,0],"xDir":[0,1,0],"normal":[1,0,0]},"offset":14},{"id":"sketch-mwmhgw0m-b51q","name":"Sketch 02","type":"sketch","plane":{"origin":[14,0,0],"xDir":[0,1,0],"normal":[1,0,0]},"onPlane":"plane-mwmhd03y-v404","entities":[{"id":"n65wi4yy","kind":"line","a":[5,5],"b":[35,5]},{"id":"prezdmrt","kind":"line","a":[35,5],"b":[5,35]},{"id":"lqduc6ki","kind":"line","a":[5,35],"b":[5.000000000000002,5]}],"constraints":[{"id":"ldw6u8rn","type":"horizontal","curves":["n65wi4yy"]},{"id":"q2ic2b2h","type":"dim","curves":["n65wi4yy"],"prop":"length","value":30},{"id":"rz6deqsq","type":"coincident","pts":[{"e":"n65wi4yy","p":"b"},{"e":"prezdmrt","p":"a"}]},{"id":"rko4jr8s","type":"dim","curves":["prezdmrt"],"prop":"length","value":42.42640687119285},{"id":"xzpm4exz","type":"dim","curves":["prezdmrt"],"prop":"angle","value":135},{"id":"vbuataqx","type":"coincident","pts":[{"e":"prezdmrt","p":"b"},{"e":"lqduc6ki","p":"a"}]},{"id":"qouisnut","type":"coincident","pts":[{"e":"lqduc6ki","p":"b"},{"e":"n65wi4yy","p":"a"}]},{"id":"sjn0ev7g","type":"vertical","curves":["lqduc6ki"]}],"log":[{"op":"Line","n":3}]},{"id":"extrude-mwmhheg3-u016","name":"Extrude 02","type":"extrude","source":{"kind":"profile","sketch":"sketch-mwmhgw0m-b51q","regions":[{"c":[15,15],"a":450,"k":["lqduc6ki","n65wi4yy","prezdmrt"],"s":[0.5,0.5,0.5]}]},"distance":4,"mode":"new"},{"id":"transform-mwmhi4h0-zi5f","name":"Mirror 01","type":"transform","bodies":["extrude-mwmhheg3-u016"],"copy":true,"op":{"kind":"mirror","plane":{"origin":[0,0,0],"xDir":[0,1,0],"normal":[1,0,0]}}},{"id":"boolean-mwmhj73m-y4bx","name":"Union 01","type":"boolean","op":"union","target":"extrude-mwmhb81q-7jds","tools":["extrude-mwmhheg3-u016","transform-mwmhi4h0-zi5f:extrude-mwmhheg3-u016:0"],"whole":["transform-mwmhi4h0-zi5f:extrude-mwmhheg3-u016"]},{"id":"sketch-mwmhjer3-wuc2","name":"Sketch 03","type":"sketch","plane":{"origin":[0,0,5],"normal":[0,0,1],"xDir":[1,0,0]},"attachedTo":{"body":"extrude-mwmhb81q-7jds","center":[0,36.388888888888886,5],"normal":[0,0,1],"area":1800,"step":"extrude-mwmhb81q-7jds","curve":"cgmvde5q:0"},"entities":[{"id":"8iwz69bu","kind":"rect","center":[8,37.5],"w":5,"h":15,"rotation":0},{"id":"wp0vhynw","kind":"circle","center":[8,30],"radius":2.5},{"id":"r1itzkoy","kind":"circle","center":[8,45],"radius":2.5},{"id":"e2f4yd5z","kind":"rect","center":[-8,37.5],"w":5,"h":15,"rotation":3.141592653589793},{"id":"s9g3dubz","kind":"circle","center":[-8,30],"radius":2.5},{"id":"x8i7j6kc","kind":"circle","center":[-8,45],"radius":2.5}],"constraints":[{"id":"aqwq6h5n","type":"dim","curves":["8iwz69bu"],"prop":"w","value":5},{"id":"ss4hrwvg","type":"dim","curves":["8iwz69bu"],"prop":"h","value":15},{"id":"hwkzo7ca","type":"dim","curves":["wp0vhynw"],"prop":"diameter","value":5},{"id":"uhlzgaeu","type":"dim","curves":["r1itzkoy"],"prop":"diameter","value":5}],"log":[{"op":"Rectangle","n":1},{"op":"Circle","n":2},{"op":"Mirror","n":1}]},{"id":"extrude-mwmhpux6-zydi","name":"Extrude 03","type":"extrude","source":{"kind":"profile","sketch":"sketch-mwmhjer3-wuc2","regions":[{"c":[8.000000000000023,31.0606541662134],"a":9.810469384521461,"k":["8iwz69bu","wp0vhynw"],"s":[0.5,0.25]},{"c":[8.000000000000002,28.939345833786806],"a":9.810469384521463,"k":["8iwz69bu","wp0vhynw"],"s":[0.5,0.75]},{"c":[7.999999999999992,37.499999999999936],"a":55.37906123095706,"k":["8iwz69bu","r1itzkoy","wp0vhynw"],"s":[2.5,0.75,0.25]},{"c":[8.000000000000034,43.93934583378693],"a":9.810469384521461,"k":["8iwz69bu","r1itzkoy"],"s":[2.5,0.75]},{"c":[8.00000000000002,46.06065416621346],"a":9.810469384521461,"k":["8iwz69bu","r1itzkoy"],"s":[2.5,0.25]},{"c":[-7.999999999999994,43.9393305297769],"a":9.810752434546664,"k":["e2f4yd5z","x8i7j6kc"],"s":[0.5,0.7499999999999982]},{"c":[-7.999999999999958,46.060654166213055],"a":9.810469384521465,"k":["e2f4yd5z","x8i7j6kc"],"s":[0.5,0.24999999999999828]},{"c":[-7.999999999999993,37.49996979866289],"a":55.37877818093194,"k":["e2f4yd5z","s9g3dubz","x8i7j6kc"],"s":[2.4999999999999987,0.25,0.7499999999999982]},{"c":[-8.000000000000004,31.060654166213407],"a":9.810469384521323,"k":["e2f4yd5z","s9g3dubz"],"s":[2.5,0.25]},{"c":[-8.000000000000023,28.93934583378666],"a":9.8104693845216,"k":["e2f4yd5z","s9g3dubz"],"s":[2.5,0.75]}]},"distance":-1,"mode":"auto","target":"extrude-mwmhb81q-7jds","extent":"through"},{"id":"sketch-mwmhq6l0-wxzq","name":"Sketch 04","type":"sketch","plane":{"origin":[0,0,0],"normal":[0,-1,0],"xDir":[1,0,0]},"attachedTo":{"body":"extrude-mwmhb81q-7jds","center":[5.684341886080802e-16,0,25],"normal":[0,-1,0],"area":2000,"step":"extrude-mwmhb81q-7jds","curve":"uql1ahwb:0"},"entities":[{"id":"b1uzp2qp","kind":"circle","center":[0,32],"radius":4}],"constraints":[{"id":"fklz4hpr","type":"dim","curves":["b1uzp2qp"],"prop":"diameter","value":8}],"log":[{"op":"Circle","n":1}]},{"id":"extrude-mwmhqj6l-f6jg","name":"Extrude 04","type":"extrude","source":{"kind":"profile","sketch":"sketch-mwmhq6l0-wxzq","regions":[{"c":[-2.070310797762692e-16,32.00000000000002],"a":50.229603248749854,"k":["b1uzp2qp"],"s":[0.5]}]},"distance":-1,"mode":"auto","target":"extrude-mwmhb81q-7jds","extent":"through"},{"id":"fillet-mwmht4db-4ou2","name":"Fillet 02","type":"fillet","edges":[{"body":"extrude-mwmhb81q-7jds","mid":[20,60,2.5],"dir":[0,0,1],"length":5,"steps":["extrude-mwmhb81q-7jds"],"curves":["extrude-mwmhb81q-7jds|6ar48d32:0","extrude-mwmhb81q-7jds|cap:1@cgmvde5q:0"]},{"body":"extrude-mwmhb81q-7jds","mid":[20,2.5,50],"dir":[0,-1,0],"length":5,"steps":["extrude-mwmhb81q-7jds"],"curves":["extrude-mwmhb81q-7jds|cap:1@cgmvde5q:0","extrude-mwmhb81q-7jds|gg2iar9g:0"]},{"body":"extrude-mwmhb81q-7jds","mid":[-20,2.5,50],"dir":[0,-1,0],"length":5,"steps":["extrude-mwmhb81q-7jds"],"curves":["extrude-mwmhb81q-7jds|cap:2@cgmvde5q:0","extrude-mwmhb81q-7jds|gg2iar9g:0"]},{"body":"extrude-mwmhb81q-7jds","mid":[-20,60,2.5],"dir":[0,0,1],"length":5,"steps":["extrude-mwmhb81q-7jds"],"curves":["extrude-mwmhb81q-7jds|6ar48d32:0","extrude-mwmhb81q-7jds|cap:2@cgmvde5q:0"]}],"radius":6}]} |