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_bde267fb39b2afad | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.064, 0.144, 0.252), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.633, 0.437).lineTo(-0.633, 0.174).threePointArc((-0.807, 0), (-0.633, -0.174)).lineTo(-0.633, -0.436).lineTo(-0.633, -0.437).lineTo(0.807, -0.437).lineTo(0.807, 0).lineTo(0.807, ... | 12 | 131 | 0.450522 |
train_9ef825c516bb3a8b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.526, -0.486), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.948, 0.948).extrude(0.765)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0.421, -0.193), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.43, 1.159).extrude(0.178))
result = result.un... | 13 | 89 | 0.811594 |
train_17e6c6bc365834b4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.105), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.895, 0.206).lineTo(0.895, 0.784).lineTo(-0.584, 0.784).lineTo(-0.584, 0.262).lineTo(-0.81, 0.262).lineTo(-0.81, 0.784).lineTo(-0.895, 0.784).lineTo(-0.895, 0.206).lineTo(0.895, 0.206).clos... | 11 | 18 | 2.820606 |
train_667eeffd980297a2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.398, 0.579, -0.002), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.403, 1.401).threePointArc((0.532, 0.337), (-0.532, -0.6)).lineTo(-0.403, 1.401).close().extrude(1.227)
result = result.edges().fillet(0.039)
result = result.cut(cq.Workplane(cq.P... | 13 | 49 | 1.671896 |
train_d2f39b10edf9f4a6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.608, 1.205).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.262, 0.503, -0.178), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.763, 0.209).extrude(0.978))
result = result.cut(cq.Workp... | 17 | 114 | 1.830395 |
train_29a407d838aed3c7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.856, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.322).workplane(offset=0.374).circle(0.387).workplane(offset=0.324).circle(0.999).workplane(offset=0.31).circle(0.668).workplane(offset=0.393).circle(0.312).workplane(offset=0.312).circle(0... | 1 | 3 | 1.811452 |
train_8a275bad7657f564 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.506, -0.953), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.72, 0.989).extrude(1.469)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, -0.269, -0.261), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.508, 0.542).extrude(0.085))
result = result.edg... | 8 | 73 | 1.182659 |
train_f280f9a0ed29b9de | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.092, -0.443, 0.131), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.236, 0.557).lineTo(-0.236, -0.557).lineTo(0.236, -0.557).lineTo(0.236, 0.557).lineTo(-0.236, 0.557).close().extrude(0.231)
result = result.edges().chamfer(0.031)
result = result.... | 15 | 92 | 0.109668 |
train_3f14fd8eb0891df6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.816), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.971, 2).extrude(1.632)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.01, 0.637, -0.426), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.382).extrude(0.475))
result = result.cut(cq.Workpl... | 17 | 135 | 5.98689 |
train_124fb26789ef0536 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.28, 0.329, 0.069), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(1.147, 0.51).threePointArc((0.047, 0.04), (-1.147, 0.09)).threePointArc((-1.034, 0.48), (-0.982, 0.884)).threePointArc((0.122, 0.919), (1.147, 0.51)).close().extrude(0.56)
result = re... | 4 | 29 | 0.580844 |
train_d886265eb07d1e47 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.012, -0.269, -0.117), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.724, 0.013).lineTo(0.546, 0.507).lineTo(0, 0.757).lineTo(-0.522, 0.516).lineTo(-0.748, 0.001).lineTo(-0.528, -0.502).lineTo(-0.01, -0.742).lineTo(0.51, -0.527).close().moveTo(-0.1... | 18 | 97 | 0.259279 |
train_a04e034e2df4b9f3 | 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.556).workplane(offset=0.362).circle(0.491).workplane(offset=0.36).circle(0.385).workplane(offset=0.298).circle(0.298).workplane(offset=0.31).circle(0.243).workplane(offset=0.392).circle(0.117)... | 1 | 3 | 0.768148 |
train_b843ca09b52ef0b5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.078, 0.041, -0.186), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.056, 0.094).extrude(0.061)
result = result.union(cq.Workplane(cq.Plane(origin=(0.078, 0.022, -0.13), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.006).extrude(0.135))
result = result.... | 7 | 71 | 0.01815 |
train_6de71d0f2ea7a821 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, -0.027, -0.736), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.927, 0.927).extrude(1.736)
result = result.faces('<X').shell(-0.096)
result = result.union(cq.Workplane(cq.Plane(origin=(0.046, 0.073, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).circl... | 3 | 16 | 0.694038 |
train_d9bd054a19514d61 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0, -0.137), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.137, 0.413).threePointArc((-0.413, 0.413), (-0.413, 0.137)).lineTo(-0.321, 0.046).threePointArc((-0.23, -0.23), (0.046, -0.321)).lineTo(0.137, -0.413).threePointArc((0.413, -0.413), (0.... | 9 | 54 | 0.280896 |
train_736a41fcbbecf6f3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.503, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.199, 1.006).lineTo(-0.299, 0.41).lineTo(0.299, 0.41).lineTo(0.199, 1.006).lineTo(-0.199, 1.006).close().revolve(angleDegrees=180, axisStart=(0, 0), axisEnd=(0.351, 0))
result = result.edg... | 11 | 82 | 0.38453 |
train_12fc8649ac2286f0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.772, 0.256), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.137, -0.037).lineTo(0.137, -0.195).lineTo(0.116, -0.211).lineTo(0.095, -0.228).lineTo(0.095, -0.037).lineTo(-0.104, -0.037).lineTo(-0.104, -0.012).lineTo(-0.137, -0.012).lineTo(-0.137... | 9 | 17 | 0.144908 |
train_c6f8abbb9fee696a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.003, 0.007, -0.131), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.997, 0).lineTo(0.472, 0.822).lineTo(-0.508, 0.863).lineTo(-1.003, -0.021).lineTo(-0.5, -0.854).lineTo(0.462, -0.876).close().moveTo(-0.381, 0.211).lineTo(-0.381, 0.144).lineTo(-0.3... | 13 | 121 | 0.292606 |
train_af4d021dbe2c794f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.436, 1, -0.184), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.709, 0.996).lineTo(-0.232, 0.169).threePointArc((0.709, 0.067), (0.52, 0.996)).lineTo(0.031, 0.996).lineTo(-0.709, 0.996).close().extrude(2)
result = result.edges().chamfer(0.43)
res... | 5 | 27 | 1.329172 |
train_3f0131b17d5f888c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.725, 0.252, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.206, -0.292).lineTo(0.206, 0.828).lineTo(-0.094, 0.828).lineTo(-0.094, 0.482).threePointArc((-0.206, 0.268), (-0.094, 0.053)).lineTo(-0.094, -0.292).lineTo(0.206, -0.292).close().workp... | 10 | 75 | 0.205983 |
train_dbc8d2624a027bb1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.542, -1.392, -0.542), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.542, 1.666).lineTo(0.542, 0.908).lineTo(-0.542, 0.908).lineTo(-0.542, 1.876).lineTo(0.542, 1.876).lineTo(0.542, 1.666).close().revolve(angleDegrees=180, axisStart=(0.542, 1.666)... | 5 | 33 | 0.634578 |
train_bc5893ea7639221d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.093, -0.045, -0.08), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.097, 0.129).threePointArc((-0.187, -0.061), (0.02, -0.094)).threePointArc((0.187, -0.129), (0.177, 0.042)).threePointArc((0.125, -0.002), (0.059, -0.02)).threePointArc((0.06, 0.0... | 8 | 54 | 0.084272 |
train_1999eadb24750582 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.099, 0, -0.352), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.732, 2).extrude(0.703)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.075, 0.14, 0.107), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.035).extrude(0.069))
result = result.cut(cq.Work... | 8 | 74 | 2.368545 |
train_84db2ecd37b2c196 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.787, -0.048, -0.08), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.205, -0.523).lineTo(-0.205, -0.437).lineTo(-0.188, -0.437).lineTo(-0.188, 0.886).lineTo(-0.205, 0.886).lineTo(-0.205, 0.843).threePointArc((-0.265, 0.868), (-0.29, 0.929)).lineTo... | 10 | 96 | 0.387354 |
train_edbe9399f84505a3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.269, 0.009, -0.213), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.533, 0.302).extrude(0.367)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.176, -0.064, 0.15), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.023).extrude(0.064))
result = resul... | 7 | 75 | 0.134887 |
train_67927262a3541fdf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.375), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.522, 2).extrude(1.019)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.583, -0.12, 0.453), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.054, -0.248).threePointArc((0.01, -0.229), (-0.034,... | 20 | 236 | 2.570528 |
train_15de70065d2604f5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.107, -0.024, 0.611), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.322, -0.288).lineTo(-1.103, -1.069).lineTo(0.518, -0.856).threePointArc((0.833, -0.654), (1.103, -0.396)).lineTo(1.103, 0.322).lineTo(0.255, 0.453).lineTo(-0.286, 1.069).threePo... | 15 | 120 | 1.643813 |
train_c4cc206b133cd816 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.615, 0.467), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.042, 0.264).lineTo(0.039, 0.385).lineTo(0.067, 0.242).lineTo(0.188, 0.323).lineTo(0.16, 0.18).lineTo(0.303, 0.208).lineTo(0.222, 0.087).lineTo(0.365, 0.059).lineTo(0.244, -0.023).line... | 2 | 26 | 0.12075 |
train_f234f572ae23a25e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.112), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.637, 2).extrude(0.225)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0.02), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.085, 0.154).lineTo(-0.1, 0.154).lineTo(-0.105, 0.14).lineTo... | 15 | 62 | 0.473375 |
train_e944a68a540be618 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.088, 0.013, -0.053), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.918, -0.783).lineTo(0.901, -0.752).lineTo(0.912, 0.742).lineTo(-0.95, 0.756).close().moveTo(-0.286, 0.31).lineTo(-0.234, 0.308).lineTo(-0.236, 0.238).lineTo(-0.16, 0.238).lineTo(-... | 21 | 271 | 0.382882 |
train_57cc26c593a50b96 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.13, -0.262, -0.504), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.24, 0.122).threePointArc((-0.069, 0.067), (-0.127, 0.237)).threePointArc((0.24, -0.237), (-0.24, 0.122)).close().sweep(cq.Workplane('YZ').spline([(-0.262, -0.795), (-0.036, -0.7... | 2 | 7 | 0.353426 |
train_9e96fafed838fef6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.334), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.785, 2).extrude(0.668)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, -0.434), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.843, 1.286).extrude(0.869))
result = result.union(cq.Workpla... | 8 | 17 | 1.665184 |
train_af7213c743ead03b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.011, -0.236, 0.032), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.744, 0.008).lineTo(0.529, 0.55).lineTo(0.008, 0.771).lineTo(-0.541, 0.526).lineTo(-0.766, 0).lineTo(-0.56, -0.554).lineTo(-0.006, -0.764).lineTo(0.557, -0.543).close().moveTo(-0.28... | 12 | 93 | 0.505325 |
train_78d477d13d8b1e8f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.103, 1.198).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.006, -0.207, -1.023), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.502, 0.374).extrude(0.931))
result = result.cut(cq.Work... | 10 | 84 | 2.062771 |
train_53d5b2a43a71a73e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.809, -0.172, -0.092), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.908, 0.322).lineTo(0.908, 0.021).lineTo(-0.908, 0.021).lineTo(-0.908, 0.322).lineTo(0.908, 0.322).close().extrude(1.618)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.647 ... | 8 | 47 | 0.828057 |
train_cd30d327c11953fb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.037, 0.095, 0.114), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.102, 0.092).threePointArc((-0.101, 0.085), (-0.102, 0.078)).lineTo(0.038, 0.078).lineTo(0.081, 0.044).threePointArc((0.102, 0.085), (0.081, 0.126)).lineTo(0.038, 0.092).lineTo(-0.... | 9 | 81 | 0.084916 |
train_09f00a05b2fcd5c8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.995, -0.007, -0.158), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.362, -0.007).threePointArc((0.179, -0.39), (0.362, 0.247)).threePointArc((0.259, 0.338), (0.132, 0.39)).threePointArc((-0.21, 0.31), (-0.362, -0.007)).close().sweep(cq.Workplane(... | 5 | 15 | 0.32117 |
train_4c27c3c5bd2a97d1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.033, -1.085, -0.657), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.573, 2.085).lineTo(0.573, 0.189).threePointArc((0.609, 0.1), (0.52, 0.137)).lineTo(-0.557, 0.137).threePointArc((-0.573, 0.174), (-0.609, 0.189)).lineTo(-0.609, 2.033).lineTo(-0.6... | 12 | 156 | 2.854673 |
train_4ad56df96bcdf49a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.877, 0.049, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.182, -0.067).threePointArc((0, 0.404), (-0.182, -0.067)).lineTo(0.182, -0.067).close().extrude(0.338)
result = result.edges().fillet(0.043)
result = result.union(cq.Workplane(cq.Plane(... | 8 | 52 | 0.154382 |
train_f8a08d5837e1ebe9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1.401, 0.002, 0.503), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.501, 0.48).threePointArc((0, 0.492), (-0.501, 0.53)).lineTo(-0.501, 1.872).threePointArc((0, 1.829), (0.501, 1.815)).lineTo(0.501, 0.48).close().revolve(angleDegrees=270, axisStart... | 10 | 49 | 2.137476 |
train_e2c6bfaab65d0adc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.227, -0.124, -0.355), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.351, 1.752).extrude(0.843)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.368, -0.469, -0.488), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.331, 0.672).extrude(0.143))
result... | 4 | 19 | 2.128245 |
train_9ff4d12463992072 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.348), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.374).extrude(0.697)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0.157), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.021, 0.286).lineTo(-0.074, 0.252).lineTo(-0.117, 0.161).lin... | 15 | 107 | 1.375213 |
train_2b5569652bbba478 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.058, 0.272, -0.496), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.504, 1.206).extrude(1.496)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.094, 0.177, 0.287), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.604, 0.172).extrude(0.513))
result = re... | 17 | 55 | 0.823276 |
train_91d47c7170abe583 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.028, -0.267, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.167, -0.102).threePointArc((0.229, -0.097), (0.29, -0.081)).threePointArc((0.479, 0.464), (-0.095, 0.528)).threePointArc((-0.194, 0.349), (-0.182, 0.144)).lineTo(-0.479, 0.144).lineT... | 6 | 35 | 0.305661 |
train_857a15e5fc1291c4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.358, -0.861, -0.281), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.745, 0.995).lineTo(0.132, 1.555).lineTo(-0.745, 1.189).lineTo(0.462, 0.089).lineTo(0.745, 0.995).close().extrude(0.332)
result = result.edges().fillet(0.123)
result = result.unio... | 20 | 168 | 0.320355 |
train_bf12cf014758a20a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.327, 0, -0.006), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.079, 0.063).lineTo(-0.09, 0.053).lineTo(-0.082, 0.056).lineTo(-0.079, 0.057).lineTo(-0.074, 0.059).lineTo(0.09, -0.084).lineTo(0.025, 0.043).lineTo(0.015, 0.063).lineTo(-0.019, 0.063... | 20 | 126 | 0.00884 |
train_bb6a3c1808512ed9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.504, 0.211, -0.393), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.44, 0.379).threePointArc((0, -0.061), (0.44, 0.379)).threePointArc((0.22, 0.32), (0, 0.379)).threePointArc((-0.161, 0.54), (-0.22, 0.761)).threePointArc((-0.381, 0.599), (-0.44, ... | 10 | 61 | 0.297371 |
train_cfdcd8a0f1378262 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.174, 0.904, -0.244), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.481).workplane(offset=0.6).circle(0.572).workplane(offset=0.584).circle(0.396).loft()
result = result.union(cq.Workplane(cq.Plane(origin=(-0.861, 0.321, -0.411), normal=(0, 0, 1)... | 7 | 30 | 1.660803 |
train_b393a365e55ab203 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.213, 0, -0.037), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.366, 0.085).threePointArc((0.254, 0.699), (-0.366, 0.624)).lineTo(-0.182, 0.488).threePointArc((0.119, 0.516), (0.182, 0.22)).lineTo(0.366, 0.085).close().revolve(angleDegrees=360, a... | 5 | 18 | 0.743997 |
train_c206389a0be0eb49 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.009, 0, 0.374), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.383, 1).lineTo(-0.383, -1).lineTo(0.383, -1).lineTo(0.383, 1).lineTo(-0.383, 1).close().revolve(angleDegrees=90, axisStart=(-0.383, 1), axisEnd=(-0.383, -1))
result = result.edges().c... | 8 | 79 | 0.642176 |
train_8e8312a8be60572f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.069, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.001).lineTo(-1, 0.035).lineTo(1, 0.035).lineTo(1, 0.001).lineTo(-1, 0.001).close().revolve(angleDegrees=360, axisStart=(0, 0), axisEnd=(0.012, 0))
result = result.edges().fillet(0.01)
... | 3 | 13 | 0.007842 |
train_8b92e8a36a422003 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.095, -0.63), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.972).extrude(0.747)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.666, -0.02, -0.442), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.125).extrude(0.129))
result = result.cut(cq.Wo... | 30 | 207 | 0.809733 |
train_1923d4c687dd398d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.503, 0.55, 0.105), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.767, 0.503).lineTo(0.917, 0.077).lineTo(0.542, 0.103).lineTo(-0.808, 0.195).lineTo(-0.917, 0.503).lineTo(-0.808, 0.811).lineTo(0.542, 0.903).lineTo(0.917, 0.928).lineTo(0.767, 0.503... | 9 | 75 | 1.299459 |
train_8bdcbe250835f270 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.717, 0, 0.443), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.04, -0.621).threePointArc((-0.271, -0.156), (-0.557, 0.276)).lineTo(0.04, 0.621).lineTo(0.557, -0.276).lineTo(-0.04, -0.621).close().sweep(cq.Workplane('XZ').spline([(-0.177, -0.211)... | 4 | 41 | 0.167852 |
train_79df845ccb17261a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.063, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.607, 0.511).lineTo(-0.448, 0.67).lineTo(0.448, 0.67).threePointArc((0.56, 0.623), (0.607, 0.511)).lineTo(0.607, -0.385).threePointArc((0.56, -0.497), (0.448, -0.544)).lineTo(-0.448, -0.5... | 7 | 65 | 1.49251 |
train_94cee83b42b8df7a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.095, 0.168), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.247).sweep(cq.Workplane('YZ').spline([(0.58, -0.305), (0.323, -0.109), (-0.054, -0.06), (-0.397, -0.178), (-0.567, -0.415)]))
result = result.cut(cq.Workplane(cq.Plane(origin=(0, -0.6... | 7 | 28 | 0.329999 |
train_0138a57ef465355a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.127, 0.286, -0.159), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.631, 0.65).lineTo(0.639, 0.667).lineTo(0.667, 0.432).lineTo(0.129, 0.422).lineTo(0.126, -0.68).lineTo(-0.114, -0.655).lineTo(-0.12, 0.436).lineTo(-0.631, 0.42).close().moveTo(-0.1... | 18 | 214 | 0.548049 |
train_df67d2e41cfc4f4e | 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.067, 0.975).lineTo(0.067, -0.975).lineTo(-0.067, -0.975).lineTo(-0.067, 0.975).lineTo(0.067, 0.975).close().sweep(cq.Workplane('XY').spline([(-0.121, -0.051), (-0.061, -0.047), (0, 0), (0.06, 0... | 1 | 6 | 0.052233 |
train_c68633602184ba9c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.173, 0.024, -0.137), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.022, 0.013).lineTo(0.007, 0.013).lineTo(0.015, 0).lineTo(0.022, -0.013).lineTo(0, -0.026).lineTo(-0.007, -0.013).lineTo(-0.022, -0.013).lineTo(-0.015, 0).lineTo(-0.022, 0.013).lin... | 9 | 65 | 0.020681 |
train_9cba7e414934d039 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.483, -0.009, -0.137), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.494, 0.004).lineTo(0.36, 0.343).lineTo(0.013, 0.512).lineTo(-0.338, 0.358).lineTo(-0.517, 0.002).lineTo(-0.336, -0.342).lineTo(-0.011, -0.493).lineTo(0.335, -0.366).close().moveT... | 8 | 120 | 0.179058 |
train_19e9c7692a0e1003 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.958, 0.178).lineTo(-0.958, 0.371).lineTo(-1, 0.371).lineTo(-1, 0.101).lineTo(1, 0.101).lineTo(1, 0.371).lineTo(0.65, 0.371).lineTo(0.65, 0.178).lineTo(-0.958, 0.178).close().revolve(angleDegre... | 5 | 117 | 0.248975 |
train_5bdea635e5eb872d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.009, 0.084), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.122, 0.006).lineTo(0.125, 0.006).lineTo(0.125, -0.03).lineTo(-0.123, -0.03).lineTo(-0.125, 0.03).lineTo(-0.123, 0.006).lineTo(-0.123, -0.006).lineTo(-0.122, -0.006).lineTo(-0.122, 0.... | 2 | 18 | 0.018882 |
train_c340a4e29c5c3edf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.512, -0.027, -0.202), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.194, 0.063).lineTo(-0.243, 0.063).threePointArc((-0.289, 0.072), (-0.33, 0.096)).lineTo(-0.349, 0.074).lineTo(-0.368, 0.052).threePointArc((-0.309, 0.018), (-0.243, 0.006)).line... | 9 | 171 | 0.871044 |
train_a855f488d34da15c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.044, -0.669), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.748, 1.912).extrude(1.445)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.82, 0.16, -0.029), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.113, 0.334).extrude(0.356))
result = result.c... | 12 | 99 | 4.83556 |
train_bc5a6fb16a570c62 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.764, -0.983), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.333, 0.431).lineTo(1, 1.764).lineTo(-1, -0.236).lineTo(0.333, 0.431).close().extrude(1.966)
result = result.cut(cq.Workplane(cq.Plane(origin=(0 + 0.394 * math.cos(3.035 + 2 * math.pi ... | 5 | 15 | 1.023851 |
train_b7782a1f2b8138f2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.461, -0.011, -0.391), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.614, 0.078).lineTo(-0.601, 0.014).lineTo(0.614, 0.273).lineTo(0.601, 0.337).lineTo(-0.614, 0.078).close().revolve(angleDegrees=270, axisStart=(0, 0), axisEnd=(0.197, 0))
result... | 7 | 83 | 0.286302 |
train_24ea0329ec7e9677 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.272, -0.352), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.044, -0.597).threePointArc((-0.017, -0.546), (0, -0.492)).lineTo(0.54, -0.268).lineTo(0.764, 0.272).lineTo(0.54, 0.811).lineTo(0, 1.035).threePointArc((-0.405, 1.249), (-0.54, 0.811)... | 3 | 58 | 1.633628 |
train_89287468fbae6297 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.193, 1, 0.001), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1.001, 0.352).lineTo(-1.001, 0.033).lineTo(1.001, 0.033).lineTo(1.001, 0.352).lineTo(-1.001, 0.352).close().revolve(angleDegrees=90, axisStart=(-1.001, 0.352), axisEnd=(-1.001, 0.033))
... | 14 | 127 | 0.928923 |
train_330184a57777b9fb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.455, -0.469, -0.018), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.545, 0.113).lineTo(-0.545, 0.113).lineTo(-0.545, -0.113).lineTo(0.545, -0.113).lineTo(0.545, 0.113).close().sweep(cq.Workplane('YZ').spline([(-0.469, -0.018), (0.156, -0.026), (... | 5 | 56 | 0.312593 |
train_455e746c661afedb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.255, 1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.639, -0.259).lineTo(0.639, 0.259).lineTo(0.469, 0.259).lineTo(0.469, -0.186).lineTo(-0.639, -0.186).lineTo(-0.639, -0.259).lineTo(0.639, -0.259).close().sweep(cq.Workplane('XY').spline([(0.... | 1 | 8 | 0.197122 |
train_c6b5208baac27bfd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.245, 0.365, 0.32), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 0.37).lineTo(-0.602, 0.37).threePointArc((-0.769, 0.203), (-0.602, 0.036)).lineTo(0, 0.036).lineTo(0.602, 0.036).threePointArc((0.769, 0.203), (0.602, 0.37)).lineTo(0, 0.37).close(... | 18 | 74 | 0.146497 |
train_f33e3cf0378f3e98 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.114, -0.225, -0.059), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.081, 0.216).lineTo(0.113, 0.216).lineTo(0.094, 0.249).lineTo(0.094, 0.404).lineTo(0.36, 0.404).lineTo(0.36, 0.216).lineTo(0.302, 0.216).lineTo(0.302, -0.004).lineTo(0.113, -0.00... | 17 | 154 | 0.4049 |
train_42e15399dd5b57cc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.713, 0, -0.114), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.287, 0.302).lineTo(0.287, 0.718).lineTo(0.239, 0.718).lineTo(0.239, 0.335).lineTo(-0.287, 0.335).lineTo(-0.287, -0.718).lineTo(0.287, -0.718).lineTo(0.287, -0.335).lineTo(-0.223, -0.... | 2 | 26 | 0.073745 |
train_dd692f8b39a223bd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.14, -0.399, -0.467), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.745).threePointArc((-0.113, 0.699), (-0.16, 0.585)).lineTo(-0.533, 0.585).lineTo(-0.533, 0.052).lineTo(0, 0.052).lineTo(0.533, 0.052).lineTo(0.533, 0.585).lineTo(0.16, 0.585).t... | 5 | 88 | 0.605454 |
train_e884673a94306e28 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.402), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.022, 2).extrude(0.804)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.397, 0, -0.053), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.12).extrude(0.105))
result = result.cut(cq.Workplane(... | 7 | 30 | 1.490914 |
train_eeb9d4ad5c6f1734 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.491, -0.126), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.073, -0.071).threePointArc((-0.017, 0.01), (0.068, 0.059)).threePointArc((0.073, 0.065), (0.068, 0.071)).threePointArc((-0.023, 0.02), (-0.073, -0.071)).close().sweep(cq.Workplane('... | 1 | 5 | 0.003226 |
train_2c0c43b41094c048 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.667), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.014, 2).extrude(1.334)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.333, 0.14, -0.226), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.024, 2.4).extrude(0.03))
result = result.cut(cq.Workp... | 13 | 57 | 2.535316 |
train_cfb772400342b20a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.187, -0.235, -0.008), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.638, 0.125).lineTo(0.638, 0.373).lineTo(-0.638, 0.373).lineTo(-0.638, 0.125).lineTo(0.638, 0.125).close().revolve(angleDegrees=90, axisStart=(0, 0), axisEnd=(0.324, 0))
result = ... | 22 | 221 | 0.080177 |
train_d7c2f16d4463a26d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.123, -0.839), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.825, -0.267).lineTo(0.804, -0.23).lineTo(0.761, -0.23).lineTo(0, 1.086).lineTo(-0.022, 1.123).lineTo(-0.043, 1.086).lineTo(-0.804, -0.23).lineTo(-0.825, -0.267).lineTo(0.825, -0.267).... | 5 | 26 | 1.288974 |
train_94c1ac671a82edf3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.672, -0.193), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.052).lineTo(-0.236, 0.622).lineTo(0, 0.858).lineTo(0.047, 0.812).lineTo(0.089, 0.979).lineTo(0.153, 0.822).lineTo(0.134, 0.724).lineTo(0.236, 0.622).lineTo(0.114, 0.622).lineTo(0.11... | 14 | 89 | 0.607193 |
train_2cfff5838ba40f21 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.132, 0.156, -0.833), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.918, 0.945).extrude(0.79)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.277, 0.222, -0.45), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.137).extrude(0.234))
result = result.cut... | 21 | 181 | 0.754796 |
train_902a159ba20e68dd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.862, 0.037), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.147).sweep(cq.Workplane('YZ').spline([(-0.862, 0.037), (-0.752, 0.037), (-0.641, 0.037), (-0.599, -0.001), (-0.558, -0.039), (-0.516, -0.077)]))
result = result.edges().chamfer(0.019)... | 12 | 54 | 0.023667 |
train_3cf94b7cceb6e3a0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.336), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.195).extrude(0.673)
result = result.cut(cq.Workplane(cq.Plane(origin=(0 + 0.168 * math.cos(2.877 + 2 * math.pi * 0 / 4), 0 + 0.168 * math.sin(2.877 + 2 * math.pi * 0 / 4), -0.438), normal... | 13 | 241 | 1.392456 |
train_58e35330806311ff | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.119, -0.929, -0.027), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.931, -0.498).lineTo(-0.931, 0.457).lineTo(0.931, 0.457).lineTo(0.931, -0.457).lineTo(0.973, -0.457).lineTo(0.973, 0.498).lineTo(-0.973, 0.498).lineTo(-0.973, -0.498).lineTo(-0.9... | 2 | 13 | 0.240315 |
train_80f6d5fa1b3b6bdc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.363, 1, -0.04), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.318, 0.569).threePointArc((-0.219, 0.041), (0.318, 0.057)).threePointArc((0.299, 0.684), (-0.318, 0.569)).close().extrude(2)
result = result.edges().chamfer(0.251)
result = result.edg... | 3 | 16 | 0.913236 |
train_e9fd3251bf711240 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.918), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.425, 2).extrude(1.714)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.489, -0.14, -0.746), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.042).extrude(0.096))
result = result.edges().cham... | 9 | 157 | 4.843605 |
train_0c4e84b02b1fd7ad | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.737, -0.077, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.224).lineTo(-0.129, 0).lineTo(-0.123, -0.004).lineTo(-0.061, -0.11).lineTo(-0.259, -0.224).lineTo(0.259, -0.224).lineTo(0.061, -0.11).lineTo(0, -0.075).lineTo(0, -0.004).lineTo(0.12... | 2 | 16 | 0.007835 |
train_acceacc4ce868187 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.012, -0.009, -0.348), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.999, 0.016).lineTo(0.74, 0.681).lineTo(0.012, 1.009).lineTo(-0.723, 0.722).lineTo(-0.976, -0.004).lineTo(-0.672, -0.681).lineTo(0.02, -0.991).lineTo(0.711, -0.736).close().moveTo... | 12 | 135 | 1.337642 |
train_eab988eac2ce2fd2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.063, -0.606, -0.158), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.601, 1.063).lineTo(-0.601, -0.937).lineTo(0.601, -0.937).lineTo(0.601, -0.28).threePointArc((0.358, -0.18), (0.257, 0.063)).threePointArc((0.358, 0.306), (0.601, 0.406)).lineTo(... | 8 | 231 | 2.335277 |
train_09cc9d73e8f5035f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.076, 0, 0.122), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.924, -0.647).lineTo(0.924, -0.647).lineTo(0.924, 0.057).lineTo(0.625, 0.057).lineTo(0.625, 0.352).lineTo(-0.625, 0.352).lineTo(-0.625, 0.647).lineTo(-0.924, 0.647).lineTo(-0.924, -0.6... | 22 | 160 | 0.771748 |
train_1036e94c56783605 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.117, -0.093, 0.344), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.189, 0.907).lineTo(0.189, 0.227).lineTo(0.869, 0.227).lineTo(0.869, -0.907).lineTo(0.189, -0.907).lineTo(0.189, 0.075).lineTo(0.038, 0.075).lineTo(0.038, -0.803).lineTo(-0.072, -0... | 4 | 32 | 1.144777 |
train_9e9b663f9016d6a3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.928, -0.699, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.516, 1.778).threePointArc((0.5, 1.794), (0.478, 1.8)).lineTo(-0.478, 1.8).threePointArc((-0.5, 1.794), (-0.516, 1.778)).lineTo(-0.994, 0.95).threePointArc((-1, 0.928), (-0.994, 0.906)... | 11 | 78 | 2.125994 |
train_81ea9f286beb878e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.086, -0.12, -0.172), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.123, 0.903).extrude(0.345)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.016, 0.444, -0.041), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.375, 0.254).extrude(0.094))
result = ... | 4 | 21 | 0.388113 |
train_ab43e2b14869259b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.204, 0.016, -0.255), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.796, -0.006).lineTo(0.264, 0.758).lineTo(-0.689, 0.492).lineTo(-0.658, -0.466).lineTo(0.255, -0.79).close().moveTo(-0.347, 0.157).lineTo(-0.289, 0.156).lineTo(-0.292, 0.025).lineTo... | 19 | 174 | 0.394041 |
train_d4249acf2f0a5211 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.805, 0.672, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.649, 1.566).threePointArc((1, 0.805), (0.649, 0.044)).threePointArc((-1, 0.805), (0.649, 1.566)).close().extrude(1.345)
result = result.edges().chamfer(0.423)
result = result.cut(cq.Wo... | 8 | 29 | 2.662246 |
train_f3234351a6aebe41 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.005, -0.005, 0.508), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.011, 0.327).lineTo(-0.409, 0.327).lineTo(-0.409, -0.272).threePointArc((-0.432, -0.327), (-0.377, -0.305)).lineTo(0.4, -0.305).lineTo(0.432, -0.305).lineTo(0.432, -0.272).lineTo(0... | 12 | 110 | 0.856366 |
train_687acc2048847941 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.175, -0.058, 0.302), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.167, -0.092).lineTo(-0.167, -0.049).lineTo(0.146, -0.049).lineTo(0.146, 0.123).lineTo(0.167, 0.123).lineTo(0.167, -0.049).lineTo(0.163, -0.049).lineTo(0.163, -0.092).lineTo(-0.16... | 3 | 19 | 0.050977 |
train_32c7166652f0f398 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.506, -0.313, 0.306), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 1.128).threePointArc((0.281, 1.069), (0.514, 0.901)).lineTo(-0.085, 0.763).lineTo(-0.055, 0.63).lineTo(0.601, 0.781).threePointArc((0.69, 0.508), (0.662, 0.223)).threePointArc((0... | 17 | 129 | 1.28767 |
train_d239f525d7d3ebe4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.302, -0.159), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.286, -0.078).threePointArc((0.296, 0), (-0.286, 0.078)).threePointArc((-0.296, 0), (-0.286, -0.078)).close().workplane(offset=0.023).moveTo(-0.352, -0.097).threePointArc((0.365, 0),... | 5 | 54 | 0.213852 |
train_004379c6748edde9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.501, 0.038), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.111, 0.604).threePointArc((-0.092, 0.511), (-0.021, 0.449)).lineTo(-0.31, 0.302).threePointArc((0.036, 0.138), (0.382, 0.302)).lineTo(0.093, 0.449).threePointArc((0.163, 0.511), (0.18... | 14 | 148 | 0.433316 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.