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_e3242f97467b930b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.313, -0.02, -0.678), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.322, 0.609).lineTo(-0.322, 0.609).lineTo(-0.322, -0.59).lineTo(0.322, -0.59).lineTo(0.322, 0.609).close().extrude(0.625)
result = result.edges().fillet(0.046)
result = result.unio... | 11 | 146 | 0.590317 |
train_0846f1a6789f8a4f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.563, 0.056, -0.119), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.068, -0.069).threePointArc((0.086, -0.055), (0.101, -0.038)).threePointArc((-0.101, 0.147), (0.068, -0.069)).close().extrude(0.258)
result = result.edges().chamfer(0.008)
result = ... | 11 | 230 | 0.080239 |
train_f15341ddecbc2f39 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.412, -1.058, 0.021), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.361, 1.982).threePointArc((-0.361, 0.118), (0.289, 2.009)).threePointArc((0.325, 1.996), (0.361, 1.982)).close().extrude(0.93)
result = result.edges().chamfer(0.129)
result = resu... | 12 | 37 | 1.874885 |
train_0310573414effb22 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.009, 0, -0.115), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.82, 2).extrude(0.024)
result = result.union(cq.Workplane(cq.Plane(origin=(0.091, -0.117, -0.093), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.657, 1.365).extrude(0.017))
result = result.u... | 13 | 125 | 0.531199 |
train_bd5451205e64e908 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.66, 0.002, 0.129), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.515, 0.466).lineTo(-0.644, 0.337).lineTo(-0.644, 0.209).lineTo(-0.515, 0.209).lineTo(-0.515, 0.08).lineTo(0.515, 0.08).lineTo(0.644, 0.209).lineTo(0.644, 0.337).lineTo(0.515, 0.466... | 13 | 90 | 0.618164 |
train_05887f56623a043d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.652, 0.016), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.317, 0.652).lineTo(-0.238, 0.652).lineTo(0.317, -0.348).lineTo(-0.317, -0.348).lineTo(-0.317, 0.652).close().revolve(angleDegrees=270, axisStart=(-0.317, 0.652), axisEnd=(-0.238, 0.6... | 4 | 25 | 1.29651 |
train_da63bd01cc0c18b8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.289), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.262, 0.308).lineTo(0.262, 0.308).lineTo(0, 0.711).lineTo(-0.262, 0.308).close().revolve(angleDegrees=360, axisStart=(0, 0), axisEnd=(0.344, 0))
result = result.edges().fillet(0.161)
result... | 6 | 29 | 0.456739 |
train_75c53d57cef8b3b7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.263, 0.008, 0), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.421, 0.013).lineTo(-0.421, -0.055).lineTo(0.421, -0.055).lineTo(0.421, 0.013).lineTo(0.379, 0.055).lineTo(0.337, 0.013).lineTo(0.253, 0.013).lineTo(0.21, 0.055).lineTo(0.168, 0.013).l... | 18 | 237 | 0.233605 |
train_00853f0c933a707d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.76, -0.29, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.782, -0.207).lineTo(0.782, 0.197).lineTo(0.076, 0.197).lineTo(-0.782, 1.004).lineTo(-0.782, -0.207).lineTo(0.782, -0.207).close().extrude(1.76)
result = result.edges().fillet(0.164)
res... | 5 | 45 | 1.553149 |
train_6c14f2147043d6f0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.093, -0.336), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.384, 1.083).extrude(0.554)
result = result.union(cq.Workplane(cq.Plane(origin=(0, -0.074, 0.215), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.145, -0.343).lineTo(-0.316, 0.08).lineTo(... | 18 | 142 | 0.763684 |
train_5c2e023366cff55b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.484, 0.089), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.309, -0.209).lineTo(-0.309, -0.178).lineTo(-0.253, -0.178).lineTo(-0.253, 0.523).lineTo(0.253, 0.523).lineTo(0.253, -0.14).lineTo(0.309, -0.14).lineTo(0.309, -0.172).lineTo(0.253, -0... | 20 | 153 | 0.245571 |
train_3f913b1443e3e1bb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.266, 0, 0.49), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.427, 0.403).extrude(0.459)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.141, -0.088, 0.904), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.009).extrude(1.088))
result = result.uni... | 5 | 16 | 0.068319 |
train_55c9af58236640ba | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.379), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.776).extrude(0.758)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.353, 0.187, -0.179), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.523).extrude(0.261))
result = result.cut(cq.Workpl... | 16 | 80 | 1.752609 |
train_c4446e302ea2a934 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.409, -0.15, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.249, 0.285).lineTo(0.249, 0.19).lineTo(-0.392, 0.19).lineTo(-0.392, 0.095).lineTo(0.249, 0.095).lineTo(0.249, -0.19).lineTo(-0.392, -0.19).lineTo(-0.392, -0.285).lineTo(0.392, -0.285)... | 5 | 32 | 0.351829 |
train_c0f499463fc887f7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.093, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.392, 1.766).extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(0.694, 0.056, -0.571), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.191, 0.187).extrude(0.356))
result = result.cut(c... | 10 | 44 | 4.791797 |
train_31e8a4f13349811e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.554, 0.558), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.372, -0.446).lineTo(-0.372, 0).threePointArc((-0.149, 0.327), (0.241, 0.395)).lineTo(0.211, 0.446).lineTo(0.23, 0.446).lineTo(0.279, 0.446).lineTo(0.372, 0.446).lineTo(0.372, -0.187).l... | 8 | 111 | 0.242001 |
train_b2b5681e868af1d4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.088, -0.029, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.867, 0.277).threePointArc((-1, 0.144), (-0.867, 0.011)).lineTo(1, 0.011).lineTo(1, 0.277).lineTo(-0.867, 0.277).close().extrude(0.2)
result = result.edges().fillet(0.028)
result = res... | 20 | 144 | 0.112213 |
train_085ccedccad6b4f8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.126, -0.493, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.308, 1.126).lineTo(-0.308, 1.126).lineTo(-0.308, -0.874).lineTo(0.308, -0.874).lineTo(0.308, 1.126).close().extrude(0.987)
result = result.edges().fillet(0.234)
result = result.faces(... | 16 | 54 | 1.025143 |
train_ef619ef6a382a7b5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.099, -0.025, 0.083), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.172, 0.586).lineTo(-0.172, -0.407).lineTo(0.21, -0.407).lineTo(0.21, -0.445).lineTo(-0.21, -0.445).lineTo(-0.21, 0.586).lineTo(-0.172, 0.586).close().extrude(0.247)
result = resul... | 6 | 88 | 0.143085 |
train_edc252a6bcfcd4da | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.317, -0.46, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 1.46).lineTo(-0.429, 0.889).lineTo(-0.429, -0.54).lineTo(-0.286, -0.54).lineTo(0, 0.525).lineTo(0, -0.54).lineTo(0.429, -0.54).lineTo(0.429, 0.889).lineTo(0, 1.46).close().extrude(0.6... | 6 | 32 | 0.676013 |
train_4c4895cba10f42f0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.418, -0.007, -0.33), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.581, -0.025).lineTo(0.393, 0.375).lineTo(-0.004, 0.566).lineTo(-0.405, 0.407).lineTo(-0.582, 0.023).lineTo(-0.409, -0.409).lineTo(-0.009, -0.552).lineTo(0.42, -0.409).close().move... | 9 | 84 | 0.288952 |
train_287f42e50c28945a | 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.058, 0.89).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.155, -0.104, -0.26), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.268, 0.312).extrude(1.293))
result = result.cut(cq.Workpl... | 11 | 139 | 1.496961 |
train_87c3b3cd958eb070 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.221, 0.145, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 1.238).lineTo(0.322, 1.238).lineTo(0.322, 0.955).lineTo(0, 1.141).lineTo(0, -0.796).lineTo(-0.322, -0.796).lineTo(-0.322, 1.149).lineTo(-0.168, 1.238).lineTo(0, 1.238).close().workpla... | 16 | 82 | 0.096354 |
train_240189eb23bf1649 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.159, 0.46, 0.066), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.831).workplane(offset=0.314).circle(0.733).workplane(offset=0.342).circle(0.83).workplane(offset=0.379).circle(0.743).loft()
result = result.edges().chamfer(0.24)
result = result.fa... | 17 | 93 | 1.306321 |
train_a17114a8689568f0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.505, -0.347, 0.079), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.364, 1.825).threePointArc((0.171, 1.17), (0.364, 0.347)).threePointArc((0.171, -0.476), (-0.364, -1.131)).lineTo(-0.364, 0.292).lineTo(-0.364, 0.347).lineTo(-0.364, 1.825).close(... | 7 | 28 | 0.533888 |
train_b8645349f38d448f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.118, -0.01), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.989, 0.245).lineTo(0.989, -0.245).lineTo(-0.744, -0.245).threePointArc((-0.989, 0), (-0.744, 0.245)).lineTo(0.989, 0.245).close().extrude(0.379)
result = result.edges().fillet(0.114)
r... | 17 | 146 | 1.068039 |
train_d1cb19d6370c48cd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.262, -0.381, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.499, 0.253).threePointArc((0.737, 0.008), (0.507, -0.245)).lineTo(-0.737, -0.398).threePointArc((-0.427, -0.009), (-0.711, 0.398)).lineTo(0.499, 0.253).close().sweep(cq.Workplane('XY')... | 2 | 14 | 0.476553 |
train_32f78a099b99d40e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.04, 0.259, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.043, -0.656).threePointArc((0.016, -0.64), (0.043, -0.585)).lineTo(0.043, -0.582).lineTo(0.043, 0.741).lineTo(-0.043, 0.741).lineTo(-0.043, -0.512).lineTo(-0.043, -0.656).close().extru... | 18 | 128 | 0.007575 |
train_78f456ecbc57710d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.366, 0.025, -0.274), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.364, 0.324).lineTo(0.364, 0.081).lineTo(0.119, 0.081).lineTo(0.119, -0.081).lineTo(0.364, -0.081).lineTo(0.364, -0.324).lineTo(0, -0.324).lineTo(-0.119, -0.081).lineTo(-0.119, 0.... | 18 | 111 | 0.431585 |
train_89673261ad66a20b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.021, 0.022, -0.029), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.098, 0.058).extrude(0.024)
result = result.union(cq.Workplane(cq.Plane(origin=(0.026, -0.001, -0.004), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.045, 1.026).lineTo(0.045, -0.974).... | 11 | 164 | 0.0065 |
train_138d64c3e2bd050e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.032, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.447, 0.891).extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(0.048, 0.445, -0.31), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.075, 0.066).extrude(0.324))
result = result.cut(cq... | 12 | 75 | 0.760462 |
train_1884b0591bedb3c5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.02, 0.051, -0.775), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.507, 0.566).extrude(1.057)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.399, -0.073, -0.379), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.03, 0.261).lineTo(-0.03, -0.01).l... | 12 | 72 | 0.395328 |
train_c9300dd879a14fae | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.647, 0.019), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.341, 0.092).threePointArc((0, -0.353), (0.341, 0.092)).threePointArc((0, 0.353), (-0.341, 0.092)).close().sweep(cq.Workplane('YZ').spline([(-0.647, 0.019), (-0.189, 0.11), (0.269, 0.... | 1 | 4 | 0.172058 |
train_8ad5a3ad5750940d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.36, 0.4, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.183, 1.326).threePointArc((-0.232, 1.317), (-0.275, 1.292)).lineTo(-0.295, 1.292).lineTo(-0.295, 1.274).lineTo(-0.295, -0.554).lineTo(-0.295, -0.572).lineTo(-0.275, -0.572).threePointArc... | 2 | 21 | 0.606377 |
train_7d9456544ae35054 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.063, -0.14, -0.837), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.249, 1.249).extrude(1.589)
result = result.faces('>Z').shell(-0.079)
result = result.union(cq.Workplane(cq.Plane(origin=(0.061, -0.056, 0.744), normal=(0, 0, 1), xDir=(1, 0, 0))).ci... | 6 | 41 | 0.947191 |
train_a44bade86acf0cd5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.004, -0.221, -0.159), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.908, 0.013).lineTo(0.438, 0.777).lineTo(-0.429, 0.756).lineTo(-0.9, 0.001).lineTo(-0.428, -0.755).lineTo(0.445, -0.779).close().moveTo(-0.315, -0.217).lineTo(-0.258, -0.078).line... | 12 | 118 | 0.301883 |
train_769a3018a8872568 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.032, -0.626), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.911).extrude(1.251)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.8 + 0.2, 0.26, -1.868), normal=(0, 1, 0), xDir=(1, 0, 0))).moveTo(-0.095, -0.024).lineTo(-0.05, 0.047).lineTo... | 42 | 156 | 4.002079 |
train_c25865f3f13c37af | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.013, 0.108, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.541, 0.841).lineTo(-0.541, 0.841).lineTo(-0.541, -0.841).lineTo(-0.447, -0.841).lineTo(0.541, 0.748).lineTo(0.541, 0.841).close().sweep(cq.Workplane('XY').spline([(-0.777, 0.108), (-0.... | 8 | 65 | 0.96423 |
train_3e03f91bcf780738 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.149, -0.936), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.512, 1.701).extrude(1.871)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.181, -0.03, -0.194), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.252, 2.042).extrude(0.213))
result = resul... | 15 | 98 | 3.021878 |
train_057ca5a52c5b4f9e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.467, 0.077, 0.325), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.018, -0.028).lineTo(0.106, 0.184).lineTo(-0.106, 0.097).lineTo(0.018, -0.028).close().extrude(0.13)
result = result.edges().fillet(0.018)
result = result.union(cq.Workplane(cq.Plan... | 6 | 46 | 0.058369 |
train_66d7e279413ddfc0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.556, -0.117, 0.363), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.619, 0.393).threePointArc((-0.639, 0.228), (-0.619, 0.062)).lineTo(0.618, 0.062).threePointArc((0.639, 0.228), (0.618, 0.393)).lineTo(-0.619, 0.393).close().revolve(angleDegrees=... | 20 | 140 | 0.453501 |
train_8622f715392d20d7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 1, 0.257), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.324, -0.209).lineTo(-0.225, -0.209).lineTo(-0.225, -0.26).lineTo(0.324, -0.26).lineTo(0.324, -0.022).lineTo(-0.137, -0.022).lineTo(-0.137, 0.26).lineTo(-0.324, 0.26).lineTo(-0.324, -0.209)... | 4 | 23 | 0.244792 |
train_a3c4baff21ad96f1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, 0.486, -0.1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.387, -0.511).lineTo(0.377, -0.519).lineTo(0.389, 0.501).lineTo(-0.378, 0.514).close().moveTo(0.094, 0).lineTo(0.047, 0.081).lineTo(-0.047, 0.082).lineTo(-0.093, -0.001).lineTo(-0.0... | 9 | 81 | 0.215955 |
train_88911d0dbc7bcb4e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.057, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.131, 0.119).threePointArc((0, 0.334), (0.131, 0.119)).threePointArc((0.382, 0.113), (0.261, -0.107)).threePointArc((0.382, -0.328), (0.131, -0.334)).lineTo(-0.131, -0.334).threePointArc((... | 9 | 108 | 0.27971 |
train_5327b38bf8c2aa2d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.478, -0.087, -0.068), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.526, 0.015).lineTo(0.262, 0.43).lineTo(-0.246, 0.432).lineTo(-0.522, 0.012).lineTo(-0.239, -0.431).lineTo(0.252, -0.427).close().moveTo(-0.099, -0.102).lineTo(-0.138, -0.048).lin... | 12 | 117 | 0.076749 |
train_c3fef53bcd82213e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.038, 0.284, -0.307), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.209, 0.222).lineTo(-0.209, 0.055).lineTo(-0.334, 0.055).lineTo(-0.334, -0.112).lineTo(0.334, -0.112).lineTo(0.334, 0.222).lineTo(0.167, 0.222).lineTo(0.167, 0.055).lineTo(-0.042, ... | 6 | 101 | 0.345972 |
train_d75055da51fd235b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.42, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.187, 0.746).lineTo(-0.362, 0.689).lineTo(-0.514, 0.639).lineTo(-0.844, 0.53).lineTo(-0.844, -0.006).lineTo(-0.187, 0.209).lineTo(0.844, 0.209).lineTo(0.844, 0.746).lineTo(-0.003, 0.746).t... | 7 | 44 | 1.69489 |
train_b5295a1604b2eaa3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.159, -0.281, -0.116), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.043, -0.037).lineTo(-0.043, -0.01).threePointArc((-0.067, 0.022), (-0.043, 0.054)).threePointArc((-0.038, 0.055), (-0.034, 0.055)).lineTo(-0.006, 0.055).lineTo(-0.006, 0.081).li... | 13 | 131 | 0.167018 |
train_05c46f564f539c28 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.008, 0, -0.392), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.11, 1.918).extrude(0.661)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.641, -0.029, -0.244), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.167, 0.413).extrude(0.206))
result = res... | 26 | 143 | 1.178355 |
train_14013d4ef3415102 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.014, 1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.339).sweep(cq.Workplane('XY').spline([(-0.014, 0.501), (0.393, 0.845), (0.798, 0.845), (1.205, 0.501)]))
result = result.edges().chamfer(0.05)
| 2 | 5 | 0.507576 |
train_ea78e6c8cfa2b24c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.826, -0.103), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.332, -0.069).lineTo(0.272, 0.035).lineTo(0.12, 0.035).lineTo(0.1, 0.174).lineTo(0.07, 0.125).lineTo(-0.009, 0.125).lineTo(-0.04, 0.174).lineTo(-0.06, 0.035).lineTo(-0.211, 0.035).lin... | 1 | 17 | 0.006573 |
train_63811f6c1c7c9f19 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.958, 0.216, -0.015), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, -0.042).threePointArc((-0.024, -0.032), (-0.034, -0.008)).threePointArc((-0.029, 0.012), (-0.013, 0.024)).lineTo(-0.013, 0.042).lineTo(-0.003, 0.042).lineTo(-0.003, 0.027).lineT... | 16 | 143 | 0.010521 |
train_5f7d1f33c7074ae1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.558, 0), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.005, -0.039).lineTo(0.005, -0.039).lineTo(0.005, -0.03).threePointArc((0.009, -0.026), (0.008, -0.02)).lineTo(0.016, -0.02).lineTo(0.016, 0.02).lineTo(0.008, 0.02).threePointArc((0.009, ... | 15 | 92 | 0.001187 |
train_0d249245e5987003 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.278), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.508, 1.929).extrude(0.216)
result = result.union(cq.Workplane(cq.Plane(origin=(0.066, 0.415, -0.064), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.196, 0.146).extrude(0.026))
result = result.un... | 13 | 34 | 0.595965 |
train_23ca1e0ac95c1b08 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.182, 0.327, 0.044), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.133).sweep(cq.Workplane('YZ').spline([(-0.055, -0.127), (0.196, -0.077), (0.448, -0.115), (0.699, -0.242)]))
result = result.edges().fillet(0.098)
result = result.union(cq.Workplan... | 8 | 54 | 0.604902 |
train_51f431e90ba696f8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.022, 0.56), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.688, -0.298).lineTo(1.031, -0.893).lineTo(-0.343, -0.893).lineTo(-0.688, -0.298).lineTo(-1.031, 0.298).lineTo(-0.343, 0.298).lineTo(0, 0.893).lineTo(0.343, 0.298).lineTo(0.688, -0.298)... | 13 | 88 | 1.951497 |
train_49634a08cb485c8f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.148, 0.251, -0.743), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.458, -0.092).threePointArc((-0.398, 0.319), (-0.366, 0.734)).threePointArc((-0.185, 0.742), (-0.008, 0.776)).threePointArc((0.188, 0.587), (0.458, 0.609)).lineTo(-0.458, -0.092).c... | 10 | 56 | 0.530019 |
train_453b7dcd47a6bb28 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.599, 0.494, -0.043), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.957, 1.218).lineTo(0.957, 1.218).threePointArc((0.402, -0.152), (-0.957, 0.433)).lineTo(-0.957, 0.805).lineTo(-0.957, 1.218).close().extrude(1.198)
result = result.edges().fillet... | 3 | 20 | 2.654182 |
train_0108883041827ad9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.106), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.263).extrude(0.158)
result = result.union(cq.Workplane(cq.Plane(origin=(0.184, 0.13, 0.052), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.05).extrude(0.033))
result = result.union(cq.Workp... | 12 | 35 | 0.323166 |
train_62297956304a5470 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.446, -0.019, -0.355), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.108, 0.854).extrude(0.156)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.444, -0.019, -0.2), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.889, 0.482).extrude(0.031))
result =... | 17 | 216 | 0.277275 |
train_714109da93c0255a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.794), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.059, 2).extrude(1.336)
result = result.union(cq.Workplane(cq.Plane(origin=(0.148, 0.395, 0.524), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.097).extrude(0.27))
| 2 | 8 | 2.837097 |
train_a83fe2ab8b695f67 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.148, -0.393, -0.971), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.589, 0.687).lineTo(0.852, 0.687).lineTo(0.852, 0.054).lineTo(0.463, 0.054).lineTo(0.485, 0.163).lineTo(-0.852, 0.163).lineTo(-0.852, 0.273).lineTo(0.506, 0.273).lineTo(0.589, 0.6... | 14 | 127 | 0.645184 |
train_177478ac4c212c3e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.176, 0.064, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.354, 0.426).lineTo(0.164, -0.093).threePointArc((0.242, 0.081), (0.354, 0.236)).lineTo(-0.354, 0.426).close().extrude(1.356)
result = result.edges().chamfer(0.042)
result = result.cu... | 16 | 14 | 0.230192 |
train_cae9d9e817f11af8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.294, -0.268, -0.837), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.706, 1.136).lineTo(0.706, -0.727).lineTo(-0.706, -0.727).lineTo(-0.706, 1.264).lineTo(0.706, 1.264).lineTo(0.706, 1.136).close().extrude(1.193)
result = result.edges().fillet(0.2... | 30 | 122 | 1.9047 |
train_d70707f9dc536908 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.355, -0.661, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.438, 0.792).lineTo(0.438, 0.792).lineTo(0.438, -0.083).lineTo(0.263, -0.083).lineTo(-0.438, 0.617).lineTo(-0.438, 0.792).close().extrude(1.661)
result = result.edges().chamfer(0.053)... | 19 | 311 | 0.603447 |
train_ad8f4c0bbf06e6de | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.057, 0.005, 0.353), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.305, 0.009).lineTo(-0.305, -0.04).lineTo(0.305, -0.04).lineTo(0.305, 0.009).lineTo(0.183, 0.009).lineTo(0.153, 0.04).lineTo(0.122, 0.009).lineTo(-0.061, 0.009).lineTo(-0.092, 0.04... | 17 | 208 | 0.050006 |
train_da08f383fe4a1d73 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.01, -0.455, 0.02), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.153, -0.016).threePointArc((0.507, 0.015), (0.476, 0.369)).lineTo(0.322, 0.498).threePointArc((0.284, 0.612), (0.207, 0.704)).lineTo(-0.035, 0.907).threePointArc((-0.507, 0.866), (-0... | 5 | 46 | 0.824883 |
train_3cf3467d38221f41 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.412, 0.181, 0.203), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.797, 0.326).lineTo(-0.797, 0.205).threePointArc((-0.774, 0.181), (-0.797, 0.158)).lineTo(-0.797, 0.036).lineTo(0.652, 0.036).threePointArc((0.797, 0.181), (0.652, 0.326)).lineTo(-... | 10 | 62 | 0.193644 |
train_02d2f389cf20ef41 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.468, 0.23, -0.214), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.748, 0.657).extrude(0.066)
result = result.union(cq.Workplane(cq.Plane(origin=(0.169, 0.263, -0.146), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.202, -0.227).lineTo(0.268, -0.227).... | 18 | 598 | 0.458407 |
train_4a54f999a044b985 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.743, -0.301, -0.49), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.133, 0.247).lineTo(0.141, 0.247).lineTo(0.148, 0.224).lineTo(0.172, 0.224).lineTo(0.257, -0.035).lineTo(0.237, -0.05).lineTo(0.244, -0.073).lineTo(0.023, -0.234).lineTo(0.004, -0... | 1 | 17 | 0.20578 |
train_78f1853ca57ab55c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.009, -0.036, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.502, 0.831).extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(0.004, 0.414, -0.224), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.088, 0.075).extrude(0.157))
result = result.... | 12 | 102 | 0.749628 |
train_837436cec7d6c7e9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.109, -1, 0.001), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.745, 0.347).threePointArc((-0.839, 0.225), (-0.788, 0.079)).lineTo(-0.503, -0.181).threePointArc((-0.034, -0.452), (0.444, -0.197)).lineTo(0.774, 0.048).threePointArc((0.839, 0.197),... | 18 | 112 | 1.481869 |
train_0d1623cbdca98053 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.208, -0.174), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.837, 0.476).extrude(0.045)
result = result.union(cq.Workplane(cq.Plane(origin=(0.12, 0.208, -0.131), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.044).extrude(0.078))
result = result.unio... | 3 | 18 | 0.043634 |
train_234e80fb4d13f75b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.864, -0.422, -0.05), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.092, 0.136).threePointArc((-0.164, 0), (-0.092, -0.136)).lineTo(0.092, -0.136).threePointArc((0.164, 0), (0.092, 0.136)).lineTo(-0.092, 0.136).close().sweep(cq.Workplane('XY').s... | 8 | 46 | 0.110639 |
train_2547313f82ed0594 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.576, -0.022, -0.026), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.139, 0.059).threePointArc((-0.08, 0), (-0.139, -0.059)).lineTo(0.139, -0.059).lineTo(0.139, 0.059).lineTo(-0.139, 0.059).close().sweep(cq.Workplane('XZ').spline([(-1.002, -0.106... | 8 | 44 | 0.047216 |
train_edc386c7f75d8026 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.042, -0.817, -0.283), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.22, 0.365).extrude(0.329)
result = result.faces('>Y').shell(-0.025)
result = result.union(cq.Workplane(cq.Plane(origin=(0.174, -0.817, -0.226), normal=(0, 0, 1), xDir=(1, 0, 0))).re... | 8 | 176 | 0.116209 |
train_a55876c2005ee5e9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.014, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.692).workplane(offset=1.022).circle(0.699).workplane(offset=0.978).circle(0.582).loft()
result = result.edges().chamfer(0.55)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.175, -0.5... | 6 | 27 | 1.461252 |
train_a4d6cacc5561d1df | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.609, -0.738, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 1.363).lineTo(-1, 0.113).lineTo(1, 0.113).lineTo(1, 1.363).lineTo(-1, 1.363).close().extrude(1.219)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.087, 0.087, -0.49), normal=(... | 20 | 108 | 2.98521 |
train_e86950d7bd65ce7f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.517, -0.019, 0.171), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.233, 0.072).lineTo(-0.155, -0.031).lineTo(-0.078, -0.134).lineTo(-0.078, -0.072).lineTo(0.078, -0.072).lineTo(0.078, -0.134).lineTo(0.155, -0.031).lineTo(0.109, -0.031).lineTo(0.1... | 16 | 151 | 0.276235 |
train_b8264e59b082c033 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.337, -0.88, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.333, -0.267).lineTo(-1, -0.267).lineTo(-1, 1.067).lineTo(-0.333, 0.4).lineTo(0.333, 0.4).lineTo(0.333, 1.067).lineTo(1, 0.4).lineTo(1, -0.267).lineTo(0.333, -0.267).close().extrude(1.8... | 15 | 72 | 2.938351 |
train_b5cd2fe195ed7a11 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.237, -0.149, -0.751), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.359, 1.515).extrude(1.502)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.702, -0.345, -0.157), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.596, 0.385).extrude(0.758))
result ... | 18 | 245 | 2.444949 |
train_d8193ce2b245d610 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.41, -0.069, -0.247), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.019, 0.667).extrude(0.1)
result = result.union(cq.Workplane(cq.Plane(origin=(0.596, -0.476, -0.218), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.332, 0.168).extrude(0.059))
result = re... | 18 | 127 | 0.53875 |
train_4ba9e0212a3f4438 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.256), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.74, -0.74).lineTo(-0.74, 0.74).lineTo(0.74, 0.74).lineTo(0.74, 0.592).lineTo(-0.592, 0.592).lineTo(-0.592, -0.74).lineTo(-0.74, -0.74).close().workplane(offset=0.165).moveTo(-0.785, -0.78... | 2 | 11 | 0.318657 |
train_77e8ad6690350861 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.304, 0.514, -0.441), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.973, 0.973).extrude(0.881)
result = result.faces('>Z').shell(-0.117)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.476, 0.491, -0.18), normal=(0, 0, 1), xDir=(1, 0, 0))).rec... | 6 | 27 | 0.498728 |
train_150e2c1777025598 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.017, 0, 0.009), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.032, -0.014).lineTo(-0.074, 0.011).lineTo(-0.075, 0.011).lineTo(-0.075, 0.012).lineTo(-0.076, 0.013).lineTo(-0.077, 0.014).lineTo(-0.075, 0.012).lineTo(0.077, 0.011).lineTo(-0.032, -0... | 1 | 9 | 0.001822 |
train_6fb0868d66feea72 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.494, 0.803, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.131, 0.506).lineTo(-0.294, 0.506).lineTo(-0.294, -0.506).lineTo(-0.212, -0.506).lineTo(-0.212, -0.032).lineTo(0.294, -0.032).lineTo(0.294, 0.17).lineTo(0.131, 0.17).lineTo(0.131, 0.506... | 2 | 14 | 0.252261 |
train_f4d52b99aed56a66 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.15, -0.291), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.73).threePointArc((-0.365, 0.632), (-0.632, 0.365)).lineTo(-0.632, -0.365).threePointArc((-0.365, -0.632), (0, -0.73)).lineTo(0.632, -0.365).lineTo(0.632, 0.365).threePointArc((0.36... | 4 | 25 | 1.735548 |
train_2988fb6d23c77004 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, 0.501, 0.448), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.35, -0.499).lineTo(-0.35, 0.499).lineTo(0.35, 0.499).lineTo(0.35, -0.153).lineTo(0.096, -0.499).lineTo(-0.35, -0.499).close().extrude(0.588)
result = result.edges().fillet(0.136)... | 11 | 97 | 0.347532 |
train_fd5e2ec35265d76c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.353, -0.845, -0.054), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.946, -0.128).lineTo(-0.946, -0.128).lineTo(-0.946, 0.835).lineTo(0.946, 0.835).lineTo(0.946, -0.128).close().extrude(1.689)
result = result.edges().chamfer(0.163)
result = result... | 8 | 53 | 2.790902 |
train_b4a73ea1cd4fb241 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.036, 0.015, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, -0.041).lineTo(1, -0.041).lineTo(0.905, 0.041).lineTo(-0.905, 0.041).lineTo(-1, -0.041).lineTo(0, -0.041).close().sweep(cq.Workplane('XY').spline([(-0.007, 0.015), (0.006, 0.015), (0... | 22 | 78 | 0.008596 |
train_98f202c9e429d08f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.023), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.769, 2).extrude(0.06)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.707 + 0.101, 0, 0.037), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.056, 0.107).lineTo(-0.056, -0.107).lineTo(0.... | 19 | 271 | 0.166221 |
train_a0d95a73e2017521 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.865), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.14).extrude(1.509)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.003, 0.371, -0.231), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.21).extrude(0.416))
result = result.union(cq.Workp... | 11 | 135 | 3.107114 |
train_6f701e7eb38bac8f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.249, 0, -0.442), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, 0.714).lineTo(0.177, 0.169).lineTo(0.751, 0.169).lineTo(0.464, -0.714).lineTo(0, -0.377).lineTo(-0.464, -0.714).lineTo(-0.287, -0.169).lineTo(-0.751, 0.169).lineTo(0, 0.714).close().... | 8 | 50 | 0.347683 |
train_9ac0b4917619910e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.054), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.543).sweep(cq.Workplane('XY').spline([(-0.686, -0.217), (-0.412, -0.207), (-0.137, -0.117), (0.137, 0.117), (0.412, 0.207), (0.686, 0.217)]))
result = result.edges().chamfer(0.13)
result =... | 4 | 13 | 0.798136 |
train_0545c72c7dd5f92d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.189, -0.18, -0.302), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.621, 0.811).extrude(0.869)
result = result.union(cq.Workplane(cq.Plane(origin=(0.383, -0.269, -0.567), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.236).extrude(0.294))
result = resul... | 5 | 17 | 1.220297 |
train_b6a7e3082521ae18 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.908, -0.385, 0.009), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.63, 0.07).lineTo(-0.63, 0.699).lineTo(-0.315, 0.699).lineTo(-0.315, 0.385).lineTo(0.63, 0.385).lineTo(0.63, 0.07).lineTo(-0.63, 0.07).close().extrude(1.816)
result = result.edges... | 16 | 104 | 0.87893 |
train_9c4f7ab079fe2e14 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.192, -0.59, -0.063), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.542, 0.303).lineTo(0.214, 0.551).lineTo(0.254, 0.614).lineTo(-0.031, 0.55).lineTo(-0.157, 0.42).lineTo(-0.484, -0.023).lineTo(-0.318, -0.41).lineTo(0.417, -0.295).close().moveTo(-... | 13 | 170 | 0.122009 |
train_a041b8a4e76b68e0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.028, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.751, 0.121).threePointArc((-0.697, -0.267), (-0.456, -0.575)).threePointArc((-0.093, -0.722), (0.295, -0.668)).lineTo(0.697, -0.498).lineTo(0.751, -0.065).threePointArc((0.697, 0.323), (0... | 12 | 326 | 3.487717 |
train_8913d25062881175 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.849, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.566).workplane(offset=0.252).circle(0.706).workplane(offset=0.303).circle(0.401).workplane(offset=0.249).circle(0.687).workplane(offset=0.319).circle(0.85).workplane(offset=0.333).circle(0... | 17 | 118 | 2.119707 |
train_6f23014e48e3bb01 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.331, -0.221, -0.031), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.05, 0.762).lineTo(0.017, 0.762).lineTo(0.017, -0.696).lineTo(0.05, -0.696).lineTo(0.05, -0.762).lineTo(-0.05, -0.762).lineTo(-0.05, 0.762).close().transformed(offset=(0.18, 0.01... | 3 | 12 | 0.010406 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.