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_453ea346f19cf884 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.211, 0.247, -0.4), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.224, -0.089).lineTo(-0.224, 0.089).lineTo(0.224, 0.089).lineTo(0.224, -0.089).lineTo(0.101, -0.089).lineTo(0.101, 0).lineTo(0.068, 0).lineTo(0.068, -0.089).lineTo(-0.101, -0.089).l... | 17 | 106 | 0.155108 |
train_2c85939bb51dc99a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.65, 0, 0.356), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.229).workplane(offset=0.149).circle(0.248).workplane(offset=0.124).circle(0.266).workplane(offset=0.144).circle(0.236).workplane(offset=0.152).circle(0.33).workplane(offset=0.123).circl... | 12 | 66 | 0.261293 |
train_f82a488247399e1d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.715, 0, -0.449), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.015, -0.129).lineTo(0.002, -0.129).lineTo(0.002, -0.135).lineTo(0.015, -0.135).lineTo(0.015, -0.129).lineTo(0.047, -0.129).lineTo(0.057, -0.12).lineTo(0.057, 0.016).lineTo(0.035, 0.0... | 2 | 19 | 0.041226 |
train_447bc58bdb484994 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.6, -0.771, 0.213), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.086, 1.729).threePointArc((-0.258, 1.579), (-0.415, 1.744)).lineTo(-0.516, 0.933).threePointArc((-0.522, 0.898), (-0.524, 0.864)).lineTo(-0.519, 0.81).lineTo(-0.415, -0.235).threeP... | 10 | 122 | 1.918188 |
train_5b3ce29ff8888612 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.879, 0.748, 0.325), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(1.16, 2.488).threePointArc((0.352, 0.879), (1.16, -0.73)).lineTo(-0.151, 0.166).threePointArc((-1.16, 0.879), (-0.151, 1.592)).lineTo(1.16, 2.488).close().extrude(1.419)
result = res... | 3 | 31 | 3.175771 |
train_c7e7e79b28ee187e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.265, -0.556), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.543).extrude(0.832)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.192, 0.222, 0.051), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.175).extrude(0.231))
result = result.union(cq.... | 12 | 94 | 1.555255 |
train_221549061367f1d1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.214, 0, -0.242), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.572, 1.288).extrude(0.394)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.135, 0.064, 0.15), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.415, 1.16).extrude(0.043))
result = result... | 16 | 102 | 0.683935 |
train_7c730e2a9cb6e791 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.519, 0.078, -0.44), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.962, 0.71).extrude(1.035)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.675, -0.065, -0.471), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.083).extrude(1.242))
result = result.un... | 14 | 121 | 0.59101 |
train_9b79d6c02c275d92 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.001, 0.39), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.492, -0.465).threePointArc((-1, -0.002), (-0.493, 0.462)).lineTo(0.535, 0.465).threePointArc((0.671, 0.136), (1, 0)).lineTo(1, -0.465).lineTo(-0.492, -0.465).close().extrude(0.779)
re... | 25 | 224 | 0.831816 |
train_18b9f84bfa3df7ca | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.002, 0, 0.021), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.153, 0.809).lineTo(0, 1.016).lineTo(0.153, 0.809).lineTo(0.153, 0.391).threePointArc((0.129, 0.39), (0.105, 0.387)).lineTo(0.105, 0.228).threePointArc((0.129, 0.225), (0.153, 0.223))... | 9 | 84 | 0.712356 |
train_84d442dfde8c8967 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.018, 0.026, -0.61), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.519, 0.435).lineTo(-0.087, 0.435).threePointArc((-0.519, 0.278), (-0.245, -0.091)).threePointArc((-0.162, -0.079), (-0.087, -0.043)).threePointArc((-0.019, 0.019), (0.026, 0.1)).thr... | 21 | 163 | 0.617742 |
train_445bd4149a86930e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.815, -0.41, -0.014), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.136, 1.033).lineTo(-0.147, 1.033).lineTo(-0.431, 0.542).lineTo(-0.147, 0.05).lineTo(0.136, 0.05).lineTo(0.136, 0.247).threePointArc((0.431, 0.542), (0.136, 0.837)).lineTo(0.136, 1... | 40 | 142 | 0.393967 |
train_1f546e046b5e38a8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.061), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.958, 2).extrude(0.123)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.383 + 0.1915, -0.8 + 0.16, -0.08), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.069, -0.093).lineTo(0.002, -0.093).... | 11 | 146 | 0.202251 |
train_2af1d3369e09f98b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.164, 1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.46).sweep(cq.Workplane('XY').spline([(0.164, 0.454), (0.471, 0.691), (0.779, 0.691), (1.086, 0.454)]))
result = result.edges().chamfer(0.05)
result = result.cut(cq.Workplane(cq.Plane(origin... | 11 | 31 | 0.485371 |
train_e71ee46612948430 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.347, 0.288, -0.201), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.322, -0.224).lineTo(0.322, -0.135).lineTo(0.461, -0.135).lineTo(0.461, 0.282).lineTo(0.322, 0.282).lineTo(0.322, 0.306).threePointArc((0.319, 0.338), (0.312, 0.371)).threePointArc... | 20 | 286 | 0.487645 |
train_fe370842d97a61d2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.035, 0, 0), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.172, -1).lineTo(0.172, 1).threePointArc((0, 0.967), (-0.172, 1)).lineTo(-0.172, -1).lineTo(0.172, -1).close().revolve(angleDegrees=360, axisStart=(0.172, -1), axisEnd=(0.172, 1))
result =... | 8 | 87 | 0.723542 |
train_e04a2ddb2b619de6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.183, -0.181, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.163, 0.995).threePointArc((0, 1.158), (-0.163, 0.995)).lineTo(-0.163, -0.633).threePointArc((0, -0.796), (0.163, -0.633)).lineTo(0.163, 0.995).close().workplane(offset=0.079).moveTo(0... | 10 | 43 | 0.162893 |
train_ece927a943c5632d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.73, 0.843, -0.017), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.151, 0.167).threePointArc((-0.209, 0.167), (-0.253, 0.13)).threePointArc((-0.262, 0.073), (-0.234, 0.024)).threePointArc((0.262, -0.167), (-0.151, 0.167)).close().sweep(cq.Workplan... | 3 | 31 | 0.246693 |
train_2de28eebd5f86357 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.367, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.134, -0.367).threePointArc((0.011, -0.471), (-0.112, -0.367)).lineTo(-0.182, -0.367).lineTo(-0.182, 0.057).threePointArc((-0.204, 0.312), (-0.186, 0.568)).threePointArc((-0.185, 0.575), (-... | 6 | 44 | 0.999657 |
train_64853beff0c0a3bd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.183), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.251, 0.702).threePointArc((-0.322, 0.673), (-0.351, 0.602)).lineTo(-0.351, -0.602).threePointArc((-0.322, -0.673), (-0.251, -0.702)).lineTo(0.251, -0.702).threePointArc((0.322, -0.673), (... | 9 | 60 | 0.434222 |
train_373f52147637224c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.5, 0.279, -0.3), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.999, 0.877).extrude(0.413)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.251, 0.249, -0.102), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.296).extrude(0.172))
result = result.cu... | 19 | 57 | 0.713075 |
train_3dfdc41be43c3faa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.017, -0.003, -0.322), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.017, -0.02).lineTo(0.513, 0.882).lineTo(-0.519, 0.852).lineTo(-0.983, 0.026).lineTo(-0.501, -0.875).lineTo(0.506, -0.849).close().center(0, 0.276).rect(0.51, 0.331).moveTo(-0.287... | 10 | 82 | 0.995612 |
train_4c26f0fe1f0a1ff9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.388, -0.335, 0.315), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.658, 0.536).threePointArc((0.028, 0.028), (0.528, -0.665)).lineTo(0.658, -0.599).threePointArc((0.132, 0.13), (-0.591, 0.665)).lineTo(-0.658, 0.536).close().sweep(cq.Workplane('... | 4 | 11 | 0.436374 |
train_e82a5c014992181a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.668, 0.278, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.098, -0.234).threePointArc((-0.069, -0.303), (0, -0.332)).threePointArc((0.069, -0.303), (0.098, -0.234)).lineTo(0.098, 0.45).threePointArc((0.069, 0.519), (0, 0.548)).threePointArc((... | 6 | 40 | 0.024789 |
train_b43613835789e8d0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.07, -0.136, -0.035), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.93, 0.075).lineTo(-0.93, 0.009).lineTo(0.93, 0.009).lineTo(0.93, 0.262).lineTo(-0.93, 0.262).lineTo(-0.93, 0.075).close().extrude(0.088)
result = result.edges().fillet(0.027)
resu... | 14 | 133 | 0.039799 |
train_21e593a3b926f4e1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.117, 0.029, -0.88), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.12, 0.214).lineTo(-0.12, 0.084).lineTo(0.009, 0.084).lineTo(0.009, -0.027).lineTo(-0.12, -0.027).lineTo(-0.12, -0.157).lineTo(0.12, -0.157).lineTo(0.12, 0.214).lineTo(-0.12, 0.214... | 4 | 46 | 0.015336 |
train_71e0ffc62227ab77 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.358, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.736, -0.172).threePointArc((0, 0.33), (0.736, -0.172)).lineTo(0.686, -0.304).lineTo(0.571, -0.33).threePointArc((0.546, -0.249), (0.511, -0.172)).lineTo(0.641, -0.172).threePointArc((0.46... | 1 | 15 | 0.218996 |
train_7faac811e060eca9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.587, 0, 0.16), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.226, 0.183).lineTo(0.226, -0.152).lineTo(-0.257, -0.152).lineTo(-0.257, -0.183).lineTo(0.257, -0.183).lineTo(0.257, 0.183).lineTo(0.226, 0.183).close().sweep(cq.Workplane('XY').spline([... | 16 | 77 | 0.429759 |
train_121ed61515f41d53 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.614, 0.329, -0.183), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.129, 0.235).lineTo(0.055, 0.235).lineTo(0.055, -0.09).lineTo(-0.129, -0.09).lineTo(-0.129, 0.312).lineTo(0.129, 0.312).lineTo(0.129, 0.235).close().workplane(offset=0.143).moveTo(... | 15 | 292 | 0.296273 |
train_5d216db6ecf5729b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.382, 0.05, 0.035), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.079, 0.008).lineTo(0.008, 0.008).lineTo(0.008, 0.001).lineTo(0.016, 0.001).lineTo(0.016, -0.015).lineTo(0.008, -0.015).lineTo(0.008, -0.051).lineTo(0.079, -0.051).lineTo(0.079, 0.0... | 6 | 40 | 0.046221 |
train_37b6be35481f424d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.279, -0.997), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.003, 0.011).lineTo(0.003, -0.011).lineTo(-0.003, -0.011).lineTo(-0.003, 0.011).lineTo(0.003, 0.011).close().sweep(cq.Workplane('YZ').spline([(0.065, -1.001), (0.111, -0.932), (0.092, -... | 5 | 23 | 0.000114 |
train_cefa2c926a39b4d1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.111, -0.063, 0.132), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.201, 0.306).lineTo(0.201, -0.051).lineTo(0.146, -0.107).lineTo(0.146, -0.184).lineTo(0.047, -0.418).lineTo(-0.046, -0.418).lineTo(-0.145, -0.184).lineTo(-0.147, -0.185).lineTo(-0.1... | 4 | 62 | 0.435769 |
train_b58e32d433be9468 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.095, 0.015, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.296, 0.084).threePointArc((0.411, 0.2), (0.296, 0.315)).threePointArc((0.305, 0.61), (0.326, 0.905)).threePointArc((-0.411, 0.2), (0.326, -0.506)).threePointArc((0.305, -0.211), (0.29... | 16 | 76 | 0.443017 |
train_7cda20073203d938 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.743, -0.484), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.855, 0.909).lineTo(0.758, 1.567).lineTo(0.615, 1.335).lineTo(0.242, 1.335).lineTo(0.099, 1.567).lineTo(0.002, 0.909).lineTo(-0.714, 0.909).lineTo(-1, 0.414).lineTo(0.429, 0.414).lineT... | 2 | 16 | 1.562899 |
train_83914ce7aff1acc3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.121, -0.259, -0.103), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.156, 0.032).lineTo(0.116, 0.032).lineTo(0.116, 0.093).lineTo(-0.156, 0.093).lineTo(-0.156, -0.093).lineTo(0.156, -0.093).lineTo(0.156, 0.032).close().workplane(offset=0.044).mov... | 5 | 26 | 0.055278 |
train_30d97fad12d273ac | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.393), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.899, 0.628).lineTo(1, 0.628).lineTo(1, -0.628).lineTo(-1, -0.628).lineTo(-1, 0.628).lineTo(-0.899, 0.628).lineTo(-0.899, -0.527).lineTo(0.899, -0.527).lineTo(0.899, 0.628).close().extrude(... | 2 | 50 | 0.325325 |
train_de60a4a43348cf09 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.109, -0.132, -0.369), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.112, 1.736).extrude(0.613)
result = result.union(cq.Workplane(cq.Plane(origin=(0.66, -0.543, -0.09), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.477, 0.312).extrude(0.232))
result = ... | 22 | 222 | 0.689003 |
train_ee15a0c0db5ff1d0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.512, -0.088, 0.088), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.088, 0.95).threePointArc((0.088, 0.231), (-0.088, -0.488)).lineTo(-0.088, 0.95).close().revolve(angleDegrees=180, axisStart=(-0.088, -0.488), axisEnd=(-0.088, 0.95))
result = res... | 7 | 33 | 0.035094 |
train_8bb8d5b923751047 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.164, 0.212, -0.229), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.386, 0.677).threePointArc((-0.45, 0.435), (-0.386, 0.194)).threePointArc((-0.209, 0.017), (0.032, -0.048)).lineTo(0.45, 0.194).lineTo(0.45, 0.677).threePointArc((0.273, 0.853), (0... | 8 | 36 | 1.244683 |
train_b236e2f4f79cda0b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.141, 0.423, -0.07), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.155, 0.092).threePointArc((0.106, 0.068), (0.052, 0.06)).threePointArc((-0.002, 0.068), (-0.052, 0.092)).lineTo(-0.052, 0.026).lineTo(-0.155, 0.026).lineTo(-0.155, -0.092).lineTo(-... | 8 | 85 | 0.173464 |
train_9261fbcdcadb8fce | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.037, -0.004, -0.023), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.041, 0.033).lineTo(-0.041, 0.031).lineTo(-0.044, 0.031).lineTo(-0.044, 0.029).lineTo(-0.045, 0.029).lineTo(-0.045, -0.024).lineTo(-0.041, -0.024).lineTo(-0.041, -0.022).lineTo(0.... | 3 | 29 | 0.000775 |
train_5a6a52f1349859e8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.349, 0, 0.356), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.276, -0.387).lineTo(0.119, -0.23).lineTo(-0.341, 0.23).lineTo(-0.276, 0.23).lineTo(-0.276, 0.387).lineTo(0.341, -0.23).lineTo(0.341, -0.387).lineTo(0.276, -0.387).close().sweep(cq.Wor... | 28 | 360 | 0.281797 |
train_59f268203a66b3f4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.009, 0.714), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.137).sweep(cq.Workplane('YZ').spline([(0.009, 0.427), (0.185, 0.304), (0.361, 0.551), (0.536, 0.304), (0.712, 0.551), (0.888, 0.427)]))
result = result.edges().chamfer(0.092)
result = r... | 5 | 21 | 0.070227 |
train_b3d5ed966eec93fd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.01, -0.934, -0.216), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.046, -0.043).threePointArc((0.047, 0.054), (-0.046, 0.027)).threePointArc((-0.047, -0.013), (-0.023, -0.044)).threePointArc((-0.013, -0.039), (-0.002, -0.035)).threePointArc((-0.... | 4 | 13 | 0.009094 |
train_780ab3ec02dcc169 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.242, -0.407, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-1, 0.042).lineTo(1, 0.042).lineTo(1, 0.092).lineTo(-0.125, 0.442).lineTo(-1, 0.442).lineTo(-1, 0.042).close().extrude(0.814)
result = result.edges().fillet(0.015)
| 2 | 32 | 0.490376 |
train_bec78f2ab6f7906e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.033), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.465, 0.633).lineTo(-0.465, -0.478).threePointArc((-0.445, -0.555), (-0.393, -0.613)).threePointArc((-0.328, -0.633), (-0.263, -0.611)).threePointArc((-0.139, -0.549), (0, -0.526)).threePoi... | 2 | 27 | 1.679757 |
train_bb24cdfe8d6ee8b0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.417, -0.406), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.613, 1.167).extrude(0.382)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, -0.417, -0.118), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.066).extrude(0.096))
result = result.cut(cq.... | 27 | 181 | 0.453709 |
train_0510b533875af175 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.5, -0.474, 0.5), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.5, 0.474).threePointArc((-0.205, 1.17), (0.5, 1.443)).lineTo(0.5, -0.495).threePointArc((-0.205, -0.221), (-0.5, 0.474)).close().revolve(angleDegrees=180, axisStart=(0.5, 1.443), axi... | 8 | 23 | 1.983338 |
train_5790080f598d0a9e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.725), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.253).extrude(1.451)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.205, 0.047, 0.094), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.97, 0.377).extrude(0.648))
result = result.cut(cq.Wo... | 9 | 50 | 2.315959 |
train_076f1ba0eeb6159f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.515, 0, 0.436), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.248, -0.386).lineTo(0.072, 0.113).lineTo(-0.083, 0.354).lineTo(-0.066, 0.386).lineTo(0.248, 0.386).lineTo(0.228, 0.354).lineTo(0.091, 0.142).lineTo(0.11, 0.113).lineTo(0.091, 0.084).li... | 1 | 12 | 0.141193 |
train_bd19ce6ca8dbadc1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.783, -0.024, -0.197), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.217).transformed(offset=(0.262, -0.123, 0.016), rotate=(0, 20, 0)).circle(0.125).transformed(offset=(0.523, 0.058, 0.084), rotate=(0, 0, 0)).circle(0.102).transformed(offset=(0.... | 3 | 6 | 0.01102 |
train_fad996c1fa6913e1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.913, -0.625, 0.038), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.758, 1.625).lineTo(0.758, 1.625).lineTo(0.758, 1.107).lineTo(0.03, 1.107).lineTo(0.333, 0.932).lineTo(0.333, 0.138).lineTo(0.758, 0.138).lineTo(0.758, -0.375).lineTo(-0.758, -0.3... | 23 | 117 | 3.887194 |
train_2745f02473cdec3c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.124, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.278, 0.336).lineTo(-0.416, 0.291).lineTo(-0.536, 0.251).threePointArc((-0.451, 0.208), (-0.356, 0.214)).threePointArc((-0.319, 0.197), (-0.278, 0.191)).lineTo(-0.278, -0.088).lineTo(0.536... | 12 | 93 | 0.180738 |
train_73113a3b80927eff | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.414, 0, -0.901), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.03, 0.025).threePointArc((-0.028, 0.021), (-0.025, 0.019)).threePointArc((-0.002, -0.001), (0.004, -0.032)).threePointArc((0.004, -0.035), (0.007, -0.038)).lineTo(0.02, -0.046).three... | 4 | 32 | 0.014858 |
train_93e7257f5ada4763 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.642, 0.08, -0.445), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.223, 0.227).lineTo(-0.223, 0.037).lineTo(-0.356, 0.037).lineTo(-0.356, -0.153).lineTo(0.356, -0.153).lineTo(0.356, 0.227).lineTo(-0.223, 0.227).close().extrude(0.121)
result = res... | 7 | 93 | 0.135288 |
train_563f2b5bac5859ae | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1.102, 0.539, -0.153), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 1.91).lineTo(-0.904, 1.006).lineTo(0, 1.006).lineTo(0, 0.102).lineTo(0.904, 0.102).lineTo(0.904, 1.91).lineTo(0, 1.91).close().extrude(1.077)
result = result.edges().chamfer(0.23... | 21 | 130 | 1.500605 |
train_5b36c5d4a1dde711 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.121, 0.011, 0.034), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.063, 0.591).extrude(0.165)
result = result.union(cq.Workplane(cq.Plane(origin=(0.068, 0.133, 0.213), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.03, 0.098).threePointArc((0.021, 0.1... | 13 | 129 | 0.230991 |
train_2a9f403b514633b7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.007, -0.053, -0.005), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.041, -0.021).lineTo(-0.041, -0.035).lineTo(-0.003, -0.035).lineTo(-0.003, -0.021).lineTo(0.003, -0.021).lineTo(0.003, -0.035).lineTo(0.041, -0.035).lineTo(0.041, -0.021).lineTo(... | 15 | 174 | 0.007253 |
train_da8a203a55d6bf72 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.121, 0.113, 0.482), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.378, 1.032).extrude(0.518)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.378, 0.252, 0.802), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.191).extrude(0.203))
result = result.c... | 29 | 102 | 1.031202 |
train_f8665f7e24b8df5a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.187, 0.36, -0.512), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.147, 1.147).extrude(1.512)
result = result.faces('<X').shell(-0.096)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.13, -0.099, -0.642), normal=(0, -1, 0), xDir=(0, 0, 1))).m... | 21 | 127 | 2.089429 |
train_8e6c85ff873831a7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.198, -0.618, -0.031), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.327, -0.114).threePointArc((-0.295, -0.078), (-0.273, -0.035)).lineTo(-0.315, -0.025).lineTo(-0.582, 0.041).lineTo(-0.606, 0.048).lineTo(-0.626, 0.053).lineTo(-0.8, 0.096).line... | 7 | 61 | 0.40695 |
train_f33dca400ed6f0cc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.458, -0.061, -0.581), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.556).sweep(cq.Workplane('XZ').spline([(0.458, -0.581), (0.408, -0.244), (0.089, -0.006), (-0.357, 0.027), (-0.731, -0.16)]))
result = result.edges().fillet(0.287)
result = result... | 11 | 16 | 1.490158 |
train_85c3fc2aeeac9a94 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.153, 0.31, 0.372), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.618, 0.54).lineTo(-0.001, 0.893).lineTo(-0.618, 0.536).lineTo(-0.614, -0.177).lineTo(-0.609, -0.893).lineTo(0.003, -0.534).lineTo(0.618, -0.173).lineTo(0.618, 0.54).close().extrude... | 11 | 140 | 0.700082 |
train_4b6e98f430f13e54 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.533, 0.133, 0.092), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.284, 0.339).lineTo(0.284, -0.339).lineTo(-0.284, -0.339).lineTo(-0.284, 0.339).lineTo(0.284, 0.339).close().extrude(0.491)
result = result.edges().fillet(0.202)
result = result.un... | 4 | 41 | 0.972669 |
train_5bc9f0693ee4514b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.006, 0.04), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1, 0.03).lineTo(-1, -0.13).lineTo(1, -0.13).lineTo(1, 0.03).lineTo(0.9, 0.13).lineTo(0.8, 0.03).lineTo(0.7, 0.13).lineTo(0.6, 0.03).lineTo(0.5, 0.13).lineTo(0.4, 0.03).lineTo(0.2, 0.03)... | 10 | 113 | 0.026754 |
train_d729c6df3723b371 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.035, 0.738, -0.34), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.66, -0.334).threePointArc((0, -0.721), (0.66, -0.334)).lineTo(0.66, 0.404).threePointArc((0, 0.791), (-0.66, 0.404)).lineTo(-0.66, -0.334).close().extrude(1.476)
result = result.e... | 17 | 171 | 1.722762 |
train_543118771b5289de | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.509, 0.061, -0.312), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.428, -0.085).lineTo(0.428, 0.417).lineTo(0.017, 0.417).lineTo(0.017, 0.818).lineTo(-0.428, 0.818).lineTo(-0.428, -0.085).lineTo(0.428, -0.085).close().extrude(1.018)
result = resu... | 5 | 62 | 0.697405 |
train_1490f6e7f4069c73 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.021, -0.402, -0.976), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.979, -0.515).lineTo(0.979, 0.866).threePointArc((0.808, 1.222), (0.422, 1.307)).lineTo(-0.671, 1.05).threePointArc((-0.979, 0.798), (-0.969, 0.398)).threePointArc((-0.8, -0.045), ... | 13 | 60 | 4.419761 |
train_a293813052b09ad8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.131, -0.157, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.168).lineTo(-1, 0.008).lineTo(1, 0.008).lineTo(1, 0.168).lineTo(0.8, 0.168).lineTo(0.7, 0.268).lineTo(0.6, 0.168).lineTo(0.5, 0.268).lineTo(0.4, 0.168).lineTo(-0.4, 0.168).lineTo(... | 4 | 50 | 0.026652 |
train_42439816945851c6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.675, 0.713, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 1.557).threePointArc((-0.469, 1.431), (-0.813, 1.087)).threePointArc((-0.938, 0.619), (-0.813, 0.15)).threePointArc((-0.469, -0.193), (0, -0.319)).threePointArc((0.469, -0.193), (0.81... | 15 | 170 | 0.505837 |
train_356b75029b772765 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.922, -0.102, -0.497), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.211, 1.356).threePointArc((0.445, 1.605), (0.546, 0.91)).lineTo(-0.194, 0.118).lineTo(-0.37, 0.222).lineTo(-0.546, 0.326).lineTo(-0.211, 1.356).close().extrude(0.618)
result = r... | 16 | 62 | 0.915148 |
train_854ed3a4a1357851 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.295, -0.214, -0.078), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.145, -0.216).lineTo(0.146, -0.217).lineTo(0.146, 0.212).lineTo(-0.147, 0.215).close().moveTo(0.02, 0.061).lineTo(0.006, 0.08).lineTo(-0.016, 0.073).lineTo(-0.016, 0.049).lineTo(0... | 25 | 327 | 0.184795 |
train_d90a2544850362a7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.562, -0.295, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.384).lineTo(-1, 0.351).lineTo(-0.511, 0.351).lineTo(-0.511, 0.028).lineTo(-0.478, 0.028).lineTo(-0.478, 0.351).lineTo(1, 0.351).lineTo(1, 0.384).lineTo(0.511, 0.384).lineTo(0.511,... | 10 | 76 | 0.104633 |
train_8b233881fa1a6e85 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.451, 0.083, -0.032), normal=(0, 0, -1), xDir=(1, 0, 0))).lineTo(-1.145, -0.485).lineTo(-1.216, -0.485).lineTo(-1.216, 0.485).lineTo(-1.145, 0.485).lineTo(-1.145, 0.625).close().workplane(offset=0.043).lineTo(-1.14, -0.483).lineTo(-1.21, -0.483).... | 20 | 166 | 0.334406 |
train_06e1537beefead9e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.293, -0.788, 0.083), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.309, -0.337).lineTo(-0.017, 0.117).lineTo(-0.158, 0.337).lineTo(-0.143, 0.365).lineTo(0.143, 0.365).lineTo(0.124, 0.337).lineTo(-0.124, 0.337).lineTo(0, 0.143).lineTo(0.017, 0.11... | 3 | 26 | 0.257841 |
train_3ead0ad56d859e12 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.372, -0.455, -0.124), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.132).lineTo(0.272, 0.132).lineTo(0.272, 0.087).lineTo(-0.106, 0.087).lineTo(-0.106, 0.011).lineTo(-0.151, 0.011).lineTo(-0.151, 0.087).lineTo(-0.272, 0.087).lineTo(-0.272, 0.1... | 11 | 114 | 0.107169 |
train_246c7225b8751987 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.037, 0.314, 0.011), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.141, 0.208).extrude(0.645)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0.276, 0.985), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.16, 0.02).threePointArc((0, 0.221), (0.1... | 2 | 6 | 0.020598 |
train_262aa69eb9e48aa9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.269, 0.047, -0.197), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.462, 1.199).extrude(0.293)
result = result.union(cq.Workplane(cq.Plane(origin=(0.269, 0.078, 0.094), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.766, 1.022).extrude(0.034))
result = re... | 14 | 214 | 0.508887 |
train_402635d77b9f48d6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.136, 0.003, 0.08), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.043, 0.217).lineTo(0.043, 0.217).lineTo(0.043, 0.155).lineTo(0.159, 0.124).lineTo(0.781, 0.124).lineTo(0.864, 0.041).lineTo(0.864, -0.103).lineTo(0.781, -0.186).lineTo(0.159, -0.18... | 19 | 121 | 0.082141 |
train_15dc7593c43b0421 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.606, -0.669, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(1, 1.021).threePointArc((0, 1.078), (-1, 1.021)).lineTo(-1, 0.114).threePointArc((0, 0.178), (1, 0.114)).lineTo(1, 1.021).close().extrude(1.337)
result = result.edges().chamfer(0.166)
r... | 13 | 184 | 2.103602 |
train_1319a23bfda2a1c1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.917, 0.214, -0.273), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.307, 0.695).threePointArc((-0.283, 0.305), (-0.211, -0.079)).lineTo(0.307, 0.05).threePointArc((0.247, 0.37), (0.228, 0.695)).lineTo(-0.307, 0.695).close().extrude(0.577)
result ... | 6 | 71 | 0.701698 |
train_48039f23ee0865e9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.85, -0.458, -0.029), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.068, 0.181).threePointArc((-0.06, 0.181), (-0.158, 0.098)).threePointArc((-0.181, -0.028), (-0.117, -0.139)).threePointArc((0.037, -0.181), (0.167, -0.09)).threePointArc((0.181, 0... | 2 | 14 | 0.092043 |
train_d74656e6296e521f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.457, -0.002), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.987, 0.454).lineTo(-1, 0.454).lineTo(-1, 0.166).lineTo(1, 0.166).lineTo(1, 0.262).lineTo(-0.987, 0.454).close().revolve(angleDegrees=270, axisStart=(-0.987, 0.454), axisEnd=(-1, 0.45... | 5 | 41 | 0.295761 |
train_31df99ca6570bc4e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.256), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.029).extrude(0.627)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.18, 0.072, -0.114), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.087).extrude(0.06))
result = result.cut(cq.Workplan... | 14 | 50 | 1.257998 |
train_8867c40736ff252f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.461, -1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.422, 0.461).threePointArc((0, 0.04), (-0.422, 0.461)).threePointArc((-0.298, 0.759), (0, 0.883)).threePointArc((0.298, 0.759), (0.422, 0.461)).close().extrude(2)
result = result.edges().c... | 8 | 30 | 0.924346 |
train_64f643d2db66ec27 | 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(0.828, 1.96).extrude(1.714)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.177, 0.042, -1.21), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.217, 0.479).extrude(2.057))
result = result.cut(cq... | 10 | 46 | 2.540188 |
train_b427f4ae52c4bab2 | 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.968, 0.761).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.258, 0.363, 0.519), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.018).extrude(0.108))
result = result.cut(cq.Workplane(c... | 9 | 90 | 1.318624 |
train_985eb5c4cb7bc8db | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.087, -0.297, -0.225), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.213, 0.017).lineTo(-0.213, 0.442).lineTo(0.213, 0.442).lineTo(0.213, 0.017).lineTo(-0.213, 0.017).close().extrude(0.45)
result = result.edges().chamfer(0.18)
result = result.unio... | 20 | 85 | 0.061852 |
train_53087a9dab7f97a4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.358, 1, 0.064), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.171, 0.077).threePointArc((0, 0.248), (-0.171, 0.077)).lineTo(-0.171, -0.248).threePointArc((0, -0.24), (0.171, -0.235)).lineTo(0.171, 0.077).close().sweep(cq.Workplane('XY').spline([(0... | 3 | 12 | 0.173471 |
train_b1bebd23214e0cf1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.919, -0.883), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.085, -0.056).lineTo(-0.085, 0).lineTo(-0.028, 0.056).lineTo(-0.028, 0).lineTo(0.028, 0).lineTo(0.085, 0.056).lineTo(0.085, -0.056).lineTo(-0.085, -0.056).close().sweep(cq.Workplane('Y... | 2 | 14 | 0.015912 |
train_6b4c877fd96e565c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.692, 0, -0.403), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, 0.308).threePointArc((-0.308, 0), (0, -0.308)).threePointArc((0.032, -0.306), (0.064, -0.301)).threePointArc((0.308, 0.001), (0.062, 0.302)).lineTo(0, 0.308).close().sweep(cq.Workpl... | 6 | 27 | 0.574616 |
train_3974daeed657ca18 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.008, 0.147, 0.067), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.692, 0.115).threePointArc((-0.227, 0.316), (0.183, 0.611)).lineTo(0.692, 0.046).threePointArc((0.147, -0.346), (-0.469, -0.611)).lineTo(-0.692, 0.115).close().extrude(0.259)
resul... | 29 | 209 | 0.633276 |
train_02e547c5bb4e844d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.09, 0, -0.256), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.314, 2).extrude(0.512)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.435 + 0.175, 0.1535, -1.556), normal=(0, 1, 0), xDir=(1, 0, 0))).moveTo(0, -0.05).lineTo(-0.033, -0.037).lineTo... | 8 | 9 | 1.346522 |
train_9092303d7f1d4a3b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.065, 0.073, -0.829), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.989, 1.147).extrude(0.369)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.31, -0.162, -0.694), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.093).extrude(0.174))
result = result.u... | 18 | 195 | 0.801633 |
train_bbaf29661bff74ea | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.006, -0.619, 0.209), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 0.005).lineTo(-0.056, 0.005).lineTo(-0.056, -0.042).lineTo(0, -0.042).lineTo(0, -0.051).lineTo(0.056, -0.051).lineTo(0.056, 0.005).lineTo(0.009, 0.005).lineTo(0.009, 0.051).line... | 8 | 82 | 0.340601 |
train_db6f1f3a0f15e6ff | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.168, -0.296, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.235, 1.137).threePointArc((-0.625, -0.414), (0.625, 0.585)).threePointArc((0.288, 1.006), (-0.235, 1.137)).close().extrude(1.913)
result = result.edges().chamfer(0.162)
result = resu... | 3 | 13 | 4.153602 |
train_9a1a268930e3191c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.544).workplane(offset=0.41).circle(0.494).workplane(offset=0.385).circle(0.445).workplane(offset=0.359).circle(0.396).workplane(offset=0.35).circle(0.347).workplane(offset=0.495).circle(0.297)... | 2 | 5 | 1.101466 |
train_7e47887a4fe63d2f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.003, 0.407, -0.092), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.611, -0.567).lineTo(0.604, -0.561).lineTo(0.595, 0.579).lineTo(-0.594, 0.593).close().moveTo(0, -0.126).lineTo(0.038, -0.052).lineTo(0.119, -0.039).lineTo(0.062, 0.02).lineTo(0.07... | 16 | 64 | 0.331728 |
train_d6f72eafac794513 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.059, -0.002, -0.585), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.011, 0.143).threePointArc((-0.14, 0.014), (-0.011, -0.137)).threePointArc((0.14, -0.008), (0.011, 0.143)).close().extrude(0.396)
result = result.edges().chamfer(0.043)
result = re... | 15 | 111 | 0.161936 |
train_6e140f229b35b5a1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.942, -0.382, -0.399), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.368, -0.007).lineTo(0.368, 0.781).lineTo(0.29, 0.781).lineTo(0.29, 0.73).lineTo(-0.368, 0.73).lineTo(-0.368, -0.058).lineTo(-0.29, -0.058).lineTo(-0.29, -0.007).lineTo(0.368, -0.... | 9 | 138 | 0.773582 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.