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_2fb043512cb0e313 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.181), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.651, 2).extrude(0.362)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0.012), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.036, 0.387).lineTo(0.037, 0.387).lineTo(0.038, 0.386).lineT... | 19 | 51 | 0.875979 |
train_93d1ac5b5e43cb56 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, -0.269, 1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.001, 0.422).lineTo(1.001, 0.116).lineTo(-0.995, 0.116).threePointArc((-1.001, 0.269), (-0.995, 0.422)).lineTo(1.001, 0.422).close().revolve(angleDegrees=90, axisStart=(1.001, 0.422), ... | 17 | 100 | 0.585514 |
train_6a47133f15352e7e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.837, 0, -0.129), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.163, -0.171).lineTo(0.163, 0.171).lineTo(-0.163, 0.171).lineTo(-0.163, -0.171).lineTo(-0.088, -0.171).lineTo(-0.088, -0.045).lineTo(0.088, -0.045).lineTo(0.088, -0.171).lineTo(0.163,... | 11 | 212 | 0.19604 |
train_c74602a95c6626d5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.575, -0.375, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, 1.575).lineTo(0, 0.806).lineTo(0.385, 0.806).lineTo(0.385, -0.425).lineTo(-0.385, -0.425).lineTo(-0.385, 1.575).lineTo(0, 1.575).close().extrude(0.751)
result = result.edges().fillet... | 10 | 70 | 0.863374 |
train_8dcce424eb15ebcd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.101, 0.019, -0.679), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.527, 0.61).extrude(1.679)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.391, 0.075, 0.115), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.055, 0.109).extrude(0.189))
result = r... | 12 | 195 | 0.501058 |
train_01f85f0246a52b67 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.452, -0.614, -0.152), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.518, 0.155).threePointArc((-0.506, 0.126), (-0.476, 0.113)).lineTo(0.476, 0.113).threePointArc((0.506, 0.126), (0.518, 0.155)).lineTo(0.518, 1.073).threePointArc((0.506, 1.102),... | 5 | 46 | 1.300975 |
train_dc05544502b5fed6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.026, -0.379, -0.16), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.705, 0.586).extrude(0.249)
result = result.faces('>Z').shell(-0.015)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.392, -0.272, 0.022), normal=(0, 0, 1), xDir=(1, 0, 0))).mo... | 6 | 78 | 0.055091 |
train_31b1bf82cf3f8a6e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.494, -0.558, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.058).lineTo(0, 1.058).lineTo(1, 0.058).lineTo(-1, 0.058).close().extrude(0.988)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.001, 0, 0.323), normal=(0, 0, 1), xDir=(1, 0, ... | 7 | 43 | 0.943706 |
train_9d9dd276a73387f4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.373, -0.004), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.527, 0).lineTo(-0.527, 0.086).lineTo(0.527, 0.086).lineTo(0.527, 0).lineTo(0.22, 0).threePointArc((0.208, -0.044), (0.191, -0.086)).lineTo(0.057, -0.086).lineTo(-0.089, -0.086).line... | 9 | 100 | 0.028318 |
train_ec4c9abb269ccee8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.917, -0.97, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1.187, -0.217).lineTo(-1.187, 2.157).lineTo(1.187, 2.157).lineTo(1.187, -0.217).lineTo(-1.187, -0.217).close().workplane(offset=0.293).moveTo(-1.092, -0.122).lineTo(-1.092, 2.062).lineT... | 11 | 28 | 4.739398 |
train_2a666b87cc220295 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.449, 0.631, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.418, 0.509).lineTo(0.418, 0.551).lineTo(-0.763, 0.551).lineTo(-0.763, 0.233).lineTo(-0.72, 0.233).lineTo(-0.72, -0.509).lineTo(0.639, -0.509).lineTo(0.639, -0.551).lineTo(0.763, -0.55... | 8 | 45 | 2.749802 |
train_3f742f5a234a9096 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.116, -0.115, -0.622), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.694, 1.009).extrude(0.069)
result = result.union(cq.Workplane(cq.Plane(origin=(0.184, 0.277, -0.546), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.343, 0.147).lineTo(0.309, 0.147).li... | 3 | 44 | 0.168725 |
train_97a105409497af34 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.427, 0.582), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.22).sweep(cq.Workplane('YZ').spline([(0.06, -0.216), (0.112, 0.014), (0.052, 0.208), (-0.135, 0.274), (-0.252, 0.137), (-0.223, -0.177), (-0.099, -0.324)]))
result = result.edges().ch... | 11 | 88 | 0.423146 |
train_d0c474c1b7b78321 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.221, 0, -0.313), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.558, 1.019).extrude(0.627)
result = result.faces('>Z').shell(-0.066)
result = result.union(cq.Workplane(cq.Plane(origin=(0.991, -0.071, -0.046), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveT... | 6 | 23 | 0.368714 |
train_31a8d5c9d6702105 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.124, 0, 0.027), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.067, 1).lineTo(-0.067, -1).lineTo(0.067, -1).lineTo(0.067, 1).lineTo(-0.067, 1).close().extrude(0.077)
result = result.edges().fillet(0.013)
result = result.union(cq.Workplane(cq.Pla... | 6 | 80 | 0.03654 |
train_a84f0af0d87ad219 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.073, 0.918, -0.767), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.071, 0.082).lineTo(-0.071, 0.041).lineTo(-0.032, -0.027).lineTo(0, -0.082).lineTo(0.032, -0.027).lineTo(0.071, 0.041).lineTo(0.071, 0.082).lineTo(-0.071, 0.082).close().transforme... | 4 | 27 | 0.454624 |
train_fcc7afc9e896e772 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.118, 0.215, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.12, 0.056).lineTo(0.12, 0.271).lineTo(-0.084, 0.213).lineTo(-0.12, 0.056).close().revolve(angleDegrees=360, axisStart=(-0.12, 0.056), axisEnd=(0.12, 0.271))
result = result.union(cq.W... | 18 | 211 | 0.213065 |
train_ff9495fd92a5dadb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.014, 0.002, -0.288), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.986, -0.838).lineTo(0.992, -0.853).lineTo(1.014, 0.849).lineTo(-0.972, 0.848).close().moveTo(-0.253, 0.314).lineTo(-0.22, 0.294).lineTo(-0.26, 0.228).lineTo(-0.3, 0.161).lineTo(-... | 17 | 161 | 1.368351 |
train_f46eaec61e3b5e5d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.659, 0.218, 0.42), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.182, 0.889).lineTo(-0.182, 0.849).lineTo(-0.195, 0.849).lineTo(-0.195, 0.404).lineTo(-0.139, 0.404).lineTo(-0.139, 0.324).lineTo(0.195, 0.324).lineTo(0.195, 0.889).lineTo(-0.182, 0... | 3 | 20 | 0.381906 |
train_f4ef1bf98eeecbe1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.144, -0.679), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.055, 1.144).extrude(0.595)
result = result.union(cq.Workplane(cq.Plane(origin=(0.026, -0.328, -0.087), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.074, 0.08).extrude(0.079))
result = resu... | 9 | 58 | 0.790548 |
train_86e41bd1a2ab2bf0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.466), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.625, 1).lineTo(0.625, 0.75).threePointArc((0.802, 0.677), (0.875, 0.5)).lineTo(0.875, -0.5).threePointArc((0.802, -0.677), (0.625, -0.75)).lineTo(-0.375, -0.75).lineTo(-0.375, -1).threePoi... | 7 | 100 | 1.39054 |
train_dda7f148bce1fd13 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.137, -0.027, 0.795), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1.121, -1.234).lineTo(1.121, -0.18).lineTo(-0.913, 1.234).lineTo(-1.121, -1.234).close().extrude(1.59)
result = result.edges().fillet(0.322)
| 2 | 20 | 3.634225 |
train_e1f451950d0521ac | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.224), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.413).extrude(0.174)
result = result.union(cq.Workplane(cq.Plane(origin=(0.661, 0, -0.064), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.237, 0.816).extrude(0.287))
result = result.cut(cq.Wor... | 5 | 88 | 0.474862 |
train_05ce477fe3b97af8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.044, -0.043, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.072, -1.043).lineTo(-0.072, 0.957).lineTo(0.072, 0.957).lineTo(0.072, 1.1).lineTo(0.072, -1.043).lineTo(-0.072, -1.043).close().extrude(0.105)
result = result.edges().chamfer(0.016)
... | 7 | 49 | 0.029827 |
train_e7aca55b2a826d55 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.223, -0.901), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.316, 1.554).extrude(0.986)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.052, 0.761, -0.681), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.239).extrude(0.499))
result = result.u... | 4 | 27 | 2.394458 |
train_293afa51348c94bc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.11, -0.004, 0.363), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.299, 0.603).threePointArc((-0.23, -0.996), (0.299, 0.515)).lineTo(0.299, 0.996).lineTo(-0.299, 0.996).lineTo(-0.299, 0.603).close().extrude(0.727)
result = result.edges().chamfer(... | 2 | 26 | 1.656296 |
train_4e7cc0bb503bb58f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.485), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.461, 0.321).extrude(0.615)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, 0.114), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.318, 0.228).extrude(0.331))
result = result.union(cq.Wo... | 13 | 147 | 0.128666 |
train_1c9e7d20ed821417 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.341, 0.611), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.384).sweep(cq.Workplane('YZ').spline([(-1.045, -0.099), (-0.863, -0.079), (-0.681, -0.466), (-0.5, -0.346), (-0.318, 0.116), (-0.137, -0.099)]))
result = result.edges().chamfer(0.259)
... | 4 | 11 | 0.692071 |
train_f3c6b7f67bb5395e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, 0.03, 0.353), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.248, 0.214).lineTo(-0.248, -0.106).lineTo(-0.232, -0.106).lineTo(-0.232, -0.214).lineTo(0.248, -0.214).lineTo(0.248, 0.214).lineTo(0.092, 0.214).lineTo(0.092, -0.106).lineTo(0.075, -0.1... | 4 | 36 | 0.384298 |
train_cce7ecd98c78c991 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.4), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.871, 2).extrude(1.039)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.16, -0.458, 0.014), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.235).extrude(0.642))
result = result.cut(cq.Workplan... | 12 | 77 | 2.576653 |
train_9b4d09d2b37fd658 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.523, 0.169, -0.56), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.954, 0.954).extrude(1.351)
result = result.faces('>Z').shell(-0.097)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.439, 0.242, -0.791), normal=(0, 0, 1), xDir=(1, 0, 0))).ci... | 7 | 54 | 1.271106 |
train_c9cf42edba786084 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.066, -0.24, 0.533), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.157, 0.226).lineTo(0.157, 0.226).lineTo(0.157, -0.037).lineTo(0.467, -0.037).lineTo(0.467, -0.089).lineTo(-0.157, -0.089).lineTo(-0.157, -0.037).lineTo(-0.467, -0.037).lineTo(-0.... | 10 | 345 | 0.32885 |
train_53a1f8bb84b21121 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.001, 0.147), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1.067, -0.173).lineTo(-0.721, 0.173).lineTo(0.721, 0.173).lineTo(1.067, -0.173).lineTo(-1.067, -0.173).close().extrude(0.294)
result = result.edges().chamfer(0.094)
result = result.uni... | 4 | 33 | 0.142049 |
train_983e2e259ba3aba3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.441, -0.92, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.226, 1.243).lineTo(0.421, 1.243).lineTo(0.421, 0.597).lineTo(-0.421, 0.597).lineTo(-0.421, 1.243).lineTo(-0.226, 1.243).close().workplane(offset=0.407).moveTo(-0.425, 1.527).lineTo(0.... | 3 | 15 | 1.564028 |
train_42a1d6fab63df530 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.133, -0.028, -0.661), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.339).sweep(cq.Workplane('XY').spline([(0.437, -0.028), (0.372, 0.221), (0.178, 0.382), (-0.069, 0.39)]))
result = result.union(cq.Workplane(cq.Plane(origin=(-0.001, 0, -0.338), ... | 11 | 243 | 0.087476 |
train_290d6db5458f3d77 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.131, 0.22, -0.426), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.41, 1.56).extrude(1.024)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.695, 0.213, -0.027), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.14).extrude(0.216))
result = result.ed... | 14 | 68 | 1.515024 |
train_dbdd55fbcd284528 | 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.123, 1.01).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.192, 0.164, -1.031), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.506, 0.481).extrude(1.249))
result = result.cut(cq.Workp... | 9 | 111 | 1.533968 |
train_a18271b7df474c24 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.209, -0.269, -0.553), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.015, 1.463).extrude(0.833)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.209, -0.854 + 0.117, -0.678), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.064, 0.06).lineTo(0.014, ... | 30 | 368 | 0.725335 |
train_094f4f9c19f46d76 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.172, -0.731, 0.604), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.074, 0.277).lineTo(-0.203, 0.203).lineTo(-0.277, 0.074).lineTo(-0.111, 0.03).lineTo(-0.111, -0.03).lineTo(-0.277, -0.074).lineTo(-0.203, -0.203).lineTo(-0.074, -0.277).lineTo(-0... | 7 | 79 | 0.253835 |
train_483f5289fb910410 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.255).workplane(offset=0.482).circle(0.19).workplane(offset=0.333).circle(0.258).workplane(offset=0.429).circle(0.249).workplane(offset=0.325).circle(0.21).workplane(offset=0.432).circle(0.218)... | 4 | 11 | 0.271819 |
train_62a453029e95dd30 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.068, 0, -0.413), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.929, 2).extrude(0.827)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.083, 0.531, -0.554), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.026).extrude(0.992))
result = result.cut(cq.... | 13 | 63 | 1.465984 |
train_51ee4c1a449649c0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.534, -0.318), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.398, -0.466).lineTo(-0.491, -0.466).lineTo(-0.491, 0.466).lineTo(0.491, 0.466).lineTo(0.491, -0.466).lineTo(-0.398, -0.466).close().sweep(cq.Workplane('YZ').spline([(-0.534, -1.583),... | 3 | 12 | 1.130948 |
train_3a22872c0ec98f63 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.897, -0.931, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.999, -0.069).lineTo(0.999, 1.931).lineTo(-0.999, 1.931).lineTo(-0.999, 1.581).lineTo(-0.623, 1.337).lineTo(0, 0.932).lineTo(0.623, 0.526).lineTo(0.445, 0.487).lineTo(-0.405, 0.307).li... | 1 | 15 | 4.726278 |
train_6981c5b9e198cf5a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.264, 0.068, -0.197), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.866, 0.988).extrude(0.819)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.17, 0.127, -0.336), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.207, 0.088).extrude(0.983))
result = resu... | 19 | 153 | 0.690012 |
train_fb15a6f77d7bdf58 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.693, -0.243, -0.203), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.765, -0.292).lineTo(0.215, -0.581).lineTo(0.792, 0.262).lineTo(0.17, 1.072).lineTo(-0.792, 0.73).lineTo(-0.765, -0.292).close().workplane(offset=0.36).moveTo(-0.714, -0.256).lin... | 5 | 47 | 2.202447 |
train_8ec42587858c29e2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.642, -0.718), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.675, 0.21).lineTo(0.675, 0.055).threePointArc((0.554, -0.237), (0.261, -0.358)).lineTo(0.142, -0.358).lineTo(-0.03, -0.358).lineTo(-0.261, -0.358).threePointArc((-0.329, -0.353), (-0.... | 16 | 55 | 3.454368 |
train_75b03976c7c68d64 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.465, 0.515, -0.07), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.943, 0.92).threePointArc((-0.916, 0.708), (-1.043, 0.535)).threePointArc((-0.915, 0.358), (-0.949, 0.141)).lineTo(0.597, 0.141).threePointArc((1.043, 0.088), (0.991, 0.535)).three... | 2 | 41 | 1.197318 |
train_9c88a63925df73bf | 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.301).workplane(offset=0.375).circle(0.314).workplane(offset=0.315).circle(0.285).workplane(offset=0.351).circle(0.261).workplane(offset=0.303).circle(0.362).workplane(offset=0.37).circle(0.358... | 9 | 62 | 0.527922 |
train_e53a6ffb2e3d3ba5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.229, 0, 0.503), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.34, 0.287).extrude(0.056)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.147, -0.012, 0.493), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.067, 0.085).extrude(0.068))
result = result.cu... | 24 | 173 | 0.1276 |
train_1de9dfb81c75e52f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.309, -0.757, -0.17), normal=(1, 0, 0), xDir=(0, 0, 1))).lineTo(0, -0.757).lineTo(0.351, -0.757).close().revolve(angleDegrees=360, axisStart=(0.351, -0.757), axisEnd=(0, -0.757))
result = result.edges().chamfer(0.073)
result = result.faces('>Y')... | 16 | 92 | 0.174207 |
train_a1ff262232056f1f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.004, -1), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1, -0.119).lineTo(-1, 0.119).threePointArc((0, 0.059), (1, 0.119)).lineTo(1, -0.119).lineTo(-1, -0.119).close().revolve(angleDegrees=90, axisStart=(-1, -0.119), axisEnd=(-1, 0.119))
resul... | 4 | 29 | 0.607963 |
train_2daf43ab96bc7a83 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.305, -0.201, -0.375), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.542, -0.812).lineTo(-0.542, 0.812).threePointArc((0.246, 0.165), (0.542, -0.812)).lineTo(-0.542, -0.812).close().sweep(cq.Workplane('XZ').spline([(-0.305, -0.375), (-0.122, -0.... | 12 | 95 | 1.290918 |
train_d42f217f42e76c19 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.009, -0.009), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.561, 0.153).threePointArc((0.611, 0.398), (0.561, 0.642)).threePointArc((0, 1.009), (-0.561, 0.642)).threePointArc((-0.611, 0.398), (-0.561, 0.153)).lineTo(0.561, 0.153).close().revolv... | 10 | 59 | 1.680861 |
train_abfab078c36b0185 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.365, -0.614), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.22, 1.407).threePointArc((-0.617, 0.395), (0.22, -0.617)).threePointArc((0.419, -0.635), (0.617, -0.615)).lineTo(0.617, -0.157).lineTo(0.617, 0.948).threePointArc((0.419, 0.984), (0.2... | 12 | 79 | 1.619205 |
train_bb9d979d4808bd51 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.034, 0.026, 0.044), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.472, 0.676).extrude(0.146)
result = result.union(cq.Workplane(cq.Plane(origin=(0.263, 0.133, 0.061), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.145, 0.328).extrude(0.054))
result = re... | 23 | 199 | 0.231731 |
train_04f0f7846c704f3c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.098), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.903, 2).extrude(0.163)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.09, -0.678, 0.064), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.083, 0.103).extrude(0.034))
result = result.cut(cq... | 6 | 31 | 0.527599 |
train_e0d2024b7d9cad08 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.267, 0, -0.134), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.467, 1.649).extrude(0.023)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.349, 0.179, -0.111), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.733, 0.508).extrude(0.02))
result = resu... | 9 | 55 | 0.31316 |
train_d26ccca47f30a5cc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.046, -0.017, -0.206), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.538, 0.407).extrude(0.099)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.153, 0.028, -0.15), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.205, 0.236).extrude(0.043))
result = r... | 13 | 76 | 0.108987 |
train_984a0fed6e251bc4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.643, 0.294, -0.205), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.017, -0.098).lineTo(-0.137, -0.098).lineTo(-0.137, 0.141).lineTo(0.137, 0.141).lineTo(0.137, -0.098).lineTo(-0.017, -0.098).close().extrude(0.283)
result = result.edges().fillet... | 27 | 201 | 0.222569 |
train_0d5871663c084d18 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.006, 0.628, 0.252), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.511, -0.56).lineTo(-0.497, -0.388).lineTo(-0.093, -0.388).lineTo(-0.106, -0.216).lineTo(-0.153, 0.388).lineTo(-0.438, 0.388).lineTo(-0.424, 0.56).lineTo(0.438, 0.56).lineTo(0.451,... | 6 | 101 | 0.875292 |
train_7db7403ed53ec4ca | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.789), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.407, 2).extrude(1.578)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.049, 0.094, -1.058), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.126, 0.307).extrude(1.894))
result = result.cut(cq.... | 3 | 14 | 4.089307 |
train_4a1d3820a5fcdc11 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.47, -0.812, -0.767), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.587, 1.65).lineTo(-0.173, -0.076).lineTo(0.587, 0.58).lineTo(0.311, 1.202).lineTo(-0.587, 1.65).close().extrude(1.244)
result = result.edges().chamfer(0.242)
result = result.cut(... | 26 | 221 | 0.638251 |
train_32d845a43a10816b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.442).workplane(offset=0.341).circle(0.413).workplane(offset=0.39).circle(0.318).workplane(offset=0.34).circle(0.454).workplane(offset=0.343).circle(0.384).workplane(offset=0.277).circle(0.518)... | 6 | 12 | 0.93571 |
train_57cef2102b03da7b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.651, 0.087).lineTo(-0.651, 1).lineTo(0.651, 1).lineTo(0.651, 0.087).lineTo(-0.651, 0.087).close().revolve(angleDegrees=360, axisStart=(0, 0), axisEnd=(0.46, 0))
result = result.edges().fillet(... | 6 | 22 | 3.462599 |
train_f70e907c07cce8fc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.376, -0.215, -0.084), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.024, -0.008).threePointArc((-0.025, -0.01), (-0.027, -0.011)).lineTo(-0.027, -0.027).lineTo(-0.011, -0.027).threePointArc((-0.01, -0.025), (-0.008, -0.024)).lineTo(0.02, -0.024... | 10 | 76 | 0.324047 |
train_1ae6a6db6b9fd6df | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.839, -0.719, -0.014), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.582, -0.183).threePointArc((0.014, 1.621), (0.609, -0.183)).lineTo(0.458, -0.183).threePointArc((0.797, 0.142), (0.931, 0.594)).threePointArc((0.905, 0.62), (0.931, 0.647)).thre... | 2 | 50 | 0.674059 |
train_a4f26d64da345511 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.007, 0.256, -0.213), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.555, -0.717).lineTo(0.531, -0.715).lineTo(0.542, 0.73).lineTo(-0.541, 0.695).close().moveTo(-0.126, 0.076).lineTo(-0.179, 0.145).lineTo(-0.265, 0.074).lineTo(-0.151, -0.117).lineT... | 18 | 95 | 0.238695 |
train_a628d393f038ed16 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.123, -0.006, -0.301), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.637, 1.006).lineTo(0.651, 0.954).lineTo(0.649, 0.784).lineTo(0.096, 0.812).lineTo(0.091, -0.994).lineTo(-0.093, -0.966).lineTo(-0.107, 0.785).lineTo(-0.628, 0.803).close().moveTo... | 16 | 170 | 0.448278 |
train_f0f17a6c851792c4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.012, 0.016, 0.034), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1.012, -0.176).lineTo(-1.012, 0.176).lineTo(1.012, 0.176).threePointArc((0.663, -0.084), (0.237, -0.176)).lineTo(-1.012, -0.176).close().extrude(0.105)
result = result.edges().fille... | 13 | 33 | 0.065338 |
train_e8b03fb7a36a17cb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.229, -0.402), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.286).sweep(cq.Workplane('YZ').spline([(-0.229, -0.402), (0.031, -0.402), (0.198, -0.579), (0.366, -0.756)]))
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, -0.17), normal=... | 9 | 136 | 0.155012 |
train_b341a3e76610b748 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.455, -0.251), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.587, 0.07).threePointArc((0.656, 0.057), (0.717, 0.021)).threePointArc((1, 0.148), (0.717, 0.275)).threePointArc((0.656, 0.239), (0.587, 0.226)).lineTo(0, 0.226).lineTo(-0.587, 0.226)... | 12 | 71 | 0.200249 |
train_293d3e43a3ae3bb1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.257, 0, -0.477), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.486, 1.711).extrude(1.127)
result = result.union(cq.Workplane(cq.Plane(origin=(0.721, 0.117, 0.211), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.279).extrude(0.238))
result = result.edg... | 11 | 93 | 2.098641 |
train_276f9b2aca212db5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.501, -0.057, 0.397), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.173, 0.436).lineTo(0.173, -0.019).lineTo(-0.173, -0.019).lineTo(-0.173, 0.59).lineTo(0.173, 0.59).lineTo(0.173, 0.436).close().extrude(0.551)
result = result.edges().chamfer(0.057... | 9 | 93 | 0.784222 |
train_bc6cbdfe8aaac0ae | 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.319, 0.648).extrude(0.754)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.054, -0.069, -0.265), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.134, 0.122).extrude(0.319))
result = result.unio... | 4 | 21 | 0.300685 |
train_a3a2f7f9343da751 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.11, 0.451, -0.227), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.54, 0.46).lineTo(0.5, 0.46).lineTo(0.5, 0.188).threePointArc((0.54, 0), (0.5, -0.188)).lineTo(0.5, -0.46).lineTo(0.08, -0.46).lineTo(-0.54, -0.46).lineTo(-0.54, 0.46).close().swee... | 25 | 42 | 1.012889 |
train_a464b6d720dd2bee | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.428), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.537).extrude(0.856)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.205, -0.249, -0.574), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.648, 0.394).extrude(1.028))
result = result.edges()... | 3 | 50 | 2.334648 |
train_c05a4f8de327ebcb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.299, -0.043, -0.466), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.702, -0.013).lineTo(0.485, 0.492).lineTo(0.026, 0.69).lineTo(-0.49, 0.491).lineTo(-0.699, -0.011).lineTo(-0.527, -0.518).lineTo(-0.022, -0.695).lineTo(0.509, -0.518).close().moveT... | 10 | 204 | 0.586321 |
train_e39baee8042fb161 | 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.98, 1.376).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.219, -0.137, 0.008), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.728, -1.73).lineTo(0.292, -0.137).lineTo(-0.728, 1.4... | 7 | 67 | 4.447739 |
train_0b1a6e0c7544111c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.015, 0, -0.24), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.243, 0).lineTo(-0.243, 1).lineTo(0.243, 1).lineTo(0.243, -1).lineTo(-0.243, -1).lineTo(-0.243, 0).close().revolve(angleDegrees=90, axisStart=(-0.243, 0), axisEnd=(-0.243, 1))
result ... | 16 | 119 | 0.249034 |
train_c2d696144cfe0184 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.304, -0.319, -0.31), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.392, 0.588).extrude(0.62)
result = result.faces('>Z').shell(-0.032)
result = result.union(cq.Workplane(cq.Plane(origin=(0.323, 0.013, -0.003), normal=(0, 0, 1), xDir=(1, 0, 0))).rect... | 6 | 62 | 0.271797 |
train_8a4304fd322a9564 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.025, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.422, 0.51).extrude(0.572)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0.025, -0.444), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.116).extrude(0.436))
result = result.union(cq.Wor... | 11 | 93 | 0.160485 |
train_9ecef0e657bcc4da | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.66, -0.037, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.595).workplane(offset=0.738).circle(0.734).workplane(offset=0.581).circle(0.49).loft()
result = result.edges().chamfer(0.13)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.059, -... | 14 | 73 | 0.965621 |
train_542e8aa9c62e2746 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.092, -0.14, 0.66), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.034, 0.029).lineTo(-0.034, 0.016).lineTo(-0.047, 0.016).lineTo(-0.047, -0.032).lineTo(-0.034, -0.032).lineTo(-0.034, -0.039).lineTo(0.047, -0.039).lineTo(0.047, -0.032).lineTo(0.03... | 12 | 150 | 0.329097 |
train_c09a52c32bb731a1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.175, -0.15, 0.14), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.264, 0.264).lineTo(0.264, -0.88).lineTo(-0.264, -0.88).lineTo(-0.264, 0.88).lineTo(0.264, 0.88).lineTo(0.264, 0.264).close().workplane(offset=0.05).moveTo(0.252, 0.252).lineTo(0.252... | 21 | 66 | 0.182785 |
train_8637edcdfcbeea09 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.103, -0.034, 0.04), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.023, -0.015).lineTo(0.023, -0.014).lineTo(0.021, -0.014).lineTo(0.021, 0.014).lineTo(0.021, 0.015).lineTo(-0.021, 0.015).lineTo(-0.021, -0.014).lineTo(-0.023, -0.014).lineTo(-0.023,... | 6 | 27 | 0.00272 |
train_907533e3a0701259 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1.188, -0.571, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.885, 2.109).lineTo(-0.822, 0.973).threePointArc((-0.546, 0.399), (0.055, 0.189)).lineTo(0.885, 0.236).lineTo(0.839, 1.067).lineTo(0.776, 2.202).lineTo(-0.885, 2.109).close().extrude(... | 9 | 173 | 1.954225 |
train_36c084a36207f75e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.559, 0.241, -0.401), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.441, 0.161).lineTo(0.441, -0.161).lineTo(-0.441, -0.161).lineTo(-0.441, 0.161).lineTo(0.441, 0.161).close().sweep(cq.Workplane('XZ').spline([(-0.559, -0.401), (-0.252, 0.002), (0... | 12 | 104 | 0.42196 |
train_3c1dff874a825b52 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.027), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1, 0.047).lineTo(-1, -0.047).lineTo(1, -0.047).lineTo(1, 0.047).lineTo(-1, 0.047).close().extrude(0.044)
result = result.edges().fillet(0.011)
result = result.union(cq.Workplane(cq.Plane(or... | 17 | 144 | 0.007354 |
train_c0f906fbc7ea1c08 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.145, -0.484, -0.289), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.707, 0.866).extrude(0.642)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.563, -0.399, 0.083), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.07).extrude(0.122))
result = resu... | 31 | 119 | 0.86921 |
train_a18a56594597e131 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1.038, 0, 0.001), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.506).workplane(offset=0.339).circle(0.468).workplane(offset=0.387).circle(0.511).workplane(offset=0.493).circle(0.506).workplane(offset=0.394).circle(0.551).workplane(offset=0.425).cir... | 15 | 78 | 0.607527 |
train_58821d00cd447fde | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.708, 0.282), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.659, 0.292).lineTo(-0.44, 0).lineTo(-0.219, -0.292).lineTo(-0.219, -0.116).lineTo(0.219, -0.116).lineTo(0.307, 0).lineTo(-0.307, 0).lineTo(-0.44, 0.176).lineTo(0.44, 0.176).lineTo(0.44... | 2 | 20 | 0.386354 |
train_004be10b8495841d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.311, 0.013), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1, -0.444).lineTo(-1, 0.444).lineTo(1, 0.444).lineTo(1, -0.444).lineTo(-1, -0.444).close().extrude(0.556)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.14, -0.383, -0.488), norm... | 29 | 159 | 0.710447 |
train_8b3fd915faf29e40 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.235, 0.642, -0.179), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.231, -0.091).lineTo(0.231, -0.358).lineTo(0.161, -0.358).lineTo(0.161, -0.091).lineTo(-0.175, -0.091).lineTo(-0.175, -0.049).lineTo(-0.231, -0.049).lineTo(-0.231, 0.021).lineTo(-... | 2 | 28 | 0.073359 |
train_b570d90e4ea9a271 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.068, 0.193, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.176, -0.243).threePointArc((-0.275, -0.307), (-0.391, -0.293)).threePointArc((-0.606, 0.143), (-0.245, 0.47)).lineTo(-0.245, 0.322).threePointArc((-0.429, 0.201), (-0.452, -0.018)).th... | 5 | 30 | 0.329423 |
train_7c97913950b4ec7a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.874, 0.485, 0.537), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.266, -0.054).lineTo(0.266, -0.266).lineTo(-0.266, 0.266).lineTo(0.266, 0.266).lineTo(0.266, -0.054).close().sweep(cq.Workplane('XZ').spline([(0.401, 0.178), (0.192, 0.221), (-0.004,... | 5 | 51 | 0.496526 |
train_077d4c1fcbcbeabf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.238, 0.04, -0.545), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.536, 0.525).extrude(0.547)
result = result.union(cq.Workplane(cq.Plane(origin=(0.22, 0.588, -0.472), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.029, 0.638).extrude(0.035))
result = res... | 4 | 32 | 0.890645 |
train_1f4cbf32a3f6b4d4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.308, -0.183, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.789, 0.791).extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.279, 0.389, 0.11), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.276, 0.378).extrude(0.691))
result = result.u... | 19 | 75 | 1.158841 |
train_d96e1f17eb2c3be1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.424, -0.262), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 1.424).lineTo(0.534, 1.424).lineTo(0.534, -0.31).lineTo(-0.534, -0.31).lineTo(-0.534, 1.424).lineTo(0, 1.424).close().extrude(1.194)
result = result.cut(cq.Workplane(cq.Plane(origin=... | 12 | 78 | 1.765674 |
train_93c804a3fcfedf9e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.486), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.898).extrude(0.972)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.15, 0.248, -0.652), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.142).extrude(1.166))
result = result.cut(cq.Workpla... | 4 | 12 | 3.470637 |
train_1c32716c056eb05d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.185, -0.005, -0.289), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.838, 0).lineTo(0.409, 0.705).lineTo(-0.413, 0.736).lineTo(-0.815, 0.023).lineTo(-0.399, -0.694).lineTo(0.395, -0.726).close().moveTo(-0.168, -0.18).lineTo(0.166, -0.176).lineTo(0... | 3 | 44 | 0.527063 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.