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_de40e307a6cb633d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.328, 0.329, 0.266), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.279, 0.084).lineTo(-0.011, -0.049).lineTo(0.17, 0.345).lineTo(0.279, 0.584).lineTo(0.008, 0.708).lineTo(-0.102, 0.47).lineTo(-0.279, 0.084).close().extrude(0.672)
result = result.u... | 4 | 21 | 0.146492 |
train_bbac623c8fc474b2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.317, -0.078, -0.056), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.683, 0.121).lineTo(-0.683, 0.058).lineTo(-0.598, 0.058).lineTo(-0.598, 0.103).lineTo(0.647, 0.103).lineTo(0.647, 0.058).lineTo(0.603, 0.058).lineTo(0.603, 0.008).lineTo(0.683, 0... | 4 | 112 | 0.004676 |
train_a16fd9036418934f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.098, -0.071), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.764).extrude(0.142)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.49, -0.125, 0.02), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.349, 0.37).extrude(0.053))
result = result.cut(c... | 11 | 49 | 0.162401 |
train_ad04933309a5db35 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.455, 0.001), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.84, -0.263).threePointArc((-0.713, -0.352), (-0.604, -0.461)).lineTo(0.84, 0.751).threePointArc((0.498, 1.093), (0.103, 1.37)).lineTo(-0.84, -0.263).close().extrude(1.558)
result = re... | 11 | 54 | 1.720636 |
train_059c6db8a3dfc4c1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.057, 0.029, 0.003), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.012, 1.036).threePointArc((0.012, 0.029), (-0.012, -0.978)).lineTo(-0.012, 1.036).close().extrude(0.199)
result = result.edges().chamfer(0.007)
result = result.union(cq.Workplane(... | 11 | 28 | 0.000792 |
train_712b59a0f9ea1a2a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.788, 0, -0.103), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, 0.265).lineTo(-0.212, 0.265).threePointArc((-0.157, -0.02), (0, -0.265)).threePointArc((0.157, -0.02), (0.212, 0.265)).lineTo(0, 0.265).close().sweep(cq.Workplane('XZ').spline([(-0.... | 7 | 51 | 0.080207 |
train_d8c316337b815fa3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.822, 0.227, -0.136), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(1.051).workplane(offset=0.894).circle(0.758).workplane(offset=0.749).circle(0.937).loft()
result = result.edges().fillet(0.702)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.1... | 13 | 75 | 1.677998 |
train_c3ac9d51a7f7f58e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.844).workplane(offset=0.417).circle(0.852).workplane(offset=0.548).circle(0.83).workplane(offset=0.569).circle(0.78).workplane(offset=0.466).circle(0.845).loft()
result = result.edges().fillet... | 16 | 24 | 2.948253 |
train_d257390e9e23c6cf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.182, 0.095, -0.011), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.482, -0.036).threePointArc((-0.249, 0.359), (0.155, 0.573)).threePointArc((0.318, 0.592), (0.482, 0.579)).lineTo(0.482, -0.036).lineTo(0.155, -0.036).lineTo(-0.482, -0.036).close... | 26 | 200 | 0.221507 |
train_72602c1e4996b5b8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.392, 0.213, 0.081), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.18, 0.18).lineTo(-0.18, -0.18).lineTo(0.18, -0.18).lineTo(0.18, 0.18).close().sweep(cq.Workplane('XY').spline([(0.026, 0.213), (0.235, 0.083), (0.445, 0.04), (0.654, 0.083), (0.86... | 7 | 29 | 0.078468 |
train_d8abec52a354f47c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.002, -0.001, -0.225), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.986, -0.619).lineTo(1.002, -0.616).lineTo(1.002, 0.621).lineTo(-0.998, 0.621).close().moveTo(-0.314, 0.086).lineTo(-0.314, 0.211).lineTo(-0.272, 0.253).lineTo(-0.231, 0.211).lin... | 11 | 107 | 0.843926 |
train_ed9b007c1727ce17 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.1, -0.276), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, -1.051).lineTo(0.32, -0.441).lineTo(1, -0.325).lineTo(0.518, 0.169).lineTo(0.618, 0.85).lineTo(0, 0.545).lineTo(-0.618, 0.85).lineTo(-0.518, 0.169).lineTo(-1, -0.325).lineTo(-0.32, -0.4... | 11 | 99 | 0.394795 |
train_c37d94970ea02648 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.189, -0.375, -0.767), normal=(0, 0, -1), xDir=(1, 0, 0))).lineTo(0.079, -0.074).lineTo(-0.254, -0.219).threePointArc((-0.239, -0.188), (-0.214, -0.165)).threePointArc((-0.18, -0.152), (-0.143, -0.152)).lineTo(-0.088, -0.093).lineTo(0, 0).lineTo(... | 28 | 353 | 0.469323 |
train_331bb32d3e75b965 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.081, 0.049, -0.792), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.151, 1.491).extrude(1.627)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.573, 0.322, 0.417), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.167, 0.075).extrude(0.081))
result = r... | 7 | 130 | 2.794987 |
train_06ff4122f17644e7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.505), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.917, 1).lineTo(0.917, 1).lineTo(0.917, -0.583).threePointArc((0.622, -0.705), (0.5, -1)).lineTo(-0.083, -1).lineTo(-0.917, -1).lineTo(-0.917, 0.167).lineTo(-0.917, 0.583).lineTo(-0.917, 1... | 9 | 86 | 2.398186 |
train_3bc01a3f27e320f6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.18, -0.214, 0.01), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.314, 1.479).threePointArc((0.314, 0.214), (-0.314, -1.05)).lineTo(-0.314, 1.479).close().revolve(angleDegrees=270, axisStart=(-0.314, -1.05), axisEnd=(-0.314, 1.479))
result = resul... | 10 | 32 | 1.136968 |
train_468d8b63a2191eb0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.642, 0.15, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.25, -0.85).threePointArc((-0.309, -0.827), (-0.333, -0.767)).lineTo(-0.333, 1.067).threePointArc((-0.309, 1.126), (-0.25, 1.15)).lineTo(0.25, 1.15).threePointArc((0.309, 1.126), (0.333... | 17 | 79 | 1.726381 |
train_1e36df18a9b535e9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.092, -0.662, -0.278), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.548, 0.817).lineTo(0.548, -0.633).lineTo(0.414, -0.668).lineTo(0.227, -0.718).lineTo(0.094, -0.754).lineTo(-0.094, -0.805).lineTo(-0.227, -0.84).lineTo(-0.414, -0.891).lineTo(-0.... | 18 | 164 | 1.44465 |
train_796d533c6bba5ee0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.818, -0.109, -0.299), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.182, -0.325).lineTo(0.07, -0.366).lineTo(-0.182, 0.325).lineTo(-0.07, 0.366).lineTo(0.182, -0.325).close().extrude(0.05)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.8... | 11 | 154 | 0.211673 |
train_c07b7e42fd6d25ec | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.112, 0.012), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.368, -0.112).lineTo(-0.04, -0.112).lineTo(0.368, 0.888).lineTo(0.098, 0.888).lineTo(-0.368, -0.112).close().revolve(angleDegrees=360, axisStart=(-0.368, -0.112), axisEnd=(-0.04, -0.11... | 4 | 8 | 0.857263 |
train_acb35104d6f8db2c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.171, 0.009, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.364).workplane(offset=0.344).circle(0.288).workplane(offset=0.357).circle(0.213).loft()
result = result.edges().chamfer(0.098)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.9... | 10 | 63 | 0.241145 |
train_df11fee69545734c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.686), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.451, 0.902).lineTo(-0.902, 0.451).lineTo(0.451, -0.902).lineTo(0.902, -0.451).lineTo(-0.451, 0.902).close().extrude(0.707)
result = result.edges().fillet(0.294)
result = result.faces('<Y'... | 17 | 141 | 1.144694 |
train_803db1bfcbb44599 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.155, 0.53, 0.151), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.056, 0.129).lineTo(0.168, 0.129).lineTo(0.168, 0.005).lineTo(-0.168, 0.005).lineTo(-0.168, 0.129).lineTo(0.056, 0.129).close().extrude(0.156)
result = result.edges().fillet(0.007)
... | 12 | 174 | 0.388605 |
train_dd76be6fcd284bca | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.258, 1, -0.079), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.542, -0.225).lineTo(0.542, 1.019).threePointArc((0, 1.084), (-0.542, 1.019)).lineTo(-0.542, -0.225).lineTo(0.542, -0.225).close().extrude(2)
result = result.edges().chamfer(0.086)
res... | 33 | 140 | 1.185995 |
train_e8dc0ffd28c12175 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.028, 0, 0.032), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.375, 0.05).lineTo(-0.871, 0.05).lineTo(-0.871, -0.05).lineTo(0.871, -0.05).lineTo(0.871, 0.05).lineTo(0.375, 0.05).close().extrude(0.061)
result = result.edges().fillet(0.017)
result =... | 6 | 43 | 0.010179 |
train_0a3c141805288c94 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.156, 0.311), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.25, -0.806).threePointArc((0, 0.844), (0.25, -0.806)).threePointArc((0, -0.844), (-0.25, -0.806)).close().extrude(0.477)
result = result.edges().fillet(0.097)
result = result.cut(cq.W... | 11 | 36 | 0.981138 |
train_1692ff21f9791702 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.014, 0.262, -0.092), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.108, 0.965).extrude(0.421)
result = result.union(cq.Workplane(cq.Plane(origin=(0.252, 0.09, -0.131), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.445, -0.083).threePointArc((0.168, -... | 29 | 180 | 0.641921 |
train_ce03424cae2e33f8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.497, 0.072, 0.925), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.013, 0.339).lineTo(0.12, 0.154).lineTo(0.38, 0.154).lineTo(0.38, -0.169).lineTo(0.085, -0.339).lineTo(-0.133, -0.213).lineTo(-0.195, -0.177).lineTo(-0.38, -0.071).lineTo(-0.273, 0.... | 6 | 27 | 0.211327 |
train_d989935ffb5607e4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.222), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1, -0.373).lineTo(-1, 0.373).lineTo(1, 0.373).lineTo(1, -0.373).lineTo(-1, -0.373).close().extrude(0.443)
result = result.edges().fillet(0.142)
result = result.cut(cq.Workplane(cq.Plane(ori... | 6 | 62 | 0.535203 |
train_89d1a916a887cd8f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.001, -0.601), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.207).extrude(1.132)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.06, 0.049, 0.528), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.035).extrude(0.073))
result = result.union(cq... | 5 | 46 | 2.727029 |
train_13a46ae9ec54563d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.618), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.227, 2).extrude(1.236)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.17, 0.774, -0.314), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.21).extrude(0.782))
result = result.edges().fillet... | 13 | 68 | 1.928388 |
train_6b08d6016bf880dc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.92, 0.13, 0.447), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.08, -0.034).lineTo(0.08, -0.017).lineTo(0.02, 0.034).lineTo(-0.049, 0.034).lineTo(-0.08, 0.013).lineTo(-0.08, -0.034).lineTo(0.08, -0.034).close().transformed(offset=(0.411, -0.268, ... | 1 | 8 | 0.005071 |
train_6ac73f8f72fffb5c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.199, 0.095, 0.039), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.458, 0.607).extrude(0.069)
result = result.union(cq.Workplane(cq.Plane(origin=(0.196, 0.508, 0.075), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.089, 0.262).extrude(0.02))
result = resu... | 13 | 60 | 0.363842 |
train_cca4b51b056212da | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.119, -0.008, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.136, 0.915).lineTo(0.136, -0.174).lineTo(0.136, -0.899).lineTo(-0.136, -0.899).lineTo(-0.136, 0.915).close().workplane(offset=0.131).moveTo(-0.145, 0.974).lineTo(0.145, -0.185).lineT... | 1 | 6 | 0.092401 |
train_e0d926342f970d1a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.017, 0.383, -0.244), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.728, 0.01).lineTo(0.343, 0.617).lineTo(-0.38, 0.616).lineTo(-0.695, 0.012).lineTo(-0.383, -0.613).lineTo(0.351, -0.632).close().moveTo(-0.434, -0.2).lineTo(-0.166, -0.2).lineTo(-0... | 16 | 165 | 0.31873 |
train_9715ca1be315b49b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.158, 0, -0.34), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.684, 1.138).extrude(0.679)
result = result.faces('>Z').shell(-0.076)
result = result.union(cq.Workplane(cq.Plane(origin=(0.836, -0.175, 0.022), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo... | 3 | 20 | 0.412495 |
train_59f9ff11311b0a1d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.382, 0.488), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.21, -0.244).lineTo(0.21, 0.219).threePointArc((0.216, 0.244), (0.198, 0.226)).lineTo(0.196, 0.224).lineTo(-0.191, 0.001).threePointArc((-0.216, -0.006), (-0.191, -0.013)).lineTo(0.198, ... | 18 | 123 | 0.43489 |
train_3dd79976e8a1d53a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.817), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.518).workplane(offset=0.243).circle(0.411).workplane(offset=0.236).circle(0.305).workplane(offset=0.325).circle(0.198).loft()
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.072, -0.1... | 16 | 74 | 0.282669 |
train_c8693f6760346222 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.152, -0.095, -0.231), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.563, 0.398).extrude(0.23)
result = result.union(cq.Workplane(cq.Plane(origin=(0.102, -0.176, -0.01), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.067).extrude(0.106))
result = result... | 29 | 125 | 0.058986 |
train_646f18b36b691889 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.001, -0.687), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.123, 1.61).extrude(1.024)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.263, 0.362, 0.3), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.155).extrude(0.387))
result = result.union... | 3 | 14 | 1.947807 |
train_08dbada2e76c1975 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.026, 0.719, -0.086), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.546, -0.974).lineTo(-0.59, -0.974).lineTo(-0.59, 0.436).threePointArc((0, 1.026), (0.59, 0.436)).lineTo(0.59, -0.974).lineTo(0.546, -0.974).lineTo(-0.546, -0.974).close().extrude... | 10 | 174 | 2.613092 |
train_1061914f92fd0c8f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.504), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.655).extrude(0.086)
result = result.union(cq.Workplane(cq.Plane(origin=(0.585, 0, -0.428), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.049).extrude(0.174))
result = result.union(cq.Workpl... | 3 | 14 | 0.39342 |
train_fcaf9bc8a091c763 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.159, 0.185, -0.105), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.561, 0.36).lineTo(0.545, 0.36).lineTo(-0.019, 0.334).lineTo(-0.035, 0.333).lineTo(-0.545, 0.31).lineTo(-0.561, 0.309).lineTo(-0.561, 0.061).lineTo(-0.545, 0.06).lineTo(-0.035, 0.0... | 19 | 78 | 0.055378 |
train_c561974eb54f9507 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.742), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.361, 0.345).extrude(0.353)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.02, 0.026, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.042, 0.043).extrude(0.284))
result = result.union(... | 4 | 14 | 0.043988 |
train_f553ac0bb9546372 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.03, 0.349, -0.314), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.011, 1.301).extrude(0.628)
result = result.union(cq.Workplane(cq.Plane(origin=(0.634, 0.626, 0.044), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.19, 0.134).threePointArc((-0.194, 0.... | 4 | 26 | 1.034229 |
train_ffce70a7446d5694 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.633), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.805).extrude(1.265)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.14, 0.115, -0.13), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.123).extrude(0.221))
result = result.cut(cq.Workplan... | 6 | 28 | 3.587981 |
train_021b528b5864afb1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.441, -0.088, -0.004), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.029, 0.104).lineTo(0.004, 0.054).threePointArc((0, 0.052), (-0.004, 0.054)).lineTo(-0.029, 0.104).lineTo(-0.029, 0.088).lineTo(-0.029, -0.088).lineTo(-0.029, -0.104).lineTo(-0.00... | 24 | 297 | 0.067239 |
train_8a64dad4b80e5091 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.175, 0.056), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.091).lineTo(-0.092, 0.091).lineTo(-0.138, 0.171).lineTo(0.046, 0.171).lineTo(0.138, 0.012).lineTo(0.046, 0.012).lineTo(0, 0.091).close().extrude(2)
result = result.union(cq.Workplan... | 5 | 40 | 0.092032 |
train_5b7302833e99c8d3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.108, -0.522, -0.477), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.675, -0.478).lineTo(0.675, 0.478).lineTo(-0.675, 0.478).lineTo(-0.675, -0.478).lineTo(0.675, -0.478).close().sweep(cq.Workplane('YZ').spline([(-0.522, -0.477), (-0.021, -0.477),... | 6 | 22 | 0.665845 |
train_a2a955505199f39e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.169, 0.146, -0.765), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.387, 0.297).extrude(0.522)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.125, 0.109, -0.298), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.032).extrude(0.792))
result = resu... | 14 | 107 | 0.497538 |
train_127ab313d03b228a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.007, 0.047, -0.028), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.786, -0.538).lineTo(0.801, -0.55).lineTo(0.794, 0.536).lineTo(-0.782, 0.532).close().moveTo(-0.284, -0.056).lineTo(-0.133, -0.056).lineTo(-0.133, -0.079).lineTo(-0.197, -0.079).l... | 17 | 99 | 0.12098 |
train_66c89d92aa442d4a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.632), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, 0).lineTo(0, -1.065).lineTo(1.065, -1.065).lineTo(1.065, 1.065).lineTo(-1.065, 1.065).lineTo(-1.065, 0).lineTo(0, 0).close().workplane(offset=0.753).moveTo(0, 0).lineTo(0, -0.821).lineTo(... | 16 | 125 | 2.12134 |
train_50fee01f756efa4f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.123, -0.803), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.903, 1.754).extrude(1.606)
result = result.union(cq.Workplane(cq.Plane(origin=(0.092, 0.864, -0.079), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.136).extrude(0.322))
result = result.cu... | 10 | 102 | 4.454553 |
train_157898bd503c71fb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.109, -0.329, -0.862), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.138, 0.109).lineTo(0.066, 0.109).lineTo(0.066, 0.15).lineTo(-0.006, 0.109).lineTo(-0.138, 0.109).lineTo(-0.138, -0.134).lineTo(0.138, 0.026).lineTo(0.102, 0.046).lineTo(0.138, 0.... | 12 | 101 | 0.490476 |
train_33098a541422a246 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.015, 1), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.322).sweep(cq.Workplane('YZ').spline([(-0.015, 0.415), (0.284, 0.823), (0.583, 0.958), (0.882, 0.823), (1.181, 0.415)]))
result = result.edges().chamfer(0.09)
result = result.cut(cq.Workpl... | 4 | 11 | 0.389202 |
train_254b3ce89c299919 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.198, -0.307, -0.391), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.609, 0.547).lineTo(0.609, 0.101).threePointArc((0, 0.134), (-0.609, 0.101)).lineTo(-0.609, 0.547).lineTo(0.609, 0.547).close().revolve(angleDegrees=90, axisStart=(0, 0), axisEnd=... | 26 | 147 | 0.168653 |
train_b658bdff0df66d83 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.487, 0, -0.032), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.026, 0.878).extrude(0.063)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.514, 0.018, 0.013), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.541, 0.371).extrude(0.019))
result = result... | 14 | 176 | 0.072221 |
train_461a46364bfe557e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.027, 0.42, -0.219), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.094).sweep(cq.Workplane('YZ').spline([(0.245, -0.28), (0.3, -0.307), (0.359, -0.307), (0.413, -0.28), (0.413, -0.25), (0.359, -0.222), (0.3, -0.222), (0.245, -0.25)]))
result = resu... | 7 | 84 | 0.212945 |
train_c8d16787448cd1b0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.645, -0.765), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.711, 1.645).lineTo(-0.711, -0.006).lineTo(-0.483, -0.144).lineTo(0, -0.438).lineTo(0.483, -0.144).lineTo(0.711, -0.006).lineTo(0.711, 1.645).lineTo(-0.711, 1.645).close().extrude(1.5... | 3 | 43 | 3.645289 |
train_f8504057577a1c41 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.667), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.308, 2).extrude(1.334)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.614, -0.639, -0.534), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.084, 0.197).extrude(0.195))
result = result.cut(cq... | 12 | 192 | 3.329522 |
train_ec155c8e039a58fc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.512, 0.3, -0.026), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.539, -0.224).lineTo(-0.539, 0.492).lineTo(0.333, 0.492).lineTo(0.539, 0.134).lineTo(0.333, -0.224).lineTo(-0.539, -0.224).close().extrude(0.85)
result = result.cut(cq.Workplane(cq.... | 27 | 125 | 0.522589 |
train_84fe61b042ae9b91 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.011, -0.218, 0.049), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.362).workplane(offset=0.233).circle(0.382).workplane(offset=0.227).circle(0.373).loft()
result = result.edges().fillet(0.061)
result = result.union(cq.Workplane(cq.Plane(origin=(0... | 10 | 70 | 0.119255 |
train_06762ea4148119a3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.087, 0.004, 0.158), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.169, -0.169).lineTo(-0.169, 0.169).lineTo(0.169, 0.169).lineTo(0.127, 0.169).lineTo(0.127, 0.127).lineTo(0.169, 0.127).lineTo(0.169, -0.169).lineTo(-0.169, -0.169).close().sweep(cq... | 17 | 140 | 0.372967 |
train_a2998fb728778d59 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.25), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, -1).lineTo(0.184, -0.319).lineTo(0.866, -0.5).lineTo(0.368, 0).lineTo(0.866, 0.5).lineTo(0.184, 0.319).lineTo(0, 1).lineTo(-0.184, 0.319).lineTo(-0.866, 0.5).lineTo(-0.368, 0).lineTo(-0.86... | 11 | 94 | 0.294524 |
train_de0b06003686f20f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.744, -0.735), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.181, 0.008).threePointArc((-0.035, -0.201), (0.173, -0.055)).lineTo(0.181, -0.008).threePointArc((0.035, 0.201), (-0.173, 0.055)).lineTo(-0.181, 0.008).close().sweep(cq.Workplane('YZ... | 4 | 21 | 0.225118 |
train_6c10b5a814f5ff96 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.948, -0.471, -0.019), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.093, -0.024).lineTo(-0.093, -0.052).lineTo(0.028, -0.052).lineTo(0.028, 0.001).threePointArc((0.034, 0.017), (0.051, 0.024)).lineTo(0.055, 0.024).lineTo(0.055, 0.017).lineTo(0.... | 2 | 21 | 0.004415 |
train_1c89f7b70f863fc6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.513, -0.091, -0.009), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.504, 0.551).lineTo(-0.504, -0.369).lineTo(0.504, -0.369).lineTo(0.504, 0.551).lineTo(-0.504, 0.551).close().revolve(angleDegrees=270, axisStart=(-0.504, 0.551), axisEnd=(-0.504, ... | 14 | 159 | 1.649205 |
train_c011ef55c43fab47 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.598, 0.145, 0.267), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.358, -0.07).lineTo(-0.402, 0.006).lineTo(-0.358, 0.082).lineTo(0.402, 0.082).lineTo(0.358, 0.006).lineTo(0.402, -0.07).lineTo(0.139, -0.07).lineTo(0.132, -0.082).lineTo(0.029, -0... | 4 | 32 | 0.042087 |
train_aada42ca9937ca64 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.231, 0, -0.563), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.538, 1.204).extrude(0.913)
result = result.union(cq.Workplane(cq.Plane(origin=(0.1, -0.11, 0.328), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.21, 0.373).lineTo(0.453, -0.593).lineTo(0... | 17 | 68 | 1.501664 |
train_aca4bc1587873b42 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.389, 0.388, -0.237), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.076, 1.017).extrude(0.666)
result = result.union(cq.Workplane(cq.Plane(origin=(0.298, 0.185, 0.207), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.703, -0.035).lineTo(-0.703, 0.035).... | 7 | 36 | 0.905842 |
train_d1ab5b316a9d2073 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.78, 0, -0.658), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.02, 0.034).lineTo(-0.023, 0.034).lineTo(-0.024, 0.031).lineTo(-0.036, -0.006).lineTo(-0.033, -0.008).lineTo(-0.001, -0.032).lineTo(0.002, -0.034).lineTo(0.033, -0.011).lineTo(0.036, -... | 4 | 39 | 0.007217 |
train_2522c6b44c9f50e7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.54, -0.036, -0.463), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.921, 0.607).extrude(0.234)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.496, -0.036, -0.23), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.201).extrude(0.039))
result = resu... | 29 | 140 | 0.259007 |
train_a2fabf36d1a06c8b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.314, 0.411, -0.457), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.559, 0.755).threePointArc((-0.093, 0.264), (0.559, 0.082)).close().extrude(0.629)
result = result.edges().chamfer(0.031)
result = result.union(result.mirror('XY', basePointVector... | 4 | 39 | 0.186931 |
train_f60d175e2a6c277e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.236, -0.574, -0.603), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.447, 0.223).extrude(0.092)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.267, -0.54, -0.583), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.536, 0.04).extrude(0.034))
result = r... | 28 | 183 | 0.4475 |
train_d817038b2828298f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.091, 0.238, -0.073), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.005, -0.762).lineTo(-0.005, -0.468).lineTo(-0.01, -0.468).lineTo(-0.01, 0.468).lineTo(-0.005, 0.468).lineTo(-0.005, 0.762).lineTo(0.01, 0.762).lineTo(0.01, -0.762).lineTo(-0.005... | 6 | 36 | 0.009336 |
train_c1573d93fb85124e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.621, 0, -0.473), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.506).sweep(cq.Workplane('XZ').spline([(-0.621, -0.473), (-0.366, -0.157), (-0.112, 0.033), (0.143, 0.097), (0.397, 0.033), (0.652, -0.157), (0.907, -0.473)]))
result = result.edges()... | 4 | 36 | 1.329855 |
train_c6d00123702bae3a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.906, 1, 0.002), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-1.002, 0.166).lineTo(-1.002, 1.502).lineTo(1.002, 1.502).lineTo(1.002, 0.166).lineTo(-1.002, 0.166).close().revolve(angleDegrees=90, axisStart=(-1.002, 0.166), axisEnd=(-1.002, 1.502))
... | 24 | 193 | 3.681619 |
train_730676dd43595818 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.163, 0, -0.144), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.334, 0.386).threePointArc((0.027, 0.588), (-0.334, 0.656)).lineTo(-0.334, 0.837).lineTo(0.334, 0.837).lineTo(0.334, 0.386).close().revolve(angleDegrees=360, axisStart=(0, 0), axisEnd=... | 3 | 13 | 0.874141 |
train_8a0e9c80455544d3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1, -0.145), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.288, 0.613).lineTo(-0.075, 0.613).lineTo(0.288, -0.486).lineTo(0.117, -0.613).lineTo(-0.288, 0.613).close().sweep(cq.Workplane('YZ').spline([(-0.648, -0.47), (-0.317, -0.274), (0.014, -... | 10 | 6 | 0.322772 |
train_0a0b91cb63806761 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.007, -0.197, 0.149), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.771, -0.015).lineTo(0.551, 0.547).lineTo(-0.022, 0.782).lineTo(-0.565, 0.54).lineTo(-0.786, 0.022).lineTo(-0.559, -0.541).lineTo(0.003, -0.803).lineTo(0.557, -0.543).close().moveTo... | 10 | 124 | 0.491121 |
train_aadc9a2f56feb4e9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.959), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.399).extrude(1.917)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.338, 0.121, -1.284), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.106).extrude(2.301))
result = result.cut(cq.Workpl... | 6 | 14 | 5.05834 |
train_1c303029f2fe38a4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.552, 1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.325, -0.254).lineTo(-0.182, -0.13).lineTo(-0.248, -0.1).lineTo(0.002, 0.395).lineTo(0.13, 0.143).lineTo(0.238, -0.066).lineTo(0.335, -0.254).lineTo(0.407, -0.395).lineTo(0.095, -0.254).lin... | 2 | 23 | 0.151011 |
train_3f71617b09aea4e3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.285, 0.414, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.389, -0.341).lineTo(0.389, -0.316).lineTo(0.363, -0.316).lineTo(0.363, 1.169).lineTo(-0.363, 1.11).lineTo(-0.389, 1.107).lineTo(-0.389, -0.341).lineTo(0.389, -0.341).close().extrude(0.... | 12 | 147 | 0.745169 |
train_2d7c27e5faa42488 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.659, -0.393, 0.223), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.341, -0.139).lineTo(-0.341, 0.079).lineTo(-0.249, 0.079).lineTo(-0.249, -0.062).lineTo(-0.238, -0.062).lineTo(-0.238, 0.139).lineTo(0.016, 0.139).lineTo(0.046, 0.122).lineTo(0.0... | 7 | 70 | 0.037557 |
train_57fdd0c82ac7fefe | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.309), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.506).extrude(0.055)
result = result.union(cq.Workplane(cq.Plane(origin=(0.253, -0.187, -0.256), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.285).extrude(0.027))
result = result.union(cq.W... | 10 | 44 | 0.463996 |
train_d4744f091d40149f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.663, 0.798, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.987, 1.228).lineTo(-1, 0.11).lineTo(0.987, 0.097).lineTo(1, 1.216).lineTo(-0.987, 1.228).close().extrude(1.595)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, -0.638 + 0.1595, -... | 13 | 24 | 2.678888 |
train_c1e013a9a7ce2143 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.241, -0.099, -0.003), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.996, 0.19).lineTo(-1.005, 0.19).threePointArc((-0.996, 0.146), (-0.991, 0.102)).lineTo(-0.986, 0.007).lineTo(1.005, 0.007).lineTo(0.996, 0.19).lineTo(-0.996, 0.19).close().extru... | 9 | 51 | 0.138505 |
train_74df83fbe74d4a93 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.058, 0.346, 0.43), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.464, 0.76).extrude(0.451)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.034, 0.435, 0.87), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.094, 0.382).extrude(0.13))
result = resul... | 12 | 185 | 0.461833 |
train_f7a623f524778f99 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.793, -0.793, 0.005), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.994, 1.588).threePointArc((-1.005, 1.439), (-0.994, 1.29)).threePointArc((0.005, 0.428), (1.005, 1.29)).lineTo(0.824, 1.29).threePointArc((0.837, 1.439), (0.824, 1.588)).lineTo(-... | 13 | 32 | 3.107479 |
train_ec09ce38c958f315 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.224, -0.513, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 1.055).lineTo(-0.216, 1.055).lineTo(-0.542, 0.882).lineTo(-0.542, -0.028).lineTo(0.542, -0.028).lineTo(0.542, 1.055).lineTo(0, 1.055).close().extrude(1.021)
result = result.edges().f... | 5 | 44 | 1.254798 |
train_353a3f3cee2bdca2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.182, 0.049, 0.133), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.818, 0.201).threePointArc((0.796, 0), (0.818, -0.201)).lineTo(-0.818, -0.201).lineTo(-0.818, 0.201).lineTo(0.818, 0.201).close().extrude(0.21)
result = result.edges().fillet(0.095... | 22 | 75 | 0.107551 |
train_69eb84e983037d71 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.364, -1, -0.003), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.015, -0.188).threePointArc((0.085, -0.208), (0.105, -0.108)).lineTo(0.159, 0.023).threePointArc((0.211, 0.121), (0.105, 0.153)).lineTo(-0.026, 0.208).lineTo(-0.156, 0.153).lineTo(-0... | 1 | 14 | 0.214848 |
train_830d241c41ebac2c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.225, -0.462), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.382).extrude(0.924)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.288, -0.674, -0.369), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.864, 0.484).extrude(0.336))
result = result.... | 15 | 61 | 1.651016 |
train_a238bd618c7fee84 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.294), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.373, 2).extrude(0.491)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.149 + 0.0375, 0, 0.197), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.005, 0.013).lineTo(0.006, 0.006).lineTo(0.0... | 8 | 54 | 0.348303 |
train_30ea5f4fc362b57b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.495), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.859).extrude(1.116)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.473, 0.471, -0.621), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.034).extrude(0.127))
result = result.cut(cq.Wor... | 13 | 30 | 4.08274 |
train_5fa9cf2550f20d06 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.442), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.999, 1.836).extrude(0.774)
result = result.union(cq.Workplane(cq.Plane(origin=(0.1, 0.092, 0.326), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.8, 1.652).extrude(0.106))
result = result.union(c... | 15 | 61 | 2.591817 |
train_068ed51a362f31d0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.012, -0.173, -0.142), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.093, 1.012).lineTo(-0.093, -0.988).lineTo(0.093, -0.988).lineTo(0.093, 1.012).lineTo(-0.093, 1.012).close().extrude(0.345)
result = result.edges().fillet(0.033)
result = result.... | 6 | 56 | 0.134952 |
train_0b024df416c720a7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.324, 0.156, 0.111), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.111, -0.676).lineTo(-0.111, 1.324).lineTo(-0.03, 1.188).lineTo(0.091, 0.765).lineTo(0.111, 0.021).lineTo(-0.03, -0.502).lineTo(-0.111, -0.676).close().revolve(angleDegrees=360, ax... | 6 | 23 | 0.157163 |
train_3784ad1a781ee8e3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.001, -0.454), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.829).extrude(0.879)
result = result.union(cq.Workplane(cq.Plane(origin=(0.1, 0.091, 0.42), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.824).extrude(0.132))
result = result.union(cq.W... | 16 | 143 | 2.592333 |
train_8133644ed5e67b42 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.852, -0.131, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.763, 0.013).threePointArc((-0.977, 0.418), (-0.54, 0.553)).lineTo(0, 0.776).threePointArc((0.404, 0.99), (0.54, 0.553)).lineTo(0.763, 0.013).threePointArc((0.977, -0.392), (0.54, -0.... | 13 | 70 | 1.044976 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.