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_b04cd2fe551310c4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.338, -0.096, 0), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.06, -0.045).lineTo(-0.06, 0).lineTo(-0.09, 0).lineTo(-0.09, 0.045).lineTo(0.09, 0.045).lineTo(0.09, -0.045).lineTo(-0.06, -0.045).close().transformed(offset=(0.615, 0, 0.014), rotat... | 7 | 75 | 0.145277 |
train_54fcace145f116a4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.653, 0.254, 0.614), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.386, 0.415).lineTo(-0.386, 0.029).lineTo(0.386, 0.029).lineTo(0.386, 0.415).lineTo(-0.386, 0.415).close().extrude(0.508)
result = result.edges().fillet(0.077)
result = result.unio... | 4 | 33 | 0.151754 |
train_e5de5f3021026fcc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.844), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.195).extrude(1.689)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.067, 0.445, 0.11), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.308, 0.319).extrude(0.442))
result = result.edges().fi... | 3 | 51 | 3.947728 |
train_e5e35c4683f6a2e8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.518, -0.742, 0.321), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.241).lineTo(-0.01, 0.258).lineTo(-0.021, 0.252).lineTo(-0.021, 0.241).lineTo(-0.079, 0.241).lineTo(-0.079, 0.171).lineTo(0, 0.217).lineTo(0, -0.258).lineTo(0.079, -0.258).lineT... | 1 | 12 | 0.026852 |
train_171eb85c597dc66b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.502, 0.346, -0.22), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.898, 0.946).extrude(0.235)
result = result.union(cq.Workplane(cq.Plane(origin=(0.512, -0.032, 0.034), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.302, -0.186).lineTo(0.321, 0.436).t... | 13 | 85 | 0.427543 |
train_c85e5077f2bd265e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.414, -0.76, -0.093), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.242, 0.673).threePointArc((-0.466, 0.065), (0.115, -0.222)).threePointArc((0.466, 0.194), (0.21, 0.673)).threePointArc((-0.016, 0.729), (-0.242, 0.673)).close().extrude(1.216)
re... | 20 | 107 | 0.876326 |
train_89b14e73e7d6ea97 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.738, 0, 0.076), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.083, -0.643).lineTo(-0.262, -0.643).lineTo(-0.262, 0.643).lineTo(0.262, 0.643).lineTo(0.262, 0.321).lineTo(-0.132, 0.321).threePointArc((-0.112, 0.289), (-0.083, 0.262)).lineTo(-0.083... | 6 | 53 | 0.294386 |
train_5bfae669bcfa051e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.045, 0.559, 0.204), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.746, 0.024).lineTo(0.746, 0.024).lineTo(0.746, 0.567).lineTo(-0.746, 0.567).lineTo(-0.746, 0.024).close().extrude(0.82)
result = result.edges().fillet(0.069)
result = result.union... | 12 | 216 | 1.359696 |
train_82d21644ce06c586 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.622, -0.486, -0.008), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, 0.918).threePointArc((-0.3, 0.793), (-0.425, 0.493)).lineTo(0, 0.493).lineTo(0, 0.068).threePointArc((0.3, 0.192), (0.425, 0.493)).threePointArc((0.3, 0.793), (0, 0.918)).close(... | 14 | 72 | 0.377565 |
train_ffa7ccc2c365e6bc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.877, 0, -0.599), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.399, 0.782).lineTo(-0.399, 0.782).lineTo(-0.399, 0.142).lineTo(0.399, 0.142).lineTo(0.399, 0.782).close().revolve(angleDegrees=360, axisStart=(0.399, 0.782), axisEnd=(-0.399, 0.782))
... | 13 | 96 | 2.083939 |
train_80148bae8e206113 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.209, 0.061, -0.273), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.072, 0.962).extrude(0.285)
result = result.union(cq.Workplane(cq.Plane(origin=(0.432, 0.236, -0.196), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.239, 0.159).extrude(0.11))
result = r... | 24 | 180 | 0.478076 |
train_8373d502a8b86cea | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.784, 0.9, -0.078), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.848, -0.145).lineTo(-0.093, 0.07).lineTo(-0.848, 0.672).lineTo(0.848, 2.023).lineTo(0.848, -0.145).close().extrude(1.568)
result = result.edges().chamfer(0.198)
result = result.cut(... | 10 | 108 | 2.27503 |
train_c80671240fd7e732 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.02, -1, 0.118), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.264, 0.329).lineTo(-0.264, -0.198).lineTo(-0.132, -0.329).lineTo(-0.132, -0.198).lineTo(0.132, -0.198).lineTo(0.132, -0.329).lineTo(0.264, -0.198).lineTo(0.264, 0.329).lineTo(-0.264,... | 15 | 104 | 0.640847 |
train_e6f2704f53041427 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.849, 0.327, 0.14), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.504, -0.041).lineTo(0.515, -0.041).lineTo(0.515, 0.499).lineTo(-0.515, 0.499).lineTo(-0.515, -0.093).lineTo(-0.504, -0.093).lineTo(-0.504, -0.041).close().extrude(1.698)
result = r... | 22 | 101 | 0.516079 |
train_2d32d2a050040845 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.271, 0.116, -0.274), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.459, 0.564).extrude(0.794)
result = result.union(cq.Workplane(cq.Plane(origin=(0.113, 0.157, -0.348), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.095, 0.064).extrude(0.08))
result = re... | 8 | 42 | 0.900763 |
train_e07702b9e15f2940 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.496, -0.471, 0.144), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.578, 0.233).lineTo(0.578, 1.503).threePointArc((-0.578, 0.762), (-0.382, -0.598)).lineTo(0.578, 0.233).close().workplane(offset=0.197).moveTo(0.45, 0.282).lineTo(0.45, 1.271).thre... | 19 | 81 | 0.584415 |
train_18fdac9c4c0b18c2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.775), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.514, 1.717).extrude(1.214)
result = result.faces('>Y').shell(-0.092)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.039, -0.339, 0.034), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.13)... | 5 | 17 | 1.206344 |
train_2e14e0ffe08d4601 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.611), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.172, 0.149).extrude(0.25)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, -0.375), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.049).extrude(0.154))
result = result.union(cq.Workpla... | 13 | 67 | 0.013686 |
train_e1260718d7a5d7de | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.806, -0.299, -0.161), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.858, 0.603).lineTo(-0.858, -0.005).lineTo(0.858, 0.299).lineTo(-0.858, 0.603).close().workplane(offset=0.447).moveTo(-0.779, 0.575).lineTo(-0.779, 0.023).lineTo(0.779, 0.299).li... | 5 | 30 | 0.753895 |
train_9f6392576281f14b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.971, 0.463, -0.134), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.577, -0.537).lineTo(0.577, 1.463).lineTo(0, 1.463).lineTo(-0.577, 0.463).lineTo(0, -0.537).lineTo(0.577, -0.537).close().extrude(0.983)
result = result.edges().chamfer(0.265)
resu... | 9 | 290 | 2.407283 |
train_eff1d193cc9c61b6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.928, 0.257).lineTo(-0.928, 1).threePointArc((-0.897, 1), (-0.865, 0.995)).lineTo(-0.743, 0.974).threePointArc((0.019, 0.444), (0.928, 0.257)).lineTo(-0.11, 0.257).lineTo(-0.743, 0.257).lineTo(... | 5 | 21 | 0.868996 |
train_4b7b3863840fd74e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.188), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.081).extrude(0.376)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.188, -0.891), normal=(0, 1, 0), xDir=(1, 0, 0))).rect(0.788, 0.185).center(-0.039, -0.008).circle(0.04).center(0... | 14 | 52 | 0.703608 |
train_c5eb14d61e4969cc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.219, -0.022, -0.408), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.732, 0.509).extrude(0.081)
result = result.union(cq.Workplane(cq.Plane(origin=(0.101, -0.422, -0.347), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.559, 0.313).lineTo(-0.283, 0.313)... | 17 | 93 | 0.273412 |
train_bc7fed08a2bf1a33 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0, 0.294), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.15, -0.346).lineTo(-0.15, 0.346).lineTo(0.15, 0.346).lineTo(0.15, 0.335).lineTo(-0.139, 0.335).lineTo(-0.139, 0.251).lineTo(0.139, 0.251).lineTo(0.139, 0.24).lineTo(-0.139, 0.24).lineTo(... | 7 | 112 | 0.033342 |
train_9dbdd94e6051c0b8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.221, -0.124, -0.275), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.557, 1.407).extrude(0.789)
result = result.union(cq.Workplane(cq.Plane(origin=(0.478, 0.828, 0.067), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.081, -0.481).lineTo(-0.081, -0.162)... | 5 | 33 | 2.077937 |
train_4be03b4d820ed924 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.073), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.191, 2).extrude(0.115)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.236, -0.61, 0.041), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.031).extrude(0.032))
result = result.cut(cq.Work... | 10 | 48 | 0.22237 |
train_73599f8b89740dd8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.329, -0.048, -0.209), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.533, 0.463).extrude(0.418)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.786, -0.048, -0.086), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.428, 0.275).extrude(0.171))
result... | 11 | 81 | 0.10701 |
train_de11c7fe6a4d44c4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.077, -0.397), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1, 0.139).lineTo(-1, 0.071).lineTo(0.911, 0.071).lineTo(0.911, 0.014).lineTo(0.961, 0.015).lineTo(1, 0.015).lineTo(1, 0.14).lineTo(-0.405, 0.139).lineTo(-1, 0.139).close().extrude(0.56... | 5 | 32 | 0.081164 |
train_a03f54d1387518b6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.023, 0.157, -0.39), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.826, 1.249).extrude(0.646)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.215, 0.88, -0.292), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.253, 0.239).extrude(0.303))
result = r... | 9 | 61 | 0.713751 |
train_aac1fc60caeb8182 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.008, -0.478, 0.398), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.122, 0.175).threePointArc((0.251, 0.008), (-0.122, -0.159)).threePointArc((-0.16, -0.175), (-0.197, -0.159)).threePointArc((-0.179, -0.103), (-0.235, -0.084)).lineTo(-0.251, -0.0... | 8 | 57 | 0.368461 |
train_821d5ebe7530806c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.02, 0, 0.932), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.475, 0.944).lineTo(-0.071, 0.946).lineTo(-0.617, 0.948).lineTo(-0.893, 0.475).threePointArc((-1.02, 0.002), (-0.895, -0.473)).lineTo(-0.622, -0.946).lineTo(-0.075, -0.948).threePointArc... | 15 | 122 | 4.366098 |
train_e7fb0bda9ee86aa4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.322, -0.241, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.237, 0.047).lineTo(0.158, 0.126).lineTo(0.132, 0.129).lineTo(0.139, 0.146).lineTo(0, 0.146).lineTo(0.028, 0.257).lineTo(0.079, 0.206).lineTo(0.09, 0.263).lineTo(0.052, 0.356).lineTo(0... | 10 | 148 | 0.266317 |
train_067169872d541382 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.699, -0.953, 0.027), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.379, 1.867).threePointArc((-0.482, 0.063), (0.482, 1.814)).threePointArc((0.431, 1.842), (0.379, 1.867)).close().extrude(1.32)
result = result.edges().fillet(0.456)
result = resul... | 13 | 109 | 3.433309 |
train_6634cc289985f9e1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.165, 0.42, -0.79), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.823, 0.823).extrude(1.469)
result = result.faces('>Z').shell(-0.092)
result = result.union(cq.Workplane(cq.Plane(origin=(0.237, 0.48, 0.66), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0... | 15 | 62 | 0.534334 |
train_509ab2a56db87b1f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.173, -0.141, -0.538), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.475, 1.719).extrude(1.077)
result = result.union(cq.Workplane(cq.Plane(origin=(0.719, -0.167, -0.023), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.191).extrude(0.453))
result = res... | 13 | 122 | 1.930433 |
train_810fecae7a2bcb78 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.467, -0.336, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.032, 1.408).lineTo(-0.263, 0.372).lineTo(-0.43, -0.375).lineTo(-0.263, -0.375).lineTo(-0.263, -0.664).lineTo(0.43, -0.664).lineTo(0.365, -0.375).lineTo(-0.032, -0.375).lineTo(-0.032,... | 15 | 58 | 0.446398 |
train_66fafc9e212c1d6e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.583, 0, -0.216), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.675, 1.279).extrude(0.721)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.716, -0.158, -0.506), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.073).extrude(0.309))
result = result.... | 8 | 91 | 0.435792 |
train_607537affcfd1bef | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.529), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.915, 1.224).extrude(1.059)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.122, 0.086, -0.287), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.088, 1.469).extrude(0.161))
result = result.cut(... | 21 | 163 | 0.9156 |
train_32554660341efe92 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.186, -0.153, -0.329), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.301, 0.027).lineTo(0.301, 0.052).threePointArc((-0.012, 0.341), (-0.301, 0.027)).close().extrude(0.305)
result = result.edges().fillet(0.071)
result = result.cut(cq.Workplane(cq... | 23 | 250 | 0.041394 |
train_52c6237ba40eafdc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.588, -0.392, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, -0.627).threePointArc((-0.577, -0.443), (-0.943, 0.04)).threePointArc((-1, 0.373), (-0.943, 0.706)).threePointArc((-0.577, 1.189), (0, 1.373)).threePointArc((0.577, 1.189), (0.943, 0... | 10 | 60 | 2.906701 |
train_f29de82bc64e25f1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.173, -0.1, 0.465), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, -0.418).lineTo(0.026, -0.418).lineTo(0, -0.463).lineTo(-0.026, -0.418).lineTo(-0.522, 0.44).lineTo(-0.535, 0.463).lineTo(0.535, 0.463).lineTo(0.522, 0.44).lineTo(0.496, 0.44).lineTo... | 2 | 31 | 0.082997 |
train_25783b49baa256d9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.184, 0.349, -0.579), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.858, 1.302).extrude(0.499)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.398, 0.656, -0.126), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.124).extrude(0.705))
result = resu... | 12 | 90 | 0.57581 |
train_89ca5ecbfda83e7f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.089, 0.048, -0.301), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.101, -0.263).lineTo(-0.115, -0.076).lineTo(-0.554, -0.076).lineTo(-0.539, 0.111).lineTo(-0.129, 0.111).lineTo(-0.18, 0.765).lineTo(-0.195, 0.952).lineTo(-0.007, 0.952).lineTo(0.0... | 10 | 96 | 0.351475 |
train_239704310ec741a8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.317, -0.113, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.838, 0.852).extrude(0.944)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.287, 0.161, -0.528), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.344, 0.284).threePointArc((0.48, 0.478)... | 16 | 94 | 1.005178 |
train_92e462d5d63a30a3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.099, 0, -0.5), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.5, 0.009).lineTo(0.5, 0.188).lineTo(-0.5, 0.188).lineTo(-0.5, 0.009).lineTo(0.5, 0.009).close().revolve(angleDegrees=360, axisStart=(0.5, 0.009), axisEnd=(0.5, 0.188))
result = result.e... | 7 | 25 | 0.475321 |
train_d107daf53ded6aed | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.041, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.356, 0.948).extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(0.386, 0.473, -0.213), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.042).extrude(0.182))
result = result.cut(cq.Wor... | 11 | 90 | 2.383402 |
train_76c8bf80fbea2a66 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.94, 1.089, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.883, 0.972).threePointArc((0, 0.089), (0.883, 0.972)).lineTo(0.883, 2.735).threePointArc((0.624, 2.111), (0, 1.852)).threePointArc((-0.624, 1.595), (-0.883, 0.972)).close().extrude(1.8... | 16 | 173 | 4.255355 |
train_c37fb06aa46329d2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.746, 0, 0.549), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.072).sweep(cq.Workplane('XZ').spline([(0.266, 0), (0.228, 0.191), (0.037, 0.312), (-0.184, 0.221), (-0.276, 0), (-0.184, -0.221), (0.037, -0.313), (0.228, -0.192)]))
result = result.e... | 4 | 12 | 0.059118 |
train_659d0932bfbd417b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.882), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.687).extrude(1.764)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.82, -0.132, -0.207), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.189).extrude(0.913))
result = result.cut(cq.Workp... | 8 | 54 | 4.94096 |
train_db6f52f56e87b7d5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.624, 0, -0.697), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.751, 0.26).extrude(0.505)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.427, -0.053, -0.228), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.101, 0.059).extrude(1.025))
result = res... | 10 | 47 | 0.172627 |
train_711c73105f2b2077 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.557, 0.184, -0.334), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.26, 0.154).extrude(0.093)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.554, 0.078, -0.307), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.033).extrude(0.054))
result = resul... | 19 | 137 | 0.402776 |
train_e7fd5c3b642d6143 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.233, 0, 0.309), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.69, -0.156).lineTo(-0.69, -0.378).lineTo(0.69, -0.378).lineTo(0.69, 0.378).lineTo(0.557, 0.378).lineTo(0.557, -0.156).lineTo(-0.69, -0.156).close().workplane(offset=0.129).moveTo(-0.... | 9 | 41 | 0.15921 |
train_432a93fe00ca3b7d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.144, 0.036), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.097).sweep(cq.Workplane('XY').spline([(-0.789, -0.144), (-0.526, -0.453), (-0.263, -0.637), (0, -0.699), (0.263, -0.637), (0.526, -0.453), (0.789, -0.144)]))
result = result.union(cq.W... | 14 | 57 | 0.114828 |
train_45331bdfac98e309 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.563), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.528).extrude(1.125)
result = result.cut(cq.Workplane(cq.Plane(origin=(0 + 0.208 * math.cos(5.611 + 2 * math.pi * 0 / 6), 0.563 + 0.208 * math.sin(5.611 + 2 * math.pi * 0 / 6), -1.863), no... | 15 | 128 | 2.896014 |
train_c9980256f7bbe6f7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.027, 0.032, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.577, 0.56).extrude(1.794)
result = result.union(cq.Workplane(cq.Plane(origin=(0.288, 0.163, 0.274), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.055, 0.039).extrude(0.164))
result = result... | 11 | 53 | 0.605194 |
train_84b8e03bedf1c521 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.158, -0.084), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1, -0.097).lineTo(-1, -0.063).lineTo(-0.903, -0.063).lineTo(-0.903, 0.097).lineTo(-0.526, 0.097).lineTo(-0.526, -0.063).lineTo(-0.331, -0.063).lineTo(-0.331, 0.097).lineTo(-0.046, 0.0... | 3 | 34 | 0.015592 |
train_e875772a737bf4eb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.219, -0.256, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.849, 0.459).threePointArc((-0.873, 0.255), (-0.849, 0.052)).threePointArc((0.873, 0.255), (-0.849, 0.459)).close().workplane(offset=0.237).moveTo(-0.972, 0.489).threePointArc((-1, 0.... | 16 | 43 | 1.190658 |
train_e6f785f0fc9f8b0f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.694), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.521, 0.903).extrude(1.694)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.012, 0.06, -0.982), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.388, 0.176).extrude(2.033))
result = result.edges... | 14 | 113 | 1.875101 |
train_8245009a2c449258 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.249, 0.465), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1, -0.667).lineTo(-1, -0.333).lineTo(-0.204, -0.333).lineTo(-0.204, 0.333).lineTo(-1, 0.333).lineTo(-1, 0.667).lineTo(1, 0.667).lineTo(1, 0.333).lineTo(0, 0.333).lineTo(0, -0.667).lineT... | 11 | 214 | 0.831855 |
train_7f8b2cb349676be5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.71, 0, 0.345), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, -0.977).lineTo(0, 0.288).lineTo(-0.29, 0.455).lineTo(-0.29, 0.709).lineTo(0, 0.542).lineTo(0, 0.977).lineTo(0.29, 0.977).lineTo(0.29, -0.977).lineTo(0, -0.977).close().extrude(0.616)
... | 17 | 396 | 1.177605 |
train_5a82c437e65578cb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.664), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.563).extrude(1.414)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.8 + 0.267, -0.625 + 0.2085, -0.877), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.155, 0.056).lineTo(0.045, 0.056).... | 16 | 218 | 3.447905 |
train_22a98c0e1ac7fe5e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.009, -0.014, -0.479), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.009, 0.001).lineTo(0.739, 0.678).lineTo(0.012, 0.996).lineTo(-0.712, 0.698).lineTo(-0.991, 0.022).lineTo(-0.682, -0.713).lineTo(0.005, -0.969).lineTo(0.678, -0.708).close().moveT... | 14 | 75 | 1.752724 |
train_85a956dd33331f5f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.015, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.294, 0.44).lineTo(-0.294, 0.404).lineTo(0.257, 0.404).lineTo(0.257, 0.036).lineTo(-0.294, 0.036).lineTo(-0.294, -0.44).lineTo(0.294, -0.44).lineTo(0.294, 0.44).lineTo(-0.294, 0.44).close... | 18 | 24 | 0.465009 |
train_38cd6ab29e04e6ca | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.821, 0.128), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.199, 0.179).threePointArc((-0.261, 0), (-0.199, -0.179)).lineTo(0.261, -0.179).lineTo(0.261, 0.179).lineTo(-0.199, 0.179).close().sweep(cq.Workplane('YZ').spline([(-0.821, -0.318), (-... | 2 | 8 | 0.0419 |
train_4d34afa2c2fad5ef | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.343, -1.002, -0.242), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, 1.086).lineTo(-0.541, 1.086).lineTo(-0.541, -0.18).threePointArc((0, -0.128), (0.541, -0.18)).lineTo(0.541, 1.086).lineTo(0, 1.086).close().revolve(angleDegrees=90, axisStart=(0... | 10 | 72 | 0.966252 |
train_390108dc1530b342 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.099, 0.058, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1, 0.172).lineTo(-1, 0.012).lineTo(1, 0.012).lineTo(1, 0.172).lineTo(0.6, 0.172).lineTo(0.5, 0.272).lineTo(0.4, 0.172).lineTo(0.3, 0.272).lineTo(0.2, 0.172).lineTo(0.1, 0.272).lineTo(0,... | 3 | 114 | 0.0831 |
train_c29319530664a912 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.123, -0.71, 0.431), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.379, -0.341).lineTo(0.379, -0.008).lineTo(-0.569, -0.008).lineTo(-0.569, 0.123).lineTo(0.379, 0.123).lineTo(0.379, 0.588).lineTo(0.569, 0.588).lineTo(0.569, -0.341).lineTo(0.379, -... | 20 | 313 | 0.482936 |
train_12acf74fc4cc4cc9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.016, -0.31), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.033, -0.021).threePointArc((0, -0.036), (0.033, -0.021)).lineTo(0.023, -0.012).threePointArc((0.028, -0.004), (0.03, 0.005)).lineTo(0.037, 0.005).lineTo(0.037, 0.008).lineTo(0.03, 0.... | 5 | 31 | 0.012211 |
train_a600750de94c8f5a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.095, 0.023, -0.901), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.098, 0.073).threePointArc((-0.096, 0.037), (-0.082, 0.003)).threePointArc((-0.067, -0.026), (-0.061, -0.059)).threePointArc((-0.054, -0.034), (-0.037, -0.014)).lineTo(0.037, -0.0... | 4 | 64 | 0.003002 |
train_3e1a4196fe303dd0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.003, -0.003), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.467, 0.491).lineTo(0.467, 0.491).lineTo(0.467, 1.127).lineTo(0, 0.69).lineTo(-0.467, 1.127).lineTo(-0.467, 0.491).close().revolve(angleDegrees=270, axisStart=(0, 0), axisEnd=(0.397, 0... | 5 | 53 | 0.884786 |
train_b6c2078c5423c6b8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.192, -0.123, 0.317), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.185, 0.2).lineTo(0.2, 0.185).lineTo(0.185, 0.169).lineTo(0.181, 0.165).lineTo(-0.185, -0.2).lineTo(-0.2, -0.185).lineTo(0.165, 0.181).lineTo(0.162, 0.185).lineTo(0.169, 0.185).li... | 6 | 50 | 0.282012 |
train_79e652e28e78ee77 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.45, 0.463, 0.104), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.01, 0.574).lineTo(0.01, 0.736).lineTo(0.65, 0.622).lineTo(0.65, 0.718).lineTo(0, 0.834).lineTo(-0.65, 0.718).lineTo(-0.65, 0.196).lineTo(-0.01, 0.082).lineTo(0.01, 0.082).lineTo(0.6... | 4 | 37 | 0.457875 |
train_1cf7a6e758fa383b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.188, 0.152), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.424).workplane(offset=0.081).circle(0.812).workplane(offset=0.075).circle(0.737).workplane(offset=0.068).circle(0.806).workplane(offset=0.077).circle(0.566).loft()
result = result.cut(... | 11 | 41 | 0.353708 |
train_ca6577e781c2d8a2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.05, 0.102), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.463, 0.296).lineTo(-0.463, -0.296).lineTo(-0.416, -0.296).lineTo(-0.416, 0.249).lineTo(0.416, 0.249).lineTo(0.416, -0.296).lineTo(0.463, -0.296).lineTo(0.463, 0.296).lineTo(-0.463, 0.2... | 2 | 21 | 0.136535 |
train_7288268bd661e67f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.399, -0.371, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(1, 0.773).lineTo(1, 0.13).threePointArc((0.893, 0.057), (0.768, 0.025)).threePointArc((0.722, 0.122), (0.665, 0.212)).threePointArc((0.59, 0.263), (0.546, 0.342)).threePointArc((0.461, ... | 9 | 44 | 0.635242 |
train_58c6e943de0d26d5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0, -0.187), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.229, 0.065).threePointArc((-0.237, 0.001), (-0.229, -0.064)).threePointArc((-0.157, -0.179), (-0.036, -0.236)).lineTo(-0.036, -0.154).threePointArc((0.003, -0.115), (0.042, -0.154)).lin... | 5 | 58 | 0.169428 |
train_950cad09941d4bde | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.348, -0.095, -0.157), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.126, 0.006).threePointArc((0.067, 0.032), (0.126, 0.217)).lineTo(0.032, 0.138).lineTo(-0.126, 0.006).close().extrude(0.203)
result = result.edges().chamfer(0.026)
result = resul... | 6 | 69 | 0.016689 |
train_9b7d1a2106004f59 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.199, 0, 1.055), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.431).workplane(offset=0.443).circle(0.618).workplane(offset=0.408).circle(0.585).workplane(offset=0.41).circle(0.612).loft()
result = result.edges().chamfer(0.262)
result = result.uni... | 26 | 177 | 0.709699 |
train_fb65e122e7c3697d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.338, -0.444, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.6, 1.444).lineTo(-0.6, -0.556).lineTo(0.6, -0.556).lineTo(0.6, 1.444).lineTo(-0.6, 1.444).close().workplane(offset=0.303).moveTo(-0.493, 1.266).lineTo(-0.493, -0.378).lineTo(0.493, -... | 6 | 21 | 0.769436 |
train_dea297615d5892be | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.175, 0.491, 0.247), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.504, 0.669).lineTo(0.504, 0.118).lineTo(0.047, 0.118).lineTo(0.047, -0.339).lineTo(-0.504, -0.339).lineTo(-0.504, 0.669).lineTo(0.504, 0.669).close().extrude(0.689)
result = result... | 27 | 221 | 0.609823 |
train_158875b2285880ab | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.442, -0.12, 0.015), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.423).workplane(offset=0.231).circle(0.399).workplane(offset=0.267).circle(0.399).workplane(offset=0.276).circle(0.379).workplane(offset=0.247).circle(0.379).workplane(offset=0.189)... | 15 | 68 | 0.249994 |
train_c7d8c870ab2823b2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.155, -0.193, -0.098), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.429).lineTo(-0.094, 0.429).lineTo(-0.094, -0.323).lineTo(0.094, -0.323).lineTo(0.094, -0.229).lineTo(0, -0.229).lineTo(0, 0.429).close().extrude(0.232)
result = result.edges().... | 20 | 161 | 0.063257 |
train_f7c1168f396a9737 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.015, 0.432, -0.234), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.766, 0.272).threePointArc((0, 0.026), (-0.766, 0.272)).lineTo(0.766, 0.272).close().extrude(0.487)
result = result.faces('>Z').shell(-0.013)
result = result.union(cq.Workplane(cq... | 6 | 84 | 0.952469 |
train_8fa6762983ed3b2b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.009), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.808, 2).extrude(0.082)
result = result.union(cq.Workplane(cq.Plane(origin=(0, -0.8 + 0.16, 0.073), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.06, 0).lineTo(0.052, 0.03).lineTo(0.03, 0.052).... | 17 | 86 | 0.242881 |
train_2f0cb5e3d93a23a8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.077, 0.084, -0.315), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.821, 1.139).extrude(0.468)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.162, 0.084, -0.102), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.361, 0.456).extrude(0.042))
result = re... | 24 | 170 | 0.204569 |
train_e86dc00a847736e2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.472, 0.007, -0.028), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.292, -0.042).lineTo(-0.297, 0.013).lineTo(0.05, 0.042).lineTo(0.054, -0.006).lineTo(0.296, 0.015).lineTo(0.296, 0.007).lineTo(0.297, 0.001).lineTo(0.294, 0).lineTo(0.055, -0.02).... | 23 | 160 | 0.10526 |
train_26f04ad2844aa4be | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.251, 0.12, -0.486), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.621, 0.593).extrude(0.971)
result = result.union(cq.Workplane(cq.Plane(origin=(0.165, 0, 0.388), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.971).lineTo(0.236, 0.971).lineTo(0.236... | 3 | 21 | 0.805415 |
train_51c9cda2bf0f5fee | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.872, -0.304, -0.337), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.021, 0.123).lineTo(-0.123, -0.021).threePointArc((-0.123, -0.123), (-0.021, -0.123)).lineTo(0.021, -0.081).lineTo(0.123, 0.021).lineTo(0.021, 0.123).close().transformed(offset=(... | 7 | 59 | 0.231523 |
train_b9c20544fdc91398 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.061, 0.195, 0.126), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.32, 0.094).lineTo(0.32, 0.094).lineTo(0.32, -0.094).lineTo(-0.32, -0.094).lineTo(-0.32, 0.094).close().sweep(cq.Workplane('YZ').spline([(0.195, 0.126), (0.088, 0.291), (-0.129, 0... | 43 | 161 | 0.374692 |
train_54bb96d5339f2c60 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.489, -0.734, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.071, -0.018).threePointArc((0, 0.154), (0.071, -0.018)).lineTo(0.207, -0.154).lineTo(-0.207, -0.154).lineTo(-0.071, -0.018).close().sweep(cq.Workplane('XY').spline([(0.489, -0.203), ... | 2 | 14 | 0.078462 |
train_38dead5551d5cfff | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.076, 0.057, 0.303), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.697, 0.012).lineTo(0.697, 0.153).lineTo(0.136, 0.182).lineTo(-0.136, 0.182).lineTo(-0.697, 0.153).lineTo(-0.697, 0.012).lineTo(0.697, 0.012).close().extrude(0.312)
result = result.... | 12 | 128 | 0.09364 |
train_68d3795ae9c2e426 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.146, 0.13, -0.28), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.98, 1.484).extrude(0.776)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.246, 0.299, -0.286), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.26, 0.677).extrude(0.246))
result = result.... | 12 | 131 | 0.570949 |
train_a0ba585d35a69190 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.105, 0, 0.363), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.15, 0.23).threePointArc((-0.264, 0.327), (-0.263, 0.478)).threePointArc((-0.402, 0.365), (-0.52, 0.23)).lineTo(-0.637, 0.313).threePointArc((-0.6, 0.361), (-0.56, 0.407)).threePointArc... | 6 | 47 | 0.684116 |
train_623e12b42211f927 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.296, 0.283, -0.334), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.207, 0.396).extrude(0.335)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.332, 0.311, -0.047), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.014, -0.005).lineTo(-0.014, -0.0... | 13 | 137 | 1.119277 |
train_931c41cd419025f3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.084), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.944, 2).extrude(0.103)
result = result.union(cq.Workplane(cq.Plane(origin=(0.091, -0.166, 0.018), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.163, 0.19).extrude(0.027))
result = result.union(c... | 8 | 32 | 0.342617 |
train_1c112d3180c0164c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.297, 0, -0.605), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.045, -0.034).lineTo(-0.045, 0.034).lineTo(0.045, 0.034).lineTo(0.04, 0.03).lineTo(0.045, 0.03).lineTo(0.045, -0.034).lineTo(0.04, -0.034).lineTo(0.04, -0.002).lineTo(-0.04, -0.002).li... | 16 | 172 | 0.01142 |
train_305002ac19c1789a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.181, 0.003, -0.067), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.107, 0.203).threePointArc((-0.1, 0.22), (-0.084, 0.226)).lineTo(0.084, 0.226).threePointArc((0.1, 0.22), (0.107, 0.203)).lineTo(0.107, -0.203).threePointArc((0.1, -0.22), (0.084, ... | 19 | 157 | 0.197339 |
train_ac1ad6c9e4d4c886 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.022, -0.266, -0.111), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.298, -0.357).threePointArc((-0.298, -0.664), (-0.203, 0)).threePointArc((-0.298, 0.664), (0.298, 0.357)).threePointArc((0.229, 0.138), (0.045, 0)).threePointArc((0.229, -0.138),... | 11 | 34 | 0.38395 |
train_87b8e1cbb7afcb95 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.456, 0.335, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(1, 0.589).lineTo(1, 0.031).lineTo(1, 0.31).lineTo(-1, 0.31).lineTo(-1, 0.589).lineTo(1, 0.589).close().extrude(0.628)
result = result.edges().chamfer(0.06)
result = result.cut(cq.Workpla... | 18 | 182 | 0.324652 |
train_329cc68824f6167b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.339, 0.231, 0.278), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.186, 0.429).lineTo(0.186, 0.429).lineTo(0.378, 0.033).lineTo(-0.378, 0.033).lineTo(-0.186, 0.429).close().extrude(0.378)
result = result.edges().chamfer(0.034)
result = result.uni... | 10 | 102 | 0.149288 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.