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_088d31ac71368207 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.026, -0.146, -0.186), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.872, 1.226).extrude(0.312)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.013, -0.146, 0.125), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1.013, -0.437).lineTo(1.013, 0.437... | 11 | 92 | 0.314041 |
train_d479ac524425a688 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.413, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.59, 0.919).lineTo(0.693, 0.91).lineTo(0.572, 0.175).lineTo(-0.693, -0.094).lineTo(0.59, 0.919).close().extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.554 + 0.1845, -0.4... | 22 | 17 | 0.601521 |
train_2c60939d997c3860 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.166), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.473, 2).extrude(0.332)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0.016), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.257, 0.033).lineTo(0, 0.259).lineTo(0.257, 0.033).lineTo(0... | 16 | 96 | 0.750452 |
train_0bda250ab46ed686 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.041, -0.926, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.491, -0.239).lineTo(-1, -0.239).lineTo(-1, 0.958).lineTo(0.866, 0.958).threePointArc((1, 0.359), (0.866, -0.239)).threePointArc((0.585, -0.636), (0.184, -0.914)).lineTo(-0.491, -0.23... | 2 | 35 | 5.176092 |
train_5e7db10aa2671bc2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.395, 0.675, 0.014), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.153, -0.605).threePointArc((-0.428, -0.018), (-1.014, 0.256)).lineTo(-1.014, 1.424).threePointArc((0.395, 0.805), (1.014, -0.605)).lineTo(-0.153, -0.605).close().extrude(1.35)
res... | 4 | 35 | 3.260965 |
train_f61c5e147511ce34 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.035, 0.237, 0.202), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.164, 1.526).extrude(0.407)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.287, 0.21, 0.319), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.274).extrude(0.14))
result = result.cut(... | 54 | 244 | 1.146496 |
train_2caaf784c9b0f625 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.025, -0.751, -0.886), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.804, -0.058).lineTo(-0.804, 1.786).threePointArc((0.035, 1.32), (0.804, 0.747)).lineTo(0.507, 0.366).lineTo(0.182, 0.317).lineTo(0.182, -0.228).lineTo(-0.254, -0.034).lineTo(-0.3... | 8 | 69 | 2.701828 |
train_b1520eb6d4168a2e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.248, -0.729), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.956, 1.504).extrude(1.179)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.321, 0.248, -0.19), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.165).extrude(0.101))
result = result.edges(... | 14 | 70 | 1.599993 |
train_abf3c2424f605e73 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.236, 0.515, 0.031), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.057).workplane(offset=0.068).circle(0.084).workplane(offset=0.063).circle(0.083).workplane(offset=0.058).circle(0.083).workplane(offset=0.059).circle(0.061).workplane(offset=0.065... | 25 | 145 | 0.225803 |
train_c29cb613f3fd9456 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.027, -0.195, -0.514), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.945, 0.339).extrude(0.859)
result = result.union(cq.Workplane(cq.Plane(origin=(-1.172, -0.161, -0.258), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.026, 0.34).lineTo(0.026, 0.172).l... | 9 | 55 | 0.50896 |
train_d62fabca9328352b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.169, 0, 0.205), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.541, 0.546).extrude(0.795)
result = result.union(cq.Workplane(cq.Plane(origin=(0.169, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.269, 0.158).extrude(1.26))
result = result.union(cq... | 6 | 45 | 0.215035 |
train_5ace6b341e3e3348 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.302, 0.127, -0.61), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.036, 1.036).extrude(1.423)
result = result.faces('<X').shell(-0.069)
result = result.union(cq.Workplane(cq.Plane(origin=(0.444, 0.22, -0.813), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(... | 6 | 41 | 0.792059 |
train_b372c26055e26b7f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.425, 0, -0.255), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.757).sweep(cq.Workplane('XZ').spline([(0.546, -0.345), (0.681, 0.068), (0.718, 0.537), (0.65, 0.996)]))
result = result.edges().chamfer(0.032)
result = result.cut(cq.Workplane(cq.Pla... | 10 | 48 | 0.554903 |
train_bd945e6fb6a4ab44 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.305, 0, -0.189), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.391, 1.352).extrude(0.593)
result = result.faces('>Z').shell(-0.059)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.503, 0.221, -0.404), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(... | 5 | 101 | 0.451161 |
train_54128fe2b322de4d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.233), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.464).extrude(0.507)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.14, 0.139, 0.169), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2.4, 0.066).extrude(0.054))
result = result.cut(cq.Workp... | 10 | 35 | 1.468405 |
train_5defd8bc81633b53 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.169), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.277).extrude(0.338)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.169, -1.469), normal=(1, 0, 0), xDir=(0, 1, 0))).rect(0.736, 0.098).extrude(0.64))
result = result.cut(cq.Workpl... | 16 | 76 | 0.61378 |
train_257db65276a1a043 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.158, -0.306, -0.302), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.302, -0.694).lineTo(0.302, 1.304).lineTo(0, 1.306).lineTo(-0.302, 1.306).lineTo(-0.302, -0.694).lineTo(0.302, -0.694).close().revolve(angleDegrees=180, axisStart=(0.302, -0.694),... | 9 | 70 | 0.753893 |
train_078216013a50b787 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.516), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.85, 2).extrude(1.031)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.245, 0.257, -0.169), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.446, 0.303).lineTo(0.329, 0.303).lineTo(0.335, 0.2... | 7 | 72 | 3.222077 |
train_cc9f5ed2db5c56e6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.246, 0.384, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.109, -0.264).threePointArc((-0.24, -0.132), (-0.109, 0)).threePointArc((-0.24, 0.132), (-0.109, 0.264)).lineTo(0.109, 0.264).threePointArc((0.24, 0.132), (0.109, 0)).threePointArc((0... | 12 | 68 | 0.236348 |
train_92b632cfb0b30c77 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.855, -0.559, 0.081), normal=(-1, 0, 0), xDir=(0, 0, 1))).lineTo(-2.394, 0.138).lineTo(2.394, 1.716).close().workplane(offset=0.832).lineTo(-1.888, 0.349).lineTo(1.888, 1.593).close().workplane(offset=0.879).lineTo(-0.43, 0.955).lineTo(0.43, 1.23... | 5 | 35 | 1.28113 |
train_ef2959acd4a3f297 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.224, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.279, 0.965).extrude(0.94)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.259, -0.292, -0.67), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.087).extrude(0.306))
result = result.cut(cq.W... | 23 | 110 | 0.763476 |
train_41b3ffe426e48eff | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.512), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.498).extrude(0.885)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.155, 0.187, -0.423), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.066).extrude(0.544))
result = result.union(cq.Work... | 7 | 23 | 0.730977 |
train_0f9d2c8e96e8f3ea | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.371, -0.126, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.303, 0.819).threePointArc((-0.363, 0.794), (-0.387, 0.734)).lineTo(-0.387, -0.666).lineTo(-0.387, -0.734).threePointArc((-0.363, -0.794), (-0.303, -0.819)).lineTo(0.303, -0.819).thr... | 5 | 86 | 1.428057 |
train_4424855a57d4e7c8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.201), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.966, 2).extrude(0.401)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.787 + 0.3935, 0.08, -1.501), normal=(0, 1, 0), xDir=(1, 0, 0))).circle(0.027).extrude(2.6))
result = result.cut(cq... | 16 | 6 | 1.576732 |
train_7b47e6c3be3a7ce5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.075, -0.089), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.106, 1.075).lineTo(-0.106, -0.925).lineTo(0.106, -0.925).lineTo(0.106, 1.075).lineTo(-0.106, 1.075).close().extrude(0.178)
result = result.edges().chamfer(0.075)
result = result.cut(... | 4 | 111 | 0.050456 |
train_68064820ba3a0f29 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.025, -0.574, -0.375), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.025, -0.426).lineTo(-0.668, -0.426).lineTo(-0.668, -0.192).threePointArc((-0.058, 1.574), (0.667, -0.147)).lineTo(0.668, -0.426).lineTo(-0.025, -0.426).close().extrude(0.98)
resu... | 27 | 116 | 2.571903 |
train_3e12f16edc5ff60f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.016, 0.152, -0.04), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.018, 0.174).threePointArc((-0.102, 0.117), (-0.179, 0.184)).lineTo(-0.147, -0.133).threePointArc((-0.132, -0.169), (-0.097, -0.184)).lineTo(-0.093, -0.183).lineTo(0.138, -0.175).... | 22 | 169 | 0.121083 |
train_7fb45049f02d98c3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.101, -0.211, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1, -0.233).lineTo(-0.991, -0.246).lineTo(0.336, -0.246).lineTo(1, 0.233).lineTo(0.991, 0.246).lineTo(0.327, -0.233).lineTo(-1, -0.233).close().sweep(cq.Workplane('XY').spline([(0.101, ... | 1 | 8 | 0.099319 |
train_55c139882cc81a75 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.302, -0.049), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.186, 0.272).lineTo(0.174, 0.016).threePointArc((0.186, -0.006), (0.174, -0.029)).lineTo(-0.186, -0.272).lineTo(-0.186, 0.272).close().sweep(cq.Workplane('XY').spline([(-0.418, -0.3... | 8 | 106 | 0.243928 |
train_dec128e40c8cb4dc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.005, 0.459, 0.101), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.564, 0.172).threePointArc((-0.564, 0), (0.564, -0.172)).lineTo(0.013, -0.172).lineTo(0.013, 0.172).lineTo(0.564, 0.172).close().workplane(offset=0.045).moveTo(0.518, 0.158).threePo... | 11 | 140 | 0.18847 |
train_0245b88479a7b43e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.035, 0.062), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1, -0.113).lineTo(-1, 0.113).lineTo(1, 0.113).lineTo(1, 0).lineTo(-0.249, -0.113).lineTo(-1, -0.113).close().extrude(0.125)
result = result.edges().chamfer(0.012)
result = result.union(... | 8 | 57 | 0.031111 |
train_7c89c1a971f76491 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1, -0.213), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.437, -0.027).lineTo(0.412, -0.027).lineTo(0.407, -0.041).threePointArc((0.004, 0.151), (-0.437, 0.217)).lineTo(-0.437, -0.194).lineTo(-0.437, -0.217).lineTo(0.361, -0.217).lineTo(0.437, ... | 8 | 25 | 0.250387 |
train_638f34ef11710c40 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.224, -0.017, -0.127), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.791, 0.003).lineTo(0.38, 0.657).lineTo(-0.402, 0.7).lineTo(-0.776, -0.021).lineTo(-0.38, -0.665).lineTo(0.392, -0.641).close().moveTo(0, 0.186).lineTo(0.027, 0.254).lineTo(0.101,... | 14 | 170 | 0.310782 |
train_6fb73c243462f777 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.521, 0.009, -0.715), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.948, 1.088).extrude(0.206)
result = result.union(cq.Workplane(cq.Plane(origin=(0.521, 0.295, -0.499), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.121, 0.39).lineTo(0, 0.32).lineTo(-0... | 21 | 302 | 0.634944 |
train_a58a8f0525b529e7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.5, 0, -0.246), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.5, -0.349).threePointArc((-0.207, 0.358), (0.5, 0.651)).lineTo(0.5, 0.349).lineTo(0.5, -0.349).lineTo(0.5, -0.651).lineTo(-0.198, -0.651).lineTo(-0.198, -0.349).lineTo(-0.5, -0.349).c... | 9 | 67 | 1.391784 |
train_6048a2a6bc2720d9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.07, -0.065), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.468, -0.165).threePointArc((-0.535, -0.137), (-0.563, -0.069)).lineTo(-0.563, 0.209).threePointArc((-0.535, 0.276), (-0.468, 0.304)).lineTo(0.468, 0.304).threePointArc((0.535, 0.276),... | 12 | 100 | 1.03575 |
train_caadbd0aa448854a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.813, -0.706, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.092, 1.393).threePointArc((-0.428, 1.282), (-0.688, 1.044)).threePointArc((-0.752, 0.165), (0, -0.294)).threePointArc((0.752, 0.165), (0.688, 1.044)).lineTo(0.215, 1.706).lineTo(0.09... | 2 | 14 | 3.497277 |
train_cbca67ec898107c4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.544, 0.149, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.681, 0.34).threePointArc((0, -0.34), (0.681, 0.34)).lineTo(0, 0.34).lineTo(-0.681, 0.34).close().sweep(cq.Workplane('XY').spline([(0.113, -0.106), (0.376, -0.093), (0.639, 0.012), (0... | 3 | 14 | 1.172955 |
train_75b0aeb4b96ed85e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.085, -0.573, -0.315), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.787, 0.854).extrude(0.629)
result = result.faces('>Z').shell(-0.031)
result = result.union(cq.Workplane(cq.Plane(origin=(0.125, -0.049, -0.059), normal=(0, 0, 1), xDir=(1, 0, 0))).c... | 5 | 34 | 0.186106 |
train_2bd058cd964b9051 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.001), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1, -0.012).lineTo(1, 0.013).lineTo(-1, 0.012).lineTo(-1, -0.013).lineTo(1, -0.012).close().extrude(0.003)
result = result.edges().chamfer(0.001)
result = result.union(cq.Workplane(cq.Plane(o... | 8 | 47 | 0.000107 |
train_3fb183b525916e70 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.448), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.766, 2).extrude(0.896)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.448, -1.748), normal=(0, 1, 0), xDir=(1, 0, 0))).moveTo(-0.088, 0.129).lineTo(-0.217, 0).lineTo(-0.088, -0.129).... | 14 | 45 | 1.440407 |
train_8e93ddc7e3892e81 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.597, -0.306), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1, 0.058).lineTo(-1, 0.465).lineTo(-0.401, 0.465).threePointArc((-0.478, 0.689), (-0.423, 0.919)).threePointArc((-0.052, 1.136), (0.319, 0.919)).lineTo(1, 0.919).lineTo(1, 0.465).lineT... | 14 | 156 | 0.699083 |
train_937f3b4f7d937196 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.065, -0.738), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.672, 0.847).extrude(1.148)
result = result.union(cq.Workplane(cq.Plane(origin=(0.157, 0.42, -0.623), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.069).extrude(0.444))
result = result.uni... | 4 | 16 | 1.86983 |
train_99120063ed0c6e59 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.064, 0.066, 0.009), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.63, 0.898).lineTo(-0.868, 0.257).lineTo(-0.747, 0.257).threePointArc((-0.159, -0.898), (0.429, 0.257)).lineTo(0.549, 0.257).lineTo(0.868, 0.257).lineTo(0.311, 0.898).lineTo(-0.63... | 3 | 19 | 1.687628 |
train_2c6798e151a8d6f6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.1, -0.12, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.287, -0.117).threePointArc((0, 0.171), (0.287, -0.117)).lineTo(0.476, -0.117).lineTo(0.57, -0.117).threePointArc((0, 0.453), (-0.57, -0.117)).lineTo(-0.476, -0.117).lineTo(-0.287, -0.1... | 15 | 130 | 0.569446 |
train_165901bcce8c6a06 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.094, -0.147, 0.53), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.47, 0.27).lineTo(0.47, 0.025).lineTo(-0.47, 0.025).lineTo(-0.47, 0.27).lineTo(0.47, 0.27).close().extrude(0.2)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.026, -0.019, -0.... | 15 | 71 | 0.036768 |
train_5ae08305abeb1567 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.032, -0.224, -0.115), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.025, 0.963).lineTo(-0.025, 1.032).lineTo(0.025, 1.032).lineTo(0.025, -0.968).lineTo(-0.025, -0.968).lineTo(-0.025, 0.963).close().extrude(0.058)
result = result.edges().chamfer(... | 5 | 46 | 0.039974 |
train_de47f8b37dd69407 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.152, -0.276), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.078, 1.696).extrude(0.552)
result = result.faces('>Z').shell(-0.037)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.234, 0.839, -0.188), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(... | 3 | 16 | 0.203589 |
train_a57ccbdd2513aeeb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.376, 0.225, -0.164), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.178, -0.131).lineTo(0.036, -0.131).lineTo(0.036, 0.321).lineTo(-0.178, 0.321).lineTo(-0.178, 0.131).lineTo(-0.024, 0.131).lineTo(-0.024, -0.06).lineTo(-0.178, -0.06).lineTo(-0.178... | 23 | 218 | 0.419504 |
train_85fe348231840cbb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.648, -0.031), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.476, 1.123).lineTo(-0.611, 1.123).lineTo(-0.611, 0.038).lineTo(-0.476, 0.038).lineTo(-0.476, 0.173).lineTo(0.476, 0.173).lineTo(0.476, 0.038).lineTo(0.611, 0.038).lineTo(0.611, 1.259... | 4 | 87 | 2.259703 |
train_8edf5798289e3007 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0, 0.405), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.342).sweep(cq.Workplane('XZ').spline([(-0.49, 0.398), (-0.235, 0.226), (0.02, 0.169), (0.275, 0.226), (0.53, 0.398)]))
result = result.edges().chamfer(0.039)
result = result.union(cq.Work... | 6 | 46 | 1.652049 |
train_6d7c1fc0dff6ac70 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.355, 0.129, -0.077), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.461, 0.043).lineTo(0.461, -0.07).lineTo(0.346, -0.07).lineTo(0.346, 0.043).lineTo(-0.461, 0.043).lineTo(-0.461, 0.779).lineTo(-0.348, 0.779).lineTo(-0.348, 0.676).lineTo(0.346, 0.... | 28 | 292 | 0.504799 |
train_af492ca6e6fcca51 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.765, 0.386), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.14, 0.265).threePointArc((0.131, 0.268), (0.122, 0.265)).lineTo(-0.131, 0.082).lineTo(-0.168, 0.055).threePointArc((-0.151, 0), (-0.168, -0.055)).lineTo(-0.131, -0.082).lineTo(0.122, -... | 2 | 45 | 0.0647 |
train_546df9991e8d83c1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.424, -0.74, -0.073), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.509, 0.293).lineTo(-0.509, -0.26).lineTo(0.509, -0.26).lineTo(0.509, 0.845).lineTo(-0.509, 0.845).lineTo(-0.509, 0.293).close().extrude(1.37)
result = result.edges().chamfer(0.16... | 16 | 91 | 1.083185 |
train_8c63c1c12f73553e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.372), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.202).extrude(0.744)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.36, -0.04, 0.052), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.456, 0.293).extrude(0.327))
result = result.cut(cq.Wo... | 4 | 76 | 1.690619 |
train_c05d55b858cc38e8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.037, 0, -0.465), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.015, -0.025).lineTo(0.014, -0.03).lineTo(-0.005, -0.025).lineTo(-0.017, -0.022).lineTo(-0.048, -0.014).lineTo(-0.046, -0.008).lineTo(-0.015, -0.017).lineTo(-0.014, -0.012).lineTo(0.01... | 5 | 33 | 0.008941 |
train_67c55bf145704aa6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.605, -0.715, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.132, 1.874).lineTo(-0.938, 1.409).lineTo(-1.07, 0.25).lineTo(-0.132, -0.445).lineTo(0.938, 0.02).lineTo(1.07, 1.18).lineTo(0.132, 1.874).close().workplane(offset=0.217).moveTo(0.111, ... | 5 | 54 | 1.190661 |
train_3c5e6ee0a83f6983 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.017, 0.375, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.268, 0.98).lineTo(-0.258, 0.983).lineTo(-0.069, 0.276).threePointArc((-0.072, 0.271), (-0.067, 0.268)).lineTo(-0.042, 0.178).lineTo(-0.04, 0.17).lineTo(-0.016, 0.08).lineTo(-0.014, 0.... | 1 | 26 | 0.007579 |
train_efc25b078c28ce04 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.132, 0.011, 0.537), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.895, -0.209).threePointArc((-0.703, -0.407), (-0.612, -0.667)).lineTo(0.895, 0.203).threePointArc((0.772, 0.443), (0.623, 0.667)).lineTo(-0.895, -0.209).close().extrude(1.27)
resu... | 15 | 100 | 0.911953 |
train_0edf7a9ad2f28984 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.017, 0.229, -0.244), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.403, -0.344).lineTo(-0.403, 0.463).lineTo(0.403, 0.463).lineTo(0.403, -0.344).lineTo(0.207, -0.344).lineTo(0.207, 0.078).lineTo(0.027, -0.023).lineTo(-0.161, 0.086).lineTo(-0.161... | 20 | 155 | 0.859089 |
train_da57f843206dc277 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.015, 0.011, 0.044), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.122, 0.031).extrude(0.087)
result = result.union(cq.Workplane(cq.Plane(origin=(0.007, 0.005, 0.124), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.005).extrude(0.094))
result = result.... | 6 | 61 | 0.039816 |
train_35cfe9c41e436845 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.152, -0.131), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.191).extrude(0.137)
result = result.union(cq.Workplane(cq.Plane(origin=(0.347, 0.061, 0.005), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.271).extrude(0.048))
result = result.union(cq... | 16 | 120 | 0.23845 |
train_f7a01fe6bb67519c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.058, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.45, 0.868).extrude(1.795)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.767, 0.041, -0.363), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.11, 0.526).lineTo(-0.11, 0.796).lineTo(-0.0... | 14 | 63 | 2.100282 |
train_3d42f4b085323fb2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.074, 0.015, 0.387), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.926, 0.216).threePointArc((-0.876, 0.337), (-0.755, 0.387)).lineTo(0.755, 0.387).threePointArc((0.876, 0.337), (0.926, 0.216)).lineTo(0.926, -0.216).threePointArc((0.876, -0.337)... | 6 | 42 | 1.006748 |
train_cda373da559062fe | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.1), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1, -0.962).lineTo(-1, 0.962).lineTo(1, 0.962).lineTo(1, 0.192).lineTo(-0.231, 0.192).lineTo(-0.231, -0.962).lineTo(-1, -0.962).close().extrude(0.25)
result = result.edges().chamfer(0.034)
res... | 4 | 52 | 0.599174 |
train_0d218da34f7f69a9 | 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.844).extrude(0.784)
result = result.faces('>Z').shell(-0.047)
| 2 | 11 | 0.433129 |
train_923799e6f81236b0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.682, 0.471), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.211).sweep(cq.Workplane('YZ').spline([(-0.27, 0.095), (-0.257, -0.101), (-0.127, -0.337), (0.055, -0.307), (0.188, -0.105), (0.246, 0.066), (0.148, 0.299), (-0.01, 0.345), (-0.157, 0.... | 6 | 19 | 0.309546 |
train_f26f0d72f899df7e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.187, -0.143, -0.135), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.361).sweep(cq.Workplane('XY').spline([(-0.187, -0.02), (0.019, 0.005), (0.226, 0.251), (0.432, 0.498), (0.639, 0.522)]))
result = result.cut(cq.Workplane(cq.Plane(origin=(0.18, ... | 7 | 72 | 0.185556 |
train_14b50abb311fa409 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.159, 0.507), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1, -0.706).lineTo(1, -0.706).lineTo(1, 0.706).lineTo(-1, 0.706).lineTo(-1, -0.706).close().revolve(angleDegrees=90, axisStart=(-1, -0.706), axisEnd=(1, -0.706))
result = result.union(c... | 13 | 95 | 2.937478 |
train_29420b66aab8f51a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.312, -0.257), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.554, 1.312).lineTo(0.554, -0.688).lineTo(-0.554, -0.688).lineTo(-0.554, 1.312).close().revolve(angleDegrees=360, axisStart=(-0.554, 1.312), axisEnd=(0.554, -0.688))
result = result.... | 7 | 46 | 2.151937 |
train_9a81976ca79bdc71 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.431, -0.051, -0.094), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.37, -0.116).lineTo(0.37, 0.116).lineTo(0, 0.116).lineTo(-0.37, 0.116).lineTo(-0.37, -0.116).lineTo(0.37, -0.116).close().sweep(cq.Workplane('XZ').spline([(-0.116, -0.247), (0.04... | 17 | 119 | 0.145061 |
train_234903103ad76bdb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.212, -0.005, -0.175), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.788, 0.015).lineTo(0.421, 0.713).lineTo(-0.409, 0.678).lineTo(-0.781, -0.024).lineTo(-0.411, -0.688).lineTo(0.376, -0.704).close().moveTo(0, -0.165).lineTo(0.032, -0.055).lineTo(0... | 8 | 56 | 0.511148 |
train_1546ddcfd9218e07 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.288, -0.071, -0.691), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.424, 1.368).extrude(1.114)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.387, -0.344, -0.13), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.191).extrude(0.279))
result = result.... | 13 | 75 | 1.365323 |
train_81604b35d407ec8d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.002, -0.338, 0.382), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.074, 0.428).threePointArc((-0.355, 0.014), (-0.074, -0.4)).threePointArc((0.148, -0.428), (0.355, -0.345)).lineTo(0.355, -0.198).lineTo(-0.074, -0.198).lineTo(-0.074, 0.428).clo... | 8 | 25 | 0.642344 |
train_6a165212851db12f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.125, -0.29, -0.109), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.75, 0.29).lineTo(-0.875, 0.29).lineTo(-0.875, 0.071).lineTo(0.875, 0.071).lineTo(0.875, 0.29).lineTo(-0.75, 0.29).close().revolve(angleDegrees=180, axisStart=(-0.75, 0.29), axisE... | 11 | 44 | 0.108652 |
train_4340e2482627152f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.016, 0.017, -0.137), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.984, 0.007).lineTo(0.508, 0.836).lineTo(-0.517, 0.847).lineTo(-1.016, -0.002).lineTo(-0.484, -0.854).lineTo(0.504, -0.881).close().moveTo(-0.16, 0.306).lineTo(-0.16, 0.319).lineTo(... | 16 | 154 | 0.464232 |
train_c2c30a0cfe47d770 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.52, 0.21, 0.088), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.339, -0.493).threePointArc((-0.276, -0.442), (-0.229, -0.376)).lineTo(-0.229, -0.027).lineTo(-0.229, -0.026).threePointArc((-0.244, 0), (-0.273, -0.001)).threePointArc((-0.357, 0.04... | 4 | 36 | 1.000189 |
train_33b27a1389369cd0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.799, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.895, 1.755).lineTo(-0.896, -0.156).lineTo(0.895, -0.156).lineTo(0.896, 1.755).lineTo(-0.895, 1.755).close().extrude(2)
result = result.edges().fillet(0.517)
| 2 | 26 | 5.721985 |
train_ebf32c7a3debc5e7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1.889, 0.848, 0.13), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.87, 1.06).threePointArc((0.345, 1.554), (0.87, 2.756)).lineTo(-0.87, 2.756).lineTo(-0.87, 1.06).close().revolve(angleDegrees=90, axisStart=(0.87, 2.756), axisEnd=(-0.87, 2.756))
re... | 8 | 46 | 3.074403 |
train_aa9c027f912389dd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.045, 0.041, 0.072), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.025, 0.053).lineTo(0.107, 0.053).lineTo(0.107, 0.176).lineTo(-0.107, 0.176).lineTo(-0.107, 0.053).lineTo(0.025, 0.053).close().revolve(angleDegrees=180, axisStart=(0.025, 0.053), a... | 5 | 35 | 0.009291 |
train_9c12fa84f1515b18 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.742, 0.334, 0.237), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.476, 0.055).lineTo(0.268, 0.264).lineTo(0.377, 0.287).lineTo(0, 0.532).lineTo(0.268, 0.799).lineTo(0.244, 0.909).lineTo(-0.268, 0.799).lineTo(-0.476, 1.008).lineTo(-0.476, 0.055).l... | 14 | 65 | 0.879486 |
train_8bc89267e8d3956b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.903, 0, -0.478), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.478, 1.903).lineTo(0.478, -0.097).threePointArc((0.227, 1.011), (-0.478, 1.903)).lineTo(0.478, 1.903).close().revolve(angleDegrees=360, axisStart=(0.478, 1.903), axisEnd=(0.478, -0.09... | 7 | 23 | 0.289282 |
train_865aa0b12f737270 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.3, -0.501, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.033).lineTo(-1, 0.096).lineTo(0, 0.096).lineTo(0, 0.397).lineTo(-1, 0.397).lineTo(-1, 0.429).lineTo(0, 0.429).lineTo(0, 0.683).lineTo(-1, 0.683).lineTo(-1, 0.969).lineTo(1, 0.969).l... | 2 | 30 | 0.327278 |
train_f90dc6cbe215a15a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.794, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(1.014).workplane(offset=0.335).circle(0.986).workplane(offset=0.365).circle(0.948).workplane(offset=0.356).circle(0.78).workplane(offset=0.363).circle(0.928).workplane(offset=0.277).circle(0... | 13 | 43 | 3.793166 |
train_4b8da9804f730c15 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.051, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-1.016, 0.438).lineTo(-0.242, -0.336).lineTo(0, -0.578).lineTo(0.242, -0.336).lineTo(1.016, 0.438).lineTo(0.774, 0.679).lineTo(0, -0.094).lineTo(-0.774, 0.679).lineTo(-1.016, 0.438).close().... | 5 | 55 | 1.447836 |
train_bdd34fb6db4de7f8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.701, 3.086, -3.104), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(8.402, 6.694).extrude(3.536)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.282, 3.419, 0.398), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(3.014).extrude(0.557))
result = resul... | 9 | 11 | 0.508601 |
train_52705d22938b32b6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.873, -0.732, 0.259), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.102, -0.022).threePointArc((0.001, -0.125), (0.103, -0.022)).threePointArc((0.114, 0.018), (0.123, 0.058)).threePointArc((-0.001, 0.125), (-0.123, 0.056)).threePointArc((-0.11, ... | 2 | 9 | 0.054735 |
train_c83b73e5533f9b84 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.147, -0.004, -0.104), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.53, -0.985).lineTo(0.517, -0.996).lineTo(0.539, 1.004).lineTo(-0.533, 0.974).close().moveTo(-0.076, 0.275).lineTo(-0.096, 0.327).lineTo(-0.148, 0.347).lineTo(-0.199, 0.328).lineT... | 18 | 111 | 0.276202 |
train_b38202e669307cac | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.21, 0.176, -0.197), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.58, 1.11).extrude(0.646)
result = result.union(cq.Workplane(cq.Plane(origin=(0.51, 0.315, -0.449), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.449, 0.489).extrude(0.261))
result = resul... | 14 | 108 | 1.050745 |
train_fc72c044b3516ec8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.579, 0.083, -0.101), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.55, 1.036).extrude(0.184)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.504, -0.334, -0.043), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.152, -0.508).lineTo(-0.152, -0.325).... | 24 | 225 | 0.265178 |
train_d43526914b7f01ab | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.254, -0.164, -0.059), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.022, -0.569).lineTo(0.427, -0.569).lineTo(0.427, 0.646).lineTo(0.022, 0.646).lineTo(0.022, -0.189).lineTo(-0.427, -0.637).lineTo(-0.412, -0.646).lineTo(0.022, -0.212).lineTo(0.022... | 2 | 16 | 0.597383 |
train_4d2081ef168a6e8c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.002, 0.012, -0.424), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.998, 0.025).lineTo(0.517, 0.819).lineTo(-0.453, 0.842).lineTo(-1.002, -0.029).lineTo(-0.477, -0.832).lineTo(0.508, -0.867).close().center(-0.401, 0.273).circle(0.1).center(0.801, 0... | 14 | 91 | 1.250441 |
train_ed7ac0b6cb72dcb1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.71, 0.661, -0.156), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.137, 0.333).lineTo(0, 0.333).lineTo(0, -0.003).lineTo(0.504, -0.003).lineTo(0.504, 0.333).lineTo(0.137, 0.333).lineTo(0.137, 1.004).lineTo(0.504, 1.004).lineTo(0.504, 1.423).lineT... | 11 | 78 | 0.791244 |
train_7901587414e2183b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.574), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.506).extrude(0.984)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.302, 0.164, 0.015), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.094).extrude(0.165))
result = result.cut(cq.Workpl... | 9 | 40 | 0.740361 |
train_ab346f55541fa403 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.145, 0.397, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.119, 0.117).threePointArc((-0.165, 0.123), (-0.208, 0.143)).lineTo(-0.26, 0.142).lineTo(-0.26, 0.194).threePointArc((-0.279, 0.237), (-0.285, 0.283)).lineTo(-0.285, 0.547).threePoint... | 4 | 28 | 0.224385 |
train_7d20446b492c77ce | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.061, -0.375, -0.139), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.351, -0.128).lineTo(0.351, 0.427).lineTo(-0.351, 0.427).lineTo(-0.351, -0.128).lineTo(0.351, -0.128).close().extrude(0.537)
result = result.edges().chamfer(0.103)
result = result.... | 22 | 148 | 0.289662 |
train_bbd97d1a9a601cc2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.008, -0.058, -0.519), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.998, 1.441).extrude(1.311)
result = result.union(cq.Workplane(cq.Plane(origin=(0.198, 0.127, -0.793), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.262, 0.782).extrude(0.295))
result = ... | 14 | 118 | 0.91143 |
train_f8c77bf817255edc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.315, 0.057, 0.459), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.011, -0.148).lineTo(0, -0.148).threePointArc((-0.008, -0.145), (-0.011, -0.137)).lineTo(-0.011, 0.005).lineTo(-0.011, 0.146).threePointArc((-0.008, 0.154), (0, 0.157)).lineTo(0.011... | 21 | 230 | 0.080823 |
train_31f8d75d43fcf4d2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.014, -0.007, -0.187), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.986, -0.028).lineTo(0.475, 0.886).lineTo(-0.527, 0.851).lineTo(-1.014, 0.025).lineTo(-0.507, -0.872).lineTo(0.514, -0.838).close().moveTo(-0.442, 0.181).lineTo(-0.362, 0.182).line... | 7 | 53 | 0.30597 |
train_1ae001734ee86cda | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.86, -0.437, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.073, 0.385).threePointArc((-0.562, 0), (-0.073, -0.385)).lineTo(0.562, -0.231).threePointArc((0.269, 0), (0.562, 0.231)).lineTo(-0.073, 0.385).close().sweep(cq.Workplane('XY').spline([... | 1 | 6 | 0.229437 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.