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_d43133194fd0ba98 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.277, 0.026, -0.166), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.292, 1.041).extrude(0.268)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.238, 0.054, 0.1), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.444).extrude(0.065))
result = result.... | 12 | 58 | 0.445813 |
train_d95434c906ceb071 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.693, 0.007, -0.164), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.302, 0.01).lineTo(0.209, 0.222).lineTo(0.006, 0.298).lineTo(-0.222, 0.228).lineTo(-0.307, 0.011).lineTo(-0.215, -0.225).lineTo(0.003, -0.313).lineTo(0.217, -0.215).close().moveTo(... | 20 | 235 | 0.062703 |
train_89e0cd11b944463e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1.023, -0.711, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.621, 0.312).lineTo(-0.61, 0.312).lineTo(-1, 0.856).lineTo(-1, 1.749).lineTo(1, 1.749).lineTo(1, 0.856).lineTo(0.621, 0.312).close().revolve(angleDegrees=90, axisStart=(0.621, 0.312), ... | 4 | 36 | 2.910383 |
train_3deb683ad1ee89e8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.182, 0.971, -0.173), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.738, -0.36).threePointArc((-0.527, 0.273), (-0.288, 0.896)).lineTo(0.738, 0.477).threePointArc((0.517, -0.102), (0.32, -0.688)).lineTo(-0.738, -0.36).close().extrude(1.729)
resu... | 20 | 102 | 2.297885 |
train_56d9f224cc6ad349 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.042, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.786, 0.648).extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.392, 0.138, -0.352), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.086, 0.093).extrude(0.165))
result = result.cut(c... | 14 | 142 | 0.952732 |
train_0ec02a986369b0ff | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.645, 0.041, -0.138), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.347, -0.313).lineTo(0.351, -0.305).lineTo(0.345, 0.298).lineTo(-0.355, 0.31).close().moveTo(0, 0.025).lineTo(0.015, 0.064).lineTo(0.057, 0.066).lineTo(0.024, 0.093).lineTo(0.035,... | 17 | 134 | 0.078446 |
train_7c726dc4a7c42674 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.635, 0.519, 0.699), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.075, 0.124).lineTo(0.092, 0.009).lineTo(0.107, -0.099).lineTo(-0.075, -0.124).lineTo(-0.107, 0.099).lineTo(0.075, 0.124).close().sweep(cq.Workplane('XY').spline([(0.635, 0.092), (0.... | 10 | 78 | 0.43742 |
train_871c9eef9466f4d2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.056, 0.456), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.043, 0.012).lineTo(-0.203, 0.104).threePointArc((-0.185, 0.143), (-0.16, 0.178)).lineTo(0, 0.085).lineTo(0.16, 0.178).threePointArc((0.185, 0.143), (0.203, 0.104)).lineTo(0.043, 0.01... | 3 | 56 | 0.066229 |
train_5c0df71545f38d01 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.362, -0.416), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.706, -0.638).lineTo(-0.823, -0.638).lineTo(-0.823, 0.511).threePointArc((-0.014, 1.362), (0.823, 0.538)).lineTo(0.823, -0.638).lineTo(0.706, -0.638).close().extrude(0.831)
result = re... | 13 | 57 | 1.620585 |
train_7d9899def6a14e65 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.729, 0, 0.064), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.542, 0.071).extrude(0.038)
result = result.union(cq.Workplane(cq.Plane(origin=(0.167, -0.016, 0.083), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.624, 0.024).extrude(0.012))
result = result... | 6 | 75 | 0.007123 |
train_fb7249bdeecfa7f5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.296, 0.154, 0.002), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.258, 0.493).extrude(0.384)
result = result.union(cq.Workplane(cq.Plane(origin=(0.296, 0.154, 0.384), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.651, 0.255).extrude(0.049))
result = res... | 25 | 164 | 0.932943 |
train_56d7a241df93cd83 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.226, 0.015, 0.315), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.307, 0.11).lineTo(-0.307, 0.57).lineTo(0.307, 0.57).lineTo(0.307, -0.35).lineTo(-0.307, -0.35).lineTo(-0.307, 0.11).close().revolve(angleDegrees=270, axisStart=(-0.307, 0.11), ax... | 16 | 186 | 1.355614 |
train_be51c3ed6a9ce07f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.101, 0.53), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.975, 0.899).lineTo(0.975, -0.899).lineTo(-0.975, -0.899).lineTo(-0.975, 0.899).lineTo(0.975, 0.899).close().extrude(1.06)
result = result.edges().chamfer(0.179)
result = result.cut(cq.... | 9 | 46 | 3.4404 |
train_b8b70cf0d80a559d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.044, -0.187, -0.265), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.962, 0.554).extrude(0.126)
result = result.union(cq.Workplane(cq.Plane(origin=(0.521, -0.253, -0.247), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.201, 0.25).extrude(0.044))
result =... | 22 | 187 | 0.141475 |
train_88cc078758758b99 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.019, 0, 0.028), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.354, -0.125).lineTo(-0.354, -0.092).threePointArc((-0.663, 0.217), (-0.972, -0.092)).lineTo(-0.879, -0.092).threePointArc((-0.663, 0.125), (-0.445, -0.092)).lineTo(-0.445, -0.217).line... | 3 | 18 | 0.134737 |
train_1580045a34c0cdc0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.266, 0, -0.339), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.468, 0.954).extrude(0.679)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.733, -0.115, -0.271), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.267).extrude(0.381))
result = result.c... | 5 | 12 | 0.975798 |
train_8d5201b1d61ce7b6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.5, -0.5), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.62, -0.5).lineTo(0.275, -0.5).lineTo(-0.509, 0.372).lineTo(-0.637, 0.372).lineTo(-0.637, 0.5).lineTo(-0.509, 0.5).lineTo(-0.509, 0.436).lineTo(0.311, 0.5).lineTo(0.62, 0.5).lineTo(0.637,... | 2 | 13 | 1.244874 |
train_c72f070ad59a1b84 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.181, 0.137, -0.293), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.178, -0.568).threePointArc((0.678, 0.568), (-0.678, 0.136)).threePointArc((-0.316, -0.136), (-0.178, -0.568)).close().sweep(cq.Workplane('XZ').spline([(-0.181, -0.293), (0.43, -... | 2 | 8 | 0.751022 |
train_baf704614fdb4825 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.492, -0.36, 0.538), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.462, 0.052).lineTo(-0.462, 0.598).lineTo(0.462, 0.598).lineTo(0.462, 0.052).lineTo(-0.462, 0.052).close().extrude(0.985)
result = result.edges().fillet(0.194)
result = result.cut(... | 9 | 51 | 0.623182 |
train_ffaad2fbe391e493 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.966, -0.014, 0.003), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.012, 0.008).lineTo(-0.033, -0.028).lineTo(-0.039, -0.028).lineTo(-0.042, -0.023).lineTo(-0.021, 0.013).lineTo(-0.024, 0.018).lineTo(-0.021, 0.023).lineTo(-0.018, 0.028).lineTo(-... | 15 | 134 | 0.206734 |
train_473d8c8f3e60f3bb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.839), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.969).extrude(1.418)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.001, 0.183, -0.849), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.56).extrude(0.378))
result = result.cut(cq.Workpl... | 20 | 110 | 4.353678 |
train_d33e367b410fa69a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.963, 0.317, 0.349), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.29, -0.579).lineTo(0.29, -0.098).lineTo(0.168, -0.098).lineTo(0.168, 0.579).lineTo(-0.168, 0.579).lineTo(-0.168, -0.098).lineTo(-0.29, -0.098).lineTo(-0.29, -0.579).lineTo(0.29, -... | 11 | 71 | 0.510319 |
train_d594ac8ba9aa6809 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.471, 0, -0.212), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.058, 0.57).extrude(0.311)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.619, -0.04, -0.03), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.551, 0.178).extrude(0.132))
result = result.cu... | 9 | 50 | 0.295013 |
train_694e29270f488a03 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.328, -0.146), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.178, 0.17).lineTo(-0.178, 0.17).threePointArc((0, -0.17), (0.178, 0.17)).close().sweep(cq.Workplane('XY').spline([(-0.383, 0.328), (0.029, 0.11), (0.44, 0.11), (0.852, 0.328)]))
resu... | 9 | 113 | 0.14534 |
train_e6c57a9aae7ae84d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.544), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.447, -0.936).threePointArc((0.556, -0.981), (0.511, -0.873)).lineTo(0.511, 0.873).threePointArc((0.556, 0.981), (0.447, 0.936)).lineTo(-0.447, 0.936).threePointArc((-0.556, 0.981), (-0.511... | 2 | 39 | 0.393241 |
train_30a9a4520b6a44b7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.137, 0.189, -0.049), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.024, 1.189).lineTo(0.264, 0.949).lineTo(0.264, 0.727).threePointArc((0.101, 0.479), (0.044, 0.189)).threePointArc((0.101, -0.101), (0.264, -0.349)).lineTo(0.264, -0.571).lineTo(0.... | 21 | 184 | 0.247187 |
train_b5d66cbd8ff3fadc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.013, -0.145, -0.53), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.327, 0.245).lineTo(0.327, -0.245).lineTo(-0.327, -0.245).lineTo(-0.327, -0.082).lineTo(0.204, -0.082).lineTo(0.204, 0.082).lineTo(-0.327, 0.082).lineTo(-0.327, 0.245).lineTo(0.32... | 11 | 192 | 0.233775 |
train_bc5f2cf890bef3a3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.311, 0, -0.188), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.379, 0.367).extrude(0.376)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.661, 0.06, -0.082), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.678, 0.172).extrude(0.097))
result = resul... | 10 | 92 | 0.173929 |
train_110f1a50d0f2b421 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.146, 0.187, -0.688), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.673, 0.559).extrude(0.365)
result = result.union(cq.Workplane(cq.Plane(origin=(0.174, 0.187, -0.328), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.595, 0.343).extrude(0.081))
result = r... | 18 | 86 | 0.432736 |
train_4c644b28f402438b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.999), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.317).workplane(offset=0.265).circle(0.297).workplane(offset=0.383).circle(0.24).workplane(offset=0.277).circle(0.24).workplane(offset=0.377).circle(0.307).workplane(offset=0.354).circle(0.... | 2 | 5 | 0.392107 |
train_a49a74c6ef5a7e12 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.739, -0.05, -0.1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.522, 0.522).extrude(0.385)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.254, -0.05, 0.017), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.552, 0.205).extrude(0.153))
result = re... | 10 | 86 | 0.594929 |
train_3456bfe5b4dca0f4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.362, 0, -0.675), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.276, 1.589).extrude(1.055)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.091, -0.206, -0.235), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.195).extrude(0.21))
result = result.unio... | 26 | 61 | 1.787285 |
train_ef20a7e256cc0b28 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.251, -0.1, -0.019), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.078, 0.14).extrude(0.074)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.269, -0.083, 0.007), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.022).extrude(0.035))
result = result.u... | 20 | 138 | 0.011705 |
train_915b2229a64c3c1b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.533), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.446, 0.49).extrude(0.442)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, -0.112), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.223, 0.342).extrude(0.322))
result = result.union(cq.Wo... | 13 | 53 | 0.140823 |
train_45e7ef262d43e320 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.306, -0.012, -0.642), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.825, 0.825).extrude(1.416)
result = result.faces('<X').shell(-0.044)
result = result.union(cq.Workplane(cq.Plane(origin=(0.329, 0.033, 0.756), normal=(0, 0, 1), xDir=(1, 0, 0))).rec... | 22 | 166 | 0.630062 |
train_85603cf49a0cdaba | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.269, 0.247, -0.096), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.209).sweep(cq.Workplane('XY').spline([(-0.269, -0.396), (0.014, -0.71), (0.297, -0.71), (0.58, -0.396)]))
result = result.edges().chamfer(0.056)
result = result.cut(cq.Workplane(c... | 11 | 66 | 0.259897 |
train_28b4f2b5a002de45 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.107, -0.087, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.491, -0.152).lineTo(0.491, -0.269).lineTo(-0.491, -0.269).lineTo(-0.491, 0.269).lineTo(0.491, 0.269).lineTo(0.491, -0.152).close().sweep(cq.Workplane('XY').spline([(0.107, 0.254), (-0... | 11 | 66 | 0.66765 |
train_be871c27b5e2d417 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.429, 0.32, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.089, -0.68).lineTo(-0.406, -0.68).lineTo(-0.406, 1.362).threePointArc((-0.169, 1.258), (0.089, 1.224)).lineTo(0.089, 0.588).lineTo(0.406, 0.588).lineTo(0.406, -0.68).lineTo(0.089, -0.68... | 18 | 149 | 0.84265 |
train_a04a2b3fc5325ad2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.617, 0.479, 0.458), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.343, 0.383).lineTo(-0.343, 0.08).lineTo(0.343, 0.08).lineTo(-0.343, 0.383).close().revolve(angleDegrees=270, axisStart=(0, 0), axisEnd=(0.238, 0))
result = result.cut(cq.Workplane... | 10 | 73 | 0.332668 |
train_5d1433232b4d0d59 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.747, -0.154, 0.144), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.501, -0.849).threePointArc((0.501, 0.154), (-0.501, 1.157)).lineTo(-0.501, 0.799).lineTo(-0.501, 0.656).lineTo(-0.501, -0.348).lineTo(-0.501, -0.491).lineTo(-0.501, -0.849).close... | 17 | 147 | 1.721147 |
train_60c066b337db5201 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.022, -1, 0.179), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.023, 0.122).lineTo(0.123, 0.122).lineTo(0.123, -0.122).lineTo(-0.123, -0.122).lineTo(-0.123, 0.122).lineTo(-0.023, 0.122).close().sweep(cq.Workplane('YZ').spline([(-0.788, 0.017), (-... | 4 | 30 | 0.068953 |
train_68bcff5be97e9bff | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.32, -0.619), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.031).extrude(1.238)
result = result.union(cq.Workplane(cq.Plane(origin=(0 + 0.18 * math.cos(0.203 + 2 * math.pi * 0 / 5), 0.298 + 0.18 * math.sin(0.203 + 2 * math.pi * 0 / 5), -0.104)... | 19 | 38 | 2.566344 |
train_06b5a9e385e8f03a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.11, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.29).sweep(cq.Workplane('XY').spline([(-0.082, -0.11), (0.529, -0.1), (1.141, -0.18), (1.753, -0.351)]))
result = result.edges().fillet(0.092)
| 2 | 5 | 0.483946 |
train_cfcfbef0f8d56818 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.28, -0.12, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(1, 0.035).lineTo(-1, 0.035).lineTo(-1, 0.445).lineTo(1, 0.445).lineTo(1, 0.035).close().extrude(0.443)
result = result.edges().chamfer(0.037)
result = result.union(cq.Workplane(cq.Plane(o... | 12 | 61 | 0.313844 |
train_463f2b9b14be5912 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.182, 0.039, -0.124), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.322, 0.13).extrude(0.132)
result = result.union(cq.Workplane(cq.Plane(origin=(0.157, 0.048, -0.139), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.048, 0.015).extrude(0.016))
result = re... | 7 | 159 | 0.034027 |
train_03896ff1be4cbc06 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.42, 0, -0.356), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.797, 0.766).extrude(0.711)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.376, 0.027, -0.172), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.971, 0.666).extrude(0.343))
result = resul... | 7 | 117 | 0.664361 |
train_c5a06afa8d3bfbe5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.02, -0.294, 0.046), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.39, 0.721).extrude(0.455)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.219, -0.301, 0.492), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.167).extrude(0.149))
result = result.... | 23 | 127 | 0.527194 |
train_e64236e9224648fd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.489, 0.107), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.231, 0.467).lineTo(-0.033, 0.52).lineTo(0.231, -0.467).lineTo(0.033, -0.52).lineTo(-0.231, 0.467).close().extrude(0.214)
result = result.edges().chamfer(0.036)
result = result.faces(... | 4 | 126 | 0.015816 |
train_3bf77a0d966446e3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.313, -0.088, -0.012), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.687, -0.583).lineTo(0.694, -0.579).lineTo(0.66, 0.566).lineTo(-0.665, 0.58).close().moveTo(0, 0.067).lineTo(0.021, 0.133).lineTo(0.09, 0.132).lineTo(0.034, 0.173).lineTo(0.056, ... | 29 | 372 | 0.798188 |
train_09c7af1a4f68ae61 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.337, 0.284, -0.053), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.326, 0.013).threePointArc((-0.271, 0.195), (-0.124, 0.315)).threePointArc((0, 0.339), (0.124, 0.315)).threePointArc((0.271, 0.195), (0.326, 0.013)).lineTo(0.255, 0.013).lineTo(-0... | 28 | 167 | 0.96845 |
train_508673c93a00fca6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, 0, -0.001), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.815).workplane(offset=0.534).circle(0.562).workplane(offset=0.548).circle(0.702).workplane(offset=0.432).circle(0.679).workplane(offset=0.487).circle(0.775).loft()
result = result.edges()... | 8 | 5 | 2.378921 |
train_76fc8fa503cde2f8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.372, 0.426, 0.569), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.293, 0.18).threePointArc((-0.315, 0.247), (-0.323, 0.317)).threePointArc((0, 0.64), (0.323, 0.317)).threePointArc((0.315, 0.247), (0.293, 0.18)).threePointArc((0, -0.006), (-0.293... | 18 | 96 | 0.218756 |
train_d46c9f03b8c7a037 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.054, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.212, 0.248).lineTo(-0.212, 0.219).lineTo(-0.197, 0.219).threePointArc((-0.178, 0.211), (-0.169, 0.191)).lineTo(-0.169, 0.088).lineTo(-0.169, 0.044).lineTo(-0.169, -0.096).threePointArc((... | 13 | 204 | 0.734135 |
train_2c71eb0b5662a6df | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.557, 0.82, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1, -0.086).lineTo(-1, 0.307).threePointArc((-0.966, 0.537), (-0.866, 0.746)).threePointArc((-0.584, 1.001), (-0.214, 1.093)).lineTo(-0.143, 1.093).lineTo(0.429, 1.093).lineTo(0.429, 1.2)... | 12 | 101 | 1.34463 |
train_bffdd31003108102 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.006, 0.414, 0.58), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.42, 0.053).lineTo(-0.42, 0.183).lineTo(-0.098, 0.229).threePointArc((-0.065, 0.247), (-0.053, 0.281)).lineTo(-0.053, 0.613).threePointArc((-0.064, 0.646), (-0.095, 0.664)).lineTo(-... | 9 | 206 | 1.021052 |
train_99af029433907155 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.116, -1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.21, 0.191).lineTo(0.879, -0.443).lineTo(0.643, -0.324).lineTo(-0.359, 0.186).lineTo(-0.879, 0.146).lineTo(-0.712, 0.364).lineTo(-0.868, 0.443).lineTo(-0.701, 0.379).lineTo(-0.566, 0.327).... | 2 | 17 | 0.145934 |
train_b2f9ba1ae7aee1e4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.237, -0.186, -0.056), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.172, -0.814).threePointArc((-0.172, 0.186), (0.172, 1.186)).lineTo(0.172, -0.814).close().revolve(angleDegrees=270, axisStart=(0.172, 1.186), axisEnd=(0.172, -0.814))
result = re... | 5 | 25 | 0.322087 |
train_6c453d92b3a7e996 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.092, 0, -0.92), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.032).sweep(cq.Workplane('XZ').spline([(-0.092, -0.934), (-0.068, -0.917), (-0.043, -0.975), (-0.019, -0.965), (0.005, -0.903), (0.03, -0.892), (0.054, -0.949), (0.078, -0.981), (0.102,... | 4 | 13 | 0.002146 |
train_2192156b01b2f825 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.176, 0.166, -0.311), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.105, 1.165).extrude(0.102)
result = result.union(cq.Workplane(cq.Plane(origin=(0.466, 0.185, -0.199), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.352, 0.48).threePointArc((0.413, 0.5... | 13 | 193 | 0.397647 |
train_0a1eb205347efb48 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.121, 0.457, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.004).lineTo(0.219, 0.004).lineTo(0.109, 0.113).lineTo(0, 0.223).lineTo(-0.219, 0.223).lineTo(-0.109, 0.113).lineTo(0, 0.113).lineTo(0, 0.004).close().workplane(offset=0.086).moveTo... | 6 | 81 | 0.030439 |
train_f856b2c634497b2d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.214, 0.055, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.11, 0.526).lineTo(0.11, 0.526).lineTo(0.179, 0.316).lineTo(0, 0.187).lineTo(-0.179, 0.316).lineTo(-0.11, 0.526).close().revolve(angleDegrees=270, axisStart=(0, 0), axisEnd=(0.351, 0)... | 14 | 116 | 0.140206 |
train_32fe8fdbba6ce339 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.079, 0.017, -0.665), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.801, 0.412).extrude(0.504)
result = result.union(cq.Workplane(cq.Plane(origin=(0.083, 0.109, -0.257), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.024).extrude(1.257))
result = result... | 7 | 32 | 0.14798 |
train_eb864f0ab51cb95d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.028, -0.153, -0.393), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.783, 1.362).extrude(0.534)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.233, -0.122, 0.203), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.194, 0.956).lineTo(-0.194, 0.23... | 13 | 138 | 1.376745 |
train_154b02e4b5d3e114 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.012, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.689).workplane(offset=0.393).circle(0.377).workplane(offset=0.444).circle(0.171).workplane(offset=0.505).circle(0.165).workplane(offset=0.519).circle(0.412).loft()
result = result.cut(cq.... | 6 | 46 | 0.501251 |
train_b83af21adf0a598a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.775, 0.811, 0.023), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-1.023, 1.486).lineTo(-1.023, 0.137).lineTo(0.734, 0.137).lineTo(0.734, 0.984).lineTo(1.023, 1.486).lineTo(-1.023, 1.486).close().extrude(1.55)
result = result.edges().chamfer(0.091)... | 10 | 64 | 3.192474 |
train_31430399017a32ee | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.455, -0.155, -0.104), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.179, -0.271).lineTo(-0.227, -0.851).lineTo(-0.445, -0.699).lineTo(0.179, -0.005).lineTo(0.179, 0.155).lineTo(-0.354, 0.155).lineTo(-0.354, 0.422).lineTo(0.179, 0.422).lineTo(0.17... | 4 | 76 | 0.768476 |
train_41ce4c978b1b1ce6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.045, 0.298, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-1, -0.333).lineTo(-0.868, -0.026).lineTo(-0.714, 0.333).lineTo(-0.644, -0.026).lineTo(0.868, -0.026).lineTo(1, -0.333).lineTo(-1, -0.333).close().sweep(cq.Workplane('XY').spline([(0.045,... | 2 | 13 | 0.189049 |
train_c1a5d7a0208409af | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.001, -0.422, -0.088), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.63, -0.576).lineTo(0.618, -0.578).lineTo(0.653, 0.595).lineTo(-0.655, 0.593).close().moveTo(-0.109, -0.146).lineTo(0.109, -0.143).lineTo(0.108, 0.146).lineTo(-0.106, 0.145).close... | 12 | 47 | 0.193451 |
train_fbae47f2e7ce1ad0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.433, -0.708, -0.053), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.567, 0.141).lineTo(0.287, 0.421).lineTo(-0.262, 0.304).lineTo(-0.287, 0.421).lineTo(-0.404, 0.97).lineTo(-0.287, 0.995).lineTo(0, 0.708).lineTo(0.404, 0.446).lineTo(0.567, 0.34).... | 6 | 132 | 2.205314 |
train_d723dc0e77f49d34 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.049, -0.713, -0.702), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.05, 0.32).lineTo(0.05, 0.22).lineTo(0.05, -0.194).lineTo(-0.05, -0.295).lineTo(-0.05, 0.32).close().workplane(offset=0.025).moveTo(-0.051, 0.326).lineTo(0.051, 0.224).lineTo(0.0... | 21 | 321 | 0.173206 |
train_886a6714e3c5525b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.5, 0.19, 0.412), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.5, -0.214).lineTo(0.5, 0.214).lineTo(-0.5, 0.214).lineTo(-0.443, 0.157).lineTo(0.443, 0.157).lineTo(0.443, -0.157).lineTo(-0.443, -0.157).lineTo(-0.5, -0.214).lineTo(0.5, -0.214).clo... | 5 | 36 | 0.264718 |
train_eac96aad08dda2dd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.14, 0.113, -0.069), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.023).sweep(cq.Workplane('XY').spline([(0.161, 0.1), (0.182, 0.076), (0.244, 0.069), (0.299, 0.079), (0.315, 0.109), (0.297, 0.125), (0.254, 0.153), (0.194, 0.141), (0.155, 0.122)])... | 14 | 104 | 0.232577 |
train_d2e65b0fa8a5f406 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.461, 0.574, 0.605), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.583, 0.584).extrude(0.218)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.461 + 0.068 * math.cos(0.915 + 2 * math.pi * 0 / 8), 0.574 + 0.068 * math.sin(0.915 + 2 * math.pi * 0 / ... | 55 | 262 | 0.911429 |
train_fef9a3f6b8772b70 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.433, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.805, 0.044).lineTo(-0.805, 0.717).lineTo(0.805, 0.717).lineTo(0.805, 0.044).lineTo(-0.805, 0.044).close().extrude(0.746)
result = result.edges().fillet(0.115)
result = result.union(cq.Wo... | 22 | 115 | 1.314607 |
train_704b13f43e6d2dd2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.117, -0.14), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1, 0.154).lineTo(-1, 0.029).lineTo(1, 0.029).lineTo(1, 0.154).lineTo(0.25, 0.154).lineTo(0.125, 0.371).lineTo(0, 0.154).lineTo(-0.125, 0.371).lineTo(-0.25, 0.154).lineTo(-0.5, 0.154).li... | 11 | 115 | 0.100985 |
train_a719e82cb2d7aea8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.815, -0.094, -0.229), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, -0.125).lineTo(0.017, -0.039).lineTo(0.018, -0.037).lineTo(0.021, -0.021).lineTo(0.024, -0.006).lineTo(0.014, 0.019).lineTo(0.007, -0.007).lineTo(0, 0).lineTo(-0.063, -0.063).l... | 14 | 120 | 0.113598 |
train_85f1b9e674849a64 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.045), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, 0).lineTo(-0.5, -0.5).lineTo(-1, 0).lineTo(-0.5, 0.5).lineTo(0, 1).lineTo(0.5, 0.5).lineTo(1, 0).lineTo(0.5, -0.5).lineTo(0, -1).lineTo(0, 0).close().extrude(0.145)
result = result.union(... | 5 | 23 | 0.214884 |
train_c8c8808acd85036d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.574, 0.361, -0.289), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.43, 0.172).lineTo(0.43, 0.012).lineTo(-0.43, 0.012).lineTo(-0.43, 0.172).lineTo(0.43, 0.172).close().revolve(angleDegrees=180, axisStart=(0.43, 0.172), axisEnd=(0.43, 0.116))
resul... | 18 | 102 | 0.365651 |
train_677a5a6209eb9b04 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.015, -0.166, -0.095), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.733, 0.003).lineTo(0.35, 0.618).lineTo(-0.363, 0.623).lineTo(-0.737, -0.027).lineTo(-0.341, -0.638).lineTo(0.349, -0.649).close().moveTo(-0.062, -0.002).lineTo(-0.143, 0.15).line... | 13 | 111 | 0.16416 |
train_b54d930e8e1bc62a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.04, -0.201, -0.573), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.733, 1.598).extrude(1.146)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.098, -0.313, -0.032), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.203, 1.918).extrude(0.415))
result = r... | 13 | 144 | 1.126755 |
train_c70a82c5288e9ea1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.05, -0.64, 0.687), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.063, 0.3).lineTo(-0.063, -0.015).lineTo(-0.387, -0.202).lineTo(-0.308, -0.3).lineTo(-0.002, -0.122).lineTo(0.308, -0.299).lineTo(0.387, -0.201).lineTo(0.062, -0.015).lineTo(0.062,... | 11 | 63 | 0.480851 |
train_08c631e2b86775af | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.181, -0.253, 0.208), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.792, 0.056).lineTo(-0.792, 0.056).lineTo(-0.792, 0.727).lineTo(0.792, 0.727).lineTo(0.792, 0.056).close().extrude(0.689)
result = result.edges().fillet(0.112)
result = result.unio... | 12 | 60 | 0.850062 |
train_ea2ab75d8d7607ef | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.413, -0.278, 0.033), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.456, 1.278).lineTo(0, 0.791).lineTo(0.142, 0.658).lineTo(0.456, 0.305).lineTo(0.456, 1.278).close().revolve(angleDegrees=90, axisStart=(0, 0), axisEnd=(0, 0.777))
result = result.... | 28 | 126 | 0.16368 |
train_4f93cf77544a0c32 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.03, -0.548, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.714, 1.03).lineTo(-0.714, -0.97).lineTo(0.714, -0.97).lineTo(0.714, 1.03).lineTo(-0.714, 1.03).close().extrude(1.097)
result = result.edges().chamfer(0.278)
result = result.cut(cq.Wor... | 22 | 46 | 2.238313 |
train_61f1a84381756407 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.205, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.586).workplane(offset=0.516).circle(0.645).workplane(offset=0.557).circle(0.657).workplane(offset=0.465).circle(0.656).workplane(offset=0.462).circle(0.512).loft()
result = result.edges()... | 9 | 40 | 2.271965 |
train_0b01f69a1330eedd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.13, 0.111, 0.024), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1.024, 0.009).lineTo(-1.024, 0.282).lineTo(1.024, 0.282).lineTo(0.818, 0.009).lineTo(-1.024, 0.009).close().extrude(0.222)
result = result.edges().fillet(0.046)
result = result.cut(c... | 17 | 91 | 0.094584 |
train_9a8de9af6b7d69ac | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.006, 0.12, -0.804), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.155, 0.079).threePointArc((0.184, 0.067), (0.196, 0.038)).lineTo(0.196, -0.027).threePointArc((0.184, -0.056), (0.155, -0.068)).lineTo(-0.155, -0.068).threePointArc((-0.184, -0.056... | 9 | 53 | 0.037609 |
train_26a8d4a0165ee30c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.546, -0.391, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.658, 0.812).lineTo(0.229, -0.007).lineTo(0.658, 0.692).lineTo(-0.171, 0.767).lineTo(-0.658, 0.812).close().workplane(offset=0.57).moveTo(-0.692, 0.833).lineTo(0.24, -0.028).lineTo(0.... | 18 | 81 | 0.554558 |
train_730d8643175fe588 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.168), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.819).extrude(0.336)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0.046), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.435, 0.23).lineTo(-0.435, -0.23).lineTo(0.435, -0.23).line... | 12 | 45 | 1.046162 |
train_8dcab8f8c71642f0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.076, 0.252, -0.06), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.468, 0.142).threePointArc((0.534, 0.076), (0.468, 0.01)).lineTo(-0.534, 0.01).lineTo(-0.534, 0.142).lineTo(0.468, 0.142).close().extrude(0.142)
result = result.cut(cq.Workplane(cq.... | 27 | 141 | 0.027936 |
train_037ded6bc19293b9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.281, 0, -0.414), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.438, 1.125).extrude(0.837)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.691, 0.142, -0.227), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.618, 0.469).extrude(0.455))
result = resu... | 9 | 36 | 1.390966 |
train_b2d14689186fa84b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.013, -0.029, 0.38), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.489, -0.527).lineTo(-0.489, -0.527).lineTo(-0.489, 0.381).threePointArc((-0.446, 0.484), (-0.342, 0.527)).lineTo(0.342, 0.527).threePointArc((0.446, 0.484), (0.489, 0.381)).lineTo... | 17 | 149 | 1.700015 |
train_c2c121f9105a59c8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.012, -0.04, -0.01), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.34, 0.428).extrude(0.227)
result = result.edges().chamfer(0.024)
result = result.union(cq.Workplane(cq.Plane(origin=(0.025, 0.054, 0.213), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0... | 9 | 97 | 0.066246 |
train_9295ed3aef18955f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.096, -0.046, -0.246), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.649, 0.523).extrude(0.615)
result = result.union(cq.Workplane(cq.Plane(origin=(0.189, -0.036, -0.233), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.709, -0.003).threePointArc((-0.79... | 17 | 130 | 0.239411 |
train_286551814f5f7832 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.006, 0.237), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.742, 0.35).threePointArc((0.739, 0.394), (0.731, 0.439)).lineTo(0.641, 0.439).lineTo(0.445, 0.439).lineTo(0.445, 0.379).lineTo(0.65, 0.379).lineTo(0.653, 0.35).threePointArc((0, -0.35)... | 12 | 210 | 0.160807 |
train_7eeffc066d8add0a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.008, 0.177, -0.293), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.381, 0.329).threePointArc((-0.321, 0.258), (-0.263, 0.187)).lineTo(0.586, 0.187).lineTo(0.586, 0.329).lineTo(0.703, 0.329).lineTo(0.703, 0.055).lineTo(-0.166, 0.055).threePointArc... | 9 | 57 | 0.55332 |
train_2379f3f73671b978 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.746, 0.612), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.43, 0.171).threePointArc((0.35, 0.105), (0.262, 0.052)).threePointArc((0.23, 0), (0.262, -0.052)).threePointArc((0.35, -0.105), (0.43, -0.171)).lineTo(0.347, -0.254).threePointArc((0.1... | 3 | 19 | 0.425168 |
train_52848746bddbccd6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.051, -0.299), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.421, 1.898).extrude(0.597)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.568 + 0.142, 0.35, -1.532), normal=(0, 1, 0), xDir=(1, 0, 0))).circle(0.086).extrude(2.467))
result = resu... | 19 | 72 | 1.418942 |
train_73d90e26cf181bb1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.202, -0.197, -0.235), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.232, 1.052).extrude(0.471)
result = result.faces('>Z').shell(-0.044)
result = result.union(cq.Workplane(cq.Plane(origin=(0.903, -0.276, -0.181), normal=(0, 0, 1), xDir=(1, 0, 0))).c... | 6 | 29 | 0.195397 |
train_5fba06accdb8f73a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.224, 0.232, -0.296), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.553, 1.114).extrude(1.018)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.224, 0.541, 0.17), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.727, 0.523).extrude(0.087))
result = res... | 14 | 135 | 1.538609 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.