id stringlengths 22 22 | code stringlengths 192 136k | num_ops int64 1 59 | face_count int64 1 4.31k | volume float64 0 17.4 |
|---|---|---|---|---|
train_d644df435beb5941 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.1, 0.007, -0.196), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.062, 0.022).lineTo(0.333, 0.993).lineTo(-0.814, 0.592).lineTo(-0.861, -0.618).lineTo(0.35, -1.007).close().moveTo(-0.441, 0.272).lineTo(-0.458, 0.29).lineTo(-0.44, 0.308).lineTo(-0.... | 20 | 106 | 0.447949 |
train_7e21c7af608c19bb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.5), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.343, 1).lineTo(0, 0.635).lineTo(-0.118, 0.508).lineTo(0.107, 0.534).threePointArc((-0.15, 0.412), (-0.193, 0.429)).lineTo(-0.343, 0.269).threePointArc((-0.267, 0.186), (-0.156, 0.194)).three... | 2 | 19 | 0.291328 |
train_07741869f26fee59 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.798, -1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.679, 1.655).lineTo(-0.679, -0.06).lineTo(0.679, -0.06).lineTo(0.679, 1.655).lineTo(0.249, 1.655).lineTo(0.249, 1.122).lineTo(-0.245, 1.122).lineTo(-0.245, 1.655).lineTo(-0.679, 1.655).cl... | 3 | 202 | 3.87807 |
train_2e54041c8a45af9c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.049, 0.049, 0.147), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.212, 0.103).lineTo(-0.212, 0.949).lineTo(0.212, 0.949).lineTo(0.212, 0.562).threePointArc((0.191, 0.555), (0.177, 0.538)).threePointArc((0.175, 0.526), (0.177, 0.514)).threePointA... | 12 | 66 | 0.586089 |
train_3ab0bc4dfb13c319 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.155, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.155).lineTo(1, 0.155).lineTo(1, 0.019).threePointArc((0.713, 0.054), (0.425, 0.065)).lineTo(-1, 0.065).lineTo(-1, 0.155).close().revolve(angleDegrees=270, axisStart=(-1, 0.155), axisE... | 5 | 34 | 0.036236 |
train_6075063f6010e270 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.02, -0.02, -0.346), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.97, -0.025).lineTo(0.716, 0.7).lineTo(0.026, 1.02).lineTo(-0.692, 0.732).lineTo(-1.011, -0.01).lineTo(-0.726, -0.729).lineTo(-0.015, -0.98).lineTo(0.681, -0.729).close().moveTo(-0.3... | 14 | 116 | 1.239215 |
train_e20aba02ffa1bc46 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.917, -0.461, 0.034), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.083).sweep(cq.Workplane('XY').spline([(-0.917, 0.241), (-0.186, 0.241), (-0.024, 0.383), (0.137, 0.525), (0.299, 0.667)]))
result = result.cut(cq.Workplane(cq.Plane(origin=(0, -0... | 4 | 19 | 0.024787 |
train_c90b6a269e020027 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.168, -0.142, 1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.161, 0.144).threePointArc((-0.195, 0.094), (-0.213, 0.036)).threePointArc((0, -0.216), (0.213, 0.036)).threePointArc((0.289, -0.011), (0.354, -0.072)).threePointArc((0.38, -0.104), (0... | 14 | 121 | 0.129079 |
train_6b2d73fdd5bc3871 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.457, 0, -0.364), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.087, 0.818).extrude(0.728)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.217, 0.068, -0.198), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.278, 0.152).extrude(0.217))
result = resu... | 13 | 93 | 0.436793 |
train_1b88f36db7424b80 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.213, -0.059, -0.582), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.574, 1.468).extrude(0.873)
result = result.faces('>Z').shell(-0.045)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.751, 0.04, 0.203), normal=(0, 0, 1), xDir=(1, 0, 0))).mov... | 3 | 40 | 0.381052 |
train_607487a530deedc3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.239), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.372, 2).extrude(0.434)
result = result.union(cq.Workplane(cq.Plane(origin=(0.069, 0.1, 0.194), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.235, 1.8).extrude(0.032))
result = result.union(cq.Wo... | 18 | 104 | 1.180432 |
train_a327523ebc1b867a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.051, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.918, -0.328).threePointArc((0, -0.286), (-0.918, -0.328)).threePointArc((0, 0.417), (0.918, -0.328)).close().extrude(2)
result = result.edges().chamfer(0.152)
result = result.cut(cq.Workpl... | 13 | 94 | 1.435449 |
train_9135ddab81bef5b9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.43, -0.67), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.415).sweep(cq.Workplane('YZ').spline([(-0.43, -1.096), (-0.161, -1.083), (0.108, -0.997), (0.375, -0.67), (0.644, -0.344), (0.913, -0.257), (1.182, -0.244)]))
| 1 | 3 | 0.912711 |
train_88ab42fe233ee2bf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.116, -0.268, -0.003), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.21, 0.471).lineTo(-0.118, 0.437).lineTo(0.054, 0.876).lineTo(0.112, 0.876).lineTo(0.112, -0.744).lineTo(0.21, -0.598).lineTo(0.21, 1.072).lineTo(0.014, 1.072).lineTo(-0.21, 0.47... | 4 | 58 | 0.055091 |
train_4f7cc6e27c54dbb3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.113, 0.461, 0.362), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.037, -0.026).lineTo(-0.039, -0.026).lineTo(-0.039, 0.029).lineTo(0.039, 0.029).lineTo(0.039, -0.029).lineTo(-0.034, -0.029).lineTo(-0.034, -0.026).lineTo(-0.037, -0.026).close().... | 2 | 56 | 0.107885 |
train_d64cf98b461f9063 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.406), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.357).extrude(1.194)
result = result.cut(cq.Workplane(cq.Plane(origin=(0 + 0.309 * math.cos(5.923 + 2 * math.pi * 0 / 3), 0.597 + 0.309 * math.sin(5.923 + 2 * math.pi * 0 / 3), -1.288), no... | 10 | 52 | 1.102818 |
train_4d31bf8b35419d06 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.35, 0, -0.04), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.301, 0.818).extrude(0.068)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.285, 0.041, 0.028), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.368).extrude(0.008))
result = result.unio... | 19 | 154 | 0.109608 |
train_92ab1ee5e08a3585 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.815), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1, 1).lineTo(-0.534, -1).threePointArc((-0.783, -0.783), (-1, -0.534)).lineTo(1, 1).close().extrude(1.63)
| 1 | 5 | 1.358398 |
train_4d90e5a8e288895c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.26, -0.012, -0.13), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.573, 0.506).lineTo(-0.573, -0.447).lineTo(0, -0.447).lineTo(0, -0.134).threePointArc((-0.116, -0.086), (-0.164, 0.03)).lineTo(0, 0.03).lineTo(0.164, 0.03).lineTo(0.573, 0.03).line... | 20 | 252 | 0.993852 |
train_47e36e98e190df41 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.122, -0.906, 0.063), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.195, -0.16).lineTo(0.195, 0.012).threePointArc((0.167, 0.111), (0.092, 0.183)).lineTo(-0.092, 0.183).lineTo(-0.195, 0.183).lineTo(-0.195, 0.012).threePointArc((-0.167, -0.088), (-... | 6 | 60 | 0.257385 |
train_868e322379bf73f9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.048, -0.06, -0.358), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.581, 0.431).extrude(1.046)
result = result.union(cq.Workplane(cq.Plane(origin=(0.144, 0.029, 0.672), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.274, 0.08).extrude(0.328))
result = res... | 14 | 68 | 0.195557 |
train_c59ce5ed8818de45 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.043, 0.158, -0.416), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.336, 0.979).extrude(0.204)
result = result.union(cq.Workplane(cq.Plane(origin=(0.843, 0.039, -0.354), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.314, 0.546).extrude(0.122))
result = r... | 9 | 62 | 0.335807 |
train_f41263e8f640de4c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.172, 0.256, -0.055), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.613, 0.911).extrude(0.254)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.074, 0.301, 0.215), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.046, 0.899).lineTo(0.228, 0.585).li... | 8 | 85 | 0.404366 |
train_ba956e5378d990c7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.892, 0.826, -0.618), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.075).transformed(offset=(0.084, -0.049, 0.058), rotate=(0, 0, 0)).circle(0.17).transformed(offset=(0.167, -0.098, 0.014), rotate=(0, 0, 0)).circle(0.107).transformed(offset=(0.251... | 5 | 26 | 0.319542 |
train_5f54fcc3ec77273f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.74), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.86, -0.54).lineTo(0.86, -0.54).lineTo(0.86, 0.143).lineTo(0.475, 0.385).lineTo(0.226, 0.54).lineTo(-0.86, 0.54).lineTo(-0.86, -0.54).close().workplane(offset=0.766).moveTo(-0.977, -0.614).... | 3 | 37 | 2.953838 |
train_353d61722fcb0264 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.977, -0.008, 0.007), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.012, -0.023).lineTo(-0.01, -0.026).lineTo(0.023, 0.002).lineTo(0.002, 0.026).lineTo(-0.023, 0.004).lineTo(-0.012, -0.023).close().sweep(cq.Workplane('XZ').spline([(-0.977, 0.007... | 2 | 14 | 0.004971 |
train_cf492cc79fc06c9f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.28, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.241, -0.139).lineTo(0.241, 0).threePointArc((0.209, 0.121), (0.121, 0.209)).lineTo(0, 0.279).lineTo(-0.121, 0.209).lineTo(-0.241, 0.139).lineTo(-0.241, 0).threePointArc((-0.209, -0.121), (... | 2 | 17 | 0.210908 |
train_e395cc787935eb26 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.173, -0.139, 0.218), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.564, -0.579).lineTo(0.478, 0.579).threePointArc((0.124, 0.496), (-0.186, 0.307)).threePointArc((-0.423, 0.032), (-0.564, -0.303)).lineTo(0.564, -0.579).close().workplane(offset=0.... | 22 | 182 | 0.353196 |
train_fa767c2a51f58aac | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.161, -0.065, 0.313), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.074, -0.935).lineTo(0.074, 0.959).lineTo(-0.074, 1.066).lineTo(-0.074, -0.935).lineTo(0.074, -0.935).close().extrude(0.156)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.2... | 12 | 146 | 0.057692 |
train_8ed066c58c20e3dd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.169, -0.1, -0.142), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.053, 0.014).lineTo(-0.053, 0.089).threePointArc((-0.033, 0.137), (0.015, 0.157)).lineTo(0.021, 0.157).lineTo(0.135, 0.157).lineTo(0.135, 0.239).lineTo(0.021, 0.239).lineTo(0.015, 0... | 13 | 128 | 1.104598 |
train_a41d71be22c2a950 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.576, -0.187, -0.552), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.849, 0.642).extrude(0.645)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.611, -0.096, 0.017), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.234, 0.191).extrude(0.756))
result ... | 10 | 54 | 0.520591 |
train_89cceb05f44a5d53 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.008, 0.001), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.497, 0.574).lineTo(-0.497, 0.506).lineTo(-0.703, 0.506).lineTo(-0.6, -0.437).lineTo(-0.6, -0.574).threePointArc((0.327, -0.313), (0.703, 0.574)).lineTo(0.634, 0.574).lineTo(0.566, 0.... | 1 | 8 | 1.840771 |
train_f59e2d2c684d8291 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.64, 0.594, -0.115), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.581, -0.291).threePointArc((0.817, 1.306), (-0.775, 1.049)).threePointArc((-0.817, 0.232), (-0.236, -0.343)).threePointArc((0.126, -0.406), (0.485, -0.335)).threePointArc((0.534, -... | 6 | 40 | 3.786617 |
train_7c89593e753f7cda | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.04, 0.63, -0.287), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.182, 0.119).lineTo(0.796, -1.092).lineTo(0.796, 2.164).lineTo(-0.796, 0.88).lineTo(-0.182, 0.119).close().extrude(1.396)
result = result.edges().chamfer(0.191)
result = result.face... | 13 | 16 | 0.08353 |
train_bf06e0f562114ab7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.138, 0.377, -0.213), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.57, 0.865).extrude(0.076)
result = result.union(cq.Workplane(cq.Plane(origin=(0.017, 0.898, -0.19), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.193, 0.203).extrude(0.034))
result = res... | 22 | 192 | 0.203006 |
train_e79b86ae349153a8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.487, 0.025), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.424, 0.056).threePointArc((-0.03, -0.426), (0.424, 0)).threePointArc((0.421, 0.054), (0.411, 0.108)).threePointArc((-0.029, 0.426), (-0.424, 0.056)).close().sweep(cq.Workplane('YZ').sp... | 10 | 47 | 0.345418 |
train_c07ecf19b09659ed | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.281, -0.964, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.496, 0.29).threePointArc((-0.392, 0.118), (-0.255, -0.03)).threePointArc((0.056, -0.16), (0.374, -0.27)).lineTo(0.647, -0.356).threePointArc((0.004, -0.319), (-0.506, 0.076)).threeP... | 1 | 8 | 0.111435 |
train_641c00c4db98ec72 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.018), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.047, 1).lineTo(-0.047, -1).lineTo(0.047, -1).lineTo(0.047, 1).lineTo(-0.047, 1).close().extrude(0.036)
result = result.edges().chamfer(0.001)
result = result.cut(cq.Workplane(cq.Plane(ori... | 9 | 59 | 0.00637 |
train_875bffb4a3d9b91a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.014, 0.711).threePointArc((-0.696, 0), (0.014, -0.711)).lineTo(0.507, -0.711).lineTo(0.696, -0.711).lineTo(0.696, 0).lineTo(0.696, 0.711).lineTo(0.507, 0.711).lineTo(0.014, 0.711).close().extr... | 10 | 135 | 1.683532 |
train_9ca4e506cd9740b8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.022, 0.148, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.208, 1.022).lineTo(-0.208, 1.022).lineTo(-0.208, 0.117).threePointArc((-0.166, 0.114), (-0.125, 0.105)).lineTo(-0.125, -0.645).lineTo(-0.125, -0.978).lineTo(0.208, -0.978).lineTo(0.208... | 14 | 103 | 0.129963 |
train_559390a7fa88dd88 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.535, 0.044, -0.215), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.93, 0.751).extrude(0.399)
result = result.union(cq.Workplane(cq.Plane(origin=(0.535, 0.044, 0.183), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.5, 0.404).extrude(0.033))
result = resul... | 23 | 168 | 0.500356 |
train_e94dcaf220027377 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.391, 1.051, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.513, 1.051).lineTo(0.244, 1.051).lineTo(0.471, 0.689).threePointArc((0.513, 0.547), (0.472, 0.405)).lineTo(0.244, 0.038).lineTo(-0.513, 0.042).lineTo(-0.513, 0.143).lineTo(-0.513, 0.95... | 12 | 255 | 1.149964 |
train_bf4670268a1a9b53 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.036, 0, -0.686), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.186, 2).extrude(1.414)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.424, -0.14, 0.511), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.084, 2.4).extrude(0.075))
result = result.cut(cq.... | 19 | 53 | 3.172937 |
train_a7663ead0c5eabe7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.901, 0.349, 0.002), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.036, 0.096).lineTo(-0.038, 0.096).lineTo(-0.038, 0.031).lineTo(-0.102, 0.031).lineTo(-0.102, -0.075).threePointArc((-0.11, -0.096), (-0.089, -0.087)).lineTo(-0.038, -0.087).lineTo(... | 13 | 30 | 0.021817 |
train_458c7a4485063937 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.189, -0.019, 0.309), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.428, 1.521).extrude(0.322)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.866, 0.229, 0.481), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.009, 0.032).lineTo(-0.009, 0.313).... | 18 | 161 | 1.020254 |
train_3cdba1899cfe2071 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.594, 0.28, 0.359), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.197, 0.339).threePointArc((0.282, 0.277), (0.347, 0.194)).threePointArc((0.405, -0.015), (0.347, -0.223)).threePointArc((0.3, -0.286), (0.242, -0.339)).lineTo(-0.243, -0.339).three... | 9 | 110 | 0.461434 |
train_d0dc30eb909eab55 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.332, 1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.027, 0.222).lineTo(0.027, 0.195).lineTo(-0.027, 0.195).lineTo(-0.027, 0.222).lineTo(-0.197, 0.222).lineTo(-0.197, 0.083).lineTo(-0.254, 0.035).lineTo(-0.254, -0.177).threePointArc((-0.241,... | 7 | 42 | 0.223877 |
train_7c63b4af4320be61 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.275, 0.165, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1, 0.51).lineTo(1, 0.51).lineTo(1, 0.039).lineTo(-1, 0.039).lineTo(-1, 0.51).close().extrude(0.331)
result = result.edges().fillet(0.02)
result = result.cut(cq.Workplane(cq.Plane(origin... | 9 | 73 | 0.287885 |
train_262334921969623b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.395, -0.004, 0.505), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.502, 0.679).threePointArc((0, 0.529), (-0.502, 0.679)).lineTo(-0.502, 0.171).lineTo(0.502, 0.171).lineTo(0.502, 0.679).close().revolve(angleDegrees=270, axisStart=(-0.502, 0.679),... | 8 | 40 | 0.745988 |
train_57027f1e420a0a76 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.012, -0.013, -0.486), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.012, 0).lineTo(0.472, 0.871).lineTo(-0.507, 0.883).lineTo(-0.988, 0.006).lineTo(-0.499, -0.857).lineTo(0.512, -0.857).close().moveTo(0.136, 0.311).lineTo(0.136, 0.344).lineTo(-0.... | 12 | 76 | 2.07977 |
train_d23a748bdf6b3da3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.249, 0.001, 0.11), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.018, -0.999).threePointArc((-0.105, -0.896), (-0.018, -0.793)).lineTo(-0.018, 0.999).lineTo(0.105, 0.999).lineTo(0.105, -0.893).lineTo(0.105, -0.898).threePointArc((0.066, -0.977)... | 2 | 10 | 0.040062 |
train_d1ba1f02b7969736 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.014, 0.105, -0.083), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.471, 0.065).threePointArc((-0.508, 0.05), (-0.523, 0.013)).lineTo(-0.523, -0.065).lineTo(0.523, -0.065).lineTo(0.523, 0.065).lineTo(-0.471, 0.065).close().extrude(0.164)
result =... | 5 | 62 | 0.432938 |
train_31bed2d41343a0ce | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.117, -0.025, -0.423), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 0.064).lineTo(0.6, 0.064).lineTo(0.359, 0.004).lineTo(-0.359, 0.004).lineTo(-0.6, 0.064).lineTo(0, 0.064).close().extrude(0.098)
result = result.edges().fillet(0.003)
result = ... | 20 | 155 | 0.350618 |
train_bdfb3509663322be | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.2, -0.16), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.809, 1.6).extrude(0.193)
result = result.union(cq.Workplane(cq.Plane(origin=(0.09, -0.12, 0.032), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.628, 1.44).extrude(0.018))
result = result.union... | 13 | 86 | 0.556087 |
train_a2a67a576f1c25a7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.057, -0.165, -0.404), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.284, 0.074).lineTo(-0.284, 0.063).lineTo(-0.23, 0.063).lineTo(-0.23, 0.035).lineTo(-0.568, 0.035).lineTo(-0.568, 0.003).lineTo(-0.247, 0.003).lineTo(0.518, 0.003).lineTo(0.568, ... | 10 | 150 | 0.073185 |
train_82857cd9227ffadd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.038, -0.684), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.137, 0.248).extrude(0.512)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.016, -0.178, -0.402), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.002, -0.026).threePointArc((-0.027, ... | 14 | 94 | 0.027117 |
train_1080560cb869426c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.371, -0.566, -0.005), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.323, 0.023).lineTo(0.242, 0.131).lineTo(0.162, 0.239).lineTo(-0.162, 0.239).threePointArc((-0.217, 0.198), (-0.264, 0.147)).threePointArc((-0.299, 0.088), (-0.323, 0.023)).lineTo... | 13 | 95 | 0.122718 |
train_f2f36385bd68f4be | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.282, -0.137, 0.638), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.131, 0.488).lineTo(-0.131, 0.094).lineTo(0, 0.094).lineTo(0, 0.225).lineTo(0.131, 0.225).lineTo(0.131, 0.356).lineTo(0, 0.488).lineTo(-0.131, 0.488).close().revolve(angleDegrees=... | 9 | 60 | 0.304546 |
train_b39c0d8f0c029df7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.049, 0.069, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.805, 0.076).lineTo(0.805, 0.011).lineTo(0.79, 0.011).lineTo(0.79, 0.059).lineTo(0.761, 0.059).threePointArc((0.768, 0.045), (0.761, 0.029)).lineTo(0.734, 0.029).threePointArc((0.728, 0... | 2 | 23 | 0.00349 |
train_e382f54eb5bb254e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.473, 1.795).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.181, 0.472, -0.358), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.243, 0.897).extrude(0.683))
result = result.cut(cq.Work... | 8 | 58 | 4.206346 |
train_9979d068709a1b7d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.275, -0.257, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.469).lineTo(-1, 0.166).lineTo(-0.893, 0.166).lineTo(-0.893, 0.045).lineTo(0.878, 0.045).lineTo(0.878, 0.193).lineTo(1, 0.193).lineTo(1, 0.469).lineTo(-1, 0.469).close().workplane(... | 6 | 15 | 0.285051 |
train_45362db7785f1732 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.139), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.071, -0.345).threePointArc((-0.049, -0.348), (-0.026, -0.345)).lineTo(0.021, -0.345).lineTo(0.021, -0.347).threePointArc((0.085, -0.303), (0.095, -0.225)).threePointArc((0.167, -0.279), (0... | 2 | 30 | 0.18018 |
train_40d502333fd8906b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.029, 0.283, 0.046), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.09, 0.375).lineTo(0.09, -0.626).threePointArc((0, -0.717), (-0.09, -0.626)).lineTo(-0.09, 0.717).lineTo(0.09, 0.717).lineTo(0.09, 0.569).lineTo(0.09, 0.375).close().extrude(0.093)... | 14 | 136 | 0.020726 |
train_c5b895ec823cbe7d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.014, 0, -0.634), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.847, 0.924).extrude(0.637)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.014, 0, -0.015), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.236).extrude(0.482))
result = result.union... | 11 | 164 | 0.668198 |
train_4b10970e8401c15b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.371), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.977, 2).extrude(1.257)
result = result.union(cq.Workplane(cq.Plane(origin=(0.219, -0.071, -0.63), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.134).extrude(0.285))
result = result.union(cq.Wo... | 3 | 14 | 2.552814 |
train_54972e4dfbc41a72 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.003, 0.41), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1, 0.313).lineTo(1, -0.429).lineTo(-1, -0.429).lineTo(-1, 0.429).lineTo(1, 0.313).close().extrude(0.85)
result = result.edges().fillet(0.099)
result = result.cut(cq.Workplane(cq.Plane(or... | 11 | 85 | 1.291777 |
train_82c252fe7d082a16 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.531, -0.144, 0.006), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.354, 0.34).extrude(0.372)
result = result.union(cq.Workplane(cq.Plane(origin=(0.453, 0.16, 0.087), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.02, 0.307).extrude(0.032))
result = resul... | 5 | 27 | 0.056855 |
train_96682860c21df47d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.633, -0.009, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.854, 0.367).lineTo(0.854, 0.367).lineTo(0.854, -0.367).lineTo(-0.122, -0.367).lineTo(-0.154, -0.335).threePointArc((-0.351, -0.282), (-0.404, -0.085)).lineTo(-0.423, -0.065).lineTo(-... | 3 | 15 | 1.17224 |
train_92576ca54e8dcfcc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.159).lineTo(-1, 0.051).lineTo(1, 0.051).lineTo(1, 0.159).lineTo(0.448, 0.159).lineTo(0.448, 0.124).lineTo(0.33, 0.124).lineTo(0.33, 0.159).lineTo(0.189, 0.159).lineTo(0.189, 0.124).lineTo(0... | 7 | 56 | 0.078449 |
train_aab4fff699e8ae6b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.447, -0.52, 0.108), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.371, 0.522).lineTo(0.472, 0.347).lineTo(0.519, 0.741).lineTo(0.292, 1.528).lineTo(-0.519, 1.224).lineTo(-0.371, 0.522).close().revolve(angleDegrees=180, axisStart=(-0.371, 0.522),... | 2 | 20 | 1.153207 |
train_7af3ea682ff0c16f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.456, -0.246, -0.591), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.304, -0.31).threePointArc((-0.051, 0.203), (-0.57, 0.548)).lineTo(-0.481, 0.81).threePointArc((0.149, 0.394), (0.57, -0.231)).lineTo(0.304, -0.31).close().extrude(1.181)
result =... | 9 | 61 | 0.696652 |
train_29dbaedb06d2538c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.199, -0.243, -0.063), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.271, 0.224).lineTo(-0.271, 0.303).lineTo(0.271, 0.303).lineTo(0.271, 0.014).lineTo(-0.271, 0.014).lineTo(-0.271, 0.224).close().extrude(0.591)
result = result.edges().fillet(0.09... | 23 | 146 | 0.151017 |
train_7deac766369f0ee2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.442, -0.377, 0.057), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.116, -0.115).lineTo(-0.116, 0.402).threePointArc((0.103, 0.28), (0.116, 0.029)).lineTo(-0.073, -0.355).lineTo(-0.116, -0.355).lineTo(-0.116, -0.115).close().extrude(0.345)
result... | 8 | 50 | 0.271079 |
train_dc2df6486a2a9d31 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.696), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.4).extrude(1.392)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.275, 0.151, 0.379), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.523, 0.816).extrude(0.324))
| 2 | 11 | 3.762315 |
train_d5b232286d8459de | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.06, -0.897, 0.3), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.549, -0.374).threePointArc((-0.604, -0.543), (-0.435, -0.488)).threePointArc((0, -0.639), (0.435, -0.488)).threePointArc((0.604, -0.543), (0.549, -0.374)).threePointArc((0.7, 0.06),... | 15 | 122 | 2.044766 |
train_77876f1b033d10fa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.453, -0.463, 0.036), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.517, 1.157).lineTo(-0.517, -0.231).lineTo(0.517, -0.231).lineTo(0.517, 1.157).lineTo(-0.517, 1.157).close().workplane(offset=0.288).moveTo(-0.598, 1.265).lineTo(-0.598, -0.34).li... | 28 | 178 | 0.891433 |
train_8348eca52138d922 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.018, 0.083, -0.051), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.035, 0.018).lineTo(-0.018, -0.012).threePointArc((0, -0.017), (0.018, -0.012)).threePointArc((0.03, 0.001), (0.035, 0.018)).threePointArc((0.03, 0.036), (0.018, 0.049)).threePoin... | 8 | 92 | 0.00095 |
train_9c193e031ff83a20 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.628, -0.172, -0.123), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.743, 1.218).extrude(0.168)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.628, -0.086, 0.043), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.206).extrude(0.028))
result = res... | 21 | 121 | 0.530712 |
train_14392fc707724ba4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.027, 0.059, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.959, 0.984).extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(0.158, -0.491, -0.11), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.06).extrude(0.132))
result = result.union(c... | 13 | 99 | 1.749141 |
train_558411d3369efe9e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.877, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.698).workplane(offset=0.368).circle(0.624).workplane(offset=0.363).circle(0.786).workplane(offset=0.395).circle(0.526).workplane(offset=0.335).circle(0.865).workplane(offset=0.293).circle(... | 5 | 11 | 1.843032 |
train_373100facf1af2b8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.435, 0, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.952, -0.435).lineTo(-0.905, -0.435).threePointArc((0, 0.47), (0.905, -0.435)).lineTo(0.952, -0.435).lineTo(0.952, -0.13).threePointArc((0, 0.565), (-0.952, -0.13)).lineTo(-0.952, -0.435).c... | 2 | 6 | 1.048072 |
train_dc0704d59df25b39 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.641, -0.093, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.663).sweep(cq.Workplane('XY').spline([(0.621, -0.093), (0.096, 0.238), (-0.487, 0.129), (-0.905, -0.377)]))
result = result.edges().chamfer(0.378)
result = result.cut(cq.Workplane(cq... | 9 | 15 | 1.246257 |
train_921a4be4a233651e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.075, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.781, -0.738).lineTo(-0.715, -0.673).lineTo(-0.65, -0.738).lineTo(0.847, 0.758).lineTo(0.781, 0.824).lineTo(0.715, 0.889).lineTo(-0.781, -0.607).lineTo(-0.847, -0.673).lineTo(-0.781, -0.73... | 6 | 64 | 0.756586 |
train_5e2e1ce43ef073db | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.452, 0.684, -0.531), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.57, 0.633).extrude(0.482)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.263, 0.554, -0.171), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.947, 0.041).extrude(0.066))
result = r... | 5 | 62 | 0.194506 |
train_de2518fc3cadcfbd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.006, 0.015, -0.485), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.095, 0.674).extrude(1.266)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.093, -0.372, 0.033), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.221, 0.116).extrude(0.327))
result = ... | 14 | 80 | 0.809132 |
train_03214a8f51528d2a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.59, -0.225), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.626, 0.41).lineTo(-0.626, -0.41).lineTo(-0.002, -0.41).lineTo(-0.002, 0.028).lineTo(0.276, 0.028).lineTo(0.276, -0.41).lineTo(0.318, -0.41).lineTo(0.318, -0.061).lineTo(0.572, -0.061)... | 10 | 76 | 0.798546 |
train_adacf8af33ba93ea | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.811, -0.031, -0.342), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.055, -0.062).lineTo(-0.055, -0.059).lineTo(0.017, -0.059).threePointArc((0.02, -0.058), (0.022, -0.057)).threePointArc((0.025, -0.054), (0.026, -0.051)).lineTo(0.052, 0.062).li... | 6 | 37 | 0.014824 |
train_f517ce41b2abc58a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.298, 0.28, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.116, 0.396).lineTo(-0.116, -0.018).lineTo(-0.1, -0.018).lineTo(-0.1, -0.002).lineTo(0.116, -0.002).lineTo(0.116, 0.379).lineTo(-0.1, 0.379).lineTo(-0.1, 0.396).lineTo(-0.116, 0.396).c... | 3 | 29 | 0.257811 |
train_b312ed1ea42445ba | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.938, -0.696, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 1.351).lineTo(-1, 0.111).lineTo(-0.09, 0.696).lineTo(0, 0.638).lineTo(-0.93, 0.041).lineTo(1, 0.041).lineTo(1, 0.111).lineTo(0.09, 0.696).lineTo(0, 0.754).lineTo(-0.93, 1.351).lineT... | 6 | 28 | 2.159286 |
train_e96fc8de6a67fbac | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.466, 1.002, 0.503), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1.313, 1.152).lineTo(-1.283, -0.253).lineTo(1.313, -0.196).lineTo(-0.157, 1.175).lineTo(-1.313, 1.152).close().extrude(2.002)
result = result.edges().fillet(0.69)
result = result.cu... | 18 | 180 | 1.708317 |
train_275936b686b9ef6c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.008, -0.03, -0.309), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.56, 1.025).extrude(0.563)
result = result.union(cq.Workplane(cq.Plane(origin=(0.02, -0.563, -0.107), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.089, 0.045).extrude(0.06))
result = res... | 7 | 32 | 0.902522 |
train_5a9f22848676ed19 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.096), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1, 0.133).lineTo(1, -0.133).lineTo(-1, -0.133).lineTo(-1, 0.133).lineTo(1, 0.133).close().extrude(0.191)
result = result.edges().fillet(0.078)
result = result.cut(cq.Workplane(cq.Plane(origi... | 6 | 30 | 0.088638 |
train_5f92347d293f350c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.254, -0.363, 0.088), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.912, 0.486).lineTo(0.912, 0.023).lineTo(-0.912, 0.023).lineTo(-0.912, 0.486).lineTo(0.912, 0.486).close().extrude(0.725)
result = result.edges().chamfer(0.018)
result = result.cut... | 10 | 45 | 0.608297 |
train_b36c623dd69d429e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.002, -0.245, 0.09), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.214, -0.292).lineTo(0.108, 0.292).lineTo(0.214, 0.292).lineTo(0.214, -0.292).lineTo(-0.214, -0.292).close().sweep(cq.Workplane('XZ').spline([(-0.912, -0.176), (-0.455, -0.195), (0.... | 10 | 77 | 0.307064 |
train_83acd18f58e32926 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.278, -0.029, -0.18), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.331).workplane(offset=0.094).circle(0.331).workplane(offset=0.105).circle(0.318).workplane(offset=0.101).circle(0.307).workplane(offset=0.108).circle(0.306).workplane(offset=0.078... | 15 | 131 | 0.314609 |
train_1171d4c9e8d74dbb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.472, -0.321), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.806, 1.056).extrude(0.642)
result = result.union(result.mirror('XZ', basePointVector=(0, 0, -0.321)))
result = result.cut(cq.Workplane(cq.Plane(origin=(0.149, -0.14, 0.072), normal=(0, 0... | 14 | 55 | 0.841039 |
train_7b958549ab7549ae | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.217, 0.238), normal=(-1, 0, 0), xDir=(0, 0, 1))).lineTo(-0.121, 0.01).lineTo(-0.204, 0.01).lineTo(-0.204, -0.01).lineTo(-0.204, -0.049).lineTo(-0.204, -0.05).lineTo(-0.206, -0.05).lineTo(-0.209, -0.05).lineTo(-0.209, 0.05).lineTo(-0.206, 0.0... | 8 | 167 | 0.415172 |
train_b3ea6dcbdca68c66 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.151, -0.347), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.301).extrude(0.694)
result = result.union(cq.Workplane(cq.Plane(origin=(0.401, 0.643, 0.021), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.758, 0.318).extrude(0.246))
result = result.cu... | 14 | 44 | 1.56598 |
train_a20fe22fbc8e570a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.467, -0.372, -0.092), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.908, 0.934).lineTo(-0.908, 0.103).lineTo(0.908, 0.103).lineTo(0.908, 0.934).lineTo(-0.908, 0.934).close().extrude(0.743)
result = result.edges().chamfer(0.184)
result = result.u... | 11 | 40 | 1.060201 |
train_a012a7478fdac5c1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.104, 0.269, -0.027), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.202, -0.079).lineTo(-0.202, 0.079).lineTo(-0.116, 0.079).lineTo(-0.116, 0.065).lineTo(-0.188, 0.065).lineTo(-0.188, -0.037).lineTo(0.188, -0.037).lineTo(0.188, 0.065).lineTo(0.11... | 12 | 66 | 0.569934 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.