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_ee9f2cacec387bfb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.063, -0.016, 0.689), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, 1.01).lineTo(0.469, 0.739).threePointArc((0.937, -0.073), (0.469, -0.885)).threePointArc((0, -1.01), (-0.469, -0.885)).lineTo(-0.937, -0.614).lineTo(-0.937, -0.073).threePointArc... | 4 | 36 | 4.186591 |
train_451fc622afc95ea9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.302, 0.33, -0.432), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.463, 0.67).threePointArc((-0.519, 0.648), (-0.542, 0.591)).lineTo(-0.542, 0.118).threePointArc((-0.519, 0.061), (-0.463, 0.038)).lineTo(0.463, 0.038).threePointArc((0.519, 0.061),... | 5 | 39 | 0.390517 |
train_11bef23200759b57 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.096, -0.549), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.544, -0.904).lineTo(-0.544, -0.904).lineTo(-0.544, 1.487).lineTo(0.544, 0.4).lineTo(0.544, -0.904).close().extrude(1.256)
result = result.edges().fillet(0.276)
result = result.cut(cq.... | 43 | 50 | 1.908326 |
train_cd7af31a8665445f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.084, -0.371, 0.211), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.272, 0.645).lineTo(0.272, 0.645).lineTo(0.272, -0.151).lineTo(-0.272, -0.151).lineTo(-0.272, 0.645).close().extrude(0.99)
result = result.edges().chamfer(0.042)
result = result.fa... | 4 | 70 | 0.810185 |
train_71ad0d4ff9a156b8 | 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.96, 0.877).extrude(0.819)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.471, 0.193, -0.759), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.35, 0.517).extrude(0.483))
result = result.edges().f... | 13 | 155 | 2.135557 |
train_bf24f84a60afe00e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.212, 0.346, -0.227), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.956, 0.956).extrude(0.023)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.295, -0.036, -0.193), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.325, 0.158).lineTo(-0.325, -0.0... | 10 | 73 | 0.906338 |
train_af5d9ab16d9b79ed | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.522, -0.889, 0.437), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.478, 1.825).lineTo(0.478, 0.858).lineTo(-0.478, 0.858).lineTo(-0.478, 1.825).lineTo(0.478, 1.825).close().revolve(angleDegrees=180, axisStart=(0.478, 1.825), axisEnd=(0.478, 1.639... | 24 | 186 | 0.950544 |
train_87e6c8e66af2fc2f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.13, 0.03, -0.125), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.103, 0.049).lineTo(0.103, 0.049).lineTo(0.077, -0.01).lineTo(-0.103, 0.049).close().sweep(cq.Workplane('XZ').spline([(-0.502, -0.195), (-0.186, -0.339), (0.13, -0.388), (0.446, -0.3... | 27 | 245 | 0.026954 |
train_02bd95b438e78e43 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.002, -0.315, -0.305), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.99, 1.37).extrude(0.611)
result = result.faces('>Z').shell(-0.047)
result = result.union(cq.Workplane(cq.Plane(origin=(0.117, 0.66, -0.244), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(... | 8 | 56 | 0.261795 |
train_d6b2c0d5f1634fbf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.098, 0.025), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.277, -0.218).lineTo(-0.555, -0.218).lineTo(-0.555, 0.336).lineTo(0.555, 0.336).lineTo(0.29, -0.218).lineTo(0.277, -0.218).close().extrude(2)
result = result.edges().chamfer(0.118)
res... | 23 | 51 | 0.985811 |
train_0badc993947e4677 | 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.71, 1.095).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.338, -0.184, 0.226), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.395, 0.765).extrude(0.426))
result = result.cut(cq.Workp... | 6 | 23 | 3.176377 |
train_894541aa9ddaada4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.14, 0.312), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.775).extrude(0.338)
result = result.union(cq.Workplane(cq.Plane(origin=(0, -0.135, 0.647), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.495, 0.63).extrude(0.032))
result = result.union(cq... | 26 | 237 | 0.51576 |
train_91e526b95030df47 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.2, -0.578), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.985, 0.803).lineTo(-0.985, 0.147).lineTo(0.657, 0.147).lineTo(0.657, 0.366).threePointArc((0.734, 0.397), (0.767, 0.475)).lineTo(0.985, 0.475).lineTo(0.985, 0.803).lineTo(-0.657, 0.803)... | 14 | 88 | 1.557878 |
train_cf53258ee8df6224 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.367, 0.553, -0.518), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.358, 0.887).threePointArc((0, 1.245), (0.358, 0.887)).lineTo(0.358, 0.219).threePointArc((0, -0.14), (-0.358, 0.219)).lineTo(-0.358, 0.887).close().extrude(1.194)
result = result... | 9 | 55 | 1.083743 |
train_32e7d0c430e4dd23 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.026, 0.009, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(1.213, 0.009).threePointArc((0, 0.001), (-1.213, 0.009)).threePointArc((0, 0.018), (1.213, 0.009)).close().extrude(0.052)
result = result.edges().fillet(0.002)
result = result.cut(cq.Wor... | 30 | 76 | 0.001186 |
train_a9cc3525c5dbcb45 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.361, -0.411, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.968, 0.06).lineTo(0.968, 0.077).lineTo(1, 0.077).lineTo(1, 0.745).lineTo(0.968, 0.745).lineTo(0.968, 0.778).lineTo(-0.968, 0.778).lineTo(-0.968, 0.745).lineTo(-1, 0.745).lineTo(-1, 0.... | 3 | 19 | 1.026201 |
train_7c1124f51c0b5d93 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.103, -1, 0.005), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.043, -0.084).threePointArc((-0.092, -0.024), (-0.087, 0.052)).threePointArc((0.063, 0.097), (0.092, -0.056)).threePointArc((0.05, -0.089), (-0.002, -0.097)).threePointArc((-0.023, -0... | 7 | 35 | 0.136188 |
train_45a97c4efadd35a8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.187), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.754).extrude(0.373)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.187, -1.326), normal=(0, 1, 0), xDir=(1, 0, 0))).moveTo(0.038, 0.038).lineTo(0, 0.076).lineTo(-0.038, 0.038).lin... | 18 | 152 | 0.830265 |
train_985ea28c5be5ddcb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.03), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.943, 2).extrude(0.21)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.227, 0.288, -0.066), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.323).extrude(0.253))
result = result.cut(cq.Workplan... | 14 | 70 | 0.575125 |
train_98d2bd60285ad83c | 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.106, 1.653).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.179, 0.205, 0.319), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.526, 0.429).extrude(0.699))
result = result.edges().fill... | 6 | 59 | 3.28103 |
train_060b35a7a5a3b6f5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.536, -0.041, -0.346), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, -0.092).lineTo(0, 0.119).lineTo(0.654, 0.119).lineTo(0.654, 0.213).lineTo(-0.654, 0.213).lineTo(-0.654, -0.092).lineTo(0, -0.092).close().extrude(1.072)
result = result.edges().... | 17 | 162 | 0.286797 |
train_f7630086749e9a93 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.417, -0.667, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 1.171).lineTo(0.772, 0.163).lineTo(-0.772, 0.163).lineTo(0, 1.171).close().workplane(offset=0.067).moveTo(0, 1.286).lineTo(0.948, 0.048).lineTo(-0.948, 0.048).lineTo(0, 1.286).close(... | 2 | 16 | 0.810807 |
train_8444030703133faf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.022, -0.848, -0.045), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.141, -0.141).lineTo(0.044, -0.044).lineTo(-0.103, -0.076).lineTo(-0.109, -0.044).lineTo(-0.141, 0.103).lineTo(-0.109, 0.109).lineTo(-0.032, 0.032).lineTo(0.038, 0.141).lineTo(0.0... | 7 | 83 | 0.045659 |
train_3f745d42735c6599 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.086, -0.031), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.208, 1.086).lineTo(0.092, 1.086).lineTo(0.092, 0.624).threePointArc((0.031, 0.444), (-0.125, 0.336)).threePointArc((-0.166, 0.327), (-0.208, 0.324)).lineTo(-0.208, 0.181).lineTo(-0.2... | 7 | 35 | 0.826431 |
train_efd137e5a55b2705 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.281, 0, 0.102), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.396, -0.396).lineTo(0.396, -0.257).lineTo(0.313, -0.203).lineTo(0, 0).lineTo(0.203, 0.313).lineTo(-0.222, 0.222).lineTo(-0.396, 0.396).lineTo(-0.396, -0.396).lineTo(0.396, -0.396).clo... | 6 | 42 | 0.380596 |
train_d7e5d920b5b70706 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.086, 0, -0.361), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.194, 1.116).extrude(0.722)
result = result.faces('>Z').shell(-0.064)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.73, 0.143, 0.061), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.5... | 14 | 197 | 0.717303 |
train_3444ce0a4c6e237a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.656, -0.369, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.961, 0.13).lineTo(0.706, 0.13).threePointArc((0.824, 0.191), (0.912, 0.291)).lineTo(0.912, 0.367).threePointArc((0.945, 0.4), (0.912, 0.433)).lineTo(0.912, 0.537).threePointArc((0.93... | 1 | 16 | 0.096858 |
train_abd6304804a93625 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.08, 1, -0.112), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.311, 0.125).lineTo(0.311, 0.078).lineTo(0.05, 0.078).lineTo(0.05, 0.053).lineTo(0.485, 0.053).lineTo(0.485, 0.007).lineTo(0.311, 0.007).lineTo(0.311, 0.006).lineTo(-0.485, 0.006).lineT... | 22 | 135 | 0.141674 |
train_27050dc704f7c343 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.014, -0.334, 0.141), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.81, -0.023).lineTo(0.416, 0.693).lineTo(-0.376, 0.669).lineTo(-0.782, 0.004).lineTo(-0.381, -0.666).lineTo(0.417, -0.657).close().moveTo(0, -0.137).lineTo(0.025, -0.043).lineTo(0.... | 8 | 127 | 0.978605 |
train_b967628d8fa31975 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.067, 0.523, -0.018), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.11, 0.217).lineTo(0.073, 0.274).lineTo(0.11, -0.274).lineTo(-0.11, 0.217).close().sweep(cq.Workplane('XY').spline([(-0.067, 0.319), (0.067, 0.387), (-0.019, 0.459), (-0.281, 0.49... | 11 | 45 | 0.124498 |
train_e159bd157d8145da | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.858, -0.251, 0.041), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.725, 1.161).threePointArc((0.441, 1.249), (0.176, 1.113)).lineTo(-0.856, -0.104).threePointArc((-0.823, -0.646), (-0.281, -0.635)).lineTo(0.52, 0.165).lineTo(0.753, 0.397).threePo... | 43 | 100 | 2.085612 |
train_23bd85d5eec74d7c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.019, 0.324, -0.102), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.819, 0.005).lineTo(0.367, 0.673).lineTo(-0.394, 0.676).lineTo(-0.78, 0.01).lineTo(-0.404, -0.689).lineTo(0.417, -0.691).close().moveTo(-0.515, -0.063).lineTo(-0.189, -0.063).lineTo... | 11 | 130 | 0.30767 |
train_600919eb0a2f3e5d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.895, 0.431), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.214, -0.284).lineTo(0.214, -0.284).lineTo(0.214, 0.284).threePointArc((0.012, 0.112), (-0.214, -0.026)).lineTo(-0.214, -0.284).close().sweep(cq.Workplane('YZ').spline([(0.895, -0.164),... | 2 | 26 | 0.06832 |
train_f67a9f6ac34e7a58 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.124, -0.107, 0.284), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.862, 1.151).extrude(0.216)
result = result.union(cq.Workplane(cq.Plane(origin=(0.101, -0.304, 0.191), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.098).extrude(0.097))
result = result... | 16 | 85 | 0.311456 |
train_8cd767859d48895e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.277, -0.281, -0.089), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.352, 1.437).extrude(0.547)
result = result.union(cq.Workplane(cq.Plane(origin=(0.433, -0.106, -0.217), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.4, 0.216).extrude(0.133))
result = r... | 21 | 74 | 0.927972 |
train_29e4626bd716c62b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1.236, -0.476), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 2.236).threePointArc((-0.487, 2.109), (-0.851, 1.761)).threePointArc((0, 0.236), (0.851, 1.761)).threePointArc((0.487, 2.109), (0, 2.236)).close().extrude(0.952)
result = result.edge... | 13 | 111 | 2.691933 |
train_41613aafa27aaad1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.932, 0.391), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.344, -0.574).lineTo(0.475, -0.413).lineTo(0.452, -0.377).lineTo(0.286, -0.482).lineTo(-0.385, 0.57).lineTo(-0.475, 0.574).lineTo(-0.475, -0.574).lineTo(0.344, -0.574).close().sweep(cq.W... | 2 | 11 | 0.664826 |
train_8ec96df220233891 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.003, -0.012, -0.105), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.554, -0.988).lineTo(0.552, -0.96).lineTo(0.539, 1.012).lineTo(-0.558, 0.988).close().center(0, 0.276).rect(0.222, 0.335).center(-0.154, -0.473).rect(0.206, 0.312).center(0.308, 0... | 11 | 43 | 0.301812 |
train_7deb271f35171595 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.182), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.893, -0.899).threePointArc((-0.696, -0.934), (-0.502, -0.978)).lineTo(0.893, 0.562).lineTo(0.847, 0.978).lineTo(-0.893, -0.899).close().workplane(offset=0.186).moveTo(-0.738, -0.743).thre... | 2 | 12 | 0.320824 |
train_986268f5e1f7c40e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.901, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(1).workplane(offset=0.887).circle(0.851).workplane(offset=0.915).circle(0.772).loft()
result = result.cut(cq.Workplane(cq.Plane(origin=(0.39, 0.429, -1.339), normal=(0, 0, 1), xDir=(1, 0, 0)... | 4 | 9 | 3.88761 |
train_0955d4881e3356af | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.45, -0.203, -0.367), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.284, -0.018).lineTo(-0.284, 0.131).lineTo(0.167, 0.131).lineTo(0.167, 0.91).lineTo(0.284, 0.91).lineTo(0.284, 0.131).lineTo(0.225, 0.131).lineTo(0.225, -0.797).lineTo(0.108, -0.7... | 17 | 173 | 0.837172 |
train_64157a6c211eb665 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.095, -1, -0.137), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.002, -0.245).threePointArc((-0.052, 0.05), (0.245, 0.092)).lineTo(0.047, 0.245).threePointArc((-0.086, 0.071), (-0.245, -0.078)).lineTo(-0.002, -0.245).close().sweep(cq.Workplane('Y... | 3 | 20 | 0.117883 |
train_e73fafb12eced54f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.158, -0.077, -0.363), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.167, 0.14).extrude(0.126)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.175, -0.078, -0.249), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.024, 0.039).extrude(0.139))
result ... | 11 | 89 | 0.034468 |
train_5d533c96065dabf3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.707, -0.86, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.619, 0.399).lineTo(0.225, 0.793).lineTo(-0.619, 0.065).lineTo(-0.225, -0.328).lineTo(0.619, 0.399).close().extrude(1.72)
result = result.edges().fillet(0.098)
result = result.cut(cq.Wo... | 4 | 56 | 2.044692 |
train_12c990909683d35e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.254, 0.284, -0.151), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.418, -0.79).lineTo(-0.421, -0.403).lineTo(0.033, 1.416).lineTo(0.421, 0.556).lineTo(0.418, -0.79).close().extrude(0.569)
result = result.edges().fillet(0.079)
result = result.cut(... | 12 | 124 | 0.598181 |
train_4ea12518a0036be2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.402, 0.251, 0.234), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.789, 0.791).lineTo(0.789, 0.023).lineTo(-0.789, 0.023).lineTo(-0.789, 0.791).close().extrude(0.502)
result = result.edges().chamfer(0.025)
result = result.cut(cq.Workplane(cq.Plan... | 16 | 109 | 0.185372 |
train_725575b33cc7ca47 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.764, 0.74, 0.032), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.074, 0.176).threePointArc((0.168, 0.286), (0.224, 0.419)).lineTo(-0.224, 0.529).lineTo(0.074, 0.176).close().revolve(angleDegrees=360, axisStart=(0.224, 0.419), axisEnd=(-0.224, 0.5... | 8 | 66 | 0.541081 |
train_84aefaba2f011c6f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 1, 0.033), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, 0).lineTo(0, -0.108).lineTo(0.11, -0.108).lineTo(0.207, 0).lineTo(0.25, 0).lineTo(0.25, -0.037).lineTo(0.24, -0.037).lineTo(0.065, -0.232).lineTo(-0.224, -0.232).threePointArc((-0.235, -0.... | 1 | 21 | 0.117207 |
train_9f1f1513d48b684d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.038, 0.001, -0.008), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.005, 0.006).lineTo(0.01, 0.013).threePointArc((0.015, 0.003), (0.01, -0.008)).threePointArc((0.007, -0.01), (0.005, -0.011)).lineTo(0, -0.004).lineTo(-0.005, -0.001).lineTo(-0.014... | 13 | 108 | 0.000791 |
train_941ab008c1c2e869 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.42, 0.392, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.098, 0.945).lineTo(0.255, 0.945).lineTo(0.156, 1.063).lineTo(-0.196, 1.063).lineTo(-0.196, 0.945).lineTo(-0.255, 0.945).lineTo(-0.255, -0.58).lineTo(-0.196, -0.58).lineTo(-0.196, -0.345... | 4 | 26 | 0.408465 |
train_4556db1a5d2c3248 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.321, -0.114, -0.372), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.357, 0.986).extrude(0.745)
result = result.faces('>Z').shell(-0.036)
result = result.union(cq.Workplane(cq.Plane(origin=(0.664, -0.222, -0.24), normal=(0, 0, 1), xDir=(1, 0, 0))).r... | 7 | 44 | 0.337682 |
train_6d8a71e8b128a3c4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.156, -0.056, -0.506), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.184, 0.967).extrude(1.069)
result = result.faces('>Y').shell(-0.045)
result = result.union(cq.Workplane(cq.Plane(origin=(0.13, 0.094, 0.515), normal=(0, 0, 1), xDir=(1, 0, 0))).rec... | 16 | 70 | 1.304656 |
train_1a373fa607e6e958 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.06, -1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.338, -0.135).lineTo(0.563, 0.255).lineTo(0.112, 0.255).lineTo(-0.112, 0.645).lineTo(-0.338, 0.255).lineTo(-0.563, -0.135).lineTo(-0.338, -0.526).lineTo(0.563, -0.526).lineTo(0.338, -0.135)... | 7 | 33 | 1.258468 |
train_7fbbff1e4ff6fbdb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.076, 0.071, 0.112), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.89, 0.121).lineTo(-0.89, 0.007).lineTo(0.89, 0.007).threePointArc((0.884, 0.064), (0.883, 0.121)).lineTo(-0.89, 0.121).close().extrude(0.146)
result = result.edges().chamfer(0.018... | 6 | 46 | 0.028342 |
train_4045564b12c2fab3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.102, -0.507, -0.355), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.247, 0.986).extrude(0.439)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.039, -0.014, 0.109), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.216, 0.714).threePointArc((0.466,... | 9 | 79 | 0.921797 |
train_4eada4448bc71052 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.718, 0.043, 0.556), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.249, 0.551).lineTo(0.387, 0.551).lineTo(0.387, -0.551).lineTo(-0.387, -0.551).lineTo(0.249, 0.551).close().sweep(cq.Workplane('XZ').spline([(0.518, 0.065), (0.408, 0.119), (0.272, 0... | 11 | 63 | 1.35189 |
train_27935d4366a4bb28 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.029, -0.234, 0.111), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.302, 0.222).lineTo(-0.302, 0.107).lineTo(-0.32, 0.107).lineTo(-0.32, -0.222).lineTo(-0.278, -0.222).lineTo(-0.278, -0.205).lineTo(0.268, -0.205).lineTo(0.268, -0.222).lineTo(0.32... | 2 | 19 | 0.462705 |
train_40e8b709391a4ded | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.141, -0.955, -0.029), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.154, -0.042).lineTo(-0.014, -0.042).threePointArc((0, -0.045), (0.014, -0.042)).lineTo(0.154, -0.042).lineTo(0.027, 0.037).threePointArc((0, 0.045), (-0.027, 0.037)).lineTo(-0.1... | 6 | 49 | 0.019343 |
train_79d4987ef14c3069 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1.168, -0.644, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.186, 0.168).lineTo(0.186, 1.111).lineTo(-0.892, 1.67).lineTo(-0.892, 2.299).lineTo(0.892, 1.425).lineTo(0.892, 0.168).lineTo(0.186, 0.168).close().extrude(1.289)
result = result.edges... | 9 | 74 | 1.714187 |
train_bfb5cb35888abecc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.635, -0.143, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-1, 1.224).lineTo(-0.08, 1.224).lineTo(0.058, 1.22).lineTo(0.183, 1.215).lineTo(0.295, 1.211).lineTo(0.393, 1.202).lineTo(0.478, 1.189).lineTo(0.545, 1.175).lineTo(0.603, 1.162).lineTo(... | 13 | 202 | 0.629621 |
train_2275edc0519b6a9b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.001, 0, 0.025), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.054, 1.016).threePointArc((0.054, 0), (-0.054, -1.016)).lineTo(-0.054, 1.016).close().extrude(0.05)
result = result.edges().chamfer(0.015)
result = result.cut(cq.Workplane(cq.Plane(or... | 4 | 19 | 0.005789 |
train_581c2573e929c003 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.243, 0, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.439, -0.243).lineTo(-0.47, -0.243).lineTo(-0.47, 0.757).lineTo(0.47, 0.757).lineTo(0.47, 0.601).lineTo(-0.439, 0.601).lineTo(-0.439, -0.243).close().revolve(angleDegrees=360, axisStart=(-0... | 3 | 9 | 0.918345 |
train_80233921092ec65e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.252, -0.629, 0.292), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.36, -0.164).lineTo(-0.18, 0.772).lineTo(-0.36, 0.669).lineTo(0.18, -0.268).lineTo(0.36, -0.164).close().extrude(1.046)
result = result.edges().chamfer(0.07)
result = result.cut(cq... | 19 | 106 | 0.288543 |
train_42dae10a0e1e2a0b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.05, 0.234, -0.389), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.157).workplane(offset=0.102).circle(0.144).workplane(offset=0.079).circle(0.155).workplane(offset=0.089).circle(0.15).workplane(offset=0.103).circle(0.146).workplane(offset=0.095).... | 12 | 37 | 0.055116 |
train_2cc25f0c757155aa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.011, 0, 0.467), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.523, 1).lineTo(0.523, -0.885).lineTo(0.643, -1).lineTo(-0.555, -1).threePointArc((-0.355, -0.62), (-0.643, -0.301)).lineTo(-0.643, 0.083).lineTo(-0.643, 0.25).lineTo(-0.643, 1).lineTo(... | 11 | 87 | 2.274331 |
train_af363ae3022a9228 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.01, -1.062, -0.5), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.482, 0.062).threePointArc((-0.649, 0.423), (-1.01, 0.589)).lineTo(-1.01, 0.686).lineTo(-1.01, 1.288).lineTo(-1.01, 1.383).lineTo(-1.01, 1.985).lineTo(-1.01, 2.081).threePointArc((0.... | 10 | 43 | 2.040396 |
train_e86755ec94ea9937 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.107, -0.331, 0.002), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.049, -0.46).lineTo(-0.049, -0.41).lineTo(-0.098, -0.41).lineTo(-0.098, 0.669).lineTo(-0.049, 0.669).lineTo(-0.049, -0.116).lineTo(0.098, -0.116).lineTo(0.098, -0.46).lineTo(-0.049... | 5 | 77 | 0.091949 |
train_388bc4c5302d429b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.422, 0.592, -0.422), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.551, 0.478).lineTo(0.551, -0.316).lineTo(0, -0.316).lineTo(0, -0.227).lineTo(-0.551, -0.227).lineTo(-0.551, 0.478).lineTo(0.551, 0.478).close().extrude(0.906)
result = result.unio... | 25 | 337 | 2.477496 |
train_205fc854d01bfb81 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.079), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.199).extrude(0.158)
result = result.union(cq.Workplane(cq.Plane(origin=(0.045, 0.105, 0.079), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.168, 0.084).extrude(0.032))
result = result.union(c... | 8 | 34 | 0.310341 |
train_97c80cd6cb95b52b | 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.922, 1.783).extrude(1.692)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.298, 0.01, 0.678), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.313, 0.306).extrude(0.322))
result = result.edges()... | 3 | 51 | 5.754813 |
train_725e366c6fc7ed6e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.165, 0, -0.855), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.67, 1.822).extrude(1.711)
result = result.union(cq.Workplane(cq.Plane(origin=(0.823, -0.004, -0.52), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.354, 0.44).extrude(0.502))
result = result... | 3 | 51 | 5.265966 |
train_ab1f0cea77ec0679 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.003, 0.005, -0.276), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.708, 0.995).lineTo(0.701, 0.976).lineTo(0.715, 0.656).lineTo(0.174, 0.624).lineTo(0.174, -1.005).lineTo(-0.187, -0.999).lineTo(-0.188, 0.631).lineTo(-0.71, 0.631).close().moveTo(... | 11 | 101 | 0.428214 |
train_374663aafc501270 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.049, -0.754, -0.247), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.753, 0.493).extrude(0.168)
result = result.union(cq.Workplane(cq.Plane(origin=(0.385, -0.82, -0.207), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.122, 0.243).extrude(0.078))
result =... | 12 | 145 | 0.142078 |
train_d7991df1b21a8dbc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.333, -0.008, -0.285), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.111, 0.633).lineTo(0.113, 0.652).lineTo(0.109, 0.11).lineTo(0.667, 0.107).lineTo(0.665, -0.111).lineTo(0.125, -0.12).lineTo(0.127, -0.634).lineTo(-0.106, -0.637).lineTo(-0.132, -... | 7 | 92 | 0.179985 |
train_020b65b3847df8ad | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.019, -0.275, -0.348), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.801, 0.021).lineTo(0.431, 0.717).lineTo(-0.412, 0.703).lineTo(-0.838, 0.001).lineTo(-0.431, -0.696).lineTo(0.422, -0.725).close().moveTo(-0.518, -0.215).lineTo(-0.144, -0.222).lin... | 18 | 182 | 0.391974 |
train_6a2b2dee68226fe9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.806, -0.833, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1.143, -0.093).threePointArc((0.051, 0.084), (1.143, 0.601)).lineTo(1.143, 1.735).lineTo(-1.143, 1.735).lineTo(-1.143, -0.093).close().workplane(offset=0.575).moveTo(-0.898, 0.102).thr... | 12 | 102 | 1.759914 |
train_be1b3b6fc45c22c4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.012, 0.244, -0.076), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.112, 0.337).lineTo(-0.112, -0.112).lineTo(0.037, -0.037).lineTo(0.112, -0.337).lineTo(0.112, 0.337).close().sweep(cq.Workplane('YZ').spline([(-0.146, -0.21), (0.117, -0.202), (0.38... | 16 | 131 | 0.618247 |
train_d04e501afa0671d5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.5, 0, -0.435), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.5, -0.035).lineTo(-0.5, 0.035).lineTo(0.5, 0.035).lineTo(0.5, -0.035).lineTo(-0.5, -0.035).close().revolve(angleDegrees=180, axisStart=(-0.5, -0.035), axisEnd=(-0.5, -0.024))
result = ... | 13 | 83 | 0.105871 |
train_e7dc88d021e23004 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.533, 0, 0.87), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.369, -0.213).lineTo(0.369, 0.213).lineTo(0.347, 0.2).lineTo(0, 0.4).lineTo(0, 0.425).lineTo(-0.369, 0.213).lineTo(-0.347, 0.2).lineTo(-0.347, -0.2).lineTo(0, -0.4).lineTo(0, -0.425).line... | 2 | 52 | 0.4804 |
train_c46eafaf33752c04 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.842, -0.548, 0.069), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.571, 0.413).threePointArc((0, -0.158), (0.571, 0.413)).threePointArc((0.404, 0.817), (0, 0.985)).lineTo(0, 1.842).lineTo(-0.571, 1.842).lineTo(-0.571, 0.413).close().extrude(1.22... | 11 | 108 | 2.0915 |
train_278d2bf6830f7f98 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.115, 0.435, -0.265), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.226, 0.395).lineTo(-0.226, -0.358).lineTo(-0.064, -0.358).lineTo(-0.06, -0.395).lineTo(0.06, -0.395).lineTo(0.064, -0.358).lineTo(0.226, -0.358).lineTo(0.226, 0.395).lineTo(-0.2... | 10 | 79 | 0.934367 |
train_be091741349b7952 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.787, 0.468, -0.04), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(1.04, 0.717).threePointArc((0.871, 1.133), (0.46, 1.313)).lineTo(-1.04, 1.313).threePointArc((-0.742, 0.717), (-1.04, 0.121)).lineTo(0.444, 0.121).threePointArc((0.865, 0.296), (1.04... | 10 | 55 | 1.93495 |
train_e0a0f127c2943f50 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.363, -0.111, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, 0.576).lineTo(-0.269, 0.635).threePointArc((-0.336, 0.607), (-0.328, 0.535)).threePointArc((-0.292, 0.515), (-0.252, 0.523)).lineTo(-0.141, 0.331).lineTo(-0.058, 0.068).threePointArc(... | 8 | 39 | 0.040165 |
train_119e38a94a499d9b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.287, -0.152, -0.23), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.426, 1.547).extrude(1.227)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.613, 0.182, -0.401), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.595, -0.33).lineTo(-0.595, -0.011... | 16 | 122 | 1.837714 |
train_f7c6c7d501f12239 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.041, 0.131, -0.954), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.376, 1.738).extrude(1.575)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.041, 0.131, 0.617), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.382, 0.482).extrude(0.099))
result = ... | 7 | 52 | 1.191204 |
train_caa2b2fe6656c1d7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.096), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1.08, -0.31).threePointArc((0, 0.31), (-1.08, -0.31)).lineTo(1.08, -0.31).close().extrude(0.213)
result = result.edges().fillet(0.089)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.24... | 22 | 167 | 0.152771 |
train_b822e7d9d90b05c9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.41, -0.128, -0.321), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.577, -0.018).lineTo(0.291, 0.517).lineTo(-0.289, 0.523).lineTo(-0.59, -0.011).lineTo(-0.304, -0.513).lineTo(0.297, -0.513).close().moveTo(0.105, 0.167).lineTo(0.032, 0.265).lineTo... | 21 | 274 | 0.25748 |
train_61b56cb558430bdb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.692, -0.282, -0.433), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.269, -0.055).threePointArc((-0.309, -0.019), (-0.269, 0.018)).threePointArc((-0.187, 0.187), (-0.017, 0.271)).threePointArc((0.019, 0.31), (0.057, 0.271)).threePointArc((0.225, ... | 2 | 16 | 0.104073 |
train_15ef71b9f8732e44 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.256, -0.249, -0.106), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.303, -0.07).lineTo(-0.266, -0.033).lineTo(-0.2, -0.033).lineTo(-0.233, 0).lineTo(-0.163, 0.07).lineTo(-0.06, -0.033).lineTo(0.303, -0.033).lineTo(0.303, -0.07).lineTo(-0.303, -0.... | 5 | 51 | 0.100076 |
train_53fd06b3e7a9d124 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.054, -0.27, 0.15), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.53, 1.683).lineTo(-0.53, -1.13).lineTo(0.53, -1.13).lineTo(0.53, 1.683).lineTo(-0.53, 1.683).close().workplane(offset=0.122).moveTo(-0.353, 1.214).lineTo(-0.353, -0.661).lineTo(0.3... | 14 | 93 | 0.561298 |
train_e08a368b364515e6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -1, -0.214), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.694, 1.549).threePointArc((0.718, 0.891), (0.144, 1.213)).lineTo(-0.718, 1.686).lineTo(-0.503, 2.079).lineTo(0.416, 1.576).threePointArc((0.557, 1.589), (0.694, 1.549)).close().revolve(a... | 10 | 58 | 1.791398 |
train_d0aa967fe92ee624 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.067, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.401, 0.488).extrude(0.007)
result = result.union(cq.Workplane(cq.Plane(origin=(0.118, 0.069, -0.989), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.143, 0.077).lineTo(0.143, 0.102).lineTo(-0.... | 10 | 47 | 0.048639 |
train_616dbb877a6b2139 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.296, 0.062), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.351, 0.124).lineTo(-0.403, 0.079).lineTo(-0.365, 0.093).lineTo(-0.351, 0.099).lineTo(-0.331, 0.107).lineTo(0.403, -0.533).lineTo(0.111, 0.035).lineTo(0.066, 0.124).lineTo(-0.086, 0.1... | 6 | 38 | 0.162408 |
train_8b39f7065238dbef | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.38, -0.837, -0.234), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.173, 0.868).lineTo(0.173, -0.075).lineTo(0.139, -0.075).lineTo(0.139, -0.163).lineTo(-0.139, -0.163).lineTo(-0.139, -0.075).lineTo(-0.173, -0.075).lineTo(-0.173, 0.868).lineTo(0.1... | 15 | 117 | 0.703746 |
train_b7024a89b36792e6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.276, 0.39), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.481, 0.39).lineTo(-0.481, -0.186).lineTo(0.481, -0.186).lineTo(0.481, 0.39).lineTo(0.192, 0.39).threePointArc((0, 0.198), (-0.192, 0.39)).lineTo(-0.481, 0.39).close().extrude(0.881)
re... | 12 | 116 | 0.393148 |
train_c232e48762bd8dfb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.135, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.334).sweep(cq.Workplane('XY').spline([(-1.398, 0.135), (-0.932, 0.529), (-0.466, 0.765), (0, 0.844), (0.466, 0.765), (0.932, 0.529), (1.398, 0.135)]))
result = result.edges().chamfer(0.183)... | 11 | 104 | 0.647383 |
train_5cd7218b62cdb33e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.074, 0.387, -0.143), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.287, -0.199).lineTo(-0.277, -0.199).lineTo(-0.277, -0.064).lineTo(0.287, -0.064).lineTo(0.287, 0.122).lineTo(-0.277, 0.122).lineTo(-0.277, 0.337).lineTo(-0.287, 0.347).lineTo(-0.... | 29 | 153 | 0.146667 |
train_6c18cab2213cb03b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.016, -0.156, -0.591), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.705, -0.452).lineTo(0.705, -0.452).threePointArc((0, 0.929), (-0.705, -0.452)).close().extrude(1.591)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.38, -0.231, 0.743), no... | 15 | 134 | 2.457213 |
train_346d8f3a99d12e14 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.529, -0.694, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.611, -0.306).threePointArc((-0.644, -0.226), (-0.724, -0.193)).lineTo(-0.724, 1.226).lineTo(-0.724, 1.694).lineTo(-0.255, 1.694).lineTo(0.365, 1.694).lineTo(0.724, 1.694).lineTo(0.72... | 20 | 132 | 1.69647 |
train_131e1aa6f892c898 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.161, 0.493, -0.88), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.001, 0.738).extrude(0.104)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.298, 0.592, -0.904), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.143).extrude(0.024))
result = resul... | 19 | 241 | 0.515289 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.