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_05f2eb9cadacfba4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.509, -1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.752, 0.523).lineTo(-0.752, 1.193).lineTo(-0.082, 1.193).lineTo(0.752, 0.183).lineTo(0.752, -0.174).lineTo(-0.367, -0.174).lineTo(-0.367, 0.523).lineTo(-0.752, 0.523).close().extrude(2)
r... | 10 | 44 | 2.670701 |
train_6ac4b8a84ef00690 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.239, -0.474), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.206, 1.226).extrude(1.21)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, -0.066, -0.183), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.167, 0.647).extrude(0.627))
result = result.cut(... | 13 | 156 | 0.542807 |
train_c522d2b329b226be | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.1, -0.35), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, -1.051).lineTo(0.288, -0.397).lineTo(1, -0.325).lineTo(0.466, 0.151).lineTo(0.618, 0.851).lineTo(0, 0.49).lineTo(-0.618, 0.851).lineTo(-0.466, 0.151).lineTo(-1, -0.325).lineTo(-0.288, -0... | 13 | 105 | 0.451019 |
train_faeebf1fa968ff03 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.673), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.866).extrude(1.346)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.14, 0.053, -0.335), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.093).extrude(0.147))
result = result.cut(cq.Workpla... | 9 | 14 | 4.913585 |
train_19b5bbe8fa775fce | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.012, -0.026, -0.653), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.081, 0.058).lineTo(0.081, -0.002).lineTo(-0.081, -0.002).lineTo(-0.081, 0.058).lineTo(0.081, 0.058).close().extrude(0.443)
result = result.edges().fillet(0.017)
result = result.u... | 23 | 134 | 0.005523 |
train_330a966d80dc116e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.402, -0.653), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.034, -0.012).lineTo(-0.034, 0.012).threePointArc((0.002, 0.006), (0.034, -0.012)).lineTo(-0.034, -0.012).close().sweep(cq.Workplane('YZ').spline([(0.192, -0.666), (0.148, -0.577), (0.... | 3 | 22 | 0.000921 |
train_7dc4b1861ee5e622 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.866, -0.267), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.024, -0.134).lineTo(-0.092, 0.031).lineTo(-0.024, 0.099).lineTo(-0.011, 0.086).lineTo(0.002, 0.134).lineTo(0.02, 0.089).lineTo(0.044, 0.031).lineTo(0.015, 0.06).lineTo(0.009, 0.031)... | 2 | 20 | 0.018407 |
train_2aff8cb4a41a9a75 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.374), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.315, -0.433).threePointArc((-0.163, -0.376), (0, -0.356)).threePointArc((0.163, -0.376), (0.315, -0.433)).lineTo(0.713, -0.433).lineTo(0.713, 0.337).threePointArc((0.684, 0.406), (0.616, ... | 12 | 69 | 1.106179 |
train_b20957e384977f36 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.023, 0, -0.78), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.071, 2).extrude(1.513)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.023, 0, -0.793), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.069).extrude(0.495))
result = result.edges().fill... | 12 | 50 | 3.459375 |
train_b41d631f77582380 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.416, -0.084), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.817, 1.168).extrude(0.499)
result = result.union(cq.Workplane(cq.Plane(origin=(0.091, 0.474, 0.413), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.636, 1.051).extrude(0.03))
result = result.... | 15 | 77 | 1.016059 |
train_4243457e0ccb838a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.846, 0.041, -0.049), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.153, -0.225).lineTo(-0.153, -0.225).lineTo(-0.153, 0.123).lineTo(-0.123, 0.123).lineTo(-0.153, 0.153).lineTo(-0.153, 0.225).lineTo(0.153, 0.225).lineTo(0.153, -0.225).close().tra... | 1 | 9 | 0.05478 |
train_154ce6a6684dd328 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.219, -0.654), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.345, 0.278).extrude(0.368)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.102, -0.23, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.007).extrude(0.369))
result = result.union... | 4 | 19 | 0.041324 |
train_20679e168458b745 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.017, 0, 0.176), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.904, -0.884).lineTo(-0.904, -0.09).lineTo(-0.983, -0.09).lineTo(-0.983, 0.884).lineTo(-0.865, 0.884).lineTo(-0.865, 0.809).lineTo(0.531, 0.809).lineTo(0.531, 0.773).lineTo(-0.865, 0.... | 18 | 118 | 0.565476 |
train_099de7f4e98a08f2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.089, -0.002, -0.38), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.389, 0.731).extrude(0.824)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.019, 0.035, -0.482), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.25, 0.658).extrude(0.106))
result = ... | 17 | 142 | 1.089799 |
train_d04d059356b0ac7c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.113, -0.449, -0.388), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.615, 0.456).threePointArc((-0.663, 0.435), (-0.683, 0.387)).lineTo(-0.683, 0.313).lineTo(-0.661, 0.313).lineTo(-0.661, -0.313).lineTo(-0.683, -0.313).lineTo(-0.683, -0.387).three... | 16 | 57 | 1.004608 |
train_d7e704a8dea4e007 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.015, 0.002, -0.655), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.248, 1.688).extrude(1.34)
result = result.union(cq.Workplane(cq.Plane(origin=(0.061, 0.003, -0.767), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.142, 0.114).extrude(0.116))
result = r... | 8 | 152 | 2.83502 |
train_3c83682c8d0e00ad | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.362, -0.147, -0.058), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.205, 0.168).lineTo(-0.205, 0.006).lineTo(0.205, 0.006).lineTo(0.205, 0.056).threePointArc((0.175, 0.087), (0.205, 0.118)).lineTo(0.205, 0.168).lineTo(-0.205, 0.168).close().extru... | 8 | 193 | 0.012059 |
train_12aada4b62153cac | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.788, -0.027, -0.071), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.229, 0.264).extrude(0.031)
result = result.union(cq.Workplane(cq.Plane(origin=(0.745, -0.042, -0.041), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.041).extrude(0.009))
result = resu... | 20 | 242 | 0.032596 |
train_0b9a12665eda8671 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.064, 0, 0.289), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.331, 0.339).lineTo(-0.331, 0.711).lineTo(0.331, 0.711).lineTo(0.331, 0.339).lineTo(0.128, 0.339).lineTo(0.128, 0.561).lineTo(-0.122, 0.561).lineTo(-0.122, 0.568).lineTo(-0.225, 0.568).... | 7 | 71 | 0.450922 |
train_793dc1b3fa6e62fb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.168, -0.509, -0.12), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.832, -0.075).lineTo(0.832, -0.075).lineTo(0.832, 0.075).lineTo(-0.832, 0.075).lineTo(-0.832, -0.075).close().sweep(cq.Workplane('YZ').spline([(-0.509, -0.12), (-0.253, -0.029), ... | 10 | 37 | 0.05655 |
train_2c3818460dec12c8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.156, 0, -0.959), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.688, 1.75).extrude(1.519)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.353, -0.15, 0.529), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.814, 0.301).extrude(0.43))
result = result... | 4 | 21 | 4.622061 |
train_6238fd7916782f26 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.007, -0.181, -0.416), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.438, 0.775).extrude(0.978)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.266, -0.038, -0.166), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.099, 0.193).extrude(0.263))
result... | 15 | 127 | 0.247201 |
train_917be76cfefe56e6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.256, -1), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.979, -0.121).lineTo(-0.979, 0.121).lineTo(0.979, 0.121).lineTo(0.979, -0.121).lineTo(-0.979, -0.121).close().revolve(angleDegrees=90, axisStart=(-0.979, -0.121), axisEnd=(-0.979, 0.121)... | 3 | 33 | 0.794622 |
train_9a63845bd594326d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.105, -0.43), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1, 0.171).lineTo(-1, 0.011).lineTo(1, 0.011).lineTo(1, 0.171).lineTo(0.8, 0.171).lineTo(0.7, 0.271).lineTo(0.6, 0.171).lineTo(0.5, 0.271).lineTo(0.4, 0.171).lineTo(0.2, 0.171).lineTo(0.... | 5 | 113 | 0.309436 |
train_280e19878b15a0dd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.416, -0.348), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.627, 0.77).lineTo(-0.864, 0.791).lineTo(-1, 0.596).lineTo(-0.951, 0.49).lineTo(-0.864, 0.614).lineTo(-0.627, 0.593).lineTo(-0.576, 0.484).lineTo(-0.663, 0.36).lineTo(-0.547, 0.35).li... | 14 | 63 | 0.915719 |
train_56d501a474520fe8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.852, 0.315, 0.117), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.278, 0.148).extrude(0.08)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.901, 0.269, 0.153), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.075, 0.059).extrude(0.035))
result = resu... | 23 | 278 | 0.107192 |
train_2b8e9c7b7938b72e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.035, 0, -0.663), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.191, 1.555).extrude(1.295)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.209, -0.067, 0.21), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.291).extrude(0.433))
result = result.cut(cq... | 20 | 140 | 1.965273 |
train_f14eaa6557ea62ff | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.512, -0.059, 0.045), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.151, -0.223).lineTo(0.151, -0.223).lineTo(0.072, 0.223).lineTo(-0.151, 0.223).lineTo(-0.151, -0.223).close().extrude(0.263)
result = result.edges().fillet(0.065)
result = result... | 14 | 83 | 0.368132 |
train_eabeef9f9e59fcb1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.453, 0.28), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.355, 0.547).lineTo(-0.355, -0.547).lineTo(-0.028, -0.547).lineTo(-0.028, -0.164).lineTo(0.355, -0.164).lineTo(0.355, 0.547).lineTo(-0.355, 0.547).close().sweep(cq.Workplane('YZ').spli... | 4 | 14 | 0.925531 |
train_163f5bf753f4b787 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.058, -0.904, -0.279), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.188).sweep(cq.Workplane('YZ').spline([(-0.904, -0.279), (-0.43, 0.082), (0.045, 0.202), (0.52, 0.082), (0.994, -0.279)]))
result = result.edges().chamfer(0.146)
result = result.... | 3 | 13 | 0.184711 |
train_38170bdce8d4279a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.598), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.819, 2).extrude(1.026)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.684, 0.14, -0.341), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.044).extrude(0.088))
result = result.cut(cq.Workpl... | 13 | 53 | 3.615869 |
train_ef5be8c8e9a055b5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.895, 0.875, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.647, 0.429).lineTo(0.647, 1.361).lineTo(-0.647, 1.361).lineTo(-0.647, 0.429).lineTo(0.647, 0.429).close().workplane(offset=0.293).moveTo(0.922, 0.231).lineTo(0.922, 1.559).lineTo(-0.92... | 23 | 89 | 3.839241 |
train_8e8f5672025d189f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.326), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.424).extrude(0.653)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.033, -0.282, -0.33), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.258).extrude(0.16))
result = result.cut(cq.Workpl... | 15 | 101 | 1.130429 |
train_8fdfc750e415e427 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.13, 0.078, 0.604), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.319, 0.573).lineTo(-0.319, -0.573).lineTo(0.319, -0.573).lineTo(0.319, 0.573).lineTo(-0.319, 0.573).close().extrude(0.561)
result = result.faces('<X').shell(-0.028)
result = result... | 6 | 72 | 0.440445 |
train_cfc9cf3b1bab4309 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.584, -0.104, 0.053), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.163, 0.18).threePointArc((0, 0.057), (0.163, 0.18)).lineTo(0.098, -0.044).lineTo(0.059, -0.18).lineTo(-0.059, -0.18).lineTo(-0.098, -0.044).lineTo(-0.163, 0.18).close().sweep(cq.W... | 11 | 75 | 0.053899 |
train_b1c40eb2a6e7be02 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.003, -0.138, -0.078), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.408, -0.364).lineTo(0.181, -0.137).lineTo(-0.165, -0.211).lineTo(0.165, 0.299).lineTo(-0.181, 0.225).lineTo(-0.408, 0.452).lineTo(0.408, 0.452).lineTo(0.408, -0.364).close().extr... | 14 | 114 | 0.578788 |
train_14285302ccf155af | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.064, 0, -0.987), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.042, 2).extrude(1.249)
result = result.union(cq.Workplane(cq.Plane(origin=(0.283, 0.223, 0.235), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.188).extrude(0.379))
result = result.union(cq... | 5 | 20 | 2.917838 |
train_6962cee4d14bb47d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.352), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.092, 2).extrude(0.507)
result = result.union(cq.Workplane(cq.Plane(origin=(0.055, 0.1, 0.154), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.491).extrude(0.049))
result = result.union(cq.Workp... | 15 | 109 | 0.905848 |
train_cccf7de2561eaa6a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.265), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, -1).lineTo(0.275, -0.476).lineTo(0.866, -0.5).lineTo(0.55, 0).lineTo(0.866, 0.5).lineTo(0.275, 0.476).lineTo(0, 1).lineTo(-0.275, 0.476).lineTo(-0.866, 0.5).lineTo(-0.55, 0).lineTo(-0.866... | 13 | 85 | 0.51378 |
train_b8015329904ebcae | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.058, 0.022, -0.088), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.556, 0.491).extrude(1.088)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.097, 0.071, 0.126), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.667, 0.049).extrude(0.41))
result = res... | 14 | 36 | 0.192431 |
train_9a9ff0e7dbea19cf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.246, -0.177, 0.022), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.226, -0.644).lineTo(0.226, 0.999).lineTo(-0.226, 0.999).lineTo(-0.226, -0.644).lineTo(0.226, -0.644).close().revolve(angleDegrees=90, axisStart=(0.226, -0.644), axisEnd=(0.226, 0.... | 20 | 193 | 0.317007 |
train_030f98479bb3a43d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.45, -0.305, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.668, 0.3).lineTo(-0.904, 0.064).lineTo(-0.904, -0.096).lineTo(-1, -0.096).lineTo(-1, -0.24).lineTo(-0.405, -0.24).threePointArc((-0.333, -0.3), (-0.254, -0.25)).lineTo(-0.254, -0.24).... | 1 | 18 | 1.62113 |
train_408a6efe5bef6747 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.194, 0, -0.456), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.613, 0.618).extrude(0.912)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.796, -0.097, -0.051), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.407, 0.265).extrude(0.416))
result = res... | 3 | 51 | 0.947506 |
train_abfd17004615f0ff | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.09, -0.223, -0.097), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.834, -0.013).lineTo(0.247, 0.787).lineTo(-0.653, 0.503).lineTo(-0.64, -0.477).lineTo(0.253, -0.777).close().moveTo(0.188, -0.001).lineTo(0.096, 0.162).lineTo(-0.097, 0.166).lineTo... | 13 | 70 | 0.454272 |
train_2fd82463a7bf4d54 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.642, 0.642, 2.774), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-3.299, 1.422).lineTo(-3.299, 0.254).lineTo(3.299, 1.422).lineTo(-3.299, 1.422).close().revolve(angleDegrees=90, axisStart=(0, 0), axisEnd=(1.062, 0))
result = result.edges().fillet(... | 5 | 35 | 1.431263 |
train_9a43e3bc77bf1c38 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.384, 0.192, -0.023), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.593, -0.28).threePointArc((0.003, 0.504), (-0.593, -0.274)).lineTo(-0.356, -0.276).threePointArc((-0.001, -0.504), (0.356, -0.278)).lineTo(0.593, -0.28).close().extrude(0.278)
res... | 28 | 236 | 0.805771 |
train_83f3d172fc479b75 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.416), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1, 0.3).lineTo(0.738, 0.3).threePointArc((1, 0), (0.738, -0.3)).lineTo(-1, -0.3).lineTo(-1, 0.3).close().extrude(0.833)
result = result.edges().fillet(0.094)
result = result.cut(cq.Workplan... | 18 | 193 | 0.643783 |
train_8c279ea922f44994 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.077, -0.013, -0.317), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.105, 0.678).extrude(0.635)
result = result.faces('>Z').shell(-0.075)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.067, -0.464, -0.254), normal=(0, 0, 1), xDir=(1, 0, 0)))... | 14 | 54 | 0.421232 |
train_a518e6b1acc74312 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1.091, -0.231), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.572, 1.465).lineTo(0.588, 1.376).lineTo(0.802, 0.091).lineTo(0.572, 0.091).lineTo(0.572, 1.376).lineTo(-0.572, 1.376).lineTo(-0.572, 0.091).lineTo(-0.802, 0.091).lineTo(-0.588, 1.376)... | 2 | 15 | 0.228062 |
train_556baa52bedeb21d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.012, -0.012, 0.65), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.352, -0.833).threePointArc((0.852, 0.09), (0.352, 1.012)).lineTo(-0.25, 0.09).lineTo(-0.852, -0.833).threePointArc((-0.25, -1.012), (0.352, -0.833)).close().extrude(1.3)
result = ... | 24 | 190 | 1.193307 |
train_cea85fcb2093c52c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.223, -0.136), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.972).extrude(0.458)
result = result.union(cq.Workplane(cq.Plane(origin=(0.328, -0.373, -0.322), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.088).extrude(0.204))
result = result.union... | 5 | 21 | 0.900722 |
train_d1ed250602fe1a62 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.486, -0.094, -0.314), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.036, 0.514).lineTo(0.036, 0.366).lineTo(-0.073, 0.366).lineTo(0.036, -0.514).lineTo(0.073, -0.514).lineTo(0.073, 0.514).lineTo(0.036, 0.514).close().sweep(cq.Workplane('YZ').spli... | 10 | 318 | 0.204673 |
train_6d3a5ccb7e4f7af0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.025, 0.027, -0.209), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.267, 0.015).lineTo(0.274, 0.015).lineTo(0.274, 0.078).lineTo(-0.274, 0.078).lineTo(-0.274, 0.015).lineTo(-0.267, 0.015).close().revolve(angleDegrees=90, axisStart=(-0.267, 0.015)... | 11 | 378 | 0.01152 |
train_95c6dad14016ee87 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.21, 0.324), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.11).workplane(offset=0.179).circle(0.152).workplane(offset=0.24).circle(0.076).loft()
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, 0.428), normal=(0, 0, 1), xDir=(1, 0, 0))... | 5 | 19 | 0.031706 |
train_0be34912640ac72a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.424, 0, -0.052), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.611, 0.409).lineTo(-0.204, 0.409).lineTo(0, 0.762).lineTo(-0.611, 0.409).lineTo(-0.407, 0.057).lineTo(-0.204, -0.296).lineTo(0.204, -0.296).lineTo(0, -0.648).lineTo(0.611, -0.296).lin... | 8 | 54 | 1.120568 |
train_5d87fc66d6187f21 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.473, 0.102, 0.461), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.228, 0.282).lineTo(0.362, 0.282).lineTo(0.362, -0.013).lineTo(0.228, -0.013).lineTo(0.228, -0.174).lineTo(-0.228, -0.174).lineTo(-0.228, -0.013).lineTo(-0.362, -0.013).lineTo(-0.3... | 13 | 241 | 0.261583 |
train_ed27a083a53dee70 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.01, 0, -0.403), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.266, 0.548).extrude(0.598)
result = result.union(cq.Workplane(cq.Plane(origin=(0.814, -0.062, -0.037), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.373, 0.313).extrude(0.121))
result = resul... | 5 | 27 | 0.43905 |
train_3108b1a44634d5bd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.697, 0.475, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.199, 0.151).threePointArc((-0.167, 0.14), (-0.135, 0.126)).threePointArc((0.044, 0.008), (0.181, -0.157)).threePointArc((0.199, 0.157), (-0.116, 0.151)).lineTo(-0.199, 0.151).close().... | 2 | 12 | 0.268039 |
train_1ea933f57929d451 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.133, -0.074), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.603).extrude(0.148)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.195, 0.17, 0.05), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.191).extrude(0.025))
result = result.cut(cq.Wor... | 13 | 50 | 0.350338 |
train_d8508ded1059900d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.917, -0.809), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1, 0.898).threePointArc((0.007, 1.917), (1, 0.885)).threePointArc((-0.007, -0.083), (-1, 0.898)).close().extrude(1.617)
result = result.edges().fillet(0.242)
result = result.cut(cq.Wor... | 12 | 47 | 4.569038 |
train_b26ad7b2feb52137 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.114, -0.068, -0.166), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.194, 0.655).extrude(0.331)
result = result.faces('>Z').shell(-0.036)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.728, 0.008, 0.025), normal=(0, 0, 1), xDir=(1, 0, 0))).re... | 10 | 182 | 0.098912 |
train_13c0436740b526aa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.334, 0.014, -0.237), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.333, 0.622).extrude(0.224)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.334, 0.014, -0.014), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.928, 0.483).extrude(0.041))
result =... | 24 | 169 | 0.390996 |
train_704bcd4795c965ac | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.889, 0, -0.137), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.02, 0.021).lineTo(-0.02, -0.021).lineTo(0.02, -0.021).lineTo(0.02, -0.009).lineTo(-0.007, -0.009).lineTo(-0.007, 0.021).lineTo(-0.02, 0.021).close().sweep(cq.Workplane('XZ').spline([(... | 2 | 18 | 0.000987 |
train_65789227aa79c58b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.714), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.803).extrude(1.429)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.352, -0.126, -0.039), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.46, 2.164).extrude(0.458))
result = result.cut(cq.... | 7 | 87 | 4.686834 |
train_e5e55e0b42897e80 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.271, -0.396, -0.158), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.247, 1.209).extrude(0.164)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.613, -0.27, -0.142), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.282).extrude(0.098))
result = resu... | 17 | 109 | 0.225243 |
train_b83f147f26c6e00b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.008, 0.771, -0.227), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.273).workplane(offset=0.359).circle(0.286).workplane(offset=0.394).circle(0.251).workplane(offset=0.335).circle(0.265).loft()
result = result.edges().fillet(0.156)
result = result... | 28 | 144 | 0.35576 |
train_186586723e799db4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.03, -0.06, 0.798), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.396, 0.643).lineTo(-0.396, -0.643).lineTo(0.396, -0.643).lineTo(0.396, 0.643).lineTo(-0.396, 0.643).close().extrude(0.416)
result = result.edges().fillet(0.056)
result = result.cut... | 16 | 75 | 0.785098 |
train_eb9d04a0cdac0369 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.075, 0.028, 0.096), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.021, -0.015).lineTo(-0.01, 0.003).lineTo(0, 0.02).lineTo(0.01, 0.003).lineTo(0, -0.003).lineTo(0.021, -0.015).lineTo(-0.021, -0.015).close().extrude(0.046)
result = result.union(c... | 9 | 265 | 0.066926 |
train_6b285897e8d9bb63 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.211, 0.06, -0.847), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.039, -0.033).lineTo(0.039, -0.036).lineTo(0.004, 0).lineTo(0.039, 0.036).lineTo(0.039, 0.033).lineTo(0.043, 0.033).lineTo(0.043, 0.045).lineTo(0.031, 0.045).lineTo(0.031, 0.041).l... | 1 | 26 | 0.00026 |
train_ae0ffc8b204adba4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.006, 0.265, 0.211), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.991).workplane(offset=0.276).circle(0.797).workplane(offset=0.267).circle(0.45).workplane(offset=0.282).circle(0.18).loft()
result = result.edges().fillet(0.191)
result = result.un... | 16 | 84 | 0.775233 |
train_8ef9af5d60b36a91 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.216, 0.215, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1.061, 0.216).lineTo(-1.061, 0.389).lineTo(1.061, 0.389).lineTo(1.061, 0.216).lineTo(0.477, 0.216).threePointArc((0.457, 0.129), (0.428, 0.043)).lineTo(0.039, 0.043).threePointArc((0.07... | 6 | 66 | 0.113392 |
train_193fff5cb17e566c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.188, -0.003), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.026, -0.135).lineTo(0.026, -0.006).threePointArc((0.043, 0.034), (0.082, 0.051)).lineTo(0.087, 0.051).lineTo(0.087, 0.034).lineTo(0.181, 0.034).lineTo(0.268, 0.034).lineTo(0.268, 0.135... | 6 | 49 | 0.046043 |
train_63a2996abc0cb9da | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.307, -0.033, -0.245), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.693, -0.098).lineTo(-0.693, 0.098).lineTo(0.693, 0.098).lineTo(0.693, -0.098).lineTo(-0.693, -0.098).close().extrude(0.057)
result = result.edges().chamfer(0.022)
result = resu... | 11 | 143 | 0.119445 |
train_0f71705bf8013c51 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.003, -0.004, 0.212), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1.024, -0.216).lineTo(0.515, 0.216).lineTo(-1.024, -0.216).lineTo(1.024, -0.216).close().extrude(0.423)
result = result.edges().chamfer(0.027)
result = result.cut(cq.Workplane(cq.P... | 3 | 25 | 0.163422 |
train_f3e27ab2f5df48bb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.085, 0, -0.196), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.83, 1.76).extrude(0.337)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.619 + 0.141, 0.0675, -1.386), normal=(1, 0, 0), xDir=(0, 1, 0))).moveTo(0.047, 0).lineTo(0.048, 0.02).lineTo... | 23 | 11 | 1.087539 |
train_4ccf22d3fdf9b2e4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.008, -0.006, -0.573), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.198, 0.274).extrude(0.396)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.008, -0.006, -0.185), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.065).extrude(0.151))
result = re... | 11 | 52 | 0.049729 |
train_120468d7b3f89965 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1.441, 0.795, -0.141), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.889, 2.272).lineTo(0.889, 0.459).lineTo(-0.889, 0.459).lineTo(-0.889, 2.272).lineTo(0.889, 2.272).close().revolve(angleDegrees=90, axisStart=(0.889, 2.272), axisEnd=(0.889, 1.14))... | 14 | 63 | 3.336665 |
train_d26f6270ced9f175 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.007, 0.059, -0.028), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.564, 0.442).extrude(0.006)
result = result.union(cq.Workplane(cq.Plane(origin=(0.01, -0.034, -0.017), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.157, -0.975).threePointArc((0.017... | 4 | 28 | 0.645696 |
train_18bd9ac1f6548463 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.121, 0.136, -0.088), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.416, 1.729).extrude(0.177)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.074, -0.001, -0.029), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.15).extrude(0.12))
result = result.... | 15 | 87 | 0.322325 |
train_d82d8aac950cc8e0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.587, 0, -0.217), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.827, 1.608).extrude(0.767)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.412, 0.113, 0.096), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.158, 1.93).extrude(0.16))
result = result.e... | 13 | 131 | 0.710044 |
train_55759b684b54c52b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.175, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.467, 0.461).extrude(0.737)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.235, -0.05, -0.388), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.031).extrude(1.388))
result = result.union(... | 4 | 18 | 0.499832 |
train_fedc323cb6b611e3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.284, 0, -0.105), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.433, 1.068).extrude(0.095)
result = result.union(cq.Workplane(cq.Plane(origin=(0.295, -0.178, -0.013), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.193).extrude(0.044))
result = result.un... | 24 | 75 | 0.132896 |
train_53f116512ebd0493 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.115, -0.015, 0.242), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.885, 0.129).lineTo(-0.885, -0.129).lineTo(0.885, -0.129).lineTo(0.885, 0.129).lineTo(-0.885, 0.129).close().extrude(0.484)
result = result.edges().fillet(0.021)
result = result.... | 14 | 120 | 0.201237 |
train_73b95aba74a71d04 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.002, 1, -0.025), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.475, 0.327).lineTo(-0.417, 0.227).lineTo(-0.263, -0.041).lineTo(-0.162, -0.439).threePointArc((-0.156, -0.365), (-0.108, -0.31)).lineTo(-0.05, -0.41).lineTo(0.008, -0.31).threePointA... | 4 | 14 | 0.550414 |
train_5bc9fffc8a40b92b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.109, 0, 0.285), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.144, 0.046).lineTo(0.055, 0.121).lineTo(-0.144, 0.121).lineTo(0.144, -0.121).lineTo(0.144, 0.046).close().sweep(cq.Workplane('XZ').spline([(-0.109, -0.044), (0.01, -0.012), (0.13, 0.00... | 3 | 25 | 0.008939 |
train_28933fddb0f6692f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.301, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.289, 0.47).lineTo(-0.289, 0.43).lineTo(-0.089, 0.43).lineTo(-0.089, 0.47).lineTo(0.045, 0.47).lineTo(0.045, 0.336).lineTo(0.004, 0.336).lineTo(0.004, 0.136).lineTo(0.045, 0.136).lineTo(0.... | 27 | 301 | 0.595318 |
train_20425107c2dbb58b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.261, 0.257, -0.408), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.155, 1.486).extrude(1.403)
result = result.union(cq.Workplane(cq.Plane(origin=(0.057, -0.732, -0.179), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.516, 0.537).extrude(0.485))
result = ... | 4 | 16 | 2.780305 |
train_1f9942bada31021b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.063, -0.048, -0.137), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.863, 0.04).lineTo(-0.863, 0.071).lineTo(0.76, 0.071).lineTo(0.76, 0.107).lineTo(0.863, 0.107).lineTo(0.863, 0.004).lineTo(0.76, 0.004).lineTo(0.76, 0.04).lineTo(-0.863, 0.04).cl... | 9 | 131 | 0.00363 |
train_8cbbb9d68b78a6ec | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.505, -0.326, -0.537), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.215, -0.24).threePointArc((0.251, -0.226), (0.266, -0.189)).lineTo(0.266, 0.189).threePointArc((0.251, 0.226), (0.215, 0.24)).lineTo(0, 0.24).lineTo(-0.215, 0.24).threePointArc((... | 4 | 35 | 0.269138 |
train_a71fa8a312dad166 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.005, -0.008), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.034, 0.056).lineTo(0.034, -0.965).lineTo(-0.034, -0.996).lineTo(-0.034, 0.958).lineTo(0.034, 1.008).lineTo(0.034, 0.056).close().extrude(0.013)
result = result.edges().fillet(0.002)
r... | 12 | 78 | 0.001699 |
train_6ec92f5e070f4425 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.224, 0.945, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.146, 0.3).threePointArc((-0.334, 0), (-0.146, -0.3)).threePointArc((-0.075, -0.325), (0, -0.334)).threePointArc((0.334, 0), (0, 0.334)).threePointArc((-0.075, 0.325), (-0.146, 0.3)).cl... | 6 | 18 | 0.29314 |
train_33c6dd9d72151457 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.982, -0.351, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(1, -0.449).lineTo(1, 0.779).lineTo(-1, 0.779).lineTo(-1, -0.449).lineTo(1, -0.449).close().extrude(1.964)
result = result.edges().fillet(0.278)
result = result.union(cq.Workplane(cq.Pla... | 17 | 51 | 3.593527 |
train_a28ffbcb8fd71690 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1.23, -0.175, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.597, 0.23).lineTo(0, 2.295).lineTo(0.597, 0.23).lineTo(-0.597, 0.23).close().extrude(0.755)
result = result.edges().chamfer(0.067)
result = result.union(cq.Workplane(cq.Plane(origin=(... | 16 | 68 | 0.854831 |
train_64d794c38eaf09d2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.556, 0.566, -0.135), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 1.509).threePointArc((-0.569, 1.224), (-0.683, 0.599)).threePointArc((0, 0.087), (0.683, 0.599)).threePointArc((0.569, 1.224), (0, 1.509)).close().extrude(1.566)
result = result.... | 15 | 88 | 2.38691 |
train_6c4d0f5e79191a0c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.261, 0.021, 0.002), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.739, 0.058).lineTo(0.739, 0.058).lineTo(0.739, -0.058).lineTo(-0.739, -0.058).lineTo(-0.739, 0.058).close().extrude(0.062)
result = result.edges().chamfer(0.003)
result = result.... | 6 | 66 | 0.022452 |
train_2cd9e2ba9235043a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.358, 0, 0.132), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.156, 0.771).threePointArc((0, -0.787), (0.156, 0.771)).threePointArc((0, 0.787), (-0.156, 0.771)).close().sweep(cq.Workplane('XZ').spline([(-0.213, -0.077), (0.226, -0.077), (0.578, -0... | 1 | 4 | 2.526943 |
train_5ecc6dcb6992d3d0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.414, 0.367, -0.356), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.476, 0.725).extrude(0.351)
result = result.union(cq.Workplane(cq.Plane(origin=(0.398, 0.076, 0.042), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.131, 1.398).lineTo(0.125, -0.602).li... | 12 | 230 | 0.619785 |
train_5313f8a88d5ebeba | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.557, -0.417, 0.026), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.758).lineTo(1.026, 0.075).lineTo(-1.026, 0.075).lineTo(-1.026, 0.758).lineTo(0, 0.758).close().extrude(1.114)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.109, -0.048, ... | 5 | 80 | 1.117513 |
train_c520d80d3437344a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.217), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.665, 2).extrude(0.146)
result = result.union(cq.Workplane(cq.Plane(origin=(0.062, -0.204, -0.072), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.248).extrude(0.039))
result = result.union(cq.W... | 23 | 98 | 0.50137 |
train_711d703bca073fb6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.002), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.014, 1).lineTo(0.014, 1).lineTo(0.014, -1).lineTo(-0.014, -1).lineTo(-0.014, 1).close().extrude(0.028)
result = result.edges().fillet(0.012)
result = result.union(result.mirror('XY'))
| 3 | 50 | 0.002529 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.