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_956fcf0fdbe0e667 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.08, 0.137), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, 1.113).lineTo(-0.309, 0).lineTo(0, -1.113).lineTo(0.309, 0).lineTo(0, 1.113).close().extrude(0.302)
result = result.edges().fillet(0.07)
result = result.union(cq.Workplane(cq.Plane(or... | 4 | 35 | 0.192963 |
train_f36fc97abf5963eb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.837, -0.629, 0.029), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.046, 0.118).lineTo(0.046, 0.084).threePointArc((-0.019, 0.019), (0.046, -0.046)).lineTo(0.046, -0.08).lineTo(0.053, -0.08).threePointArc((-0.053, 0.019), (0.053, 0.118)).lineTo(0.... | 19 | 246 | 0.262434 |
train_766819b1ef191dbe | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.523, -0.283, -0.49), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.477, 0.374).lineTo(-0.429, 0.374).threePointArc((-0.433, 0.376), (-0.435, 0.381)).lineTo(-0.435, 0.387).lineTo(-0.435, 0.484).threePointArc((-0.433, 0.489), (-0.429, 0.491)).lineT... | 4 | 48 | 0.173086 |
train_4ecb0102d209dc8b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.016, -0.001, -0.283), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.984, -0.025).lineTo(0.7, 0.717).lineTo(0.016, 0.995).lineTo(-0.691, 0.711).lineTo(-1.016, 0.018).lineTo(-0.683, -0.712).lineTo(0.026, -0.993).lineTo(0.715, -0.688).close().center(... | 12 | 80 | 0.958983 |
train_7d69055a69608e80 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.328, -0.42, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-1, 0.616).lineTo(-1, 0.04).lineTo(1, 0.04).lineTo(1, 0.616).lineTo(-1, 0.616).close().extrude(0.84)
result = result.edges().chamfer(0.149)
result = result.cut(cq.Workplane(cq.Plane(orig... | 4 | 53 | 0.141347 |
train_0bc7b8d98daa7560 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.593, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.02, 0.873).threePointArc((0.047, 0.888), (0.113, 0.869)).lineTo(0.87, 1.306).lineTo(0.941, 1.183).lineTo(0.18, 0.742).threePointArc((0.158, 0.678), (0.109, 0.632)).lineTo(0.109, -0.146).l... | 3 | 81 | 0.820902 |
train_82d56a58fda8d038 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.59), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.402, 0.86).extrude(0.52)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, -0.107), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.242, 0.552).extrude(0.398))
result = result.union(cq.Work... | 12 | 111 | 0.29784 |
train_c6305a05efe2df43 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.534, -0.039, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.31).sweep(cq.Workplane('XY').spline([(0.397, 0.03), (0.073, 0.091), (-0.311, 0.055), (-0.301, -0.039), (0.033, -0.11), (0.338, -0.054)]))
result = result.edges().fillet(0.044)
result =... | 5 | 18 | 0.429987 |
train_0cf24eaab078d7e8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.072, -0.249, 0.164), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.75, 0.624).extrude(0.539)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.385, -0.218, 0.42), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.059).extrude(0.21))
result = result.cut(... | 19 | 121 | 0.559828 |
train_af8ffffbe8fd0897 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.28, -0.013, -0.016), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.038, -0.038).lineTo(0.038, -0.024).lineTo(0.03, -0.019).lineTo(0.021, 0.021).lineTo(0.038, 0.038).lineTo(-0.038, 0.038).lineTo(-0.021, 0.021).lineTo(-0.03, 0.019).lineTo(0, 0).li... | 13 | 188 | 0.061624 |
train_95e4d6dc90bf452d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.303, 0.487, -0.734), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.062, 0.155).lineTo(-0.152, 0.155).lineTo(-0.152, -0.19).lineTo(0.152, -0.19).lineTo(0.152, 0.155).lineTo(0.037, 0.155).lineTo(0.037, 0.19).lineTo(-0.062, 0.19).lineTo(-0.062, 0.... | 1 | 10 | 0.018186 |
train_a2fa321116013bfc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.042, 0.101, -0.819), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.768, 1.74).extrude(1.566)
result = result.union(cq.Workplane(cq.Plane(origin=(0.225, 0.654, -0.908), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.212, 0.141).extrude(0.093))
result = re... | 6 | 25 | 4.825236 |
train_df5b3967c8d0bd34 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.145, 0.009, 0.097), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.22, 0.385).lineTo(0.22, 0.385).lineTo(0.22, -0.385).threePointArc((0, -0.165), (-0.22, -0.385)).lineTo(-0.22, 0.324).lineTo(-0.22, 0.385).close().sweep(cq.Workplane('YZ').spline([(... | 4 | 16 | 0.473633 |
train_1c1220d0850be39b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.378), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.646, 2).extrude(1.239)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.263, -0.469, -0.861), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.203).extrude(0.501))
result = result.cut(cq.Wo... | 12 | 109 | 3.399147 |
train_1337ca7abf1c9d00 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.008, -0.153), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.964, -0.96).lineTo(1, -0.96).lineTo(0.967, 0.977).lineTo(-1, 0.963).close().center(0, 0.27).circle(0.159).moveTo(-0.346, -0.621).lineTo(-0.372, -0.621).lineTo(-0.372, -0.392).lineTo(... | 12 | 81 | 0.989414 |
train_27ac4bfc5a0fd3a3 | 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.616, 1.955).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0 + 0.308 * math.cos(6.093 + 2 * math.pi * 0 / 7), 1 + 0.308 * math.sin(6.093 + 2 * math.pi * 0 / 7), -2.27), normal=(0, ... | 25 | 121 | 6.199579 |
train_b9221b56d29cea81 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.548, 1, -0.139), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.496, 0.052).lineTo(0.496, 0.479).lineTo(-0.069, 0.479).lineTo(-0.069, 1.044).lineTo(-0.496, 1.044).lineTo(-0.496, 0.052).lineTo(0.496, 0.052).close().extrude(1.387)
result = result.ed... | 11 | 75 | 0.73937 |
train_a37e0f2f35f90ebb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.437), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.833).extrude(0.874)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.101, 0.238, -0.182), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.223, 0.24).lineTo(0.223, 0.119).threePointArc((0.... | 12 | 120 | 1.143079 |
train_6246b1e04a2324d0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.258, -0.11, -0.638), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.483, 1.542).extrude(1.16)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.522, -0.082, 0.519), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.143, 0.129).extrude(0.119))
result = ... | 11 | 63 | 1.833427 |
train_f1b8328176871cf8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.067, -0.232), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.794, 1.866).extrude(0.311)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, -0.566, -0.195), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.108).extrude(0.236))
result = result.cut(cq.... | 14 | 151 | 0.979058 |
train_14c986bff137ab41 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.853, 0.306, 0.01), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.147, -0.096).lineTo(-0.147, 0.007).lineTo(-0.044, 0.007).lineTo(-0.044, 0.096).lineTo(0.044, 0.096).lineTo(0.044, 0.007).lineTo(0.147, 0.007).lineTo(0.147, -0.096).lineTo(-0.147, ... | 2 | 16 | 0.025571 |
train_429c14741c759edf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.205), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.514, 1).lineTo(-0.514, -1).lineTo(0.514, -1).lineTo(0.514, 1).lineTo(-0.514, 1).close().extrude(0.41)
result = result.edges().chamfer(0.193)
result = result.cut(cq.Workplane(cq.Plane(orig... | 5 | 38 | 0.623588 |
train_8770e9d37fa378f1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.369, 0, 0.287), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.668, 0.694).extrude(0.713)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.297, -0.095, 0.735), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.813, 0.066).extrude(0.036))
result = resul... | 4 | 17 | 0.2821 |
train_5aef96eb782a08f7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.32, -0.749), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.48, 1.36).extrude(1.498)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.198, -0.415, -0.128), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.396, 1.633).extrude(0.298))
result = result.c... | 20 | 203 | 1.87885 |
train_7b43cd4fcba9d95f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.132, 0, -0.251), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.737, 0.746).extrude(0.501)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.547, 0.052, -0.008), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.075).extrude(0.041))
result = result.cut... | 10 | 59 | 0.640343 |
train_0eadcbe978ed3e0d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.526), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.368, -1).lineTo(-0.437, -1).lineTo(-0.437, 1).lineTo(0.437, 1).lineTo(0.437, 0.281).lineTo(0.368, 0.281).lineTo(0.368, -1).close().workplane(offset=0.084).moveTo(0.24, -0.653).lineTo(-0.28... | 13 | 76 | 0.342487 |
train_bea570526bedaf8d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.474, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.207, 0.681).lineTo(-0.207, 0.199).lineTo(-0.276, 0.199).lineTo(-0.276, 0.75).lineTo(-0.207, 0.75).lineTo(-0.207, 0.888).lineTo(-0.757, 0.888).threePointArc((-0.855, 0.847), (-0.895, 0.75... | 7 | 71 | 2.346937 |
train_581ffe4ba3c4e87a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.196, -0.222, 0.048), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.952, 0.224).lineTo(-0.952, 0.428).lineTo(-0.748, 0.428).lineTo(-0.748, 0.224).lineTo(-0.545, 0.224).lineTo(-0.545, 0.428).lineTo(0.952, 0.428).lineTo(0.952, 0.021).lineTo(-0.952,... | 7 | 75 | 0.273529 |
train_ba1554a103435f5f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.584, 0, 0.076), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.279, 0.138).threePointArc((-0.354, 0.08), (-0.327, -0.009)).threePointArc((-0.253, -0.116), (-0.25, -0.247)).threePointArc((-0.121, -0.201), (-0.125, -0.338)).threePointArc((0, -0.301)... | 3 | 18 | 0.669398 |
train_b82dac4b9904c97f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.202, -0.087, 0.416), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.483, -0.483).lineTo(0.272, -0.272).lineTo(0.382, -0.248).lineTo(0.483, -0.314).lineTo(0.483, 0.483).lineTo(-0.483, 0.483).lineTo(-0.483, 0.314).lineTo(-0.382, 0.248).lineTo(-0.272,... | 14 | 170 | 0.878336 |
train_65dc42df5e41e3f1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.141), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.055, -0.67).lineTo(0.166, 0.67).lineTo(-0.055, 0.67).lineTo(-0.166, 0.656).lineTo(0.055, -0.67).close().workplane(offset=0.078).moveTo(0.06, -0.727).lineTo(0.18, 0.727).lineTo(-0.06, 0.727... | 9 | 37 | 0.094608 |
train_c0dd519dfe106e69 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.261), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.355, 0.355).extrude(0.296)
result = result.union(cq.Workplane(cq.Plane(origin=(0.018, 0.018, 0.032), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.319, 0.319).extrude(0.05))
result = result.unio... | 21 | 341 | 0.07039 |
train_8f8292495ea2134d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.029, -0.288, -0.429), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.833, 1.288).lineTo(0.833, -0.712).lineTo(-0.833, -0.712).lineTo(-0.833, 1.288).lineTo(0.833, 1.288).close().extrude(1.027)
result = result.edges().chamfer(0.277)
result = result.... | 13 | 64 | 2.926497 |
train_a2915c7a94af5718 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.709, -0.087, -0.048), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.111, 0.113).lineTo(-0.067, 0.291).threePointArc((-0.116, 0.223), (-0.139, 0.143)).threePointArc((-0.205, 0.228), (-0.289, 0.162)).threePointArc((-0.191, -0.154), (0.111, -0.291))... | 5 | 59 | 0.115832 |
train_0927ac7575c91829 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.226), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.997).extrude(0.577)
result = result.union(cq.Workplane(cq.Plane(origin=(0, -0.399 + 0.08, -0.351), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.051, -0.022).lineTo(-0.051, -0.022).lineTo(0... | 12 | 105 | 1.130054 |
train_3b42f65d10f8ebc2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.392), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.684).extrude(0.951)
result = result.union(cq.Workplane(cq.Plane(origin=(0 + 0.434 * math.cos(4.167 + 2 * math.pi * 0 / 8), 0 + 0.434 * math.sin(4.167 + 2 * math.pi * 0 / 8), -0.559), norm... | 16 | 335 | 3.107358 |
train_c683f366a759d29c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.52, -0.772, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.228, 0).threePointArc((-0.161, -0.161), (0, -0.228)).threePointArc((0.161, -0.161), (0.228, 0)).threePointArc((0.161, 0.161), (0, 0.228)).lineTo(0, 0).lineTo(-0.228, 0).close().sweep... | 3 | 15 | 0.041503 |
train_3476f9e8e2415e74 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.043, 0.066, 0.004), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.052, -0.971).lineTo(0.052, -0.831).lineTo(0.052, 1.043).lineTo(-0.052, 1.043).lineTo(-0.052, -0.971).close().extrude(0.131)
result = result.edges().chamfer(0.017)
result = result.... | 9 | 64 | 0.023801 |
train_345dc5a01a4fef42 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.55), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.465, 0.345).extrude(0.542)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, -0.043), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.124).extrude(0.405))
result = result.union(cq.Workpla... | 14 | 74 | 0.10928 |
train_1d35350af652c53c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.464, -0.109, -0.464), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.464, -0.891).lineTo(0.464, 1.109).lineTo(0.116, 1.109).lineTo(0.116, -0.427).lineTo(-0.464, -0.427).lineTo(-0.464, -0.891).lineTo(0.464, -0.891).close().revolve(angleDegrees=180,... | 5 | 125 | 0.737407 |
train_f501ab2c1cabce3d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.075, 0.036), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, -0.066).lineTo(-0.21, -0.066).lineTo(-0.21, 0.013).lineTo(-0.289, 0.013).lineTo(-0.289, 0.092).lineTo(-0.367, 0.092).lineTo(-0.367, 0.171).lineTo(-0.525, 0.171).lineTo(-0.525, -0.171)... | 6 | 32 | 0.128178 |
train_6294e71c49735f71 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, -0.237, -0.095), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.508, 0.012).lineTo(0.234, 0.426).lineTo(-0.253, 0.438).lineTo(-0.506, -0.004).lineTo(-0.256, -0.427).lineTo(0.233, -0.437).close().moveTo(-0.136, 0.002).lineTo(-0.156, 0.067).lin... | 11 | 66 | 0.186164 |
train_b389e7b919ae37c6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.483, -0.992, -0.1), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.03, -0.017).lineTo(-0.03, -0.029).lineTo(0.03, -0.029).lineTo(0.03, 0.029).lineTo(0.017, 0.029).lineTo(0.017, -0.017).lineTo(-0.03, -0.017).close().sweep(cq.Workplane('XY').splin... | 5 | 53 | 0.037965 |
train_e75d27f7d9b9c2e0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.141, -0.292, -0.689), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.715, 1.416).extrude(0.938)
result = result.faces('>Z').shell(-0.112)
result = result.union(cq.Workplane(cq.Plane(origin=(0.854, -0.39, -0.127), normal=(0, 0, 1), xDir=(1, 0, 0))).c... | 6 | 25 | 1.003143 |
train_3af7509077d6c406 | 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.329, 1.088).extrude(2)
result = result.edges().fillet(0.198)
| 2 | 26 | 2.753654 |
train_96940ad093d1e705 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.16, 0.228, 0.325), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.357, -0.087).threePointArc((0, 0.27), (-0.357, -0.087)).lineTo(-0.251, -0.087).threePointArc((0, 0.164), (0.251, -0.087)).lineTo(0.357, -0.087).close().revolve(angleDegrees=360, axi... | 13 | 238 | 0.538009 |
train_091cc6cb02175d2b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.131, 0, -0.644), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.519, 0.742).extrude(0.894)
result = result.union(cq.Workplane(cq.Plane(origin=(0.192, 0.033, -0.499), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.151, 0.25).extrude(0.331))
result = resul... | 23 | 148 | 0.349445 |
train_0f2deda8cc4406aa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.116, -0.001, -0.209), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.033, -0.038).lineTo(0.329, 1.001).lineTo(-0.802, 0.573).lineTo(-0.799, -0.573).lineTo(0.339, -0.999).close().center(-0.325, 0).circle(0.206).center(0.649, 0).rect(0.435, 0.694).e... | 18 | 114 | 0.520976 |
train_408fd39f60180457 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.105, -0.059, -0.287), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.982, 0.623).extrude(0.61)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.233, 0.079, -0.39), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.058).extrude(0.732))
result = result.... | 20 | 121 | 0.266682 |
train_0848b5a1142a4baa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.255, -0.108, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(1, 0.029).lineTo(-0.774, 0.029).threePointArc((-0.934, 0.095), (-1, 0.255)).threePointArc((-0.934, 0.415), (-0.774, 0.481)).lineTo(1, 0.481).lineTo(1, 0.029).close().extrude(0.192)
resu... | 9 | 44 | 0.160872 |
train_ffa1c53b74a51306 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.063, -0.082, -0.15), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.992, 1.282).extrude(0.536)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.597, 0.188, 0.026), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.387, 0.318).extrude(0.305))
result = r... | 8 | 32 | 0.760334 |
train_10036039fde7318e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.096).workplane(offset=0.423).circle(0.151).workplane(offset=0.412).circle(0.067).workplane(offset=0.404).circle(0.069).workplane(offset=0.387).circle(0.103).workplane(offset=0.374).circle(0.11... | 4 | 14 | 0.065504 |
train_507ba8fcd1b35d56 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.718, 0, 0.352), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.282, -0.489).threePointArc((-0.103, -0.06), (-0.282, 0.489)).lineTo(0.282, -0.489).close().sweep(cq.Workplane('XZ').spline([(-0.718, -0.31), (-0.517, 0.02), (-0.317, 0.185), (-0.116, 0... | 2 | 5 | 0.076553 |
train_f6a9332201769281 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.121, 0.08, 0.062), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.096, 0.146).lineTo(-0.096, 0.007).lineTo(0.096, 0.007).threePointArc((0.095, 0.076), (0.096, 0.146)).lineTo(-0.096, 0.146).close().extrude(0.21)
result = result.union(cq.Workplane(... | 36 | 219 | 0.091539 |
train_45ea33beb89c8bfc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.675, 0.657, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.177, 1.57).lineTo(1, 1.57).lineTo(1, -0.256).lineTo(-0.177, -0.256).lineTo(-0.177, 0.098).lineTo(-1, 0.098).lineTo(-1, 1.216).lineTo(-0.177, 1.216).lineTo(-0.177, 1.57).close().extrud... | 10 | 71 | 3.960958 |
train_e269ccfb5b1e1efc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.388, -0.356), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.586, 0.074).lineTo(0.977, 0.074).lineTo(0.977, 0.856).lineTo(-0.977, 0.856).lineTo(-0.977, 0.074).lineTo(-0.586, 0.074).close().extrude(1.356)
result = result.edges().chamfer(0.176)
... | 8 | 102 | 0.415659 |
train_ea66f3198b7d2e33 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.02, 0.223), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.822, 0.178).threePointArc((-1, 0), (-0.822, -0.178)).lineTo(0, -0.178).lineTo(0.822, -0.178).threePointArc((1, 0), (0.822, 0.178)).lineTo(0, 0.178).lineTo(-0.822, 0.178).close().extru... | 4 | 24 | 0.26762 |
train_6c1d9cca2188ab99 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.025, -0.176), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.208).extrude(0.025)
result = result.union(cq.Workplane(cq.Plane(origin=(0.084, 0.06, -0.153), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.432, 1.137).extrude(0.032))
result = result.un... | 9 | 45 | 0.268426 |
train_ba88c9e8926fc410 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.494, -0.401), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1, 0.947).lineTo(-1, 0.041).lineTo(1, 0.041).lineTo(1, 0.947).lineTo(-1, 0.947).close().extrude(0.833)
result = result.union(cq.Workplane(cq.Plane(origin=(0 + 0.238 * math.cos(3.797 + ... | 17 | 49 | 1.249592 |
train_8aa05882f44b3e4d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.563, 0.153), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.386, 0.316).lineTo(-0.114, 0.815).lineTo(0.386, 0.543).lineTo(0.114, 0.044).lineTo(-0.386, 0.316).close().extrude(0.847)
result = result.edges().chamfer(0.078)
result = result.union(c... | 8 | 48 | 0.303847 |
train_cc41067f0b2e8124 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.244, -0.193, -0.207), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.411, 0.109).lineTo(0.411, 0.109).lineTo(0.411, 0.551).lineTo(-0.411, 0.551).lineTo(-0.411, 0.109).close().revolve(angleDegrees=180, axisStart=(0, 0), axisEnd=(0.188, 0))
result ... | 19 | 105 | 0.731565 |
train_05e46436a6c32bb4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.57), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.013).extrude(1.14)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.31, 0.43, -0.394), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.08).extrude(0.549))
| 2 | 9 | 2.298662 |
train_4e476459eec7dcc3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.371, 0.45, -0.005), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.347, 1.393).threePointArc((-0.347, 0.371), (0.347, -0.652)).lineTo(0.347, 1.393).close().extrude(1.015)
result = result.edges().chamfer(0.057)
result = result.union(cq.Workplane(cq... | 6 | 34 | 1.029085 |
train_9949bd44f5aad54f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.156, -0.542, 0.086), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.408, -0.474).threePointArc((0.108, 0.063), (-0.138, 0.627)).lineTo(-0.408, 0.525).threePointArc((-0.15, -0.065), (0.163, -0.627)).lineTo(0.408, -0.474).close().sweep(cq.Workplane('... | 9 | 73 | 0.75159 |
train_93f6a9ed24c7d39a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.767, -0.333, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.371).lineTo(-1, 0.371).lineTo(-1, -0.09).lineTo(1, -0.09).lineTo(1, 0.371).lineTo(0.385, 0.756).lineTo(0, 0.756).lineTo(0, 0.371).close().extrude(1.533)
result = result.edges().fil... | 10 | 81 | 1.739036 |
train_90d1f131459c3560 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.429, -0.242, -0.119), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.377, 0.659).lineTo(-0.493, 0.594).lineTo(-0.5, -0.558).lineTo(0.299, -0.642).lineTo(0.446, -0.758).lineTo(0.741, -0.406).lineTo(0.886, -0.037).close().moveTo(0.162, 0.287).lineTo... | 12 | 117 | 0.39371 |
train_d400514845df2fb9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.027, 0, -0.18), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.447, 2).extrude(0.324)
result = result.union(cq.Workplane(cq.Plane(origin=(0.045, 0.1, 0.143), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.302, 1.8).extrude(0.025))
result = result.union(c... | 17 | 254 | 0.929785 |
train_500fb649cedd5971 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.481, -0.637), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.917, 0.081).threePointArc((1, 0.481), (0.917, 0.881)).lineTo(-0.917, 0.881).threePointArc((-1, 0.481), (-0.917, 0.081)).lineTo(0.917, 0.081).close().extrude(1.404)
result = result.edg... | 17 | 115 | 1.930323 |
train_eac09df27434bf38 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.092, 0.032), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.304, 0.487).threePointArc((-0.593, 0.039), (-0.304, -0.409)).threePointArc((0.593, 0.487), (-0.304, 1.384)).threePointArc((-0.014, 0.936), (-0.304, 0.487)).close().extrude(2)
result ... | 6 | 32 | 1.301549 |
train_60b6dc934857471b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.312, -0.62, -0.455), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.075, 0.525).threePointArc((0.051, 0.573), (0.019, 0.615)).lineTo(0.388, 0.845).lineTo(0.488, 1.156).lineTo(-0.208, 0.722).threePointArc((-0.488, 0.236), (0.072, 0.274)).threePoint... | 3 | 31 | 0.664022 |
train_ca125ae5656448b7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.214, -0.762), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.986, 1.44).extrude(1.297)
result = result.union(cq.Workplane(cq.Plane(origin=(0 + 0.134 * math.cos(3.934 + 2 * math.pi * 0 / 3), -0.214 + 0.134 * math.sin(3.934 + 2 * math.pi * 0 / 3), ... | 33 | 219 | 1.329246 |
train_7f8911c778182ce5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.059, 0.102, -0.29), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.71, 0.059).lineTo(-0.71, 0.091).lineTo(0.295, 0.111).lineTo(0.71, 0.059).lineTo(0.295, 0.007).lineTo(-0.71, 0.028).lineTo(-0.71, 0.059).close().extrude(0.204)
result = result.edge... | 10 | 98 | 0.016797 |
train_ccd729bb2063f1ad | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.145, -0.103, -0.799), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.248, 1.248).extrude(1.6)
result = result.faces('>Z').shell(-0.093)
result = result.union(cq.Workplane(cq.Plane(origin=(0.039, 0.031, 0.795), normal=(0, 0, 1), xDir=(1, 0, 0))).circ... | 18 | 81 | 1.296787 |
train_5aab647ce60f2aa5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.341, 0.102, -0.007), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.755, 0.799).extrude(0.158)
result = result.union(cq.Workplane(cq.Plane(origin=(0.357, 0.102, 0.15), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.635, 0.622).extrude(0.016))
result = res... | 15 | 117 | 0.205513 |
train_11c9b6dce493f07c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.053), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.729, 2).extrude(0.077)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.57, -0.536, 0.023), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.089, 0.192).extrude(0.03))
result = result.cut(cq.... | 8 | 23 | 0.23696 |
train_d5488d253696f681 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.147, -0.837), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.155, -0.155).lineTo(0, 0).lineTo(0.069, -0.069).lineTo(0.096, -0.063).lineTo(0.155, -0.1).lineTo(0.155, 0.155).lineTo(-0.155, 0.155).lineTo(-0.155, -0.155).close().sweep(cq.Workplane... | 20 | 129 | 0.183407 |
train_8e71d64e40b55116 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1.183, 1, -0.024), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(1.042, 0.313).threePointArc((-0.008, 0.377), (-1.042, 0.568)).lineTo(-0.696, 1.963).threePointArc((0.167, 1.803), (1.042, 1.75)).lineTo(1.042, 0.313).close().revolve(angleDegrees=90, ax... | 13 | 75 | 1.906579 |
train_7576e9be132c5824 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.74, -0.236), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.468, 1.22).lineTo(0.947, 0.261).lineTo(0.468, -0.447).lineTo(-0.947, 0.513).lineTo(-0.468, 1.22).close().revolve(angleDegrees=360, axisStart=(-0.468, 1.22), axisEnd=(0.947, 0.261))
r... | 12 | 10 | 3.379421 |
train_99ddef8b1d5c7189 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.18, 0.717, 0.124), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.086, 0.283).lineTo(0.065, 0.22).lineTo(0.065, 0.244).lineTo(0.086, 0.234).lineTo(0.086, 0.038).lineTo(0.065, 0.029).lineTo(-0.065, -0.024).lineTo(-0.065, -0.197).lineTo(0.086, -0.25... | 6 | 39 | 0.058651 |
train_c0eb3eb2c8c756ea | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.25, -0.12, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.135, 1.12).lineTo(-0.135, -0.88).lineTo(0.135, -0.88).lineTo(0.135, 1.12).lineTo(-0.135, 1.12).close().extrude(0.517)
result = result.edges().fillet(0.125)
result = result.cut(cq.Workp... | 20 | 261 | 0.181426 |
train_17fd21aa1765e181 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.034, 0, -0.432), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.926, 1.866).extrude(0.322)
result = result.union(cq.Workplane(cq.Plane(origin=(0.149, 1.165, -0.317), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.115, 0.96).lineTo(0.143, 1.101).lineTo(... | 18 | 104 | 0.709996 |
train_db19ea9a56871258 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.618, -0.025, -0.277), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.764, 0.306).extrude(0.554)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.098, 0.02, -0.162), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.311, 0.154).extrude(0.155))
result =... | 6 | 153 | 0.092625 |
train_7ec4c6092e6a2951 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.763, 1, 0.078), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.866, 1.202).lineTo(0.866, 1.202).lineTo(-0.223, 0.092).lineTo(-0.866, 1.202).close().extrude(2)
result = result.edges().fillet(0.24)
result = result.union(cq.Workplane(cq.Plane(origin... | 5 | 125 | 1.58213 |
train_c6de20af31d34eb5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.075, -0.494, 0.217), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.293, 0.471).threePointArc((0.233, 0.492), (0.172, 0.511)).threePointArc((-0.172, 0.051), (-0.293, -0.511)).threePointArc((-0.239, -0.508), (-0.186, -0.511)).threePointArc((-0.061,... | 8 | 97 | 0.083681 |
train_4b4d5d7bbb985f54 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, -0.073, 0.704), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.602).workplane(offset=0.265).circle(0.465).workplane(offset=0.323).circle(0.624).workplane(offset=0.24).circle(0.465).workplane(offset=0.283).circle(0.387).workplane(offset=0.273... | 10 | 32 | 0.796909 |
train_edb43b7972720dfe | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.232, 0.58, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.047, 0.009).threePointArc((0.008, 0.04), (-0.031, 0.009)).lineTo(-0.048, 0.009).lineTo(-0.048, -0.009).lineTo(-0.031, -0.009).threePointArc((0.008, -0.04), (0.047, -0.009)).threePointArc... | 1 | 8 | 0.010365 |
train_7f422d1a658330ff | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.013, 0.01, -0.127), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.987, 0.016).lineTo(0.488, 0.846).lineTo(-0.495, 0.865).lineTo(-1.013, -0.011).lineTo(-0.49, -0.885).lineTo(0.482, -0.84).close().moveTo(0.179, 0.282).lineTo(0.055, 0.452).lineTo(-0.... | 9 | 87 | 0.348036 |
train_c245c6ed5eabf0f9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.266, -0.797, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.195, -0.764).lineTo(-0.195, -0.087).lineTo(0.586, -0.087).lineTo(0.977, 0.589).lineTo(0.586, 1.266).lineTo(-0.977, 1.266).lineTo(-0.586, 0.589).lineTo(-0.977, -0.087).lineTo(0.195, -0... | 24 | 94 | 3.224988 |
train_552869342fd2eeea | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.847, 0.293, 0.153), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.847, 0.103).lineTo(-0.847, 0.482).lineTo(0.847, 0.482).lineTo(0.847, 0.103).lineTo(-0.847, 0.103).close().revolve(angleDegrees=90, axisStart=(-0.847, 0.103), axisEnd=(-0.847, 0.482... | 10 | 78 | 0.899795 |
train_d0d1128fa5730116 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.656, 0.411), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.42).sweep(cq.Workplane('YZ').spline([(-0.656, 0.411), (-0.178, -0.058), (0.3, -0.058), (0.777, 0.411)]))
result = result.edges().chamfer(0.257)
result = result.cut(cq.Workplane(cq.Pla... | 7 | 26 | 0.745707 |
train_3ae8b1e6678038b7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.59), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.825).extrude(1.18)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.304, -0.16, 0.37), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.128).extrude(0.226))
result = result.cut(cq.Workplane(... | 16 | 41 | 1.351303 |
train_e63168dc511e7243 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.435), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.366).extrude(1.127)
result = result.faces('>Z').shell(-0.053)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.456, 0.216, -0.692), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.083).... | 3 | 13 | 0.52149 |
train_a16e85332d6614b2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.066), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.942, 0.119).lineTo(-0.883, 0.119).lineTo(-0.883, 0.437).lineTo(0.273, 0.437).lineTo(0.273, 0.497).lineTo(0.571, 0.497).lineTo(0.571, 0.437).lineTo(0.942, 0.437).lineTo(0.942, -0.497).line... | 9 | 37 | 0.10235 |
train_8c5fafea50c4bbb6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.019, 0.688, 0.361), normal=(0, 1, 0), xDir=(0, 0, 1))).threePointArc((0.274, 0.115), (0.268, 0.073)).lineTo(0.268, -0.153).lineTo(-0.293, -0.153).close().sweep(cq.Workplane('YZ').spline([(0.407, 0.175), (0.206, 0.214), (-0.006, 0.19), (-0.143, 0... | 7 | 57 | 0.246783 |
train_aa4fc059c94f736b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.093, -0.222, 0.041), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.733, 0.076).extrude(0.091)
result = result.union(cq.Workplane(cq.Plane(origin=(0.168, -0.23, -0.034), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.252, 0.037).extrude(0.083))
result = r... | 8 | 88 | 0.484004 |
train_1a162a6dbe889c2b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.097, -0.18, -0.293), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.063, 0.393).lineTo(-0.063, 0.207).lineTo(-0.222, -0.271).lineTo(0.222, -0.271).lineTo(0.222, 0.393).lineTo(-0.063, 0.393).close().extrude(0.625)
result = result.edges().chamfer(... | 14 | 175 | 0.272032 |
train_6590b24083c58898 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.393, 0.542, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.461, 0.949).lineTo(0.461, -0.162).lineTo(0.4, -0.162).lineTo(0.4, 0.703).lineTo(-0.4, 0.703).lineTo(-0.4, -0.162).lineTo(-0.461, -0.162).lineTo(-0.461, 0.949).lineTo(0.461, 0.949).clos... | 3 | 21 | 0.55568 |
train_3663c37fd18c0b49 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.221, -0.05, 0.12), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.12, 1.221).lineTo(-0.12, -0.779).threePointArc((0, -0.775), (0.12, -0.779)).lineTo(0.12, 1.221).lineTo(-0.12, 1.221).close().revolve(angleDegrees=360, axisStart=(-0.12, 1.221), axi... | 16 | 135 | 0.233575 |
train_2db2cbb691188bf0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.575), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.202, 0.22).extrude(0.386)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, -0.2), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.155, 0.158).extrude(0.303))
result = result.union(cq.Work... | 12 | 55 | 0.036223 |
train_3bea3e0400c9803c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.005, -0.464, -0.107), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.258, -0.526).threePointArc((0.268, -0.502), (0.292, -0.491)).lineTo(0.292, 0.466).lineTo(0.292, 0.502).lineTo(0.258, 0.502).lineTo(-0.232, 0.502).threePointArc((-0.292, 0.526), (... | 3 | 15 | 0.619984 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.