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_ab7b644406be8d36 | import cadquery as cq
import math
result = cq.Workplane('XY').box(2, 1.366, 1.942)
result = result.edges().fillet(0.24)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(1, 0, 0), xDir=(0, 1, 0))).circle(0.49).extrude(3.977, both=True))
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0), norma... | 5 | 36 | 2.388962 |
train_e0eccec8d0c0f88c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.343), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.747).lineTo(1, -0.747).lineTo(-1, -0.747).lineTo(-1, 0.747).lineTo(-0.323, 0.747).lineTo(-0.323, -0.074).lineTo(0.323, -0.074).lineTo(0.323, 0.747).lineTo(1, 0.747).close().extrude(0.35... | 15 | 137 | 1.101855 |
train_8331c2ac94731a3e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.018, -0.024, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.087, 0.546).lineTo(0.18, 0.453).threePointArc((0.192, 0.438), (0.2, 0.42)).lineTo(0.486, -0.439).threePointArc((0.018, -0.322), (-0.333, -0.556)).lineTo(-0.478, -0.12).threePointArc(... | 12 | 372 | 0.837627 |
train_42a9ef6ebbe7eed3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.137, -0.032), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.221, 0.835).threePointArc((0.345, 0.792), (0.462, 0.73)).threePointArc((0.566, 0.652), (0.659, 0.559)).threePointArc((0.736, 0.454), (0.797, 0.337)).threePointArc((0.839, 0.213), (0.8... | 4 | 87 | 0.377941 |
train_3bb1e2fef79673ae | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.544, 0.492, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.216, 1.579).lineTo(0.8, -0.087).lineTo(-0.8, 0.16).lineTo(-0.65, 0.588).lineTo(-0.204, 0.803).threePointArc((-0.036, 0.962), (0.008, 1.19)).lineTo(0.216, 1.579).close().workplane(offse... | 5 | 92 | 0.653376 |
train_46189dd6fcb0667f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.681), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.556).lineTo(1, -0.545).threePointArc((0.998, -0.551), (0.989, -0.556)).lineTo(-0.985, -0.556).lineTo(-0.985, -0.54).lineTo(-1, -0.54).lineTo(-1, 0.556).lineTo(1, 0.556).close().extrude(... | 6 | 26 | 2.41853 |
train_0adab21abadbf279 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.49, -0.192, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.052, 0.318).lineTo(0.009, 0.262).lineTo(0.084, 0.3).lineTo(0.066, 0.219).lineTo(0.136, 0.174).lineTo(0.056, 0.148).lineTo(0.052, 0.065).lineTo(-0.009, 0.121).lineTo(-0.084, 0.083).lin... | 3 | 32 | 0.140257 |
train_2ef92b5887409104 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.002, 0.022), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.982, 0.127).lineTo(0.982, -0.069).threePointArc((0.825, -0.115), (0.453, -0.135)).lineTo(-0.672, -0.135).threePointArc((-0.89, -0.123), (-0.982, -0.096)).lineTo(-0.982, 0.126).threePoin... | 20 | 149 | 0.061741 |
train_51e009ba964021b8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.062, -0.057), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.044, 0.193).lineTo(0.055, 0.112).lineTo(0.135, 0.053).lineTo(0.113, -0.018).lineTo(0.038, -0.04).lineTo(-0.059, -0.056).threePointArc((-0.105, -0.04), (-0.107, 0.01)).threePointArc((... | 7 | 76 | 0.074558 |
train_2ff3223c04c47649 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.676, 0.791, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.32, 1.236).threePointArc((0.567, 1.133), (0.671, 0.884)).lineTo(0.671, 0.468).threePointArc((0.567, 0.219), (0.32, 0.116)).lineTo(-0.32, 0.116).threePointArc((-0.567, 0.219), (-0.671, ... | 2 | 18 | 2.303965 |
train_a1f34c51fb39d829 | import cadquery as cq
import math
result = cq.Workplane('XY').circle(1).extrude(0.748, both=True)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.187).extrude(0.375, both=True))
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(0, 1, 0), xDir=(... | 10 | 32 | 3.052579 |
train_0713cad08b3a5732 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.261, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.131, 0.487).threePointArc((0.131, 0.487), (0.262, 0.26)).threePointArc((0.131, 0.034), (-0.131, 0.034)).threePointArc((-0.262, 0.26), (-0.131, 0.487)).close().extrude(2)
result = result.... | 17 | 797 | 0.34171 |
train_a509ba66f9e8949e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.003, 0, -1.132), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.444, 2.132).lineTo(0.444, 0.45).lineTo(0.583, 0.45).lineTo(0.583, 0).lineTo(0.341, 0).lineTo(0.341, 2.132).lineTo(0.444, 2.132).close().revolve(angleDegrees=360, axisStart=(0, 0, 0), ... | 6 | 67 | 0.509445 |
train_afc9c40ed9976416 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.167, -0.077, -0.112), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.314, 0.102).lineTo(0.832, -0.004).lineTo(-0.349, -0.102).lineTo(-0.69, -0.079).lineTo(-0.832, -0.006).lineTo(-0.69, 0.071).lineTo(-0.314, 0.102).close().extrude(0.369, taper=4.01... | 8 | 84 | 0.048519 |
train_358a8cd47f909063 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.84), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.709, 1.68).lineTo(0.709, 0.109).lineTo(1, 0.109).lineTo(1, 0).lineTo(0.438, 0).lineTo(0.438, 1.68).lineTo(0.709, 1.68).close().revolve(angleDegrees=360, axisStart=(0, 0, 0), axisEnd=(0, 1,... | 2 | 16 | 1.789762 |
train_16ed6c57634ac19d | 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(0.879, 0.482).lineTo(1, 0.369).lineTo(1, -0.4).lineTo(0.909, -0.482).lineTo(-1, -0.482).lineTo(-1, 0.338).threePointArc((-0.949, 0.44), (-0.847, 0.482)).lineTo(0.879, 0.482).close().extrude(... | 8 | 27 | 0.569958 |
train_b1425cc0f781468b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.101, -0.14), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.124, 0.881).threePointArc((-0.037, 0.854), (0, 0.796)).lineTo(0, 0.671).threePointArc((0.059, 0.572), (0.197, 0.531)).lineTo(0.332, 0.531).threePointArc((0.449, 0.496), (0.498, 0.413)... | 22 | 159 | 1.354226 |
train_97fe131f69661e30 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.591, -0.449, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 1.182).threePointArc((0.837, 0.837), (1.182, 0)).lineTo(0.478, 0).threePointArc((0.338, 0.338), (0, 0.478)).lineTo(0, 1.182).close().extrude(2)
result = result.union(cq.Workplane(cq... | 3 | 16 | 2.051639 |
train_df28002205a9c3d7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.714, 1.51).lineTo(0.714, 0.083).lineTo(0.639, 0.083).lineTo(0.639, 0).lineTo(0.204, 0).lineTo(0.204, 1.51).lineTo(0.714, 1.51).close().revolve(angleDegrees=360, axisStart=(0, 0, 0), axisEnd=(... | 8 | 86 | 2.117744 |
train_1c5d7994b9fcffba | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.219), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.26, 0.438).lineTo(0.26, 0).lineTo(-0.26, 0).lineTo(-0.26, 0.438).lineTo(-0.124, 0.438).lineTo(-0.124, 0.136).lineTo(0.124, 0.136).lineTo(0.124, 0.438).lineTo(0.26, 0.438).close().extrude(... | 3 | 17 | 0.270687 |
train_ae1a4da0b2afad91 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.018, 0.013, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.688, 0.822).lineTo(0.868, 0.342).threePointArc((0.966, 0.25), (0.962, -0.094)).lineTo(0.975, -0.629).threePointArc((0.845, -0.822), (0.529, -0.732)).threePointArc((0.269, -0.755), (0.... | 3 | 10 | 0.442394 |
train_f23a3447da88ac7b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.293, -0.196, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.585).threePointArc((0.414, 0.414), (0.585, 0)).lineTo(0.146, 0).threePointArc((0.104, 0.104), (0, 0.146)).lineTo(0, 0.585).close().extrude(2)
result = result.union(cq.Workplane(cq... | 8 | 36 | 0.517781 |
train_bfd3ce5b622b01e7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.402, 0, -0.365), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.598, 0.729).lineTo(0.598, 0).lineTo(-0.598, 0).lineTo(-0.598, 0.729).lineTo(-0.471, 0.729).lineTo(-0.471, 0.127).lineTo(0.471, 0.127).lineTo(0.471, 0.729).lineTo(0.598, 0.729).close(... | 7 | 98 | 0.390439 |
train_19b47084ed17a746 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.158), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.676, 0.316).lineTo(0.911, 0.243).lineTo(1, 0.111).lineTo(1, 0).lineTo(0.869, 0).lineTo(0.869, 0.094).lineTo(0.774, 0.243).lineTo(0, 0.193).lineTo(0, 0.316).lineTo(0.676, 0.316).close().re... | 5 | 39 | 0.266107 |
train_0c041cdc9960a955 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.162, 0.029, -0.249), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.167, -0.244).threePointArc((0.167, 0.266), (-0.062, -0.266)).lineTo(-0.167, -0.244).close().extrude(0.533, taper=-10.726)
result = result.union(cq.Workplane(cq.Plane(origin=(0.109... | 8 | 85 | 1.47609 |
train_60abb4f8331c03f8 | import cadquery as cq
import math
result = cq.Workplane('XY').circle(0.126).extrude(1.102, both=True)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.256).extrude(0.603, both=True))
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(0, 1, 0), xD... | 6 | 11 | 0.267051 |
train_22ba4bb95d219dd6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.053), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.869, 0.906).threePointArc((0.961, 0.868), (1, 0.781)).lineTo(1, -0.713).threePointArc((0.94, -0.848), (0.799, -0.906)).lineTo(-0.699, -0.906).threePointArc((-0.911, -0.82), (-1, -0.617)).li... | 9 | 552 | 1.237807 |
train_74e691dceaac4afe | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.059, 0, -0.026), normal=(1, 0, 0), xDir=(0, 1, 0))).moveTo(-0.404, -0.182).lineTo(-1, -0.182).lineTo(-1, 0.182).lineTo(-0.404, 0.182).lineTo(-0.404, 0.46).lineTo(0.404, 0.46).lineTo(0.41, 0.453).lineTo(0.414, 0.446).lineTo(0.416, 0.438).lineTo(... | 4 | 97 | 0.702429 |
train_5429ce46f70f6970 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.317, 0.153, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.026, 0.08).lineTo(0.077, 0.052).lineTo(0.128, 0.076).lineTo(0.117, 0.019).lineTo(0.156, -0.024).lineTo(0.099, -0.03).lineTo(0.071, -0.08).lineTo(0.046, -0.028).lineTo(-0.01, -0.016).l... | 13 | 444 | 0.340069 |
train_1a206b63b1b9e771 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.471, 0, 0.429), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.311, 0.293).threePointArc((0.364, 0.271), (0.385, 0.22)).lineTo(0.385, -0.123).threePointArc((0.364, -0.176), (0.311, -0.197)).threePointArc((0.208, -0.245), (0.103, -0.293)).threePoi... | 3 | 49 | 0.830291 |
train_d87a9795b6588a5f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.01, -0.158, -0.198), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.198, 0.931).threePointArc((-0.059, 0.876), (0, 0.746)).lineTo(0, 0.635).threePointArc((0.054, 0.516), (0.181, 0.466)).lineTo(0.635, 0.466).threePointArc((0.891, 0.365), (1, 0.125)... | 12 | 215 | 0.765391 |
train_fc9c8851541c3a37 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.436, -0.1, -0.107), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.025, 0.502).threePointArc((0.086, 0.463), (0.113, 0.371)).lineTo(0.113, 0.244).threePointArc((0.128, 0.19), (0.164, 0.167)).lineTo(0.488, 0.167).threePointArc((0.541, 0.134), (0.563... | 8 | 219 | 0.726969 |
train_c1e1416ba308383b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.027, 0.035, -0.084), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.049, 0.931).threePointArc((0.372, 0.686), (0.959, 0.018)).lineTo(1.026, -0.29).lineTo(-0.171, -0.931).lineTo(-0.326, -0.908).lineTo(-1.026, 0.408).lineTo(-0.049, 0.931).close().mo... | 5 | 44 | 0.389335 |
train_ece15fa4f1c524a3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.41), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.569, 0.735).threePointArc((0.872, 0.609), (1, 0.304)).lineTo(1, -0.561).threePointArc((0.948, -0.685), (0.825, -0.735)).lineTo(-0.79, -0.735).threePointArc((-0.937, -0.674), (-1, -0.526)).l... | 4 | 27 | 0.291601 |
train_9efd5e876d81cd24 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.232), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.949, 0.834).lineTo(1, 0.783).lineTo(1, -0.717).threePointArc((0.965, -0.8), (0.883, -0.834)).lineTo(-0.915, -0.834).lineTo(-1, -0.749).lineTo(-1, 0.834).lineTo(0.949, 0.834).close().extrud... | 11 | 138 | 1.500267 |
train_2ec39f8059901528 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.152), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.873, 0.767).lineTo(0.873, -0.713).lineTo(0.818, -0.713).lineTo(0.818, -0.767).lineTo(-0.813, -0.767).threePointArc((-0.855, -0.75), (-0.873, -0.708)).lineTo(-0.873, 0.685).threePointArc((-... | 5 | 18 | 0.567366 |
train_6cf2af176249934c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.206, 0, -0.257), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.005, 0.654).threePointArc((0.22, -0.17), (0.699, -0.346)).threePointArc((0.789, -0.523), (0.706, -0.685)).lineTo(0.308, -0.639).threePointArc((0.164, -0.69), (-0.76, -0.249)).threePoin... | 9 | 96 | 0.944772 |
train_82996a4885332188 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.43), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.293).extrude(0.687, both=True)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, 0.43), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.569).extrude(0.84, both=True))
result = result.cut... | 6 | 31 | 1.742978 |
train_ca0e80324d5cc8ed | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.723, 2).lineTo(0.723, 0.717).lineTo(0.59, 0.717).lineTo(0.59, 0).lineTo(0, 0).lineTo(0, 2).lineTo(0.723, 2).close().revolve(angleDegrees=360, axisStart=(0, 0, 0), axisEnd=(0, 1, 0))
result = ... | 5 | 15 | 1.814425 |
train_44555e9c60718577 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.297), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.483, 0.957).lineTo(-0.483, -0.535).lineTo(1, -0.535).lineTo(1, -0.957).lineTo(-1, -0.957).lineTo(-1, 0.957).lineTo(-0.483, 0.957).close().extrude(0.087, both=True)
result = result.cut(cq.W... | 9 | 21 | 0.350962 |
train_241c576c85178010 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.11), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.357).lineTo(1, -0.359).threePointArc((0.998, -0.363), (0.994, -0.365)).lineTo(-0.993, -0.365).lineTo(-1, -0.359).lineTo(-1, 0.351).lineTo(-0.986, 0.365).lineTo(0.991, 0.365).threePointAr... | 7 | 17 | 0.254831 |
train_877a110ab075e012 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.03, 0, 0.253), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.489, 0.452).lineTo(0.489, -0.452).lineTo(-0.489, -0.452).lineTo(-0.489, 0.452).lineTo(-0.118, 0.452).lineTo(-0.118, 0.047).lineTo(0.118, 0.047).lineTo(0.118, 0.452).lineTo(0.489, 0.452).... | 4 | 62 | 1.016047 |
train_0d4d2e76cc8e2d00 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.124), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.579).lineTo(1, -0.482).lineTo(0.901, -0.482).lineTo(0.901, -0.579).lineTo(-0.942, -0.579).lineTo(-1, -0.522).lineTo(-1, 0.448).threePointArc((-0.96, 0.541), (-0.868, 0.579)).lineTo(1, 0... | 11 | 166 | 0.370464 |
train_2b7f1db9ad36720d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.235, -0.801, 0.424), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.03, 0.046).lineTo(0.035, 0.027).threePointArc((0.035, 0.017), (0.042, 0.009)).lineTo(0.038, -0.009).lineTo(0.028, -0.027).lineTo(0.03, -0.046).threePointArc((-0.042, 0), (0.03, 0.... | 8 | 153 | 0.119042 |
train_399e6c5197fdc4c3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.038), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.857, 0.4).threePointArc((0.957, 0.358), (1, 0.258)).lineTo(1, 0.089).threePointArc((0.973, 0.026), (0.91, 0)).lineTo(0.298, 0).threePointArc((0.229, -0.029), (0.2, -0.098)).lineTo(0.2, -0.... | 2 | 32 | 0.182665 |
train_1b937317284ff1fb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.35, 0, -0.49), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.079, 1.334).lineTo(0.079, 0.981).lineTo(0.378, 0.981).lineTo(0.378, 0.621).lineTo(0.649, 0.621).lineTo(0.649, 0.094).lineTo(0.363, 0.094).lineTo(0.363, 0).lineTo(0, 0).lineTo(0, 1.334)... | 14 | 78 | 0.555922 |
train_f64297093fd7869b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.659), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.691, 0.961).lineTo(-0.691, -0.575).threePointArc((-0.638, -0.683), (-0.516, -0.729)).lineTo(0.929, -0.729).threePointArc((0.977, -0.746), (0.997, -0.788)).lineTo(0.997, -0.965).threePoint... | 11 | 110 | 1.003282 |
train_0dbe8650a68ccb0d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.295, 0.016, -0.22), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.29, 0.097).threePointArc((-0.484, -0.097), (-0.484, 0.097)).threePointArc((0.484, 0.871), (0.29, -0.29)).lineTo(0.29, -0.678).threePointArc((0.097, -0.871), (0.097, -0.678)).lineT... | 3 | 22 | 0.471921 |
train_613affdd3abe31a8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.229, 0, -0.198), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.767).extrude(0.397)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.229, 0, -0.198), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.448).extrude(1.188, both=True))
result = result.u... | 15 | 48 | 0.699442 |
train_9f158338df4c988f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.7), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(1, 1.4).lineTo(1, 1.231).lineTo(0.4, 1.231).lineTo(0.4, 0).lineTo(0, 0).lineTo(0, 1.4).lineTo(1, 1.4).close().revolve(angleDegrees=360, axisStart=(0, 0, 0), axisEnd=(0, 1, 0))
result = result... | 5 | 25 | 0.580622 |
train_a2cd417d84f514d3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.006, -0.999), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.413).extrude(0.947)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.413, -0.006, -0.999), normal=(0, 0, 1), xDir=(1, 0, 0))).pushPoints([(0, 0), (-0.066, 0.223), (-0.241, 0.375), ... | 10 | 100 | 0.533322 |
train_2f1a759ac1d2c815 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.004, 0, -0.999), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.963).extrude(0.68)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.967, 0, -0.999), normal=(0, 0, 1), xDir=(1, 0, 0))).pushPoints([(0, 0), (-0.152, 0.521), (-0.563, 0.875), (-1.1, ... | 9 | 127 | 1.530131 |
train_c1be3004cf97be89 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.175, -0.905), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(1.006).extrude(1.81)
result = result.cut(cq.Workplane(cq.Plane(origin=(1.006, 0.175, -0.905), normal=(0, 0, 1), xDir=(1, 0, 0))).pushPoints([(0, 0), (-0.078, 0.384), (-0.295, 0.711), (-0... | 9 | 96 | 2.775572 |
train_4a9a94e8e0339bea | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.302), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.369, 2).extrude(0.604)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, -0.302), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.381, -0.696).lineTo(0.381, -0.696).lineTo(-0.381, -0.904)... | 11 | 26 | 1.175094 |
train_c006707afd25a000 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.068, -0.999, -0.276), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.252, 0.739).lineTo(0.302, 0.686).lineTo(0.614, 0.227).lineTo(0.447, -0.306).lineTo(-0.083, -0.602).lineTo(-0.614, -0.26).lineTo(-0.561, 0.308).lineTo(-0.252, 0.739).close().move... | 11 | 216 | 1.79208 |
train_520aca49aa9ba566 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.271, -0.116), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.596, 0.728).lineTo(0.717, 0.608).lineTo(0.717, -0.728).lineTo(-0.494, -0.728).lineTo(-0.717, -0.506).lineTo(-0.717, 0.728).lineTo(0.596, 0.728).close().extrude(0.121)
result = result.... | 4 | 18 | 0.394245 |
train_17ddd1278ba92734 | import cadquery as cq
import math
result = cq.Workplane('XY').circle(0.774).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.802).extrude(0.913, both=True))
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(0, 1, 0), xDir=(... | 8 | 54 | 2.884949 |
train_5f999520868cd43d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.322), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.54).lineTo(1, -0.537).lineTo(0.978, -0.537).lineTo(0.978, -0.552).lineTo(-0.975, -0.552).lineTo(-0.975, -0.536).lineTo(-1, -0.536).lineTo(-1, 0.539).lineTo(-0.979, 0.539).lineTo(-0.979,... | 14 | 55 | 0.763498 |
train_b28f0bd7cf9d16cb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.204), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.973, 0.973).lineTo(0.973, -0.973).lineTo(0, -0.973).lineTo(0, -0.487).lineTo(-0.487, -0.487).lineTo(-0.487, 0).lineTo(-0.973, 0).lineTo(-0.973, 0.973).lineTo(0.973, 0.973).close().extrude(... | 23 | 203 | 0.58616 |
train_0698c3ce48686335 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.662, -0.044, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.175, 0.605).threePointArc((0.065, 0.5), (0.267, 0.127)).threePointArc((0.312, -0.294), (0.175, -0.517)).threePointArc((-0.065, -0.412), (-0.267, -0.039)).threePointArc((-0.312, 0.382... | 2 | 16 | 0.312549 |
train_74a2963c909774dc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.113), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.791, 0.321).lineTo(0.791, 0.111).lineTo(1, 0.111).lineTo(1, -0.163).threePointArc((0.953, -0.275), (0.842, -0.321)).lineTo(-1, -0.321).lineTo(-1, 0.006).lineTo(-0.686, 0.006).lineTo(-0.686... | 6 | 46 | 0.321264 |
train_f21f046bd9418121 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.096, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.256, 0.392).threePointArc((0.308, 0.373), (0.33, 0.33)).lineTo(0.33, 0.137).threePointArc((0.302, 0.08), (0.235, 0.056)).lineTo(-0.174, 0.056).threePointArc((-0.191, 0.05), (-0.198, 0.036)... | 10 | 85 | 0.610774 |
train_a97d6b4c5bae0987 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.815, 0.844, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.484, 0.722).threePointArc((-0.383, 0.521), (-0.161, 0.479)).lineTo(0.161, 0.532).lineTo(0.484, 0.541).lineTo(0.807, 0.597).threePointArc((1, 0.408), (0.807, 0.22)).threePointArc((0.657... | 2 | 76 | 1.612405 |
train_40607b85c274db9a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.104), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.846, 1).lineTo(0.846, -1).lineTo(-0.846, -1).lineTo(-0.846, 1).lineTo(0.846, 1).close().extrude(0.208)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, -0.104), normal=(0, 0, 1), xD... | 4 | 9 | 0.653098 |
train_64e0f6bcb8418369 | import cadquery as cq
import math
result = cq.Workplane('XY').moveTo(0.082, 0.143).lineTo(0.165, 0).lineTo(0.082, -0.143).lineTo(-0.082, -0.143).lineTo(-0.165, 0).lineTo(-0.082, 0.143).lineTo(0.082, 0.143).close().extrude(1, both=True)
final_result = result
| 1 | 8 | 0.141284 |
train_afbe6f36943a97b0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.423, 0, -0.166), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.845, 0.32).lineTo(0.845, 0).lineTo(0, 0).lineTo(0, 0.332).lineTo(0.32, 0.332).lineTo(0.32, 0.32).lineTo(0.845, 0.32).close().extrude(1, both=True)
result = result.cut(cq.Workplane(cq... | 9 | 62 | 0.454575 |
train_020447de1d2821f5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.844, 0, -0.745), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.587, 1).lineTo(-0.587, -0.624).lineTo(1.102, -0.624).lineTo(1.102, -1).lineTo(-1.102, -1).lineTo(-1.102, 1).lineTo(-0.587, 1).close().extrude(1.489)
result = result.edges().fillet(0.0... | 9 | 93 | 1.155366 |
train_eb8ecd006a6b5817 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.374), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.493, 0.747).lineTo(0.493, 0.235).lineTo(1, 0.235).lineTo(1, 0).lineTo(0.273, 0).lineTo(0.273, 0.747).lineTo(0.493, 0.747).close().revolve(angleDegrees=360, axisStart=(0, 0, 0), axisEnd=(0... | 4 | 23 | 0.693625 |
train_e1baad48df177dd4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.001, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.428).extrude(0.824)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.429, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).pushPoints([(0, 0), (-0.069, 0.231), (-0.25, 0.389), (-0.489, 0.423)... | 8 | 61 | 0.86708 |
train_b4d3dbce53fa9b33 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.319, -0.28, -0.68), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.656).threePointArc((0.464, 0.464), (0.656, 0)).lineTo(0.296, 0).threePointArc((0.21, 0.21), (0, 0.296)).lineTo(0, 0.656).close().extrude(1.679)
result = result.union(cq.Workplan... | 11 | 67 | 0.291686 |
train_490ec18a8313147a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.012, -0.031, -0.184), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.93, 0.35).lineTo(1.011, 0.128).lineTo(1.011, 0).lineTo(0.77, 0).lineTo(0.77, 0.111).lineTo(0.668, 0.35).lineTo(0, 0.127).lineTo(0, 0.368).lineTo(0.768, 0.368).lineTo(0.93, 0.35).... | 6 | 41 | 0.336203 |
train_02bc09ab1b9456b2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.216, -0.356), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.606, 0.783).threePointArc((0.794, 0.712), (0.874, 0.543)).lineTo(0.874, -0.513).threePointArc((0.784, -0.703), (0.573, -0.783)).lineTo(-0.157, -0.783).threePointArc((-0.252, -0.747), ... | 8 | 60 | 0.426081 |
train_607f44107347bda1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.143, 0, -0.571), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.856, 0.19).lineTo(0.856, -0.004).lineTo(0.669, -0.19).lineTo(-0.68, -0.19).threePointArc((-0.805, -0.139), (-0.856, -0.014)).lineTo(-0.856, 0.04).threePointArc((-0.812, 0.147), (-0.706... | 11 | 36 | 0.298769 |
train_d1675fce0b2d1224 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.036, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.415, 0.469).threePointArc((0.445, 0.458), (0.458, 0.434)).lineTo(0.458, -0.316).threePointArc((0.402, -0.424), (0.267, -0.469)).lineTo(-0.277, -0.469).threePointArc((-0.405, -0.427), (-0.4... | 10 | 75 | 0.660183 |
train_83749ede6ef5590a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.248, 0.201, -0.587), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.612, 0.25).lineTo(0.51, -0.25).lineTo(0.063, -0.25).lineTo(-0.039, 0.25).lineTo(0.612, 0.25).close().extrude(1.459).union(cq.Workplane(cq.Plane(origin=(-0.248, 0.201, -0.587), nor... | 13 | 284 | 1.223077 |
train_b6d2fe8abfd95da8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.154), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.729, 0.866).threePointArc((0.913, 0.791), (1, 0.603)).lineTo(1, -0.502).threePointArc((0.883, -0.762), (0.627, -0.866)).lineTo(-0.803, -0.866).threePointArc((-0.935, -0.813), (-1, -0.678))... | 10 | 66 | 0.195375 |
train_325360044c9aceaf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.732), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.915, 0.604).lineTo(0.915, 0.517).lineTo(1, 0.517).lineTo(1, -0.479).lineTo(0.877, -0.479).lineTo(0.877, -0.604).lineTo(-0.919, -0.604).lineTo(-0.919, -0.521).lineTo(-1, -0.521).lineTo(-1, ... | 5 | 20 | 2.666548 |
train_8b32914493420978 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.403, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.47).extrude(0.795)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.403, 0, -0.444), normal=(0.62, 0, 0.785), xDir=(0.785, 0, -0.62))).circle(0.458).extrude(1.478))
result = result.... | 7 | 71 | 0.378222 |
train_f9957bbc27d7bbce | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.131), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.835, 0.411).threePointArc((0.945, 0.364), (1, 0.255)).lineTo(1, -0.294).lineTo(0.874, -0.411).lineTo(-0.901, -0.411).threePointArc((-0.965, -0.384), (-1, -0.321)).lineTo(-1, 0.263).threePo... | 11 | 54 | 0.211908 |
train_b68a5cd7cdcfe3dd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.83, 0.715, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.465, 1.401).threePointArc((0.439, 1.283), (0.394, 1.172)).threePointArc((0.471, 1.033), (0.602, 0.944)).lineTo(0.701, 0.716).lineTo(0.401, 0.487).lineTo(0.465, 0.259).threePointArc((-0.... | 4 | 27 | 2.401202 |
train_285127c1d5b5026a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -1, 0), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.776, 0.636).lineTo(2, 0.348).lineTo(1.876, -0.057).lineTo(1.819, -0.636).lineTo(1.579, -0.529).lineTo(1.636, 0.05).lineTo(1.388, 0.074).lineTo(1.331, -0.504).lineTo(1.083, -0.48).lineTo(1.22... | 2 | 38 | 1.908758 |
train_d0f6caef39ff6ff5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.409, -0.113, -0.039), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.182, 1.297).extrude(0.075)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.409, -0.113, -0.039), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.451, -0.249).lineTo(0.451, -0.249... | 17 | 83 | 0.236046 |
train_49bdfe5a46c313e8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.171), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.741, 0.341).lineTo(0.92, 0.25).lineTo(1, 0.119).lineTo(1, 0).lineTo(0.769, 0).lineTo(0.769, 0.102).lineTo(0.668, 0.25).lineTo(0, 0.11).lineTo(0, 0.341).lineTo(0.741, 0.341).close().revolv... | 3 | 14 | 0.574378 |
train_bfa5ffaa1053dbf5 | import cadquery as cq
import math
result = cq.Workplane('XZ').moveTo(1, 0.219).lineTo(0.871, 0).lineTo(1, -0.219).lineTo(0.249, -0.219).lineTo(0.249, 0.219).lineTo(1, 0.219).close().revolve(angleDegrees=360, axisStart=(0, 0, 0), axisEnd=(0, 1, 0))
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.446, 0.324, 0), nor... | 6 | 25 | 0.885059 |
train_598e998a53c356a7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.793, -0.014, -0.131), normal=(0.948, 0.201, 0.248), xDir=(-0.207, 0.978, 0))).moveTo(0.212, 0.714).threePointArc((0.425, 0.429), (0.637, -0.429)).threePointArc((-0.637, -0.714), (0.212, 0.714)).close().extrude(1.559, both=False)
result = result... | 3 | 26 | 3.266386 |
train_2b9283e10b67e927 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.393, 0.085, -0.306), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.606, 0.667).lineTo(0.606, -0.667).lineTo(-0.606, -0.667).lineTo(-0.606, 0.667).lineTo(-0.366, 0.667).lineTo(-0.366, -0.384).lineTo(0.366, -0.384).lineTo(0.366, 0.667).lineTo(0.606,... | 11 | 190 | 0.440041 |
train_59a15e9099ae3ced | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.008, 0, -0.543), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(1).extrude(0.673)
result = result.cut(cq.Workplane(cq.Plane(origin=(1.008, 0, -0.543), normal=(0, 0, 1), xDir=(1, 0, 0))).pushPoints([(0, 0), (-0.234, 0.642), (-0.826, 0.985), (-1.499, 0... | 10 | 66 | 2.231505 |
train_a1d8130abf286ed2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.505), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.821, 0.344).threePointArc((0.947, 0.291), (1, 0.164)).lineTo(1, -0.094).threePointArc((0.927, -0.27), (0.751, -0.344)).lineTo(-0.764, -0.344).threePointArc((-0.931, -0.275), (-1, -0.108)).... | 12 | 50 | 0.91513 |
train_d346863f381fc8fd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.12), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(1).extrude(0.24)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, -0.12), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.312).extrude(0.719, both=True))
result = result.union(cq.Workplane... | 14 | 54 | 0.511266 |
train_48cfc63ec1e63622 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.3), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.857, 0.326).lineTo(0.983, 0.2).lineTo(0.983, -0.218).threePointArc((0.95, -0.295), (0.874, -0.326)).lineTo(-0.854, -0.326).threePointArc((-0.945, -0.288), (-0.983, -0.198)).lineTo(-0.983, 0.... | 10 | 58 | 0.405554 |
train_8d77f71fcfba5c3d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.04), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.995, 0.104).lineTo(0.995, -0.155).lineTo(0.697, -0.155).lineTo(0.697, 0.104).threePointArc((0.727, 0.155), (0.756, 0.104)).threePointArc((0.786, 0.053), (0.816, 0.104)).threePointArc((0.846... | 1 | 10 | 1.277893 |
train_6a921b8ff285e9dc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.594, -0.715, -0.376), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.576, 0.523).threePointArc((0.623, 0.408), (0.496, 0.33)).threePointArc((0.348, 0.279), (0.236, 0.251)).threePointArc((0.201, 0.194), (0.185, 0.09)).lineTo(0.018, 0.134).threePoin... | 9 | 110 | 1.705245 |
train_01858f3c17e481da | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.949, -0.543, 0.043), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.188, 1.461).threePointArc((0.58, 1.388), (0.818, 1.155)).threePointArc((0.836, 0.821), (0.63, 0.478)).threePointArc((0.256, 0.219), (-0.188, 0.111)).threePointArc((-0.58, 0.183), ... | 9 | 118 | 2.807821 |
train_8cdb9d10708b3f6e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.259, 0.013, 0.375), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.058, 0.361).lineTo(-0.046, 0.276).lineTo(-0.023, 0.105).threePointArc((-0.012, 0.019), (0.262, 0.022)).lineTo(0.889, 0.071).threePointArc((0.933, 0.071), (0.972, 0.064)).lineTo(1.0... | 6 | 108 | 0.49716 |
train_340a8713eaca4a5e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.001, -0.116), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.774, -0.106).lineTo(0.988, -0.162).lineTo(0.968, -0.254).lineTo(0.752, -0.211).lineTo(0.716, -0.31).lineTo(0.906, -0.422).lineTo(0.863, -0.506).lineTo(0.667, -0.406).lineTo(0.606, -0.4... | 2 | 95 | 0.531324 |
train_987bf7f6390e041a | import cadquery as cq
import math
result = cq.Workplane('XY').box(1.605, 2, 1.232)
result = result.edges().fillet(0.142)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.221).extrude(3.209, both=True))
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0), nor... | 11 | 102 | 2.081882 |
train_1757c31cd07a66a3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.071, -0.572, -0.165), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.972, 0.201).threePointArc((0.445, 0.58), (0.972, -0.58)).threePointArc((-0.203, -0.244), (-0.972, 0.201)).close().extrude(0.054, both=True)
result = result.union(cq.Workplane(cq... | 7 | 91 | 0.602494 |
train_bf92a317037d6d6b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.999), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.361, 0.398).lineTo(0.361, 0.211).lineTo(0.549, 0.211).lineTo(0.549, -0.209).lineTo(0.358, -0.209).lineTo(0.358, -0.398).lineTo(-0.441, -0.398).lineTo(-0.441, -0.29).lineTo(-0.549, -0.29).l... | 16 | 114 | 1.786344 |
train_88992ba03a7cab5c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.208), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.124, 1).lineTo(0.296, 0.379).lineTo(1, 0.124).lineTo(0.818, -0.053).threePointArc((0.749, -0.171), (0.614, -0.197)).lineTo(0.379, -0.296).lineTo(0.124, -1).lineTo(-0.296, -0.379).lineTo(-... | 11 | 182 | 0.373071 |
train_9b57e7d5f101abea | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.001, 0, -0.496), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.61).extrude(0.592)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.611, 0, -0.496), normal=(0, 0, 1), xDir=(1, 0, 0))).pushPoints([(0, 0), (-0.053, 0.249), (-0.202, 0.453), (-0.422... | 8 | 99 | 0.725177 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.