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_7bf05705c0de6458 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.472), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.565, 2).extrude(0.979)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.226 + 0.113, 0, -0.673), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.046, 0.159).lineTo(0.075, 0.159).lineTo(0.... | 15 | 118 | 1.122807 |
train_13c78e05b2bc37d0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.667, 0.995, -0.391), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(1.888, 0.129).lineTo(-1.888, 1.598).lineTo(0.863, 1.504).lineTo(1.888, 0.129).close().extrude(1.335)
result = result.edges().fillet(0.263)
result = result.cut(cq.Workplane(cq.Plane(... | 6 | 38 | 1.489197 |
train_a6ae47cb39b8a0bc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.856, -0.5), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.032).sweep(cq.Workplane('YZ').spline([(0.063, -0.61), (0.079, -0.285), (0.062, 0.038), (0.021, 0.194), (-0.023, 0.102), (-0.048, -0.19)]))
| 1 | 3 | 0.001514 |
train_121db695a3ce4fd3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.285, 0.281, -0.208), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.432, -0.647).lineTo(0.432, 0.647).lineTo(0, 0.647).threePointArc((-0.305, 0.521), (-0.432, 0.216)).lineTo(-0.432, -0.216).threePointArc((-0.305, -0.521), (0, -0.647)).lineTo(0.43... | 20 | 124 | 0.989966 |
train_4b87412406641ea0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.999, 0.301, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.127, 0.115).lineTo(-0.133, 0.117).lineTo(-0.182, 0.114).lineTo(-0.211, 0.111).lineTo(0.355, -0.176).lineTo(0.489, -0.244).lineTo(0.511, -0.257).lineTo(-0.511, 0.089).lineTo(-0.505, 0... | 1 | 17 | 0.038321 |
train_3e2ebd0e70c56161 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.825, 0.772, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1, -0.075).lineTo(-1, 1.531).lineTo(0.54, 1.531).lineTo(0.54, 1.612).lineTo(-0.924, 1.612).lineTo(-0.924, 1.648).lineTo(0.54, 1.648).lineTo(0.54, 1.725).lineTo(1, 1.725).lineTo(1, -0.07... | 22 | 206 | 3.890745 |
train_e77a051f176d592d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.072, -0.641, -0.579), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.568, 1.422).threePointArc((-0.768, 1.339), (-0.851, 1.139)).lineTo(-0.851, 0.004).threePointArc((-0.768, -0.197), (-0.568, -0.28)).lineTo(0.568, -0.28).threePointArc((0.768, -0.1... | 8 | 61 | 3.140679 |
train_438d81c81ed400a5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.219, 0.202, -0.715), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.226, 0.409).lineTo(-0.226, 0.38).threePointArc((-0.235, 0.358), (-0.257, 0.349)).lineTo(-0.285, 0.349).lineTo(-0.285, 0.088).lineTo(-0.257, 0.088).threePointArc((-0.235, 0.079), ... | 6 | 74 | 0.067282 |
train_6fd4e3a0b09716e4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.346, -0.49, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.68, -0.272).threePointArc((-0.796, 1.127), (0.594, 1.319)).threePointArc((0.796, -0.15), (-0.68, -0.272)).close().workplane(offset=0.2).moveTo(-0.495, -0.056).threePointArc((-0.58, 0.... | 14 | 66 | 0.795074 |
train_b557a6dd3be9b300 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.066), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.337, -0.349).threePointArc((-0.328, -0.273), (-0.302, -0.2)).threePointArc((-0.238, -0.111), (-0.149, -0.047)).lineTo(-0.258, -0.047).threePointArc((-0.281, -0.068), (-0.302, -0.091)).thr... | 6 | 29 | 0.189465 |
train_4e750ae36554671a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.4, 0.48, -0.352), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.154, 0.088).threePointArc((0.643, -0.082), (0.449, 0.71)).threePointArc((0.431, 0.715), (0.414, 0.72)).threePointArc((0.293, 0.696), (0.173, 0.717)).threePointArc((-0.02, 0.908), (-... | 23 | 151 | 0.596475 |
train_4ec807c1b1721fa2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.939, 0.793, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.075, -0.043).lineTo(0.075, 0.061).lineTo(-0.057, 0.061).lineTo(-0.057, -0.043).lineTo(-0.075, -0.043).lineTo(-0.075, -0.061).lineTo(0.075, -0.061).lineTo(0.075, -0.043).close().sweep(c... | 1 | 8 | 0.016737 |
train_88309363c0609e73 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.256, -0.638), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.571, 1.487).extrude(1.276)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.187, -0.499, 0.365), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.883, 0.705).extrude(0.28))
result = result... | 12 | 79 | 2.325679 |
train_ae32b4f1f39e73fe | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.039, 0.073, 0.742), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.008, 0.014).threePointArc((0.066, 0.145), (-0.066, 0.088)).threePointArc((-0.043, 0.036), (0.008, 0.014)).close().extrude(0.146)
result = result.union(cq.Workplane(cq.Plane(origin=... | 3 | 26 | 0.166781 |
train_e690f4368872fed8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.539, -1, -0.207), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.63, 0.902).lineTo(0.315, 1.085).threePointArc((0, 1.169), (-0.315, 1.085)).threePointArc((-0.63, 0.538), (-0.315, -0.007)).threePointArc((0, -0.092), (0.315, -0.007)).lineTo(0.63, 0.... | 25 | 142 | 1.169096 |
train_6b1af9abf0880607 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.601, -0.032), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.607, -0.399).lineTo(0.607, -0.064).lineTo(0.591, -0.064).lineTo(0.591, 0.064).lineTo(0.607, 0.064).lineTo(0.607, 0.208).lineTo(0.591, 0.208).lineTo(0.591, 0.336).lineTo(0.607, 0.336)... | 7 | 34 | 0.21994 |
train_593cf9e4636b984e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.522, 0.061, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.05, 0.569).lineTo(-0.05, -0.478).lineTo(0.05, -0.478).lineTo(0.05, 0.569).lineTo(-0.05, 0.569).close().workplane(offset=0.066).moveTo(-0.024, 0.299).lineTo(-0.024, -0.208).lineTo(0.02... | 2 | 11 | 0.009062 |
train_5b9a2e75f3c48711 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.402, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.201, 0.136).lineTo(-0.201, -0.097).lineTo(-0.191, -0.097).lineTo(-0.191, -0.126).lineTo(-0.14, -0.126).lineTo(-0.14, -0.136).lineTo(0.201, -0.136).lineTo(0.201, 0.101).lineTo(0.191, 0.1... | 3 | 22 | 0.094525 |
train_1ddd5f15a7013b36 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1, -0.127).lineTo(1, 0.127).lineTo(-1, 0.127).lineTo(-1, -0.127).lineTo(1, -0.127).close().revolve(angleDegrees=90, axisStart=(1, -0.127), axisEnd=(1, 0.127))
result = result.edges().chamfer(0.0... | 20 | 156 | 0.667147 |
train_7e530e866062a1d4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.64, -0.143, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.272, 0.334).lineTo(-0.271, 0.332).lineTo(-0.269, 0.331).lineTo(0.283, -0.346).lineTo(-0.116, -0.043).lineTo(-0.279, 0.337).lineTo(-0.28, 0.338).lineTo(-0.283, 0.346).lineTo(-0.272, 0.... | 1 | 10 | 0.133599 |
train_0230eec54d3ab863 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.05, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.813, 1.003).extrude(0.663)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0.05, -0.351), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.446, 0.717).extrude(0.269))
result = result.union(cq... | 12 | 45 | 0.712329 |
train_720972145e0529df | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.03, -0.186, -0.12), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.209, 0.127).lineTo(-0.209, 0.072).threePointArc((-0.19, 0.028), (-0.146, 0.01)).lineTo(0.044, 0.01).lineTo(0.165, 0.043).threePointArc((0.195, 0.061), (0.209, 0.094)).lineTo(0.209... | 8 | 80 | 0.045858 |
train_622face2de3fa4a8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.2, -0.002, -0.854), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.146, 0.005).lineTo(0.146, 0.008).lineTo(-0.051, 0.008).lineTo(-0.051, 0.013).lineTo(-0.069, 0.013).lineTo(-0.069, 0.006).lineTo(-0.082, 0.006).lineTo(-0.082, 0.001).lineTo(-0.062, ... | 10 | 67 | 0.003042 |
train_b36f471847a38e40 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.496), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.808).workplane(offset=0.302).circle(0.831).workplane(offset=0.286).circle(0.605).workplane(offset=0.311).circle(0.963).workplane(offset=0.298).circle(0.65).workplane(offset=0.298).circle(0... | 12 | 26 | 1.484992 |
train_c309dd4f979105c5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.011, 0.011, 0.378), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.861, -0.989).threePointArc((0.883, -0.936), (0.936, -0.915)).lineTo(0.936, 0.861).threePointArc((0.989, 0.989), (0.861, 0.936)).lineTo(-0.915, 0.936).threePointArc((-0.936, 0.883)... | 14 | 16 | 2.597402 |
train_7b15d205d40f3463 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.032, -0.853), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.972, -0.203).threePointArc((0, -0.968), (0.972, -0.203)).threePointArc((0.505, 0.032), (0.972, 0.267)).threePointArc((0, 1.033), (-0.972, 0.267)).threePointArc((-0.505, 0.032), (-0.9... | 8 | 118 | 3.35614 |
train_922258c8426dde60 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.561, -0.001, 0.02), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.006, -0.104).lineTo(-0.03, -0.104).lineTo(-0.037, -0.097).lineTo(-0.037, -0.104).lineTo(-0.047, -0.104).lineTo(-0.047, 0.108).lineTo(0.031, 0.108).lineTo(0.031, 0.019).lineTo(0.04... | 3 | 62 | 0.059794 |
train_33c1ac4a77f650ef | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.395, 0.209, -0.894), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.855, 0.927).extrude(0.185)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.395, 0.209, -0.923), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.516, 0.584).extrude(0.03))
result = ... | 27 | 204 | 0.502011 |
train_c305eb33b1cc5844 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.861, 0.201), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.188).sweep(cq.Workplane('YZ').spline([(-0.861, 0.201), (-0.61, -0.037), (-0.359, -0.116), (-0.108, -0.037), (0.143, 0.201)]))
result = result.edges().chamfer(0.1)
result = result.unio... | 11 | 36 | 0.10324 |
train_854d6832cfc76db9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.871), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.798).extrude(1.742)
result = result.edges().fillet(0.151)
| 2 | 26 | 2.695984 |
train_9685b203110c8556 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.14), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.108, 0.774).lineTo(0.108, -0.774).lineTo(-0.108, -0.774).lineTo(-0.108, 0.774).lineTo(0.108, 0.774).close().workplane(offset=0.035).moveTo(0.13, 0.928).lineTo(0.13, -0.928).lineTo(-0.13, -0... | 7 | 17 | 0.083162 |
train_e64276bb78d4ae99 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.567, -0.46, -0.116), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.125, 1.367).threePointArc((0.018, 1.46), (0.153, 1.354)).threePointArc((0.299, 0.444), (0.091, -0.453)).threePointArc((-0.048, -0.54), (-0.187, -0.453)).threePointArc((-0.299, 0.... | 3 | 20 | 1.114712 |
train_d9e591a16cd568b9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.199, -0.14, -0.568), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.511, 0.727).lineTo(0.511, -0.129).lineTo(-0.511, -0.129).lineTo(-0.511, 0.727).lineTo(0.511, 0.727).close().extrude(1.317)
result = result.edges().fillet(0.087)
result = result.un... | 33 | 150 | 0.648123 |
train_d3573d23df6c2ef0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.163, -0.306, -0.384), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.222, 1.388).extrude(0.769)
result = result.faces('>Z').shell(-0.031)
result = result.union(cq.Workplane(cq.Plane(origin=(0.601, -0.488, 0.058), normal=(0, 0, 1), xDir=(1, 0, 0))).r... | 4 | 26 | 0.276127 |
train_49f55266a09dc1b0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.103, -0.819), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.846, 0.776).extrude(0.629)
result = result.union(cq.Workplane(cq.Plane(origin=(0.059, 0.007, -0.941), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.05, 0.204).lineTo(0.05, -0.123).lineTo... | 16 | 79 | 0.277343 |
train_b3a2703e87a3eb25 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.149, 0.5), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.5, 0.087).lineTo(-0.5, 0.21).lineTo(0.5, 0.21).lineTo(0.5, 0.087).lineTo(-0.5, 0.087).close().revolve(angleDegrees=270, axisStart=(-0.5, 0.087), axisEnd=(-0.5, 0.149))
result = result.... | 12 | 77 | 0.221554 |
train_dd8df5cc0652ed36 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.469, 0.002), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.055, -0.531).lineTo(0.059, -0.492).lineTo(0.093, -0.177).lineTo(0.165, 0.492).lineTo(0.169, 0.531).lineTo(0.126, 0.482).lineTo(-0.059, 0.273).lineTo(-0.101, -0.037).lineTo(0.054, -0.1... | 3 | 7 | 0.000021 |
train_4b9aa54779445dca | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.852, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.645).workplane(offset=0.4).circle(0.703).workplane(offset=0.387).circle(0.566).workplane(offset=0.3).circle(0.6).workplane(offset=0.4).circle(0.553).workplane(offset=0.365).circle(0.575).l... | 7 | 47 | 2.088968 |
train_b89f576050381426 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.333, 0.109, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.161, 0.056).lineTo(-0.161, 1.109).lineTo(0.161, 1.109).lineTo(0.161, -0.891).lineTo(-0.076, -0.891).lineTo(-0.146, -0.822).lineTo(-0.161, 0.056).close().extrude(0.556)
result = result... | 14 | 123 | 0.339573 |
train_a4d0eed93e70bb05 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, 0.169, -0.37), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.21, 0.231).lineTo(-0.21, 0.022).lineTo(0.21, 0.022).lineTo(0.21, 0.231).lineTo(-0.21, 0.231).close().revolve(angleDegrees=270, axisStart=(-0.21, 0.231), axisEnd=(-0.21, 0.022))
re... | 8 | 47 | 0.070927 |
train_dce47fa9273d4baf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.478, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.882, 1.302).extrude(0.862)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.42, 0.033, -0.79), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.997, 1.109).extrude(0.443))
result = result.uni... | 10 | 87 | 0.80954 |
train_033682f8a7d016ca | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.387, 1.676, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.676).lineTo(0.697, 0.676).lineTo(0.458, 1.346).threePointArc((0, 1.697), (-0.458, 1.346)).lineTo(-0.697, 0.676).lineTo(0, 0.676).close().revolve(angleDegrees=90, axisStart=(0, 0.676... | 15 | 37 | 0.786496 |
train_05ba2122fdbe0404 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1.101, -0.793, -0.007), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.888, 2.131).lineTo(0.39, 1.784).lineTo(-0.479, 0.385).lineTo(-0.888, 0.092).lineTo(-0.191, 0.21).lineTo(0.211, 0.493).lineTo(0.636, 0.79).lineTo(-0.123, 0.616).lineTo(0.888, 2.13... | 2 | 47 | 0.997089 |
train_967dacdb8177478b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.086, -0.06, -0.763), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.968, 0.968).extrude(1.563)
result = result.faces('>Z').shell(-0.096)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.021, 0.05, 0.782), normal=(0, 0, 1), xDir=(1, 0, 0))).cir... | 17 | 188 | 0.838979 |
train_e49057d345af8465 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.006, -0.051, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.401, -1.009).threePointArc((0, -0.813), (0.401, -1.009)).lineTo(0.283, 0.785).threePointArc((0, 1.05), (-0.283, 0.785)).lineTo(-0.401, -1.009).close().extrude(0.881)
result = result... | 18 | 301 | 1.324759 |
train_e0419d544dd06a53 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.628, -0.328, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.053, -0.373).threePointArc((-0.072, 0.127), (-0.053, 0.628)).lineTo(0.072, 0.628).lineTo(0.072, -0.373).lineTo(-0.053, -0.373).close().revolve(angleDegrees=180, axisStart=(-0.053, 0.... | 10 | 58 | 0.244504 |
train_6914dd217f4dc1bc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.567, 0, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.001, 0.342).lineTo(-0.11, 0.342).lineTo(-0.11, 0.249).lineTo(-0.001, 0.249).lineTo(-0.001, 0.231).lineTo(0.11, 0.231).lineTo(0.11, 0.433).lineTo(0.092, 0.433).lineTo(0.092, 0.342).lineTo(0... | 3 | 29 | 0.040067 |
train_b57645c32acdec89 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.153), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.848, 2).extrude(0.307)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.153, -1.453), normal=(0, 1, 0), xDir=(1, 0, 0))).moveTo(-0.047, -0.044).lineTo(-0.047, 0.044).lineTo(-0.03, 0.04... | 17 | 84 | 0.735492 |
train_5e9be45cb5d1d5b4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.029, 0.15, 0.124), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.163, 0.565).lineTo(-0.49, 0).lineTo(-0.473, -0.01).lineTo(-0.163, -0.01).lineTo(-0.163, -0.188).lineTo(0.147, -0.01).lineTo(-0.008, -0.278).lineTo(-0.163, -0.547).lineTo(-0.163, -0... | 20 | 69 | 0.591658 |
train_f392ba4e6977cad4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1, -0.064), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.36, 0.191).lineTo(-0.278, 0.191).lineTo(-0.278, 0.066).lineTo(0.36, 0.066).lineTo(0.36, -0.191).lineTo(0.278, -0.191).lineTo(0.278, -0.066).lineTo(-0.278, -0.066).lineTo(-0.278, -0.191)... | 6 | 34 | 0.051497 |
train_94a5e9bbf0d5bdb5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.372, -0.137, -0.395), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.257, 1.679).extrude(0.605)
result = result.faces('<Z').shell(-0.033)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.669, 0.836, -0.146), normal=(0, 0, 1), xDir=(1, 0, 0))).... | 8 | 60 | 0.487672 |
train_a0611ebec4f8b50d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.301, 0.5, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(1, 0.301).threePointArc((0.816, 0.878), (0.333, 1.243)).threePointArc((-0.346, 1.239), (-0.866, 0.801)).threePointArc((-1, 0.301), (-0.866, -0.199)).threePointArc((0.259, -0.665), (1, 0.30... | 10 | 48 | 2.413796 |
train_639ec9ebe46bfe7b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.159, -0.048, 0.054), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.588, 0.683).extrude(0.267)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.075, -0.096, 0.224), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.076, 0.82).extrude(0.028))
result = resu... | 21 | 136 | 0.966458 |
train_e7880b44bbf8780f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.011, -0.119, 0.487), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.462, 0.304).threePointArc((0.416, 0.366), (0.359, 0.417)).lineTo(-0.18, -0.06).lineTo(-0.399, -0.253).lineTo(-0.455, -0.302).threePointArc((-0.462, -0.41), (-0.354, -0.417)).lineT... | 4 | 23 | 0.247538 |
train_42f92df149bd4274 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.077, 0.063, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.07, 1.137).extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.239, -0.566, -0.726), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.16, 0.13).extrude(0.289))
result = result.ed... | 11 | 101 | 1.923278 |
train_27c6d7012c1bd58a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.37, 0.023, -0.057), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.26, 0.767).extrude(0.271)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.428, -0.461, 0.081), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.607, 0.219).extrude(0.049))
result = r... | 20 | 113 | 0.218284 |
train_ecc5c85c546b8640 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.007, -0.021, -0.236), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.993, -0.025).lineTo(0.688, 0.712).lineTo(-0.001, 0.998).lineTo(-0.668, 0.671).lineTo(-1.007, -0.026).lineTo(-0.701, -0.67).lineTo(-0.007, -0.955).lineTo(0.664, -0.691).close().cen... | 17 | 131 | 0.835681 |
train_39c9a510a23ff958 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.08, -1, -0.183), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.396, 0.201).threePointArc((0.048, 0.095), (0.396, -0.201)).lineTo(0.103, 0.201).lineTo(-0.396, 0.201).close().sweep(cq.Workplane('YZ').spline([(-0.477, -0.454), (0.06, -0.268), (0.59... | 5 | 22 | 0.046649 |
train_d4419d540894c7c9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.109, 0, -0.992), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.783, 1.542).extrude(1.654)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.307, 0.17, -0.366), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.264).extrude(1.054))
result = result.union... | 11 | 44 | 4.011045 |
train_fe6c1ae82a8a7234 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.495, -0.242), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.421).sweep(cq.Workplane('YZ').spline([(-0.039, -0.935), (0.093, -0.928), (0.226, -0.894), (0.358, -0.758), (0.49, -0.516), (0.623, -0.381), (0.755, -0.346), (0.887, -0.34)]))
result ... | 6 | 30 | 0.548548 |
train_fc8aeff86be4ba9e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.024, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.748, 0.513).extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.374, -0.053, -0.657), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.05, 0.051).extrude(0.336))
result = result.cut(c... | 8 | 84 | 0.701861 |
train_36a9819c10538b47 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.173, -0.126, -0.017), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.815, -0.739).lineTo(0.824, -0.728).lineTo(0.827, 0.74).lineTo(-0.786, 0.748).close().moveTo(-0.311, 0.129).lineTo(-0.141, 0.13).lineTo(-0.141, 0.288).lineTo(-0.311, 0.29).close()... | 10 | 118 | 0.196918 |
train_5d564cf7457fe637 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.373, -0.784, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-1, 0.124).lineTo(-0.992, 0.124).lineTo(-0.992, 0.287).threePointArc((0.027, 0.399), (1, 0.724)).threePointArc((0.432, 0.36), (-0.2, 0.124)).threePointArc((-0.597, 0.048), (-1, 0.022)).... | 5 | 26 | 0.492026 |
train_5a6309507b7783fc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.5, 0, 0), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.5, -0.543).lineTo(-0.5, 0.543).lineTo(0.5, 0.543).lineTo(0.5, -0.543).lineTo(-0.5, -0.543).close().revolve(angleDegrees=360, axisStart=(-0.5, -0.543), axisEnd=(-0.5, 0.543))
result = result... | 8 | 39 | 3.322695 |
train_1be01abfd7f05801 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.433, -0.375), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.329, 0.27).extrude(0.323)
result = result.union(cq.Workplane(cq.Plane(origin=(0.03, 0.517, -0.082), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.012).extrude(0.458))
result = result.edges... | 5 | 40 | 0.032588 |
train_1e1f8c343449e59c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.201, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, -0.151).threePointArc((0.248, -0.048), (0.351, 0.2)).threePointArc((0.291, 0.398), (0.131, 0.527)).threePointArc((0.08, 0.543), (0.026, 0.551)).threePointArc((0, 0.552), (-0.026, 0.551)).... | 6 | 47 | 0.781573 |
train_a4be4fbe61917f27 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.028, -0.529, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.158, 0.091).lineTo(0.053, 0.091).lineTo(0.105, 0).lineTo(0.053, -0.091).lineTo(0, -0.182).lineTo(-0.053, -0.091).lineTo(-0.105, 0).lineTo(-0.158, 0.091).lineTo(0, 0.182).lineTo(0.158,... | 1 | 11 | 0.021432 |
train_3213a819b6a3e144 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.728, 0.23, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.693, -0.272).lineTo(-0.807, 0.692).lineTo(-0.662, 0.786).lineTo(0.807, 1.728).lineTo(0.807, -0.272).lineTo(0.693, -0.272).close().workplane(offset=0.355).moveTo(0.537, -0.045).lineTo(-0... | 8 | 42 | 0.532273 |
train_409fc5871242ecef | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.866, 0.013), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-1.013, 1.026).lineTo(-1.013, 0.652).lineTo(-0.296, 0.652).lineTo(-0.081, 0.323).lineTo(0.667, 0.323).lineTo(1.013, 0.697).lineTo(0.105, 0.697).lineTo(0.105, 0.981).lineTo(1.013, 0.981).... | 7 | 86 | 1.912827 |
train_811380bd7aff9ef8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.877), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.19, 2).extrude(1.755)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.057, -0.315, -0.237), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.453, -0.756).lineTo(-0.453, 0.126).lineTo(0.339... | 11 | 87 | 3.530606 |
train_b27cbdf000ecc5f1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.443, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.959, -0.254).lineTo(0.959, 1.14).lineTo(-0.959, 1.14).lineTo(-0.959, -0.254).lineTo(0.959, -0.254).close().extrude(2)
result = result.edges().fillet(0.208)
result = result.cut(cq.Workplane... | 10 | 56 | 4.845903 |
train_2782a284065d189b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.028, 0.113, -0.128), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.132, 1.02).lineTo(0.132, -0.965).lineTo(0, -0.965).lineTo(0, 0.556).lineTo(-0.132, 0.556).lineTo(-0.132, 0.888).lineTo(0, 0.888).lineTo(0, 1.02).lineTo(0.132, 1.02).close().workpl... | 6 | 44 | 0.076446 |
train_a43e65c84e996195 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.255, -0.533), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.851, 1.49).extrude(1.066)
result = result.faces('>Z').shell(-0.043)
result = result.union(cq.Workplane(cq.Plane(origin=(0.249, 0.723, -0.076), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.... | 5 | 21 | 0.500248 |
train_f30a84523096fc50 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.272, -0.505), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.811, 0.709).lineTo(0.16, 1.255).lineTo(0.085, 1.16).lineTo(-0.125, 0.865).lineTo(-0.383, 0.455).lineTo(-0.612, 0.026).lineTo(-0.765, -0.308).lineTo(-0.811, -0.421).lineTo(-0.015, -0.7... | 8 | 180 | 1.971492 |
train_aeb317e63e428907 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.265, -0.051, -0.325), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.47, 1.022).extrude(0.616)
result = result.union(cq.Workplane(cq.Plane(origin=(0.265, -0.051, 0.288), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.319).extrude(0.054))
result = result... | 13 | 103 | 0.636186 |
train_e007fbcb85da6a2e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.063, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.464, 1.414).extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.731, -0.299, 0.044), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.063).extrude(0.308))
result = result.union(cq.W... | 12 | 54 | 3.758898 |
train_23e979f375442645 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.042), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.361, 2).extrude(0.063)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.262, 0.609, 0.021), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.104, 0.144).extrude(0.02))
result = result.cut(cq.... | 9 | 40 | 0.133407 |
train_57b107ddc0a494b5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.14), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.5, 2).extrude(0.174)
result = result.union(cq.Workplane(cq.Plane(origin=(0.06, 0.066, 0.033), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.045).extrude(0.053))
result = result.union(cq.Workpla... | 7 | 29 | 0.457228 |
train_91190fe492d84a96 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.477, 0.391, -0.292), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.435, 0.475).lineTo(0.435, 0.475).lineTo(0.435, 0.022).lineTo(-0.435, 0.022).lineTo(-0.435, 0.475).close().extrude(0.924)
result = result.union(cq.Workplane(cq.Plane(origin=(0.26,... | 29 | 173 | 0.615432 |
train_539571203f04d955 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.165, -0.077, -0.867), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.609, 0.463).extrude(0.01)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.05, -0.046, -0.852), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.148, 0.452).lineTo(-0.148, -0.422... | 7 | 72 | 0.261438 |
train_4cd01f9c93ee4cc6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.035, -0.041, 0.643), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.982).workplane(offset=0.506).circle(1.01).workplane(offset=0.44).circle(0.734).loft()
result = result.edges().chamfer(0.121)
result = result.faces('<Y').shell(-0.059)
result = res... | 22 | 37 | 1.261767 |
train_fe345c2c14c61353 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.698), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1, 0.633).lineTo(1, -0.567).lineTo(-0.189, -0.567).lineTo(-0.189, -0.628).lineTo(-0.434, -0.628).lineTo(-0.434, -0.567).lineTo(-0.603, -0.567).lineTo(-0.603, -0.633).lineTo(-1, -0.633).lineT... | 17 | 111 | 2.260821 |
train_06aae938c0b09e63 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.453, 0.023, -0.171), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.156, 0.157).lineTo(0.156, -0.145).lineTo(0.046, -0.145).threePointArc((0.025, -0.157), (0.003, -0.145)).lineTo(-0.156, -0.145).lineTo(-0.156, 0.11).lineTo(-0.156, 0.129).threePoi... | 20 | 115 | 0.133164 |
train_9748ca06713647e5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.048, -0.055, -0.413), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.048, 0.117).threePointArc((0, 0.047), (-1.048, 0.117)).lineTo(1.048, 0.117).close().revolve(angleDegrees=270, axisStart=(-1.048, 0.117), axisEnd=(1.048, 0.117))
result = result.c... | 12 | 64 | 0.02627 |
train_e53202c15fec2a5e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.133, -0.763), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.237, 0.132).lineTo(0, 0.132).lineTo(0, 0.014).lineTo(0.237, 0.014).lineTo(0.237, -0.105).lineTo(-0.237, -0.105).lineTo(-0.237, 0.132).close().revolve(angleDegrees=270, axisStart=(-0.... | 4 | 38 | 0.054792 |
train_a7a82bfa345e0aab | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.051), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.627).extrude(0.069)
result = result.union(cq.Workplane(cq.Plane(origin=(0.414, 0.255, 0.018), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.071).extrude(0.018))
result = result.union(cq.Wor... | 8 | 20 | 0.201356 |
train_b528c449111f9171 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.01, 0.02, -0.325), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.26, 1.205).extrude(0.65)
result = result.faces('>Z').shell(-0.057)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.064, 0.764, -0.26), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0... | 9 | 129 | 0.340642 |
train_134f78bc7b8a2456 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.862, -0.147, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.424, 0.488).lineTo(-0.033, 0).lineTo(-0.269, -0.251).threePointArc((-0.381, -0.317), (-0.338, -0.324)).threePointArc((-0.3, -0.347), (-0.273, -0.381)).threePointArc((-0.257, -0.434),... | 1 | 10 | 0.854778 |
train_41d2312478d93424 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.618, 0.232, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.381, -0.381).lineTo(-0.191, -0.191).lineTo(-0.191, 0.191).lineTo(0.191, -0.191).lineTo(0.191, 0.191).lineTo(0.381, 0.381).lineTo(-0.381, 0.381).lineTo(-0.381, -0.381).close().sweep(c... | 4 | 19 | 0.095867 |
train_38be52029ea6c8d1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.056, -0.357, 0.407), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.593, 0.379).threePointArc((0.516, 0.544), (0.485, 0.723)).lineTo(-0.485, 0.723).threePointArc((-0.516, 0.544), (-0.593, 0.379)).lineTo(-0.593, -0.267).lineTo(-0.593, -0.612).lineT... | 32 | 254 | 0.797516 |
train_f9e0a601209376d5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.615), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1, 0.901).lineTo(-1, -0.901).lineTo(0.099, -0.901).threePointArc((1, 0), (0.099, 0.901)).lineTo(-1, 0.901).close().workplane(offset=0.044).moveTo(-0.626, 0.564).lineTo(-0.626, -0.564).line... | 4 | 28 | 0.276042 |
train_558d5e6a2a6393da | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.554, 0, 0.597), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.403, -0.189).lineTo(-0.403, -0.163).lineTo(0, -0.163).lineTo(0, 0.074).lineTo(-0.403, 0.074).lineTo(-0.403, 0.086).lineTo(0, 0.086).lineTo(0, 0.176).lineTo(-0.403, 0.176).lineTo(-0.4... | 3 | 88 | 0.06915 |
train_d06b6643a028f176 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.147, 0, -0.572), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.706, 0.854).extrude(1.144)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.176, 0.06, -0.092), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.079).extrude(0.12))
result = result.edges(... | 18 | 117 | 1.227491 |
train_224ecdc64fcd2e92 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.324, -0.055, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.616, 0.048).lineTo(-0.616, 0.069).lineTo(-0.499, 0.069).lineTo(-0.499, 0.167).lineTo(-0.324, 0.167).lineTo(-0.324, 0.069).lineTo(-0.204, 0.069).lineTo(-0.204, 0.167).lineTo(-0.028, 0... | 6 | 83 | 0.110279 |
train_94ff3d8d40149d62 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.225, -0.232, -0.473), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.401, 1.537).extrude(1.308)
result = result.faces('>Z').shell(-0.057)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.045, -0.712, -0.835), normal=(0, 0, 1), xDir=(1, 0, 0))).... | 17 | 21 | 0.791661 |
train_6f1b402193155ed2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.387, -0.157, -0.469), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.107, 0.29).threePointArc((0.057, 0.304), (0.005, 0.309)).lineTo(0.005, 0.186).threePointArc((-0.13, 0.133), (-0.186, 0)).lineTo(-0.22, 0).threePointArc((-0.154, -0.157), (0.005, ... | 8 | 56 | 0.320335 |
train_14fb8baaef21b8f5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.029, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.816, 0.058).lineTo(-0.816, -0.072).lineTo(0.816, -0.072).lineTo(0.816, 0.058).lineTo(0.734, 0.14).lineTo(0.653, 0.058).lineTo(0.489, 0.058).lineTo(0.408, 0.14).lineTo(0.326, 0.058).lineT... | 11 | 185 | 0.474573 |
train_cc258dc4401e073c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.566, 1), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.321).sweep(cq.Workplane('YZ').spline([(0.566, -0.446), (0.726, -0.439), (0.886, -0.402), (1.046, -0.254), (1.206, 0.01), (1.366, 0.158), (1.526, 0.196), (1.686, 0.203)]))
result = result.ed... | 3 | 8 | 0.013233 |
train_fad61c7fa0e184e3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.094, -0.383, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.806, -0.097).lineTo(-1, -0.097).lineTo(-1, 0.097).lineTo(1, 0.097).lineTo(1, -0.097).lineTo(0.806, -0.097).close().sweep(cq.Workplane('XY').spline([(0.094, -0.204), (0.213, -0.29), (0... | 5 | 31 | 0.142871 |
train_8cff1121a087857d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.54, 0.173, -0.136), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.363, -0.457).threePointArc((0.642, 0.073), (0.363, 0.603)).lineTo(0.083, 0.603).lineTo(-0.335, 0.603).lineTo(-0.363, 0.603).threePointArc((-0.642, 0.073), (-0.363, -0.457)).lineTo(... | 21 | 117 | 2.005269 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.