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_87f437707add4f3b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.824, 0, 0.098), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.174).workplane(offset=0.078).circle(0.161).workplane(offset=0.096).circle(0.176).workplane(offset=0.097).circle(0.166).workplane(offset=0.093).circle(0.174).loft()
result = result.unio... | 12 | 129 | 0.094255 |
train_f376eeeee3714e8e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 1, -0.251), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, -0.917).lineTo(0.55, -0.917).lineTo(0.55, -0.771).lineTo(0.11, -0.771).lineTo(0.11, 0.11).lineTo(0, 0.11).lineTo(0, 0.257).lineTo(0.11, 0.257).lineTo(0.11, 0.917).lineTo(-0.11, 0.917).lin... | 1 | 18 | 0.43573 |
train_29311020df6f7e85 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.418, 0.373, 0.192), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.296).sweep(cq.Workplane('XY').spline([(0.418, -0.832), (0.533, -0.231), (0.402, 0.361), (0.084, 0.69), (-0.286, 0.617), (-0.551, 0.173)]))
result = result.edges().chamfer(0.091)
res... | 8 | 64 | 0.553806 |
train_6d69e7a8e9fd802a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.194, -0.416), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.4).extrude(0.832)
result = result.faces('>Z').shell(-0.077)
result = result.union(cq.Workplane(cq.Plane(origin=(0.127, 0.694, 0.025), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.201)... | 4 | 64 | 0.611545 |
train_d5e23e7d1fd1b618 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.353, -1.427, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.319, 1.917).threePointArc((-0.358, 1.824), (-0.451, 1.785)).lineTo(-0.451, 1.147).threePointArc((-0.358, 1.108), (-0.319, 1.015)).lineTo(0.319, 1.015).threePointArc((0.358, 1.108), (0... | 12 | 79 | 1.97402 |
train_9a6f4360aa92db8f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.006, -0.122, -0.125), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.975, 0.01).lineTo(0.482, 0.835).lineTo(-0.496, 0.841).lineTo(-0.988, 0.014).lineTo(-0.502, -0.845).lineTo(0.479, -0.878).close().rect(0.519, 0.4).extrude(0.25)
result = result.cut... | 12 | 86 | 0.431271 |
train_58fbc222f2915a27 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.473, -0.085, -0.157), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.527, 0.158).lineTo(0.527, 0.158).lineTo(0.527, 0.012).lineTo(-0.527, 0.012).lineTo(-0.527, 0.158).close().extrude(0.263)
result = result.edges().fillet(0.021)
result = result.un... | 5 | 76 | 0.077248 |
train_f720e2610641da82 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.33, -0.381, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.688).lineTo(-1, 0.074).lineTo(1, 0.074).lineTo(1, 0.688).lineTo(-1, 0.688).close().extrude(0.66)
result = result.edges().fillet(0.077)
result = result.cut(cq.Workplane(cq.Plane(ori... | 7 | 115 | 0.793375 |
train_1276d64764151497 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.53, -0.057, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.056, 0.47).lineTo(0.056, 0.423).lineTo(0.001, 0.423).lineTo(0.038, -0.326).threePointArc((0.054, -0.342), (0.04, -0.36)).lineTo(0.041, -0.381).lineTo(-0.015, -0.383).lineTo(-0.056, 0.44... | 8 | 97 | 0.008323 |
train_4c0dba2dfe54f296 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.102, -0.538), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.934).extrude(1.27)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.244, -0.458, -0.24), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.822, 0.221).extrude(0.586))
result = result.un... | 11 | 35 | 1.970238 |
train_e8fe24b6bcd3638f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.261, -0.532, -0.675), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.385, 0.748).lineTo(-0.385, 0.748).lineTo(0.385, 0.068).lineTo(0.385, 0.748).close().extrude(0.606)
result = result.edges().fillet(0.111)
result = result.cut(cq.Workplane(cq.Plane... | 21 | 90 | 0.196312 |
train_b07b9aed9d46a0d4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.015, -0.112, -0.348), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, 0.829).lineTo(-0.178, 0.03).lineTo(-0.178, -0.547).lineTo(-0.307, -0.547).lineTo(-0.357, -0.77).lineTo(0.357, -0.77).lineTo(0.307, -0.547).lineTo(0.178, -0.547).lineTo(0.178, 0.... | 6 | 99 | 0.548803 |
train_393dcac7f9ca47db | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.081, -0.837, -0.113), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.875, 0.284).threePointArc((-0.883, 0.28), (-0.887, 0.272)).lineTo(-0.887, -0.272).threePointArc((-0.883, -0.28), (-0.875, -0.284)).lineTo(0.875, -0.284).threePointArc((0.883, -... | 8 | 47 | 0.548916 |
train_22c8fde395168d71 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.928).workplane(offset=0.442).circle(0.727).workplane(offset=0.517).circle(0.414).workplane(offset=0.514).circle(0.118).loft()
result = result.union(cq.Workplane(cq.Plane(origin=(0.235, -0.718,... | 6 | 20 | 1.573374 |
train_7275a0d51e95891e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.735, 0.092, -0.383), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.16).transformed(offset=(0.074, -0.067, 0.061), rotate=(10, 0, 0)).circle(0.191).transformed(offset=(0.149, 0.053, 0.045), rotate=(45, 0, 0)).circle(0.061).transformed(offset=(0.22... | 2 | 10 | 0.01687 |
train_c7dab0bfad8c33d9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.324, 0.185, 0.174), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.034, -0.169).threePointArc((-0.41, 0.199), (-0.005, 0.535)).lineTo(0.41, 0.539).lineTo(0.41, -0.169).lineTo(-0.034, -0.169).close().extrude(0.648)
result = result.edges().fillet(0... | 16 | 124 | 0.256188 |
train_9c15fc9dfc004a0e | 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.966, 0.167).lineTo(-0.63, 0.167).lineTo(-0.63, -0.153).lineTo(0.63, -0.153).lineTo(0.63, 0.167).lineTo(0.966, 0.167).lineTo(0.966, -0.147).threePointArc((0.96, -0.161), (0.945, -0.167)).lineTo... | 14 | 174 | 0.317431 |
train_4472de1a0a20c962 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.034, -0.001, -0.734), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.022, 0.078).lineTo(-0.266, 0.078).lineTo(-0.266, 0.022).lineTo(0.266, 0.022).lineTo(0.266, 0.078).lineTo(-0.022, 0.078).close().revolve(angleDegrees=270, axisStart=(0, 0), axis... | 36 | 276 | 0.011893 |
train_87d5706849eda85a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.211, -0.194, 0.128), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.789, 0.05).lineTo(-0.789, 0.05).lineTo(-0.789, -0.05).lineTo(0.789, -0.05).lineTo(0.789, 0.05).close().transformed(offset=(0.084, 0, 0.036), rotate=(0, 0, 0)).moveTo(0.597, 0.038... | 6 | 19 | 0.054142 |
train_7bf944ebe22d8e0c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.028, -1, 0.519), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.096, -0.088).lineTo(0.096, 0.063).lineTo(0.069, 0.063).lineTo(0.069, 0.088).lineTo(-0.096, 0.088).lineTo(-0.096, -0.088).lineTo(0.096, -0.088).close().sweep(cq.Workplane('YZ').spline... | 4 | 16 | 0.028243 |
train_9d847767c591a660 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.344, 0.462, -0.418), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.302, 0.073).lineTo(0, 0.375).lineTo(-0.302, 0.073).lineTo(-0.302, 0.677).lineTo(0.302, 0.677).lineTo(0.302, 0.073).close().extrude(0.689)
result = result.edges().fillet(0.122)
res... | 14 | 167 | 0.203719 |
train_adf3b7fa17c2824f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.216, -0.813), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.193).workplane(offset=0.082).circle(0.16).workplane(offset=0.076).circle(0.176).workplane(offset=0.063).circle(0.087).workplane(offset=0.066).circle(0.081).workplane(offset=0.078).cir... | 11 | 35 | 0.051225 |
train_52af6520b9845ef0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.486, -0.113, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.443, -0.064).lineTo(-0.443, -0.514).lineTo(0.443, -0.514).lineTo(0.443, -0.064).lineTo(0, -0.064).lineTo(0, 0.514).lineTo(-0.122, 0.514).lineTo(-0.122, -0.064).lineTo(-0.443, -0.064... | 3 | 15 | 0.111277 |
train_c11590212869b11d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.071), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.446).extrude(0.104)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.427, -0.211, 0.032), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.107, 0.135).extrude(0.039))
result = result.cut(c... | 11 | 41 | 0.256572 |
train_27988129fbe970e5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.349), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.502, 2).extrude(0.525)
result = result.cut(cq.Workplane(cq.Plane(origin=(0 + 0.077 * math.cos(2.634 + 2 * math.pi * 0 / 6), 0.262 + 0.077 * math.sin(2.634 + 2 * math.pi * 0 / 6), -1.326), no... | 35 | 108 | 1.418683 |
train_2c9de38fdb6b1b4f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.003, 0, -0.146), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.941, 1).lineTo(0.912, 0.983).lineTo(0.947, 0.489).lineTo(0.256, 0.502).lineTo(0.263, -1).lineTo(-0.26, -0.982).lineTo(-0.221, 0.48).lineTo(-0.917, 0.536).close().center(0, 0.277).rec... | 8 | 55 | 0.389718 |
train_22f8a3476869ef00 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.705), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.592).extrude(1.411)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.8 + 0.2665, 0.282, -1.741), normal=(0, 1, 0), xDir=(1, 0, 0))).moveTo(0.036, -0.082).lineTo(-0.005, -0.082).lineTo... | 25 | 114 | 4.335021 |
train_300e2f58dc85d943 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.029, -0.079), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.423, 1.942).extrude(0.085)
result = result.union(cq.Workplane(cq.Plane(origin=(0.16, -0.413, 0.005), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.218, 0.626).extrude(0.031))
result = resul... | 15 | 172 | 0.227698 |
train_53df4a9ddcb5f000 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.081, -0.21, -0.161), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.235, 0.259).threePointArc((0.005, 0.197), (-0.224, 0.264)).threePointArc((-0.223, 0.257), (-0.23, 0.254)).threePointArc((-0.658, -0.251), (-0.005, -0.146)).threePointArc((0.001, ... | 6 | 53 | 0.686178 |
train_3e10fee8faef83d1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.866, 0.45, -0.154), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.104, 0.104).lineTo(-0.134, 0.104).lineTo(-0.134, -0.134).lineTo(0.104, -0.134).lineTo(0.104, -0.104).lineTo(0.134, -0.104).lineTo(0.134, 0.134).lineTo(0.104, 0.134).lineTo(0.104, ... | 11 | 76 | 0.093544 |
train_a5aa221f06adb543 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.187, 0.028, 0.115), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.813, -0.009).lineTo(0.583, 0.57).lineTo(-0.017, 0.778).lineTo(-0.601, 0.623).lineTo(-0.847, 0.039).lineTo(-0.578, -0.589).lineTo(0.016, -0.834).lineTo(0.591, -0.546).close().rect(0.... | 11 | 94 | 0.423987 |
train_6e46e76e3d1925c1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.051, 0.183, -0.203), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.708, 0.427).extrude(0.1)
result = result.union(cq.Workplane(cq.Plane(origin=(0.244, 0.212, -0.099), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.041, -0.046).threePointArc((-0.145, -... | 12 | 130 | 0.202264 |
train_c2af9f29b2d12819 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.187, -0.002, 0.035), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.96, 1.026).extrude(0.162)
result = result.union(cq.Workplane(cq.Plane(origin=(0.24, -0.002, 0.194), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.382).extrude(0.04))
result = result.cu... | 10 | 128 | 0.422296 |
train_27e90a45a6a6f8c8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.026, 0, 0.338), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.047, 0.761).threePointArc((-0.033, 0.881), (-0.015, 1)).lineTo(-0.451, 0.218).threePointArc((-0.487, 0.02), (-0.394, -0.158)).lineTo(0.253, -0.777).lineTo(0.487, -1).threePointArc((0.... | 12 | 119 | 0.124244 |
train_9177204e47e83141 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.703, 0, 0.502), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.297, 0.05).threePointArc((-0.284, 0.086), (-0.268, 0.122)).lineTo(-0.215, 0.122).threePointArc((-0.183, 0.175), (-0.143, 0.223)).lineTo(-0.159, 0.273).threePointArc((-0.055, 0.353), (... | 1 | 16 | 0.118884 |
train_d4abe58c3b6c93f5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.37, -0.18), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.073, 1.26).extrude(0.098)
result = result.union(cq.Workplane(cq.Plane(origin=(0.054, 0.433, -0.082), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.483).extrude(0.015))
result = result.union(... | 11 | 120 | 0.239112 |
train_0e7f087beefdcd96 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.618, 0.398), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.251, -0.382).lineTo(-0.251, 0.382).lineTo(0.251, 0.382).lineTo(0.251, -0.382).lineTo(-0.251, -0.382).close().sweep(cq.Workplane('YZ').spline([(0.618, -0.308), (1.226, -0.111), (1.835, ... | 7 | 25 | 0.22663 |
train_9ff20f297ea661d1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.7), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.397, 2).extrude(1.4)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.195, 0.351, -0.485), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.727, 1.366).extrude(0.377))
result = result.cut(cq.Workp... | 10 | 269 | 3.241239 |
train_00e688b5d3c26590 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.28), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.15).extrude(0.56)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, -0.364), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.827, 0.692).extrude(0.729))
result = result.cut(cq.Workplane(cq... | 6 | 10 | 0.967521 |
train_7ad630a6116369bf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.015, -0.138, 0.181), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.798, -0.475).lineTo(0.828, -0.477).lineTo(0.79, 0.477).lineTo(-0.789, 0.461).close().moveTo(0, -0.125).lineTo(0.026, -0.045).lineTo(0.108, -0.063).lineTo(0.052, 0).lineTo(0.108, ... | 13 | 196 | 0.869297 |
train_3ace28b91d694cfd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.193, 0.502, 0.387), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.28, 0.586).lineTo(0.28, 0.009).lineTo(0.12, 0.009).lineTo(0.12, -0.375).lineTo(-0.28, -0.375).lineTo(-0.28, 0.586).lineTo(0.28, 0.586).close().extrude(0.721)
result = result.edges... | 9 | 61 | 0.873362 |
train_dcd1e18285349560 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.21, 0.605), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.798, -0.348).lineTo(-0.798, -0.348).lineTo(0, 1.365).lineTo(0.798, -0.348).close().revolve(angleDegrees=90, axisStart=(0.798, -0.348), axisEnd=(-0.798, -0.348))
result = result.edges().... | 16 | 180 | 0.793438 |
train_41a19b35f0d7dcfb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.407, 0.295), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.67, 0.077).lineTo(-0.516, -0.077).lineTo(-0.155, -0.439).lineTo(0, -0.593).lineTo(0.155, -0.439).lineTo(0.516, -0.077).lineTo(0.67, 0.077).lineTo(0.516, 0.232).lineTo(0.516, 0.593).l... | 21 | 120 | 0.30131 |
train_bf4f4018bf54f2dc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.272, 0.074), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.079, 0.728).lineTo(0.079, 0.675).threePointArc((0.116, 0.659), (0.132, 0.622)).lineTo(0.132, 0.411).lineTo(0.185, 0.411).threePointArc((0.171, 0.358), (0.132, 0.319)).threePointArc((0.... | 18 | 62 | 0.544325 |
train_46f96f5a95442e57 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.358, -0.253, 0.082), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.269, -0.437).lineTo(-0.06, -0.108).lineTo(-0.269, 0.346).lineTo(-0.269, 0.664).lineTo(0.004, 0.586).lineTo(0.269, 0.586).lineTo(0.269, -0.437).close().extrude(0.497)
result = resu... | 20 | 186 | 0.302251 |
train_9f302399884e39b6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.104, -1.042, -0.573), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.54, 1.96).lineTo(-0.539, 0.042).lineTo(0.54, 0.042).lineTo(0.539, 1.96).lineTo(-0.539, 1.96).close().extrude(1.156)
result = result.edges().fillet(0.371)
result = result.faces('... | 22 | 123 | 2.425166 |
train_2e554347fb56c40f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.08, 0.007, -0.206), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.753, 0.6).extrude(0.09)
result = result.union(cq.Workplane(cq.Plane(origin=(0.08, -0.233, -0.105), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.15, 0.215).threePointArc((0.166, 0.209)... | 13 | 132 | 0.355922 |
train_c61b3daccb70cf1c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.721, -0.521, 0.521), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.521, 1.052).lineTo(-0.521, 1.319).lineTo(0.226, 1.319).lineTo(0.521, 0.587).lineTo(0.521, 0.124).lineTo(-0.521, 0.124).lineTo(-0.521, 1.052).close().revolve(angleDegrees=180, axi... | 11 | 63 | 1.478687 |
train_f181ef4cff72d48e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.376), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.626, 2).extrude(0.751)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.114, -0.09, -0.215), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.951, 0.597).extrude(0.147))
result = result.edges()... | 10 | 108 | 1.644696 |
train_4d3a5bae288e9676 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.1, 0.23, -0.255), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.004, 0.911).extrude(0.423)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.086, 0.274, 0.166), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.408).extrude(0.089))
result = result.u... | 22 | 74 | 0.429457 |
train_f2121496bdfbaa02 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.06, -0.379, -0.456), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.96, -0.24).lineTo(-0.96, 0.24).lineTo(0.685, 0.24).lineTo(0.96, -0.018).lineTo(0.685, -0.24).lineTo(-0.96, -0.24).close().sweep(cq.Workplane('YZ').spline([(-0.379, -0.456), (-0.2... | 6 | 78 | 0.568346 |
train_711c231c86516470 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.786, -0.805), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.425, 2.041).threePointArc((0.425, 0.786), (-0.425, -0.469)).lineTo(-0.425, 0.145).lineTo(-0.425, 2.041).close().extrude(1.61)
result = result.edges().fillet(0.288)
result = result.cu... | 4 | 19 | 2.043347 |
train_5cbbd9f017c2f848 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.768, 0.176, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.735, -0.531).lineTo(0.391, 0.479).lineTo(0.254, 0.884).lineTo(-0.254, 0.884).lineTo(-0.391, 0.479).lineTo(-0.735, -0.531).lineTo(0.735, -0.531).close().extrude(1.219)
result = result.e... | 18 | 123 | 0.784042 |
train_84f050f569c75d4d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.011, -0.002, -0.139), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.989, 0.006).lineTo(0.47, 0.887).lineTo(-0.508, 0.859).lineTo(-1.011, -0.024).lineTo(-0.485, -0.857).lineTo(0.468, -0.882).close().moveTo(0, 0.197).lineTo(0.033, 0.197).lineTo(0.03... | 14 | 101 | 0.442686 |
train_fe1ec595a549605f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.152, -0.152, 0.497), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.148, -0.148).lineTo(-0.148, 0.858).threePointArc((-0.858, -0.858), (0.858, -0.148)).lineTo(-0.148, -0.148).close().extrude(1.013)
result = result.edges().chamfer(0.144)
result = ... | 19 | 110 | 1.911388 |
train_e2b22828b7ea088b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.055, -0.132, -0.014), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, -0.945).lineTo(-0.12, -0.945).lineTo(-0.12, 0.335).lineTo(0, 0.335).lineTo(0, 1.055).lineTo(0.12, 1.055).lineTo(0.12, 0.175).lineTo(0, 0.175).lineTo(0, -0.945).close().extrude(0... | 18 | 67 | 0.060498 |
train_d06be82b473b9cbc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.609), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.235, 2).extrude(1.217)
result = result.cut(cq.Workplane(cq.Plane(origin=(0 + 0.346 * math.cos(4.505 + 2 * math.pi * 0 / 5), 0 + 0.346 * math.sin(4.505 + 2 * math.pi * 0 / 5), -0.791), normal... | 16 | 92 | 2.621972 |
train_f24b6251ecebd3dc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.329, 0.38, -0.127), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.873, 0.18).lineTo(-0.873, 0.413).lineTo(0.873, 0.413).lineTo(0.698, 0.18).lineTo(0.582, 0.026).lineTo(-0.582, 0.026).lineTo(-0.63, 0.09).lineTo(-0.698, 0.18).lineTo(-0.873, 0.18).... | 21 | 133 | 0.739237 |
train_f131b6fd1420bdf5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.052, -0.828), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.812).extrude(1.218)
result = result.union(cq.Workplane(cq.Plane(origin=(0.068, 0.124, 0.357), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.05, 0.192).extrude(0.471))
result = result.unio... | 5 | 25 | 2.173175 |
train_f04c2c7dee8475a3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.085, 0.262, 0.292), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.364).workplane(offset=0.136).circle(0.415).workplane(offset=0.104).circle(0.408).workplane(offset=0.108).circle(0.397).workplane(offset=0.112).circle(0.346).loft()
result = result.... | 19 | 110 | 0.213863 |
train_9c3d36f180b591ae | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.665, -0.404, -0.054), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.187, 0.324).lineTo(0.166, 0.335).lineTo(0, 0.047).lineTo(-0.208, -0.312).lineTo(-0.187, -0.324).lineTo(-0.166, -0.335).lineTo(0, -0.047).lineTo(0.208, 0.312).lineTo(0.187, 0.324)... | 7 | 40 | 0.051369 |
train_fa6e7cb964f20c2a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0, -0.468), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.218, -0.101).threePointArc((0.24, 0.004), (0.215, 0.108)).threePointArc((-0.011, 0.25), (-0.237, 0.108)).lineTo(-0.074, 0.108).threePointArc((-0.011, 0.125), (0.053, 0.108)).threePointAr... | 16 | 96 | 0.134498 |
train_941b22cc1b4b3379 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.168, 0, -0.081), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.186, 0.914).extrude(0.072)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.418, 0.106, -0.01), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.212, 0.237).extrude(0.028))
result = resu... | 12 | 80 | 0.123296 |
train_73c04411ec131965 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.483, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.78, 0.483).lineTo(-0.78, 1.384).lineTo(-0.78, -0.418).lineTo(0.78, 0.483).close().extrude(2)
result = result.faces('>Z').shell(-0.124)
| 2 | 8 | 0.724501 |
train_bf3c6d1dd3704a39 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.554), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.462).extrude(0.759)
result = result.union(cq.Workplane(cq.Plane(origin=(0.481, 0.257, 0.196), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.496, 0.619).extrude(0.359))
result = result.cut(cq.... | 11 | 20 | 1.811312 |
train_3933763c1c145adc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.289, 0.123, -0.765), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.492, 0.411).extrude(0.245)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.504, 0.123, -0.642), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.359, 0.07).threePointArc((0.359, ... | 5 | 36 | 0.317618 |
train_593c205a5d79635d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.492, -0.698, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.986, -0.508).lineTo(-0.986, -0.508).lineTo(0, 1.603).lineTo(0.986, -0.508).close().extrude(1.396)
result = result.edges().chamfer(0.122)
| 2 | 20 | 2.789137 |
train_468f6757d93e8cf7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.565, -0.138, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.404, 0.47).lineTo(0.404, -0.194).lineTo(-0.404, -0.194).lineTo(-0.404, 0.47).lineTo(0.404, 0.47).close().extrude(1.268)
result = result.edges().chamfer(0.116)
result = result.cut(cq.W... | 10 | 63 | 0.483759 |
train_46f432db5471e357 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.222, 0.067, -0.049), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.169, -0.004).lineTo(0.116, 0.123).lineTo(0.006, 0.167).lineTo(-0.118, 0.118).lineTo(-0.173, -0.002).lineTo(-0.126, -0.12).lineTo(0.005, -0.176).lineTo(0.115, -0.124).close().moveTo... | 7 | 93 | 0.320509 |
train_fc5519641bd4f3b3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.272, -0.002, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.844, 0.888).lineTo(0.844, 0.032).lineTo(0.844, 0.888).lineTo(-0.844, 0.888).close().revolve(angleDegrees=360, axisStart=(-0.844, 0.888), axisEnd=(0.844, 0.032))
result = result.edges... | 13 | 45 | 1.092202 |
train_50114ab02e04a459 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.425, 0.215, -0.409), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.574, 0.798).extrude(0.137)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.589, 0.215, -0.257), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.034).lineTo(-0.236, 0.034).lin... | 18 | 343 | 0.381619 |
train_e8b648a0cdc02ac6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.446, 0.052, -0.339), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.108, 0.451).extrude(0.678)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.523, 0.129, 0.062), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.33, 0.082).extrude(0.11))
result = resu... | 21 | 262 | 0.356574 |
train_6e3cd13a27c2a83b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.245, -0.145, -0.122), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.349, 0.324).lineTo(-0.349, 0.16).lineTo(-0.595, 0.16).lineTo(-0.595, -0.324).lineTo(0.595, -0.324).lineTo(0.595, 0.324).lineTo(-0.349, 0.324).close().sweep(cq.Workplane('YZ').spl... | 9 | 59 | 0.873966 |
train_adbe6956a8ad2207 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.36, 0.115, 0.284), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.18, 0.089).lineTo(-0.18, 0.089).threePointArc((0, 0.23), (0.18, 0.089)).close().revolve(angleDegrees=180, axisStart=(0, 0), axisEnd=(0.062, 0))
result = result.union(cq.Workplane(cq... | 4 | 13 | 0.018716 |
train_993ccad7af92c0a3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.757, 0.595, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.793, 1.491).lineTo(-0.793, 1.247).lineTo(-1, 1.247).lineTo(-1, -0.057).lineTo(-0.793, -0.057).lineTo(-0.793, -0.301).lineTo(1, -0.301).lineTo(1, 1.491).lineTo(-0.793, 1.491).close().e... | 18 | 121 | 3.533964 |
train_0943ab41954ef8d2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -1, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.426, 1.798).threePointArc((0.901, 1.204), (-0.426, 0.609)).threePointArc((-0.561, 0.551), (-0.695, 0.609)).threePointArc((-0.627, 0.811), (-0.829, 0.878)).lineTo(-0.887, 0.878).threePointArc... | 2 | 16 | 4.073118 |
train_c825477a44f39a86 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.048, -0.953), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.632).extrude(1.322)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.8 + 0.4, 0.26, -2.014), normal=(0, 1, 0), xDir=(1, 0, 0))).moveTo(-0.063, -0.025).lineTo(-0.067, -0.002).line... | 22 | 66 | 4.251711 |
train_b98b93e62d37a47a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.376, 0.153, -0.49), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.508).sweep(cq.Workplane('XZ').spline([(-0.376, -0.629), (0.044, -0.249), (0.464, -0.095), (0.884, -0.168)]))
result = result.union(cq.Workplane(cq.Plane(origin=(0.435, -0.055, 0.42... | 18 | 71 | 0.96116 |
train_41264ffdfade1823 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0, -0.105), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.369, -0.552).threePointArc((0.261, -0.545), (0.156, -0.523)).threePointArc((-0.349, -0.104), (-0.369, 0.552)).lineTo(0.276, 0.285).lineTo(0.276, 0.339).lineTo(0.369, 0.339).lineTo(0.369,... | 6 | 26 | 0.951669 |
train_1516a5cab2ad36f8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.542), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.125, 0.319).extrude(0.465)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, -0.083), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.042).extrude(0.217))
result = result.union(cq.Workpl... | 15 | 140 | 0.023879 |
train_10e390c235bd6a4d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.739, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(1.02, 1.696).lineTo(1.02, 0.077).threePointArc((0, -0.218), (-1.02, 0.077)).lineTo(-1.02, 1.696).lineTo(1.02, 1.696).close().workplane(offset=0.711).moveTo(0.806, 1.495).lineTo(0.806, 0.216)... | 10 | 56 | 3.758764 |
train_1c093c0f8715fda7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.631, -0.082, -0.221), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.067, -0.405).lineTo(-0.077, -0.28).lineTo(-0.369, -0.28).lineTo(-0.359, -0.156).lineTo(-0.087, -0.156).lineTo(-0.12, 0.28).lineTo(-0.13, 0.405).lineTo(-0.005, 0.405).lineTo(0.00... | 6 | 51 | 0.300808 |
train_df8749a712b63280 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.19, -0.028, -0.274), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.62, 1.41).extrude(0.708)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.959, 0.159, 0.099), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.109, -0.056).lineTo(0.491, 0.33).lineT... | 11 | 148 | 0.838141 |
train_22a49052d298c802 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.237, -0.312), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.338, 1.527).extrude(0.901)
result = result.faces('>Z').shell(-0.04)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.395, 0.46, -0.589), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0... | 29 | 23 | 0.38664 |
train_cc1ef7988f402a1e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.062, -0.735, -0.44), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.164).sweep(cq.Workplane('YZ').spline([(-1.076, -0.94), (-0.887, -0.934), (-0.698, -0.906), (-0.508, -0.794), (-0.319, -0.595), (-0.13, -0.484), (0.059, -0.455), (0.249, -0.45)]))
r... | 7 | 33 | 0.355412 |
train_d9d2182c1c48c96a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.217, 0.229, 0.608), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.419, 0.391).lineTo(-0.209, 0.028).lineTo(0, 0.149).lineTo(0.419, 0.391).lineTo(-0.419, 0.391).close().extrude(0.457)
result = result.edges().chamfer(0.03)
result = result.union(cq... | 7 | 42 | 0.051297 |
train_3c5cbf8cb0dcb70e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.435, 0.225, 0.049), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.145, 0.424).lineTo(-0.022, 0.424).threePointArc((-0.166, 0.386), (-0.272, 0.281)).threePointArc((-0.311, 0.137), (-0.272, -0.007)).lineTo(-0.189, -0.152).lineTo(-0.023, -0.152).th... | 12 | 94 | 1.11106 |
train_9ab5947855011a66 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0, -0.212), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.216, -0.252).threePointArc((-0.237, 0), (-0.216, 0.252)).lineTo(0.187, 0.252).threePointArc((0.212, 0.251), (0.237, 0.249)).threePointArc((0.207, 0), (0.237, -0.249)).threePointArc((0.2... | 19 | 136 | 0.412783 |
train_4398f7032be64f2d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.086, -0.128, 0.038), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.445).threePointArc((-0.025, 0.444), (-0.05, 0.442)).threePointArc((0, -0.408), (0.05, 0.442)).threePointArc((0.025, 0.444), (0, 0.445)).close().extrude(0.064)
result = result.e... | 18 | 134 | 0.064136 |
train_35d34497a6339914 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.071, -0.869, -0.741), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.259, 0.058).lineTo(-0.259, -0.058).lineTo(0.259, -0.058).lineTo(0.259, 0.058).lineTo(-0.259, 0.058).close().sweep(cq.Workplane('YZ').spline([(-0.779, -0.822), (-0.392, -0.778),... | 7 | 34 | 0.322332 |
train_2a04d479ca2f3061 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.086), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.534, 2).extrude(0.038)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.041, 0.25, -0.049), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.379).extrude(0.036))
result = result.union(cq.Wo... | 11 | 59 | 0.155887 |
train_6c2f29043160b0ad | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.075, 0, 0.291), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.141).sweep(cq.Workplane('XZ').spline([(-0.713, -0.866), (-0.165, -1.193), (0.441, -0.992), (0.732, -0.382), (0.473, 0.167), (-0.028, 0.569), (-0.611, 0.248), (-0.979, -0.309)]))
result... | 4 | 15 | 0.12424 |
train_01716d918b27183c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.176, 0.014, -0.458), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.731, 0.403).extrude(0.065)
result = result.union(cq.Workplane(cq.Plane(origin=(0.197, 0.014, -0.394), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.107).extrude(0.016))
result = result... | 28 | 246 | 0.514515 |
train_8b4a547877a0fb2b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.189, -0.154, -0.045), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.233, 1.189).lineTo(0.233, -0.811).lineTo(-0.233, -0.811).lineTo(-0.233, 1.189).lineTo(0.233, 1.189).close().extrude(0.529)
result = result.edges().chamfer(0.161)
result = result.... | 13 | 57 | 0.244173 |
train_e456c903195219d7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.013, 0.046, 0.537), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.436, 0.981).threePointArc((-0.881, 0.988), (-0.855, 0.544)).threePointArc((0.013, -0.988), (0.881, 0.544)).threePointArc((0.687, 0.778), (0.433, 0.944)).threePointArc((0.389, 0.9... | 10 | 71 | 2.043539 |
train_d71959f345dee641 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.919), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.583).extrude(1.838)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.047, 0.321, -0.595), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.005, 0.99).extrude(0.375))
result = result.edges().... | 11 | 88 | 3.731295 |
train_062f59e0f44eb189 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.36, 0.437, 0.069), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.004, 1.316).lineTo(-1.255, 0.59).lineTo(1.255, -0.85).lineTo(-0.004, 1.316).close().extrude(0.875)
result = result.edges().fillet(0.186)
result = result.cut(cq.Workplane(cq.Plane(o... | 13 | 78 | 1.089951 |
train_e27c079f43d85e9e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.043, 0.057), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.124, -0.073).lineTo(-0.124, 0.099).lineTo(-0.15, 0.099).lineTo(-0.15, -0.099).lineTo(0.15, -0.099).lineTo(0.15, -0.073).lineTo(-0.124, -0.073).close().sweep(cq.Workplane('XZ').splin... | 4 | 46 | 0.056774 |
train_8dc78f2902e43a29 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.142, -0.357, -0.272), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.951, 1.286).extrude(0.45)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.148, -0.447, -0.062), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.134, 1.544).extrude(0.117))
result = re... | 19 | 85 | 0.492345 |
train_93541055a1b5e568 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.068, 0.025), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.405, -0.109).lineTo(-0.405, 0.245).lineTo(0.133, 0.245).lineTo(0.118, 0.1).lineTo(0.175, 0.059).lineTo(0.405, -0.109).lineTo(-0.405, -0.109).close().extrude(2)
result = result.edges(... | 2 | 35 | 0.415325 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.