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_147ad83e9963aa5d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, -0.057, 0.378), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.133, 0.051).lineTo(0.133, -0.091).lineTo(0.08, -0.091).lineTo(0.08, -0.064).lineTo(-0.08, -0.064).lineTo(-0.08, -0.091).lineTo(-0.133, -0.091).lineTo(-0.133, 0.051).lineTo(-0.04, ... | 16 | 164 | 0.25998 |
train_0f2958648c13201b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.172, 0.182, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.911, 0.018).lineTo(-1, 0.172).lineTo(-0.911, 0.326).lineTo(-0.896, 0.351).lineTo(-0.689, 0.351).lineTo(-0.675, 0.326).lineTo(-0.143, 0.326).lineTo(-0.128, 0.351).lineTo(0.079, 0.351).... | 6 | 58 | 0.100244 |
train_828b51a30234189d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.17, -0.433, -0.023), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.1, -0.019).lineTo(0.1, -0.016).lineTo(0.1, 0.07).lineTo(-0.1, 0.07).lineTo(-0.1, -0.019).close().extrude(0.273)
result = result.edges().fillet(0.024)
result = result.cut(cq.Workpl... | 25 | 264 | 0.030657 |
train_a629625481fa009e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.578, -0.029, 0.008), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.42, 0.069).threePointArc((0.006, -0.037), (-0.42, -0.069)).lineTo(0.42, 0.069).close().sweep(cq.Workplane('XZ').spline([(0.125, -0.088), (0.276, -0.289), (0.427, -0.409), (0.578, -... | 12 | 112 | 0.038196 |
train_33bac316f61fbd2e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.561, 0.487, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.5, 1.369).threePointArc((0.465, 1.452), (0.382, 1.487)).lineTo(-0.382, 1.487).threePointArc((-0.465, 1.452), (-0.5, 1.369)).lineTo(-0.5, -0.395).threePointArc((-0.465, -0.478), (-0.382... | 9 | 97 | 1.955964 |
train_02a14fd73f1133d1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1.068, 0.659, -0.127), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.913, 0.229).lineTo(0, 2.359).lineTo(-0.913, 0.229).lineTo(0.913, 0.229).close().extrude(1.318)
result = result.edges().chamfer(0.453)
result = result.union(cq.Workplane(cq.Plane(o... | 12 | 107 | 1.711021 |
train_d8d81f65d16b638d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.017, -0.056, 0.009), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.048, 0.549).threePointArc((0.02, 0.52), (0.048, 0.452)).lineTo(0.048, -0.549).lineTo(-0.048, -0.549).lineTo(-0.048, 0.452).lineTo(-0.048, 0.549).close().extrude(0.028)
result = ... | 17 | 138 | 0.004155 |
train_8f6b08bd70e576e6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.006, 0.095, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.042, -0.737).threePointArc((0.433, -0.816), (0.513, -0.425)).lineTo(0.726, 0.09).threePointArc((0.929, 0.475), (0.513, 0.601)).lineTo(0, 0.816).lineTo(-0.513, 0.601).threePointArc((-0.9... | 9 | 60 | 1.500701 |
train_021462aedfc146fd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.031, -0.019, -0.156), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.007, 0.092).lineTo(0.007, 0.016).threePointArc((-0.048, 0.038), (-0.073, 0.092)).lineTo(-0.058, 0.092).threePointArc((0.007, 0.158), (0.073, 0.092)).lineTo(0.007, 0.092).close().... | 6 | 94 | 0.028518 |
train_8ce08e38c81db0e2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.736, -0.578, 0.017), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.378, -0.233).threePointArc((-0.775, 0.13), (-0.891, 0.655)).threePointArc((0, 1.473), (0.891, 0.655)).threePointArc((0.496, 0.291), (0.378, -0.233)).threePointArc((0, -0.317), (-... | 19 | 158 | 2.643562 |
train_0b96ee78c5257358 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.303, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.29, 0.435).lineTo(-0.29, -0.003).lineTo(-0.362, -0.003).lineTo(-0.362, -0.433).lineTo(-0.29, -0.433).lineTo(-0.29, -0.435).lineTo(0.29, -0.435).lineTo(0.29, -0.433).lineTo(0.362, -0.433).... | 2 | 22 | 0.523795 |
train_1256024bc0c75ffe | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.272, -0.087, -0.354), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.626, 0.459).extrude(0.622)
result = result.union(cq.Workplane(cq.Plane(origin=(0.143, -0.03, -0.004), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.125).extrude(0.175))
result = resu... | 8 | 32 | 1.072804 |
train_9c07d4a480320b1c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.395, -0.333, 0.695), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.191, -0.208).lineTo(0.233, -0.208).lineTo(0.233, -0.251).lineTo(-0.233, -0.251).lineTo(-0.233, -0.208).lineTo(-0.191, -0.208).lineTo(-0.191, 0.251).lineTo(0.191, 0.251).lineTo(0.... | 10 | 104 | 0.734895 |
train_d3c2d8fd1e14bf04 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.171, 0.125, 0.091), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 0.319).lineTo(-0.396, 0.319).lineTo(-0.396, 0.286).lineTo(-0.528, 0.286).lineTo(-0.528, 0.022).lineTo(0.528, 0.022).lineTo(0.528, 0.253).lineTo(0.396, 0.253).lineTo(0.396, 0.319).... | 29 | 153 | 0.056475 |
train_cdb790924709b3ff | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.899, -0.177, -0.395), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.125, 0).lineTo(0.112, 0).lineTo(0.042, 0.116).lineTo(-0.029, 0).lineTo(-0.035, -0.011).lineTo(-0.105, -0.127).lineTo(0.035, -0.127).lineTo(0.042, -0.138).lineTo(-0.125, -0.138).... | 13 | 116 | 0.560458 |
train_9e4d751dbd2a70fc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.567), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.805, 2).extrude(1.135)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.382, 0.031, -0.27), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.412).extrude(0.435))
result = result.cut(cq.Workpla... | 10 | 41 | 3.410221 |
train_879607f6dfe74ee3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.054, 0.1, -0.537), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.495, 0.631).extrude(0.486)
result = result.union(cq.Workplane(cq.Plane(origin=(0.015, 0.204, -0.063), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.112, 0.32).threePointArc((0.069, -0.... | 11 | 55 | 0.210695 |
train_85889737285a7d73 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.32, 0.192, 0.193), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.073, 0.808).lineTo(-0.083, 0.508).lineTo(-0.073, 0.455).lineTo(-0.191, 0.077).lineTo(-0.23, 0.025).lineTo(-0.28, -0.032).lineTo(-0.28, -0.089).lineTo(0.28, -0.089).lineTo(0.265, 0... | 5 | 31 | 0.227069 |
train_c087ffaa17040bb0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.829, -1.157, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.352, 1.39).lineTo(-0.011, 1.601).lineTo(0.302, 2.142).threePointArc((0.495, 2.058), (0.665, 1.934)).threePointArc((1, 1.182), (0.665, 0.43)).threePointArc((0.495, 0.306), (0.302, 0.22... | 8 | 72 | 0.727811 |
train_6f6b01a945fc20a3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.621, -0.253, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.342, 0.782).lineTo(0.318, 0.782).threePointArc((0.325, 0.764), (0.342, 0.758)).lineTo(0.342, 0.015).threePointArc((0.324, 0.008), (0.317, -0.009)).lineTo(-0.318, -0.009).lineTo(-0.34... | 10 | 70 | 0.646214 |
train_2f57ec92e6ceb78d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.595).workplane(offset=0.88).circle(0.361).workplane(offset=0.864).circle(0.126).loft()
result = result.edges().fillet(0.093)
result = result.union(cq.Workplane(cq.Plane(origin=(0.202, 0.151, -... | 3 | 12 | 0.854375 |
train_7353665e64bc586d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.809, 0, -0.232), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.214).sweep(cq.Workplane('XZ').spline([(0.809, -0.232), (0.662, 0.104), (0.295, 0.27), (-0.107, 0.184), (-0.342, -0.112), (-0.291, -0.468)]))
result = result.edges().chamfer(0.174)
res... | 6 | 25 | 0.225013 |
train_703c22490fd56b2b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.671, -0.209), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.73).workplane(offset=0.225).circle(0.636).workplane(offset=0.303).circle(0.543).workplane(offset=0.252).circle(0.449).workplane(offset=0.309).circle(0.354).workplane(offset=0.297).cir... | 9 | 36 | 0.954897 |
train_eb8810ec890d00ec | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.388, -0.123, -0.208), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.225, 1.508).extrude(0.591)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.142, -0.22, 0.346), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.079).extrude(0.538))
result = resu... | 10 | 47 | 1.796993 |
train_702d9a2c5760a3b5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.498, -0.462, 0.391), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.974, 0.727).extrude(0.219)
result = result.union(result.mirror('YZ', basePointVector=(0.032, -0.462, 0.391)))
result = result.union(cq.Workplane(cq.Plane(origin=(0.032, -0.462, 0.332... | 23 | 87 | 2.985488 |
train_3f158b1bfe995420 | 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.614).workplane(offset=0.694).circle(0.487).workplane(offset=0.687).circle(0.361).workplane(offset=0.619).circle(0.234).loft()
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.129, 0.736, -... | 10 | 48 | 0.809844 |
train_602cacd57dcfa66d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.364, -0.472, -0.393), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.246, 1.056).extrude(0.027)
result = result.union(cq.Workplane(cq.Plane(origin=(0.411, -0.399, -0.368), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.349).extrude(0.039))
result = resu... | 6 | 71 | 0.34297 |
train_d2a2a465b4b2e800 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.352), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.601).extrude(0.493)
result = result.union(cq.Workplane(cq.Plane(origin=(0.1, 0.08, 0.137), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.72).extrude(0.061))
result = result.union(cq.Workpla... | 5 | 27 | 1.681031 |
train_fda89f8412e38a98 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.737, 1.281, 0.077), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.557, 1.985).lineTo(0.557, 2.568).lineTo(-0.557, -2.094).lineTo(-0.557, 1.985).close().extrude(1.098)
result = result.edges().fillet(0.317)
result = result.union(cq.Workplane(cq.Pl... | 5 | 37 | 1.334504 |
train_201b759e588c7e63 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.017, -0.67), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.564, 1.965).extrude(0.052)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.021, 0.101, -0.619), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.352).extrude(0.029))
result = result.un... | 14 | 54 | 1.239601 |
train_a4e3a67e8e7a543a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.889, 0.249), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.058, -0.111).lineTo(0.07, -0.091).lineTo(0.081, -0.071).lineTo(0.058, -0.031).lineTo(0.035, -0.031).lineTo(-0.046, 0.111).lineTo(-0.07, 0.111).lineTo(-0.081, 0.091).lineTo(0.001, -0.0... | 15 | 142 | 0.051878 |
train_b93ac64926a9201c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.364, -0.388), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, -0.764).lineTo(0.191, -0.263).lineTo(0.726, -0.236).lineTo(0.309, 0.101).lineTo(0.449, 0.618).lineTo(0, 0.325).lineTo(-0.449, 0.618).lineTo(-0.309, 0.101).lineTo(-0.726, -0.236).lineT... | 8 | 98 | 0.317133 |
train_eb1c201fa2926255 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, 0.001, 0.168), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.87, 0.958).lineTo(-0.87, 0.062).lineTo(0.272, 0.062).lineTo(0.87, 0.749).lineTo(0.272, 0.958).lineTo(-0.87, 0.958).close().revolve(angleDegrees=270, axisStart=(0, 0), axisEnd=(0.... | 15 | 117 | 1.902594 |
train_b0d044f0fca2907d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.694, 0.359, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.691, 0.126).lineTo(-0.691, 0.126).lineTo(-1.024, 0.42).lineTo(0, 1.277).lineTo(1.024, 0.42).lineTo(0.691, 0.126).close().extrude(0.717)
result = result.edges().fillet(0.045)
result = r... | 5 | 48 | 0.768533 |
train_ad3c306e2b5eb0d5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.158, -0.176, -0.959), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.916, 0.884).extrude(0.766)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.222, 0.025, -0.702), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.529, -1.251).lineTo(-0.436, -1.25... | 36 | 295 | 0.621941 |
train_64416f83a3ca571a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.971, -0.002, 0.051), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.585, 0.249).lineTo(-0.718, 0.182).threePointArc((-0.752, 0.01), (-0.578, 0.018)).lineTo(-0.506, 0.12).lineTo(0.5, 0.12).lineTo(0.503, 0.117).lineTo(0.576, 0.017).threePointArc((0... | 4 | 20 | 0.864599 |
train_4c8852edab7463ef | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.368, 0.499, -0.563), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.126, 0.29).lineTo(-0.126, 0.29).lineTo(-0.126, -0.29).lineTo(0.126, -0.29).lineTo(0.126, 0.29).close().transformed(offset=(-0.167, 0.059, 0.011), rotate=(0, 45, 0)).moveTo(0.189, 0... | 1 | 6 | 0.075304 |
train_5f62052768ef03ac | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.001, 0.176, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.373, -0.823).lineTo(-0.346, -0.823).lineTo(-0.346, 0.796).lineTo(-0.373, 0.796).lineTo(-0.373, 0.823).lineTo(0.373, 0.823).lineTo(0.373, 0.796).lineTo(0.346, 0.796).lineTo(0.346, -0.82... | 3 | 23 | 0.529698 |
train_2ac95c0504169e86 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.056), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.489, 0.882).lineTo(0.092, 0.504).lineTo(-0.489, -0.882).lineTo(0.489, -0.882).lineTo(0.489, 0.882).close().workplane(offset=0.08).moveTo(0.554, 1).lineTo(0.104, 0.571).lineTo(-0.554, -1).l... | 16 | 38 | 0.149675 |
train_af49f71f9c0e3bc7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.194, -0.453), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.269, 0.298).extrude(0.291)
result = result.union(cq.Workplane(cq.Plane(origin=(0.084, -0.276, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.009).extrude(0.588))
result = result.union... | 4 | 19 | 0.026025 |
train_6b6ea1dd2f3e74b4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.594, -0.002), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.725, 2.151).threePointArc((0.004, 1.472), (0.725, 2.16)).lineTo(0.724, 0.399).lineTo(0.724, 0.302).threePointArc((0.041, -0.375), (-0.714, 0.217)).lineTo(-0.715, 0.474).lineTo(-0.725... | 4 | 33 | 4.320388 |
train_7392314836a0ad2d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.028, -0.881, -0.359), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, 1.091).lineTo(-0.962, 0.129).lineTo(0, -0.833).lineTo(0.962, 0.129).lineTo(0, 1.091).close().extrude(1.763)
result = result.edges().chamfer(0.454)
result = result.union(cq.Workp... | 17 | 101 | 1.973718 |
train_e27c1fdee4b43565 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.28, 0.28, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.56).lineTo(-1, 0.199).lineTo(1, 0.094).lineTo(1, 0.56).lineTo(-1, 0.56).close().revolve(angleDegrees=90, axisStart=(0, 0), axisEnd=(0.079, 0))
result = result.edges().chamfer(0.013)
... | 7 | 75 | 0.449371 |
train_fab938a9c967792d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.337, 0, -0.602), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.013, 1.487).extrude(1.602)
result = result.faces('>Z').shell(-0.081)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.655, 0.487, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.... | 19 | 45 | 0.824238 |
train_77c970656e99e566 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.062, 0.401), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.351, -0.223).lineTo(-0.351, -0.223).lineTo(-0.351, 0.223).lineTo(-0.115, 0.223).lineTo(-0.115, 0.196).lineTo(0.351, 0.196).lineTo(0.351, -0.223).close().sweep(cq.Workplane('YZ').spline... | 7 | 57 | 0.250382 |
train_d15420e3dbebc06b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.425, -0.224, 0.074), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.068, 0.151).lineTo(-0.097, 0.134).lineTo(-0.165, -0.017).lineTo(-0.068, -0.151).lineTo(0.097, -0.134).lineTo(0.165, 0.017).lineTo(0.068, 0.151).close().sweep(cq.Workplane('XY').s... | 6 | 63 | 0.067932 |
train_64da8b6854d6d5ff | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.098, 0.436, -0.039), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.164, -0.494).lineTo(-0.164, 0.494).lineTo(0.164, 0.494).lineTo(0.164, -0.494).lineTo(-0.164, -0.494).close().extrude(0.129)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.... | 22 | 225 | 0.559676 |
train_85755c8d5ccd0436 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.105, 0.105, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1.049, 1.049).lineTo(-1.049, 1.049).threePointArc((-0.481, 0.569), (0.06, 0.06)).threePointArc((0.569, -0.481), (1.049, -1.049)).lineTo(1.049, 1.049).close().extrude(2)
result = result.... | 17 | 153 | 2.882189 |
train_75eb405d03efc336 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.113, -0.037, -0.634), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.479, 1.479).extrude(1.267)
result = result.faces('>Z').shell(-0.121)
result = result.union(cq.Workplane(cq.Plane(origin=(0.011, 0.125, 0.619), normal=(0, 0, 1), xDir=(1, 0, 0))).ci... | 19 | 106 | 1.433406 |
train_6d35fe9e589b14e9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.648, 0.474, 0.633), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.367, 0.474).lineTo(-0.367, -0.13).lineTo(0.367, -0.13).lineTo(0.367, 1.078).lineTo(-0.367, 1.078).lineTo(-0.367, 0.474).close().extrude(0.823)
result = result.edges().fillet(0.084... | 20 | 190 | 0.378593 |
train_308591201b6bb4c9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.173, 0.15, 0.206), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.726, 0.043).lineTo(-0.794, 0.043).lineTo(-0.794, 0.253).lineTo(0.794, 0.253).lineTo(0.793, 0.043).lineTo(0.726, 0.043).close().revolve(angleDegrees=180, axisStart=(0, 0), axisEnd=(0... | 38 | 173 | 0.184745 |
train_97a9ce5209e21d4e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.339, 0.301, 0.021), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.781, 0.027).threePointArc((-0.827, 0.301), (-0.781, 0.574)).lineTo(0.686, 0.574).lineTo(0.781, 0.574).threePointArc((0.827, 0.301), (0.781, 0.027)).lineTo(-0.686, 0.027).lineTo(-0... | 4 | 38 | 0.489111 |
train_84c5554930ba9a39 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.824), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.012, 2).extrude(1.248)
result = result.union(cq.Workplane(cq.Plane(origin=(0.174, -0.406, 0.391), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.231).extrude(0.433))
result = result.cut(cq.Work... | 10 | 53 | 1.7035 |
train_3159a2c57509ee73 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.068, -0.787, -0.485), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.01, -0.28).lineTo(-0.009, -0.261).lineTo(0.009, -0.104).lineTo(-0.009, -0.087).lineTo(0.023, 0.206).lineTo(0.044, 0.23).lineTo(0.08, 0.271).lineTo(0.089, 0.28).lineTo(0.074, 0.... | 5 | 72 | 0.092365 |
train_9becc2bd2810ddb7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.033, -1, -0.165), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.174, -0.22).threePointArc((-0.174, -0.127), (-0.081, 0.22)).lineTo(0.174, -0.22).close().sweep(cq.Workplane('YZ').spline([(-0.694, -0.606), (-0.293, -0.596), (0.106, -0.507), (0.507... | 8 | 30 | 0.185732 |
train_7d577d573340d901 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.148, -0.028, -0.78), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.273, 0.303).extrude(0.146)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.21, -0.208, -0.766), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.034).extrude(0.063))
result = resu... | 21 | 132 | 1.75663 |
train_929d6a8a1d92f10f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.187, -0.352, -0.454), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.326, 1.084).lineTo(0.326, -0.605).lineTo(-0.326, -0.605).lineTo(-0.326, 1.084).lineTo(0.326, 1.084).close().revolve(angleDegrees=90, axisStart=(0.326, 1.084), axisEnd=(0.326, 0.0... | 11 | 92 | 0.709057 |
train_a9df08d656d3901c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.029, -0.027, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).lineTo(1.025, 0.039).lineTo(-1.029, 0.027).close().revolve(angleDegrees=360, axisStart=(-1.029, 0.027), axisEnd=(1.025, 0.039))
result = result.faces('<Z').shell(-0.007)
result = result.union(c... | 17 | 190 | 0.001879 |
train_9b7288b07456cbd5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.039, -0.533), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.036, -0.037).lineTo(-0.018, -0.037).lineTo(-0.018, -0.036).lineTo(-0.102, -0.036).lineTo(-0.102, 0.064).lineTo(-0.145, 0.064).lineTo(-0.145, 0.11).lineTo(-0.188, 0.11).threePointArc((... | 6 | 50 | 0.073297 |
train_a72cc0a9443b3160 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.501, -0.162, 0.026), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.399, 0.81).threePointArc((0, 1.209), (-0.399, 0.81)).lineTo(-0.399, -0.486).threePointArc((0, -0.886), (0.399, -0.486)).lineTo(0.399, 0.81).close().workplane(offset=0.213).moveTo(... | 13 | 63 | 0.838289 |
train_df47513c4677e4ea | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.6, -0.275, -0.274), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.763, 1.064).lineTo(0.509, 0.624).lineTo(0.254, 0.183).lineTo(-0.254, 0.183).lineTo(-0.509, 0.624).lineTo(-0.763, 0.183).lineTo(0, -0.257).lineTo(0.763, 0.183).lineTo(0.763, 1.064).... | 12 | 111 | 0.490305 |
train_e126765192a52e56 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.278, -0.804, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.051, -0.196).threePointArc((-0.135, -0.149), (-0.187, -0.068)).threePointArc((-0.198, -0.012), (-0.192, 0.045)).threePointArc((0.009, 0.196), (0.198, 0.031)).threePointArc((0.011, -... | 9 | 64 | 0.099913 |
train_dee960c312925568 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.833, 0.438, -0.032), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.72, 0.034).lineTo(0.791, 0.034).lineTo(0.791, -0.037).lineTo(-0.791, -0.037).lineTo(-0.791, 1.142).lineTo(0.72, 1.142).lineTo(0.72, 0.034).lineTo(-0.72, 0.034).close().extrude(1.... | 12 | 75 | 2.302358 |
train_93873c75573f31d6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.492, 0.001, 0.374), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.188, 0.253).threePointArc((0.116, 0.256), (0.046, 0.239)).lineTo(-0.397, 0.118).threePointArc((-0.508, -0.006), (-0.384, -0.117)).lineTo(0.041, -0.236).threePointArc((0.144, -0.256... | 7 | 38 | 0.154012 |
train_73a1f963f7dd4c88 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.768, 0.287, 0.012), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.075).workplane(offset=0.124).circle(0.173).workplane(offset=0.142).circle(0.129).workplane(offset=0.121).circle(0.087).workplane(offset=0.145).circle(0.131).workplane(offset=0.126... | 13 | 78 | 0.143325 |
train_a0a065f9b8b564d6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.139, -0.334), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.695).extrude(0.062)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.271, 0.058, -0.266), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.129, 0.406).threePointArc((-0.219, 0.146... | 12 | 44 | 0.508945 |
train_b964627e22ec024b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.004, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.153, 0.309).threePointArc((-0.153, 0.004), (0.153, -0.301)).lineTo(0.153, -0.149).threePointArc((0, 0.004), (0.153, 0.156)).lineTo(0.153, 0.309).close().extrude(0.372)
result = result.edg... | 9 | 110 | 0.083966 |
train_e0140b7853a89db5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.068, 0.58, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.598, -0.278).lineTo(0.598, 0.425).threePointArc((0.001, 0.747), (-0.598, 1.068)).lineTo(-0.598, -0.278).close().revolve(angleDegrees=180, axisStart=(-0.598, -0.278), axisEnd=(0.598, 0.... | 11 | 45 | 0.383112 |
train_976aa2375353885a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.512, 0.865, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.02, -0.031).lineTo(0.012, -0.031).lineTo(0.012, 0.048).lineTo(0.02, 0.048).lineTo(0.02, -0.048).lineTo(-0.02, -0.048).lineTo(-0.02, -0.031).close().sweep(cq.Workplane('XY').spline([(0.... | 1 | 8 | 0.001819 |
train_68cf81e185d78ad7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.91, 1.719).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.074, 0.491, 0.165), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.473, 0.776).extrude(0.634))
result = result.cut(cq.Workpl... | 5 | 50 | 2.598289 |
train_f8d143464c2f5c64 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.409, 0.629, 0.159), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.185, 0.369).threePointArc((-0.121, 0.364), (-0.059, 0.347)).threePointArc((0.185, 0), (-0.059, -0.347)).threePointArc((-0.121, -0.364), (-0.185, -0.369)).lineTo(-0.185, 0.369).clo... | 5 | 37 | 0.053706 |
train_d3f9148287aba04c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.008, 0.009, -0.244), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.961, 0).lineTo(0.714, 0.726).lineTo(-0.024, 0.991).lineTo(-0.707, 0.692).lineTo(-0.977, -0.001).lineTo(-0.697, -0.708).lineTo(0.015, -1.009).lineTo(0.68, -0.681).close().moveTo(-0.... | 14 | 125 | 1.130797 |
train_b2321effcf043111 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.455, 0, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.496, 0.455).lineTo(-1, 0.455).lineTo(-1, 0.017).lineTo(1, 0.017).lineTo(1, 0.455).lineTo(0.496, 0.455).close().revolve(angleDegrees=360, axisStart=(0.496, 0.455), axisEnd=(-0.381, 0.455))
... | 2 | 5 | 1.179899 |
train_739aea1feb27e6b6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.081, -0.478), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.441).extrude(0.956)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.576 + 0.288, 0.1425, -1.778), normal=(1, 0, 0), xDir=(0, 1, 0))).moveTo(0.021, -0.042).lineTo(0.021, -0.069).... | 8 | 9 | 2.758203 |
train_df75ca824b1fbed0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.802, 0.19, -0.082), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.918, 1.508).lineTo(0.918, 1.508).lineTo(0.918, 0.097).lineTo(-0.918, 0.097).lineTo(-0.918, 1.508).close().extrude(0.386)
result = result.edges().fillet(0.054)
result = result.unio... | 14 | 207 | 1.046417 |
train_68bb629a61c5d582 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.213, 0.209, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.211, 1.002).threePointArc((0, 1.213), (-0.211, 1.002)).lineTo(-0.211, -0.576).threePointArc((0, -0.787), (0.211, -0.576)).lineTo(0.211, 1.002).close().extrude(0.419)
result = result.ed... | 8 | 52 | 0.291198 |
train_0ac8c0226b335eb0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.232, -0.186, 0.054), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.072, 1.232).lineTo(-0.072, 0.115).lineTo(0.217, -0.827).lineTo(-0.072, -0.61).lineTo(-0.217, -0.61).lineTo(-0.217, 1.232).lineTo(-0.072, 1.232).close().extrude(0.446)
result = re... | 11 | 92 | 0.136832 |
train_c8bd27e649cb0ad6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.146, 0.237, -0.434), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.265, -0.31).lineTo(0.269, -0.313).lineTo(0.265, 0.303).lineTo(-0.263, 0.304).close().moveTo(-0.05, 0.152).lineTo(0.051, 0.153).lineTo(0.05, 0.133).lineTo(0.009, 0.133).lineTo(0.00... | 18 | 303 | 0.294755 |
train_70b784918eae94b1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.048, 0.174, 0.178), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.227, -0.19).lineTo(0.227, -0.19).lineTo(0.016, 0.391).threePointArc((-0.029, 0.374), (-0.073, 0.355)).threePointArc((-0.152, 0.319), (-0.227, 0.277)).lineTo(-0.227, -0.19).close(... | 19 | 394 | 0.279751 |
train_ecc64724adb7d891 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.447), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.75, -0.833).lineTo(-0.917, -0.668).lineTo(-0.821, -0.571).lineTo(0.298, 0.548).lineTo(0.75, 1).lineTo(0.917, 0.833).lineTo(0.298, 0.214).lineTo(0.298, -0.571).lineTo(-0.155, -0.571).lineT... | 5 | 29 | 0.648392 |
train_d991dabecdaa0ec0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.442, -0.207, 0.004), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.018, 0.155).lineTo(-0.018, 0.143).lineTo(0.018, 0.143).lineTo(0.018, -0.024).lineTo(-0.03, -0.024).lineTo(-0.03, -0.036).lineTo(0.018, -0.036).lineTo(0.018, -0.155).lineTo(0.03,... | 14 | 87 | 0.064738 |
train_54189b357b1828e6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.684, -0.191, -0.181), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.322, 0.471).extrude(0.167)
result = result.union(cq.Workplane(cq.Plane(origin=(0.572, -0.186, -0.004), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.163, -0.822).threePointArc((0.004... | 15 | 238 | 0.780853 |
train_3c5740378f40a12f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.45, -0.289, -0.025), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.242, -0.711).threePointArc((-0.078, -0.18), (-0.023, 0.372)).threePointArc((-0.062, 0.836), (-0.178, 1.289)).lineTo(0.242, 1.289).lineTo(0.242, -0.711).lineTo(-0.242, -0.711).clo... | 10 | 55 | 0.47937 |
train_5ef2a82f13349375 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.119, -0.151, 0.028), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.052, 0.046).extrude(0.015)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.14, -0.162, 0.032), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.011, 0.012).extrude(0.009))
result = resu... | 13 | 206 | 0.176222 |
train_52acd543fcadcd0a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.006, -0.819, -0.655), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.321, 1.722).threePointArc((-0.905, 1.209), (-0.918, 0.43)).threePointArc((-0.756, 0.171), (-0.521, -0.023)).threePointArc((-0.031, -0.157), (0.458, -0.023)).lineTo(0.533, -0.065... | 7 | 33 | 3.300447 |
train_34846261e9623500 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.748, -0.283, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.227, 0.494).lineTo(0.569, 0.494).lineTo(0.569, 0.039).lineTo(-0.569, 0.039).lineTo(-0.569, 0.494).lineTo(0.227, 0.494).close().extrude(0.565)
result = result.edges().chamfer(0.089)
re... | 7 | 186 | 0.26121 |
train_dc55084537b843c0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.073, -0.005, -0.781), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.073, -0.014).lineTo(-0.073, 0.004).lineTo(-0.065, 0.004).threePointArc((-0.059, -0.002), (-0.053, 0.004)).lineTo(-0.046, 0.004).lineTo(-0.046, 0.023).lineTo(0.046, 0.023).lineT... | 10 | 53 | 0.002044 |
train_68e798af117eb623 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.375, -0.882, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.628, 1.188).threePointArc((-0.318, 1.351), (0.033, 1.356)).threePointArc((0.056, 1.351), (0.077, 1.345)).threePointArc((0.628, 0.616), (0.077, -0.114)).threePointArc((-0.108, -0.143)... | 13 | 74 | 1.532558 |
train_d114eb68098630ab | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.323, 0.668, -0.604), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.664, 0.664).extrude(1.207)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.316, 0.668, -0.179), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.678, 0.267).extrude(0.359))
result = ... | 12 | 77 | 0.690552 |
train_bcc7b90565019b89 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.86, 0.605, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.776).lineTo(-1, -0.157).lineTo(1, -0.157).lineTo(1, 1.367).lineTo(-1, 1.367).lineTo(-1, 0.776).close().extrude(1.721)
result = result.edges().fillet(0.052)
result = result.cut(cq.Wo... | 21 | 229 | 3.002105 |
train_f2de2725c7fb9911 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.723, 0.595, -0.235), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.618, -0.277).lineTo(0.618, 1.371).lineTo(-0.618, 1.371).lineTo(-0.618, 1.303).lineTo(0.395, 1.303).lineTo(0.395, 0.478).lineTo(0, 0.478).lineTo(0, -0.277).lineTo(0.618, -0.277).cl... | 10 | 35 | 1.021787 |
train_9dba6bf5b51b710d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.626), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.107, 0.994).threePointArc((0, 1), (0.107, 0.994)).threePointArc((0.471, 0.882), (0.767, 0.642)).threePointArc((0.872, 0.49), (0.947, 0.321)).threePointArc((1, 0), (0.947, -0.321)).threePo... | 5 | 51 | 2.90932 |
train_ba8f7446e698eedf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.079), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.347).extrude(0.158)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.8 + 0.4, -0.539 + 0.1345, -0.103), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.156, 0.019).lineTo(-0.156, -0.019)... | 9 | 38 | 0.410666 |
train_3f534619b7d9a026 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.291, -0.11, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.16, 0.242).lineTo(-0.16, 0.009).threePointArc((-0.138, 0), (-0.129, -0.022)).lineTo(0.129, -0.022).lineTo(0.16, -0.022).lineTo(0.16, 0.009).lineTo(0.16, 0.212).lineTo(0.16, 0.242).li... | 11 | 99 | 0.130917 |
train_a6485066989c9e7d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.002, 0.005, -0.012), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.011, -0.008).lineTo(0.011, 0.014).lineTo(-0.001, 0.014).lineTo(-0.001, 0.004).lineTo(-0.011, 0.004).lineTo(-0.011, -0.008).lineTo(0.011, -0.008).close().revolve(angleDegrees=270, a... | 8 | 172 | 0.000429 |
train_cc3949e09975a811 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.429, -0.929), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.505).sweep(cq.Workplane('YZ').spline([(0.429, -0.929), (0.517, -0.34), (0.356, 0.204), (0.023, 0.434), (-0.317, 0.236), (-0.497, -0.292)]))
result = result.edges().chamfer(0.276)
resu... | 8 | 56 | 1.685617 |
train_b86e81e6685294a3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.077, -0.028), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.078).lineTo(1, 0.002).lineTo(-1, 0.002).lineTo(-1, 0.078).lineTo(1, 0.078).close().extrude(0.084)
result = result.edges().chamfer(0.023)
result = result.union(cq.Workplane(cq.Plane... | 18 | 274 | 0.015938 |
train_f2ae2632700aace4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.207, 0, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.339).workplane(offset=0.123).circle(0.379).workplane(offset=0.175).circle(0.404).workplane(offset=0.167).circle(0.358).workplane(offset=0.152).circle(0.303).workplane(offset=0.148).circle... | 16 | 131 | 0.293878 |
train_775193f466503039 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.642, 0.953, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.152, 1.953).threePointArc((-0.556, 1.786), (-0.724, 1.382)).lineTo(-0.724, 0.523).threePointArc((-0.556, 0.119), (-0.152, -0.047)).lineTo(0.152, -0.047).threePointArc((0.556, 0.119), ... | 2 | 26 | 2.920692 |
train_9fcd261c235df67b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.677, -0.421), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.323, 0.184).lineTo(-0.094, 0.184).threePointArc((-0.1, 0.163), (-0.11, 0.143)).threePointArc((-0.125, 0.125), (-0.143, 0.11)).threePointArc((-0.163, 0.1), (-0.184, 0.094)).lineTo(-0.... | 3 | 46 | 0.087038 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.