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_d9a77b89e87199da | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.033, -0.027, 4.825), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.058, 0.148).lineTo(0.282, 0.059).threePointArc((0.305, 0.03), (0.272, -0.042)).lineTo(0.022, 0.056).threePointArc((0.019, 0.057), (0.016, 0.06)).lineTo(-0.003, 0.081).threePointArc... | 4 | 14 | 0.102506 |
train_8c9bf90ca52645bd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.107, 0.25, 0.083), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.448, 0.99).lineTo(0.916, 0.476).lineTo(0.909, -0.175).lineTo(0.545, -0.775).lineTo(-0.146, -0.665).lineTo(-0.882, -0.373).lineTo(-0.916, 0.48).lineTo(-0.236, 0.879).lineTo(0.448, 0.... | 5 | 39 | 1.201471 |
train_c9553eb12799f624 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.069, -0.983, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.682, 1).lineTo(0.682, -0.862).threePointArc((-0.682, 0.069), (0.682, 1)).close().moveTo(0.106, 0.299).threePointArc((0.227, 0.265), (0.261, 0.143)).threePointArc((0.198, -0.032), (0.0... | 7 | 60 | 3.419644 |
train_b06ada87f5c7c195 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.071, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.087, 0.342).threePointArc((0.145, 0.355), (0.193, 0.321)).lineTo(0.601, -0.198).threePointArc((0.611, -0.226), (0.599, -0.253)).lineTo(0.509, -0.355).threePointArc((0.044, -0.31), (-0.039,... | 14 | 111 | 1.022557 |
train_556f725d68983e51 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.12, -0.464), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.904, 0.599).threePointArc((0.971, 0.582), (1, 0.541)).lineTo(1, 0.453).threePointArc((0.954, 0.387), (0.844, 0.359)).lineTo(0.729, 0.359).threePointArc((0.638, 0.336), (0.6, 0.282)).lin... | 21 | 35 | 1.222487 |
train_8f6aa84ff439954e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.159, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.238).extrude(1.611)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.159, 0, 0.128), normal=(0.478, 0, 0.878), xDir=(0.878, 0, -0.478))).circle(0.597).extrude(0.667))
result = resul... | 3 | 7 | 0.812375 |
train_3d113b049f8102cf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.004, 0, -1), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.655, 2).lineTo(0.655, 0.718).lineTo(0.795, 0.718).lineTo(0.795, 0).lineTo(0.255, 0).lineTo(0.255, 2).lineTo(0.655, 2).close().revolve(angleDegrees=360, axisStart=(0, 0, 0), axisEnd=(0, 1,... | 12 | 66 | 1.567103 |
train_0e1fc36f13aca717 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.089), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.884, 1).lineTo(0.884, -0.879).threePointArc((0.849, -0.964), (0.765, -1)).lineTo(-0.884, -1).lineTo(-0.884, 1).lineTo(0.884, 1).close().extrude(0.177)
result = result.cut(cq.Workplane(cq.P... | 4 | 34 | 0.564905 |
train_0ad0e070d34bc197 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.307), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.515).lineTo(1, -0.512).lineTo(0.966, -0.544).lineTo(-0.973, -0.544).threePointArc((-0.991, -0.537), (-1, -0.519)).lineTo(-1, 0.513).lineTo(-0.968, 0.544).lineTo(0.969, 0.544).threePoint... | 19 | 31 | 1.238771 |
train_cdbc4a42367ebb92 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.102), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.926, 0.815).lineTo(1, 0.75).lineTo(1, -0.768).lineTo(0.944, -0.815).lineTo(-0.957, -0.815).lineTo(-1, -0.781).lineTo(-1, 0.722).lineTo(-0.898, 0.815).lineTo(0.926, 0.815).close().extrude(0... | 11 | 67 | 0.253967 |
train_803310e60abbbc5c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.03, -0.425), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.361, 0.533).lineTo(0.49, 0.422).lineTo(0.49, -0.035).lineTo(0.507, -0.051).lineTo(0.677, -0.05).threePointArc((0.687, 0.022), (0.755, -0.044)).lineTo(0.8, -0.033).lineTo(0.805, 0.422).... | 19 | 180 | 0.897859 |
train_4490fe50b937ab68 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.334, 0.257, -0.887), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.352, 0.347).lineTo(0.371, -0.071).threePointArc((-0.371, -0.347), (0.352, 0.347)).close().moveTo(0.205, 0.04).lineTo(0.194, -0.196).threePointArc((-0.214, 0.196), (0.205, 0.04)).cl... | 11 | 86 | 0.765152 |
train_44ff5309fc8e5692 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.595, 0.577, -0.198), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.801, 1.266).lineTo(0.801, 0.149).lineTo(-0.801, 0.149).lineTo(-0.801, 1.266).lineTo(-0.623, 1.266).lineTo(-0.623, 0.526).lineTo(-0.445, 0.526).lineTo(-0.445, 1.266).lineTo(-0.267, ... | 14 | 299 | 1.522686 |
train_090a34deb41b9d15 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.114), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.345).lineTo(1, -0.348).threePointArc((0.994, -0.353), (0.988, -0.356)).lineTo(-0.987, -0.356).threePointArc((-0.992, -0.353), (-1, -0.346)).lineTo(-1, 0.344).threePointArc((-0.992, 0.35... | 12 | 75 | 0.268157 |
train_df53543ea7e369a4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.068, 0.19, -0.027), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.588, 0.666).threePointArc((0.643, 0.643), (0.666, 0.588)).lineTo(0.666, -0.614).threePointArc((0.651, -0.651), (0.614, -0.666)).lineTo(0.404, -0.666).threePointArc((0.354, -0.645),... | 6 | 83 | 0.282255 |
train_98b13bb1a277413c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.072, -0.42), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.629, 0.659).lineTo(0.629, 0).lineTo(-0.629, 0).lineTo(-0.629, 0.659).lineTo(-0.425, 0.659).lineTo(-0.425, 0.202).lineTo(0.425, 0.202).lineTo(0.425, 0.659).lineTo(0.629, 0.659).close()... | 8 | 79 | 0.765236 |
train_c6ee282716193605 | import cadquery as cq
import math
result = cq.Workplane('XY').moveTo(1, 0.39).lineTo(1, 0.255).threePointArc((0.977, 0.232), (0.923, 0.222)).lineTo(-0.335, 0.222).threePointArc((-0.466, 0.198), (-0.522, 0.141)).lineTo(-0.522, -0.137).threePointArc((-0.463, -0.197), (-0.324, -0.222)).lineTo(0.871, -0.222).threePointArc(... | 4 | 33 | 0.569007 |
train_078ba5630ca2dda7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.146, -0.063, -0.809), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.317, 0.407).threePointArc((0.452, 0.249), (0.327, 0.14)).lineTo(0.466, 0.006).lineTo(0.453, -0.03).lineTo(0.327, -0.14).lineTo(0.462, -0.273).lineTo(0.442, -0.31).lineTo(0.318, -0... | 7 | 106 | 1.315649 |
train_4251b4a744d62be4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.009, 0, -0.243), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.795, -0.094).lineTo(0.983, -0.142).lineTo(0.963, -0.241).lineTo(0.774, -0.207).lineTo(0.745, -0.298).lineTo(0.911, -0.392).lineTo(0.867, -0.483).lineTo(0.694, -0.4).lineTo(0.642, -0.4... | 5 | 139 | 0.981937 |
train_1989962b4796a4c8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.194, 0, -0.119), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.21, 0.221).threePointArc((0.301, 0.183), (0.339, 0.092)).lineTo(0.339, -0.03).threePointArc((0.283, -0.166), (0.147, -0.221)).lineTo(-0.122, -0.221).threePointArc((-0.275, -0.158), (-... | 6 | 54 | 0.383409 |
train_b8a15ed408d77e54 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1.647, 0, -3.221), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.856).extrude(3.55)
result = result.union(cq.Workplane(cq.Plane(origin=(-1.647, 0, -0.739), normal=(0.76, 0, 0.65), xDir=(0.65, 0, -0.76))).circle(1).extrude(1.889))
result = result.cu... | 6 | 142 | 0.345448 |
train_d392062726e9880b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.001, 0.267), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.068, 0.868).threePointArc((0.254, 0.816), (0.333, 0.695)).lineTo(0.333, 0.532).threePointArc((0.378, 0.463), (0.484, 0.434)).lineTo(0.871, 0.434).threePointArc((0.962, 0.409), (1, 0.35... | 3 | 55 | 0.927555 |
train_75ead56c6412a9e8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.136), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.265, 0.141).threePointArc((0.322, 0.117), (0.344, 0.061)).lineTo(0.344, -0.074).threePointArc((0.325, -0.121), (0.277, -0.141)).lineTo(-0.267, -0.141).threePointArc((-0.323, -0.118), (-0.3... | 10 | 45 | 0.2376 |
train_e70138e060465738 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.042, -0.474, 0), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.403, 0.01).threePointArc((0.409, -0.09), (0.401, -0.204)).threePointArc((0.333, -0.295), (0.222, -0.327)).threePointArc((0.115, -0.314), (0.027, -0.278)).threePointArc((-0.042, -0.232... | 4 | 41 | 1.168742 |
train_e3e77df4709e28c7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.104, 0, -0.622), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.179, 0.222).lineTo(-0.179, 0.133).lineTo(0.538, 0.133).lineTo(0.538, 0.044).lineTo(0.896, 0.044).lineTo(0.896, -0.044).lineTo(0.179, -0.044).lineTo(0.179, -0.222).lineTo(-0.179, -0.2... | 17 | 149 | 0.171285 |
train_d4ff09d4eeba2756 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.067, 0, -0.168), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.907, 0.382).lineTo(0.907, 0.223).lineTo(1.066, 0.223).lineTo(1.066, -0.185).threePointArc((1.008, -0.324), (0.869, -0.382)).lineTo(-1.066, -0.382).lineTo(-1.066, 0.185).threePointArc(... | 9 | 73 | 0.397462 |
train_657ca4d87e0ec650 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.058, -0.108, -0.03), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.182, 0.818).lineTo(0, 0.645).lineTo(0, 0.324).lineTo(0.341, 0).lineTo(0.721, 0).lineTo(0.863, -0.135).lineTo(0.863, -0.345).lineTo(0.794, -0.409).lineTo(0.55, -0.409).lineTo(0.432... | 8 | 171 | 0.244617 |
train_ac598774093cf561 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.033, -0.044, -0.133), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.488, -0.043).threePointArc((-0.853, -0.217), (-0.488, 0.13)).lineTo(0.61, 0.13).threePointArc((0.853, 0.217), (0.61, -0.043)).lineTo(-0.488, -0.043).close().extrude(0.157)
result... | 9 | 69 | 0.042109 |
train_72e2a8e42d0c0923 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.02, -0.376), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.117).lineTo(1, 0.091).threePointArc((0.973, 0.085), (0.928, 0.083)).lineTo(0.286, 0.083).threePointArc((0.223, 0.08), (0.196, 0.073)).lineTo(0.196, -0.122).threePointArc((0.181, -0.... | 4 | 71 | 0.163024 |
train_08f9e7d0d7db79cc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.234, 0.001, -0.599), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.307, 0.682).lineTo(-0.307, -0.238).lineTo(0.766, -0.238).lineTo(0.766, -0.682).lineTo(-0.766, -0.682).lineTo(-0.766, 0.682).lineTo(-0.307, 0.682).close().extrude(0.9)
result = re... | 17 | 270 | 0.90081 |
train_3df80dc91600f57b | import cadquery as cq
import math
result = cq.Workplane('XY').circle(0.684).extrude(1, both=True)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.747).extrude(0.839, both=True))
result = result.cut(cq.Workplane('XY').circle(0.507).extrude(2.977, both=True))
resu... | 5 | 13 | 2.050386 |
train_5680b5696f1aea2d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.526), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.724, 0.724).lineTo(0.724, 0.505).threePointArc((0.727, 0.483), (0.734, 0.463)).lineTo(0.942, 0.045).threePointArc((0.959, -0.001), (0.965, -0.05)).lineTo(0.965, -0.447).threePointArc((0.95... | 5 | 24 | 3.046393 |
train_208f900c58d5dbfe | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1.157, -0.108, 0.689), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.064, 2.747).threePointArc((0.588, 2.571), (0.862, 2.156)).lineTo(0.862, 0.881).threePointArc((1.017, 0.648), (1.384, 0.55)).lineTo(2.226, 0.55).threePointArc((2.48, 0.481), (2.587... | 15 | 46 | 1.157318 |
train_fa92594641ec5530 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.401), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.84, 0.954).threePointArc((0.877, 0.939), (0.892, 0.904)).lineTo(0.892, -0.571).threePointArc((0.774, -0.84), (0.495, -0.954)).lineTo(-0.59, -0.954).threePointArc((-0.802, -0.867), (-0.892,... | 3 | 53 | 1.354694 |
train_081c10fe83640ed0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.027, -0.008, -0.079), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.585, 0.595).threePointArc((0.677, 0.555), (0.716, 0.46)).lineTo(0.716, 0.018).threePointArc((0.625, -0.204), (0.412, -0.298)).lineTo(-0.029, -0.298).threePointArc((-0.11, -0.332)... | 29 | 493 | 0.329788 |
train_826144ed8d018035 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.001, -0.099), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.123).lineTo(1, 0.085).threePointArc((0.958, 0.075), (0.877, 0.071)).lineTo(-0.304, 0.071).threePointArc((-0.417, 0.066), (-0.465, 0.053)).lineTo(-0.465, -0.041).threePointArc((-0.38... | 8 | 77 | 0.051168 |
train_bb9323fe8cf83759 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.001, 0.118, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.596, 0.219).lineTo(0.652, 0.204).lineTo(0.711, 0.174).threePointArc((0.727, 0.158), (0.743, 0.141)).lineTo(0.774, 0.106).lineTo(0.82, 0.019).threePointArc((0.821, -0.001), (0.817, -0.0... | 14 | 149 | 1.064724 |
train_b04164eec7d86e84 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.313, 0.511).lineTo(0.475, 0.418).lineTo(0.194, -0.069).lineTo(0.518, -0.256).lineTo(0.799, 0.231).lineTo(0.961, 0.137).lineTo(0.587, -0.511).lineTo(-0.061, -0.137).lineTo(0.313, 0.511).close()... | 1 | 18 | 1.381563 |
train_3e5c16d28b8eb8d4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.149, -0.167), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.371).lineTo(0, 0.078).threePointArc((0.057, 0.023), (0.189, 0)).lineTo(0.707, 0).threePointArc((0.906, -0.035), (1, -0.117)).lineTo(1, -0.325).threePointArc((0.933, -0.381), (0.796... | 14 | 83 | 0.192191 |
train_e471052fc5b97d7d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.25, -0.265), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.165, 1.25).threePointArc((0.225, 1.225), (0.25, 1.165)).lineTo(0.25, 0.897).threePointArc((0.294, 0.794), (0.397, 0.75)).lineTo(0.649, 0.75).threePointArc((0.72, 0.72), (0.75, 0.649)).... | 21 | 56 | 0.762658 |
train_6ded5ad2910c7eec | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0, 0), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(1.4, 0.062).lineTo(1.4, 0).lineTo(0, 0).lineTo(0, 0.062).lineTo(1.4, 0.062).close().extrude(0.431, both=True)
result = result.union(cq.Workplane(cq.Plane(origin=(0.4, 0, 0), normal=(0, 1, 0), x... | 5 | 23 | 0.120842 |
train_46be38eb55c6b272 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.12), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.834).lineTo(0.531, -0.834).lineTo(-0.531, -0.834).lineTo(-1, 0.834).lineTo(1, 0.834).close().extrude(0.24, taper=8.549)
result = result.faces('>Z').shell(-0.024)
result = result.cut(cq.W... | 9 | 69 | 0.146405 |
train_78bb206c44a23e64 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.001, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.122, 0.997).threePointArc((0.264, 0.951), (0.324, 0.842)).lineTo(0.324, 0.602).threePointArc((0.364, 0.53), (0.457, 0.499)).lineTo(0.862, 0.499).threePointArc((0.938, 0.474), (0.971, 0.415)... | 8 | 51 | 1.334987 |
train_633ccc7290bc257b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.013, -0.004), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.492, 0.504).threePointArc((1, 0), (0.492, -0.504)).lineTo(-0.492, -0.504).threePointArc((-1, 0), (-0.492, 0.504)).lineTo(0.492, 0.504).close().extrude(0.55)
result = result.cut(cq.Wo... | 33 | 26 | 0.982618 |
train_f73bee209e40c39a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.205, -0.396, -0.555), normal=(0, 0, 1), xDir=(1, 0, 0))).workplane(offset=0).moveTo(0.404, 0.467).threePointArc((0.432, 0.454), (0.444, 0.424)).lineTo(0.444, 0.335).threePointArc((0.437, 0.316), (0.42, 0.308)).lineTo(0.138, 0.308).threePointArc... | 17 | 119 | 0.683952 |
train_93d1b847db884cf2 | 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.46).extrude(0.778)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.46, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).pushPoints([(0, 0), (-0.087, 0.27), (-0.317, 0.437), (-0.603, 0.437), (-0.... | 6 | 54 | 0.938286 |
train_42f48b8e34767e95 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.189), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.638, 0.378).lineTo(0.638, 0).lineTo(-0.638, 0).lineTo(-0.638, 0.378).lineTo(-0.36, 0.378).lineTo(-0.36, 0.278).lineTo(0.36, 0.278).lineTo(0.36, 0.378).lineTo(0.638, 0.378).close().extrude... | 10 | 71 | 0.507613 |
train_0b836d5c53c6b4c1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.344), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.854).lineTo(1, -0.854).lineTo(-1, -0.854).lineTo(-1, 0.854).lineTo(1, 0.854).close().extrude(0.688)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, -0.214, 0.344), normal=(0, 0, 1)... | 15 | 294 | 2.061718 |
train_ff6169afe8baae89 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.06, 0.003, 0.021), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.564, 0.058).lineTo(0.564, -0.03).threePointArc((0.599, -0.039), (0.68, -0.043)).lineTo(0.795, -0.043).threePointArc((0.896, -0.048), (0.939, -0.059)).lineTo(0.939, -0.076).threePoint... | 6 | 102 | 0.152674 |
train_d7c1617c1695251f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.121, -0.014, -0.585), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.404, 0.485).lineTo(-0.404, -0.316).lineTo(0.572, -0.316).lineTo(0.572, -0.485).lineTo(-0.572, -0.485).lineTo(-0.572, 0.485).lineTo(-0.404, 0.485).close().extrude(1.452, taper=3.0... | 12 | 174 | 0.844987 |
train_a3e313df13b9ebf6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.089, 0, -0.582), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.917).extrude(0.319)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.828, 0, -0.582), normal=(0, 0, 1), xDir=(1, 0, 0))).pushPoints([(0, 0), (-0.121, 0.46), (-0.457, 0.796), (-0.91... | 10 | 124 | 0.986505 |
train_c3a25b0c7db307db | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.291, 0.121, 0.122), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.614, -0.064).lineTo(0.709, -0.096).threePointArc((0.599, -0.299), (0.539, -0.348)).lineTo(0.475, -0.271).lineTo(0.364, -0.31).lineTo(0.25, -0.3).lineTo(0.219, -0.394).lineTo(0.091, ... | 9 | 106 | 0.611418 |
train_f31f853f4ceba535 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.819), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.704, 0.909).lineTo(0.704, 0.617).lineTo(1, 0.617).lineTo(1, -0.56).lineTo(0.647, -0.909).lineTo(-0.587, -0.909).lineTo(-0.587, -0.501).lineTo(-1, -0.501).lineTo(-1, 0.391).threePointArc((-... | 12 | 57 | 1.845443 |
train_b8fc9d80ac86bbd3 | import cadquery as cq
import math
result = cq.Workplane('XY').box(1.528, 2, 1.474)
result = result.edges().fillet(0.174)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.411).extrude(3.055, both=True))
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0), nor... | 10 | 64 | 2.138377 |
train_5e9e914cf8bbe798 | import cadquery as cq
import math
result = cq.Workplane('XZ').moveTo(1, 0.097).lineTo(0.875, 0).lineTo(1, -0.097).lineTo(0.312, -0.097).lineTo(0.312, 0.097).lineTo(1, 0.097).close().revolve(angleDegrees=360, axisStart=(0, 0, 0), axisEnd=(0, 1, 0))
result = result.cut(cq.Workplane(cq.Plane(origin=(0.55, 0, 0), normal=(0... | 7 | 59 | 0.355115 |
train_da7a0980a1d24cbc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.633), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.398, 1).lineTo(-0.283, 0.875).lineTo(-0.102, 0.355).lineTo(0.006, 0.26).lineTo(0.173, 0.322).lineTo(0.583, 0.736).lineTo(0.694, 0.772).lineTo(0.775, 0.735).threePointArc((1.006, 0.166), (... | 4 | 126 | 1.515363 |
train_2728526845ad138b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.099, 0.068), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.289, 0.094).lineTo(0.62, 0.053).lineTo(1, -0.061).lineTo(0.014, -0.094).lineTo(-0.044, -0.088).lineTo(-0.064, -0.063).lineTo(-0.029, -0.008).lineTo(0.071, 0.053).lineTo(0.289, 0.094).cl... | 16 | 81 | 0.32898 |
train_e1ca81a906ccdb3a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.554, 0, -0.9), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.144, 1.799).lineTo(0.144, 0.144).lineTo(1.107, 0.144).lineTo(1.107, 0).lineTo(0, 0).lineTo(0, 1.799).lineTo(0.144, 1.799).close().extrude(1, both=True)
result = result.cut(cq.Workplane... | 4 | 16 | 0.787251 |
train_14b84118d2094950 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.999, -0.194), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.024, 0.353).threePointArc((0.177, 0.24), (0.227, -0.015)).threePointArc((0.144, -0.26), (-0.024, -0.353)).threePointArc((-0.177, -0.24), (-0.227, 0.015)).threePointArc((-0.144, 0.26)... | 1 | 6 | 0.35532 |
train_4f39c686fd41735d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(6.507, -0.898, 3.664), normal=(0, 0, 1), xDir=(1, 0, 0))).box(13.718, 16.999, 12.791)
result = result.edges().fillet(3.54)
result = result.cut(cq.Workplane(cq.Plane(origin=(6.507, -0.898, 3.664), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(2.861).ex... | 15 | 8 | 0.107604 |
train_6e3ba8e0199e9b8a | 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.921).extrude(0.663)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.921, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).pushPoints([(0, 0), (-0.921, 0.921), (-1.842, 0), (-0.921, -0.921)]).rec... | 13 | 204 | 2.598984 |
train_a3bc29d70a45ea3a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.138, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.071, 0.572).threePointArc((0.227, 0.587), (0.491, 0.533)).threePointArc((0.68, 0.419), (0.766, 0.263)).threePointArc((0.735, 0.087), (0.592, -0.081)).threePointArc((0.359, -0.216), (0.07... | 2 | 57 | 1.760742 |
train_868927d658b40b01 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.207), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.318, 2).extrude(0.413)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, -0.207), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.577, -0.919).lineTo(-0.577, -0.682).lineTo(0.577, -0.682).... | 14 | 44 | 0.517235 |
train_13d03d6701b973db | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.596, 0.073, 0.622), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.022, 0.24).threePointArc((0.151, 0.217), (0.239, 0.135)).threePointArc((0.264, 0.017), (0.217, -0.105)).threePointArc((0.112, -0.199), (-0.022, -0.24)).threePointArc((-0.151, -0.2... | 4 | 37 | 0.468788 |
train_c5a6ab96affbbb1b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.304), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.947, 1).threePointArc((0.984, 0.984), (1, 0.947)).lineTo(1, 0.657).threePointArc((0.983, 0.617), (0.943, 0.6)).lineTo(-0.506, 0.6).threePointArc((-0.572, 0.572), (-0.6, 0.506)).lineTo(-0.6... | 5 | 139 | 1.607727 |
train_20627174e8df5e1f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.155), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.209, 0.309).lineTo(0.209, 0).lineTo(-0.209, 0).lineTo(-0.209, 0.309).lineTo(-0.136, 0.309).lineTo(-0.136, 0.073).lineTo(0.136, 0.073).lineTo(0.136, 0.309).lineTo(0.209, 0.309).close().ext... | 6 | 55 | 0.119058 |
train_f792df013dcd834b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.398), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.836, 0.876).lineTo(1, 0.712).lineTo(1, -0.8).lineTo(0.925, -0.876).lineTo(-0.909, -0.876).lineTo(-1, -0.784).lineTo(-1, 0.792).lineTo(-0.916, 0.876).lineTo(0.836, 0.876).close().extrude(0.... | 6 | 74 | 1.437552 |
train_badaa98e9acb1ffb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.396, 0.61, 0.327), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.042, 0.178).lineTo(0.107, 0.113).lineTo(0.107, -0.085).lineTo(0.085, -0.107).lineTo(0.049, -0.107).lineTo(0.036, -0.12).lineTo(0.036, -0.166).lineTo(0.023, -0.178).lineTo(-0.007, -0.... | 13 | 259 | 0.212365 |
train_ffa4d6a7ad820029 | 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.199, 0.861).lineTo(0.199, 0).lineTo(0.597, 0).lineTo(0.597, -0.289).lineTo(1, -0.289).lineTo(1, -0.576).lineTo(-0.597, -0.576).lineTo(-0.597, -0.861).lineTo(-1, -0.861).lineTo(-1, -0.289).... | 21 | 50 | 0.519933 |
train_2303754553a2870e | 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.181, 0.186).workplane(offset=2).rect(1.028, 0.159).loft()
final_result = result
| 1 | 6 | 0.204741 |
train_347710af04416741 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.524), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.894, 0.595).threePointArc((0.969, 0.563), (1, 0.489)).lineTo(1, -0.507).threePointArc((0.974, -0.569), (0.912, -0.595)).lineTo(-0.942, -0.595).threePointArc((-0.983, -0.578), (-1, -0.537))... | 13 | 87 | 0.537251 |
train_ed85a614509facfc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.286, 0, 0.12), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.535, 0.728).threePointArc((0.657, 0.688), (0.709, 0.594)).lineTo(0.709, -0.253).threePointArc((0.666, -0.331), (0.564, -0.364)).lineTo(0.37, -0.364).threePointArc((0.276, -0.394), (0.236... | 4 | 127 | 0.590006 |
train_fd646de50ff9489c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.186), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.828, 2).extrude(0.371)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.829, 0.166, -0.001), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.301, 0.565).threePointArc((0.079, 0.185), (-0.301... | 15 | 48 | 0.972536 |
train_94ba2d09f8c7215d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.027, 0, -0.308), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.865, 0.493).threePointArc((0.978, 0.459), (1.026, 0.377)).lineTo(1.026, 0.075).threePointArc((0.995, 0.022), (0.921, 0)).lineTo(0.565, 0).threePointArc((0.408, -0.048), (0.342, -0.16))... | 9 | 360 | 1.004776 |
train_5fe363a80a03da83 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.386, -0.173), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.514, 0.401).threePointArc((0.572, 0.388), (0.597, 0.359)).lineTo(0.597, 0.26).threePointArc((0.632, 0.218), (0.714, 0.201)).lineTo(0.867, 0.201).threePointArc((0.955, 0.182), (1, 0.138... | 15 | 126 | 0.520298 |
train_d7e50e25c5de559d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.013, 0, -0.981), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.127, 0.22).threePointArc((0.217, 0.058), (0.22, -0.127)).threePointArc((0.058, -0.217), (-0.127, -0.22)).threePointArc((-0.217, -0.058), (-0.22, 0.127)).threePointArc((-0.058, 0.217),... | 7 | 60 | 0.258828 |
train_d9ce8c44d90ca0d7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.857), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(1, 1.448).lineTo(1, 0.315).lineTo(0.793, 0.315).lineTo(0.793, 0).lineTo(0.658, 0).lineTo(0.658, 1.448).lineTo(1, 1.448).close().revolve(angleDegrees=360, axisStart=(0, 0, 0), axisEnd=(0, 1,... | 4 | 63 | 2.016946 |
train_7ea20eb96948c4e2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.393), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(1, 0.684).lineTo(1, 0).lineTo(-1, 0).lineTo(-1, 0.684).lineTo(-0.552, 0.684).lineTo(-0.552, 0.444).lineTo(0.552, 0.444).lineTo(0.552, 0.684).lineTo(1, 0.684).close().extrude(0.412, both=Tru... | 14 | 113 | 0.919629 |
train_d07ab5f78daedce3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.388, -0.101, -0.254), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.304, 0.429).lineTo(0.396, 0.143).threePointArc((0.352, 0.003), (0.364, -0.143)).lineTo(0.304, -0.429).threePointArc((-0.046, -0.778), (-0.396, -0.429)).lineTo(-0.396, 0.429).thre... | 2 | 16 | 1.672128 |
train_4edae67506697085 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.42), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.966, 1).lineTo(0.966, 0.333).lineTo(0, 0.333).lineTo(0, -1).lineTo(-0.966, -1).lineTo(-0.966, 1).lineTo(0.966, 1).close().extrude(0.84, taper=4.961)
result = result.cut(cq.Workplane(cq.Plan... | 12 | 33 | 1.830482 |
train_6837fed095ff426f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.196, 0.191).lineTo(0.196, -0.191).lineTo(-0.196, -0.191).lineTo(-0.196, -0.064).lineTo(0.117, -0.064).lineTo(0.117, 0.064).lineTo(-0.196, 0.064).lineTo(-0.196, 0.191).lineTo(0.196, 0.191).clos... | 28 | 12 | 0.179717 |
train_0fb04f620b15987a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.091), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.369, 0.116).threePointArc((0.383, 0.111), (0.389, 0.097)).lineTo(0.389, -0.093).threePointArc((0.382, -0.11), (0.365, -0.116)).lineTo(-0.365, -0.116).threePointArc((-0.382, -0.11), (-0.389... | 8 | 46 | 0.143114 |
train_858fc4abe779d90a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.387), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.499, 0.998).lineTo(0.499, 0.499).lineTo(0.998, 0.499).lineTo(0.998, -0.499).lineTo(0.499, -0.499).lineTo(0.499, -0.998).lineTo(0, -0.998).lineTo(0, -0.499).lineTo(-0.998, -0.499).lineTo(-0... | 19 | 456 | 1.629337 |
train_131aa21cb0bde4b3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.329, -0.173), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.671).extrude(0.345)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, -0.329, -0.173), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.484).extrude(1.034, both=True))
result = result.u... | 16 | 147 | 0.299582 |
train_8c0442e9f94cfde6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.012, 0, -0.225), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.111, 0.56).lineTo(0.111, 0.449).lineTo(1, 0.449).lineTo(1, 0).lineTo(0, 0).lineTo(0, 0.56).lineTo(0.111, 0.56).close().revolve(angleDegrees=360, axisStart=(0, 0, 0), axisEnd=(0, 1, 0)... | 6 | 29 | 1.057941 |
train_4512a52f22882bbd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.212, 0.434, -0.034), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.146, 0.546).threePointArc((0.49, 0.283), (0.546, -0.146)).threePointArc((0.283, -0.49), (-0.146, -0.546)).threePointArc((-0.49, -0.283), (-0.546, 0.146)).threePointArc((-0.283, 0.4... | 1 | 6 | 0.294073 |
train_d8a843c3227e2c08 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.602, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.006, 1.195).lineTo(0.51, 0.904).lineTo(0.516, 0.312).lineTo(0.006, 0.01).lineTo(-0.51, 0.301).lineTo(-0.516, 0.893).lineTo(-0.006, 1.195).close().extrude(1.081)
result = result.cut(cq.Wor... | 23 | 77 | 1.681254 |
train_3eefb83b18b88780 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.194, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.106, 0.371).threePointArc((0.165, 0.346), (0.189, 0.288)).lineTo(0.189, 0.1).threePointArc((0.165, 0.041), (0.106, 0.017)).lineTo(-0.106, 0.017).threePointArc((-0.165, 0.041), (-0.189, 0.... | 2 | 16 | 0.229604 |
train_24bb1ae167f8ff45 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.375, -0.129), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.598, 0.153).lineTo(0.98, 0.024).threePointArc((1, -0.002), (0.977, -0.027)).lineTo(0.578, -0.157).threePointArc((0.45, -0.174), (0.307, -0.186)).lineTo(-0.465, -0.182).threePointArc((... | 5 | 41 | 0.356593 |
train_3a4606fbabee46cc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.151), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.998).extrude(0.302)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, -0.151), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.257).extrude(0.904, both=True))
result = result.union(cq.Wo... | 16 | 71 | 0.824694 |
train_0d413ba777b3a821 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.145), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.844, 0.289).lineTo(0.844, 0).lineTo(-0.844, 0).lineTo(-0.844, 0.289).lineTo(-0.639, 0.289).lineTo(-0.639, 0.205).lineTo(0.639, 0.205).lineTo(0.639, 0.289).lineTo(0.844, 0.289).close().ext... | 5 | 163 | 0.74799 |
train_6c087005909f8b2e | import cadquery as cq
import math
result = cq.Workplane('XZ').moveTo(1, 0.13).lineTo(0.874, 0).lineTo(1, -0.13).lineTo(0.3, -0.13).lineTo(0.3, 0.13).lineTo(1, 0.13).close().revolve(angleDegrees=360, axisStart=(0, 0, 0), axisEnd=(0, 1, 0))
result = result.cut(cq.Workplane(cq.Plane(origin=(0.343, 0.43, 0), normal=(0, 0, ... | 10 | 64 | 0.413795 |
train_9d9d804c6674516e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.794, 0, -0.838), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.155, 1.676).lineTo(0.155, 0.155).lineTo(1.794, 0.155).lineTo(1.794, 0).lineTo(0, 0).lineTo(0, 1.676).lineTo(0.155, 1.676).close().extrude(0.712, both=True)
result = result.cut(cq.Wor... | 6 | 79 | 1.929838 |
train_2954475e8704ea99 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.023, -0.007, -0.196), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.929, 0.558).threePointArc((-0.929, 0.929), (-0.558, 0.929)).lineTo(0.186, 0.558).lineTo(0.186, 0.186).threePointArc((0.929, -0.186), (0.929, -0.558)).threePointArc((-0.186, -0.92... | 4 | 15 | 0.910263 |
train_8da233a0414f8618 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.976), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.157, 0.02).threePointArc((0.175, 0.023), (0.189, 0.012)).threePointArc((0.191, -0.006), (0.18, -0.02)).threePointArc((0.163, -0.023), (0.149, -0.012)).threePointArc((0.146, 0.006), (0.157... | 4 | 42 | 0.020889 |
train_2727e6f2c6920cd9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.115, 0, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.377, 0.333).lineTo(0.377, -0.333).lineTo(-0.377, -0.333).lineTo(-0.377, 0.333).lineTo(-0.225, 0.333).lineTo(-0.225, -0.181).lineTo(0.225, -0.181).lineTo(0.225, 0.333).lineTo(0.377, 0.333).c... | 7 | 26 | 0.547455 |
train_d15f11006fc834e6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.09), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.806, 0.46).threePointArc((1, 0), (0.806, -0.46)).lineTo(0, -0.46).lineTo(-0.806, -0.46).threePointArc((-1, 0), (-0.806, 0.46)).lineTo(0, 0.46).lineTo(0.806, 0.46).close().extrude(0.18)
resu... | 8 | 24 | 0.305895 |
train_9a038392850b53e1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.214), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.771, 0.428).lineTo(0.912, 0.281).lineTo(1, 0.149).lineTo(1, 0).lineTo(0.886, 0).lineTo(0.886, 0.129).lineTo(0.79, 0.281).lineTo(0, 0.323).lineTo(0, 0.428).lineTo(0.771, 0.428).close().rev... | 6 | 23 | 0.451229 |
train_551547fc56b0a09e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.042, 0, -0.166), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.228, 1).lineTo(0.636, 0.798).lineTo(1, 0).lineTo(0.636, -0.798).lineTo(-0.228, -1).lineTo(-0.916, -0.443).lineTo(-0.916, 0.443).lineTo(-0.228, 1).close().extrude(0.333)
result = resu... | 9 | 129 | 0.38669 |
train_1cd4298c313c5043 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.289), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.096, 0.291).lineTo(0.459, 0.233).threePointArc((0.56, 0.191), (0.671, 0.154)).lineTo(0.809, 0.034).threePointArc((0.806, 0.006), (0.81, -0.022)).lineTo(0.658, -0.159).threePointArc((0.542,... | 6 | 222 | 0.948433 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.