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_1b702a4bf0fdb05d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.541, 0, 1), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.173).sweep(cq.Workplane('XZ').spline([(0.541, -0.166), (0.8, -0.127), (1.059, 0.266), (1.319, 0.66), (1.578, 0.699)]))
result = result.edges().fillet(0.038)
result = result.cut(cq.Workplane... | 10 | 5 | 0.027515 |
train_a85eb3d0e71184b7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.378, 0, 0.224), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.654).sweep(cq.Workplane('XZ').spline([(-0.378, 0.224), (-0.045, -0.015), (0.288, -0.095), (0.622, -0.015), (0.955, 0.224)]))
result = result.edges().fillet(0.049)
result = result.cut(... | 12 | 64 | 1.11942 |
train_9544e63730182c31 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.038, -0.224), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.237, -0.725).threePointArc((0, -0.962), (0.237, -0.725)).lineTo(0.237, 0.284).threePointArc((0, 1.038), (-0.237, 0.284)).lineTo(-0.237, -0.725).close().extrude(0.448)
result = result... | 15 | 39 | 0.383469 |
train_555b6fa6c1eb8979 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.299, -0.244), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.139, 1.401).extrude(0.779)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.157, -0.405, -0.535), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.283).extrude(0.314))
result = result.... | 11 | 119 | 0.566314 |
train_f4816afda27950f2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.108, -0.054, 0.04), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.219, 0.155).lineTo(-0.219, 0.213).lineTo(0.219, 0.213).lineTo(0.219, 0.155).lineTo(0.146, 0.057).lineTo(0.073, -0.04).lineTo(0.073, 0.018).lineTo(-0.073, 0.018).lineTo(-0.102, 0.... | 21 | 253 | 0.190474 |
train_c5bf35cd934345cd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.569, 0.557, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.892, -0.443).lineTo(-0.892, 1.557).lineTo(0.892, 1.557).lineTo(0.892, -0.443).lineTo(-0.892, -0.443).close().extrude(1.138)
result = result.edges().chamfer(0.26)
result = result.cut(c... | 4 | 102 | 3.399886 |
train_baa160242003be00 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.345, 0.14, -0.553), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.185, -0.447).lineTo(0.133, -0.32).lineTo(-0.133, -0.32).lineTo(-0.32, -0.133).lineTo(-0.32, 0.133).lineTo(-0.447, 0.185).lineTo(-0.185, 0.447).lineTo(0.185, 0.447).lineTo(0.133, 0.3... | 7 | 32 | 0.157269 |
train_b6b1b7a778acf9e8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.116, -0.077, -0.601), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.376, 1.236).extrude(1.403)
result = result.union(cq.Workplane(cq.Plane(origin=(0.007, -0.836, 0.133), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.268, 0.329).extrude(0.216))
result =... | 6 | 29 | 2.321625 |
train_38fc711101a78010 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.383), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.96).extrude(0.915)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.784 + 0.2615, 0.1825, -1.683), normal=(1, 0, 0), xDir=(0, 1, 0))).moveTo(-0.058, 0.058).lineTo(-0.058, -0.058).line... | 14 | 11 | 3.59514 |
train_d4dc081aeb3e3de9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.55, 0.491, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.935).lineTo(1, 0.935).lineTo(1, 0.047).lineTo(-1, 0.047).lineTo(-1, 0.935).close().extrude(1.099)
result = result.edges().chamfer(0.206)
result = result.cut(cq.Workplane(cq.Plane(or... | 17 | 200 | 0.636202 |
train_d656eca0c686fb5a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.486, -0.157, 0.181), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.234, 0.264).lineTo(0.234, 0.028).lineTo(-0.234, 0.028).lineTo(-0.234, 0.264).lineTo(0.234, 0.264).close().revolve(angleDegrees=180, axisStart=(0.234, 0.264), axisEnd=(0.234, 0.028... | 10 | 92 | 0.136973 |
train_4aebadd27483da49 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.319, -0.063, 0.244), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.681, -0.193).lineTo(-0.681, 0.193).lineTo(0.681, 0.193).lineTo(0.68, -0.193).lineTo(-0.681, -0.193).close().sweep(cq.Workplane('YZ').spline([(-0.063, -0.187), (-0.092, -0.156), (... | 4 | 61 | 0.168869 |
train_1296c43b05dc97ad | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.287, -0.062), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.165).sweep(cq.Workplane('XY').spline([(-1.096, -0.287), (-0.548, -0.47), (0, -0.531), (0.548, -0.47), (1.096, -0.287)]))
result = result.edges().chamfer(0.152)
result = result.cut(cq.... | 10 | 55 | 0.288505 |
train_ae4475d6255f19fd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.117, 0.201, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.229, -0.569).lineTo(0.229, -0.875).lineTo(-0.229, -0.875).lineTo(-0.229, 1.108).lineTo(-0.153, 1.108).lineTo(-0.153, 0.955).lineTo(0, 0.955).lineTo(0, 0.561).threePointArc((-0.042, 0.4... | 3 | 25 | 0.058841 |
train_a52a0d34663c9b92 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.01, 0.126, -0.24), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.726, 0.296).lineTo(0.347, 0.527).lineTo(0.048, 0.596).lineTo(-0.585, 0.087).lineTo(-0.106, -0.523).lineTo(0.803, -0.028).close().moveTo(-0.14, -0.002).lineTo(-0.252, 0.151).lineTo(-... | 19 | 180 | 0.481641 |
train_e70d74345b9cf8e6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.928, 0.001, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.86).workplane(offset=0.421).circle(0.788).workplane(offset=0.53).circle(0.895).workplane(offset=0.386).circle(1).workplane(offset=0.519).circle(0.782).loft()
result = result.edges().fi... | 4 | 30 | 4.30149 |
train_03ad50b6dd7f648c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.064, -0.132, 0.086), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.914, 0.01).lineTo(-0.914, 0.118).lineTo(0.914, 0.118).lineTo(0.914, 0.01).lineTo(-0.914, 0.01).close().extrude(0.263)
result = result.edges().chamfer(0.029)
result = result.cut(c... | 10 | 46 | 0.048056 |
train_a44943754ee32440 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.742, 1, 0.003), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.626, 1.381).lineTo(-0.143, 0.899).lineTo(0.592, 1.055).lineTo(0.626, 0.899).lineTo(0.241, 0.515).lineTo(-0.143, 0.13).lineTo(-0.3, 0.865).lineTo(-0.626, 1.077).lineTo(-0.626, 1.381).c... | 14 | 78 | 0.685809 |
train_f8036cb247b62e69 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.141, -0.132), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.364, 1.141).lineTo(-0.364, -0.594).lineTo(0.364, -0.594).lineTo(0.364, 1.141).lineTo(-0.364, 1.141).close().extrude(0.716)
result = result.edges().fillet(0.107)
result = result.union... | 13 | 170 | 0.323902 |
train_1c9bab84882dff76 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.064, 0.248, 0.576), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.207, 0.323).extrude(0.164)
result = result.union(cq.Workplane(cq.Plane(origin=(0.105, 0.248, 0.62), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.082).extrude(0.075))
result = result.u... | 6 | 36 | 0.116805 |
train_98491610e98e8793 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.291), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1, 0.171).lineTo(-1, -0.171).lineTo(1, -0.171).lineTo(1, 0.171).lineTo(-1, 0.171).close().extrude(0.582)
result = result.edges().fillet(0.047)
result = result.cut(cq.Workplane(cq.Plane(orig... | 11 | 85 | 0.342337 |
train_1a12123bc3900835 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.248, -0.747, 0), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.253, -0.253).lineTo(-0.253, -0.253).lineTo(-0.253, -0.148).lineTo(-0.127, -0.148).lineTo(-0.127, 0.148).lineTo(-0.253, 0.148).lineTo(-0.253, 0.253).lineTo(0.127, 0.253).lineTo(0.127,... | 8 | 98 | 0.30257 |
train_220168d4dca28773 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.466, 0.8, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1, -0.381).lineTo(0, 0.466).lineTo(0.503, 0.04).lineTo(1, 0.18).lineTo(1, 0.793).lineTo(0.53, 0.915).lineTo(-1, 1.313).lineTo(-1, -0.381).close().extrude(1.182)
result = result.faces('>Z'... | 6 | 33 | 1.059892 |
train_6680ba47f58f27a7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.215, 0.308, -0.356), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.423, 1.192).extrude(0.713)
result = result.union(cq.Workplane(cq.Plane(origin=(0.246, 0.082, 0.393), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.279, 0.736).lineTo(-0.279, 0.764).l... | 11 | 54 | 1.219431 |
train_88549b8c73fdbea0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.03, 0.013, -0.047), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.133, 0.177).extrude(0.074)
result = result.union(cq.Workplane(cq.Plane(origin=(0.061, 0.042, -0.016), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.059, 0.032).extrude(0.012))
result = r... | 12 | 92 | 0.004177 |
train_d472069b9973f838 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.253, 0.265, -0.451), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, -0.735).lineTo(0.195, -0.337).lineTo(0.637, -0.368).lineTo(0.389, 0).lineTo(0.637, 0.368).lineTo(0.195, 0.337).lineTo(0, 0.735).lineTo(-0.195, 0.337).lineTo(-0.637, 0.368).lineTo... | 12 | 92 | 0.928932 |
train_f73f38c4e224c78a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.307, -0.241, -0.002), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.132, -0.851).lineTo(0.234, -0.504).lineTo(0.234, 1.241).lineTo(-0.234, 1.241).lineTo(-0.132, -0.851).close().extrude(0.553)
result = result.edges().fillet(0.074)
result = result... | 3 | 29 | 0.432228 |
train_a95be4ba2695917c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.303, -0.641), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.087, 1.395).extrude(1.281)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.147, 0.667, -0.22), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.489, 0.667).extrude(0.505))
result = resu... | 4 | 19 | 2.021876 |
train_b1b767f7be4b8714 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.344), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.477).extrude(0.723)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.8 + 0.2, -0.591 + 0.2955, 0.379), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.065, -0.071).lineTo(0.095, -0.071)... | 38 | 230 | 1.920723 |
train_fa7048b18819f149 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.016, 0, -1), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.692, -0.295).lineTo(-0.692, 0.295).lineTo(0.692, 0.295).lineTo(0.692, -0.295).lineTo(-0.692, -0.295).close().sweep(cq.Workplane('XZ').spline([(-0.016, -1), (0.018, -0.498), (-0.014, 0.0... | 4 | 12 | 1.152729 |
train_1fc53af38a012d13 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1.315, -0.384), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.239).lineTo(-1.076, 1.315).lineTo(-0.631, 1.761).lineTo(0, 2.392).lineTo(0.357, 2.034).lineTo(0.303, 1.761).lineTo(0.296, 1.725).lineTo(0.6, 1.688).lineTo(0.719, 1.673).lineTo(1.07... | 11 | 143 | 1.307317 |
train_6e4a6a15521aad44 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.268, -0.002, 0.983), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.506, -0.327).lineTo(-0.506, 0.259).lineTo(-0.439, 0.327).lineTo(0.506, -0.231).lineTo(0.506, -0.327).close().sweep(cq.Workplane('XZ').spline([(0.268, 0.254), (0.319, 0.188), (0.369... | 5 | 19 | 0.011739 |
train_7c7230565e5f7207 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.329, -0.012), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.248, 0.249).lineTo(-0.248, -0.165).lineTo(-0.196, -0.165).lineTo(-0.196, -0.249).lineTo(0.201, -0.249).lineTo(0.201, -0.122).lineTo(0.248, -0.122).lineTo(0.248, 0.249).lineTo(-0.248... | 4 | 26 | 0.19283 |
train_ccb73ea4eca0548a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.39, 0.091), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.246).workplane(offset=0.204).circle(0.217).workplane(offset=0.205).circle(0.188).workplane(offset=0.273).circle(0.159).workplane(offset=0.253).circle(0.13).workplane(offset=0.216).circl... | 26 | 116 | 0.189634 |
train_10794a353a906417 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.492, -0.137), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.102, 1.016).extrude(0.119)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, -0.48 + 0.016, -0.853), normal=(1, 0, 0), xDir=(0, 1, 0))).moveTo(-0.004, 0.011).lineTo(-0.009, 0).lineTo... | 24 | 445 | 0.174244 |
train_ca4abb5a31848e4b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.692, -0.338, -0.242), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.308, -0.2).lineTo(-0.308, 0.2).lineTo(-0.154, 0.2).lineTo(-0.154, 0.187).lineTo(0.308, 0.187).lineTo(0.308, -0.2).lineTo(-0.308, -0.2).close().sweep(cq.Workplane('XZ').spline([... | 13 | 47 | 0.391226 |
train_84e6ef7122be6b22 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.006, -0.068, -0.326), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.006, 0.019).lineTo(0.698, 0.753).lineTo(-0.013, 1.047).lineTo(-0.726, 0.744).lineTo(-0.994, 0.006).lineTo(-0.734, -0.713).lineTo(0.018, -0.999).lineTo(0.699, -0.708).close().cent... | 17 | 96 | 0.802604 |
train_0784da9370505096 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.312, 0, 1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.062, 0.066).lineTo(-0.062, 0.512).threePointArc((0.007, 0.504), (0.072, 0.482)).threePointArc((0.147, 0.341), (0.195, 0.189)).lineTo(0.195, -0.189).threePointArc((0.147, -0.341), (0.072, -... | 4 | 28 | 0.206691 |
train_ff12e35dcb2b00d0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.033, 0.061, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.192, -0.851).threePointArc((0.151, -0.722), (0.043, -0.64)).threePointArc((-0.404, 0), (0.043, 0.64)).threePointArc((0.151, 0.722), (0.192, 0.851)).lineTo(0.362, 0.851).threePointArc((0... | 10 | 85 | 0.696665 |
train_d45e1a96e27afe84 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.962).lineTo(-0.458, 0.962).threePointArc((-0.523, 0.989), (-0.496, 0.924)).lineTo(-0.496, 0.255).threePointArc((-0.523, 0.19), (-0.458, 0.217)).lineTo(0.458, 0.217).lineTo(0.496, 0.217).lin... | 15 | 83 | 2.067413 |
train_58415ec7dbc225c3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.175, 0.202, -0.379), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.623, 1.596).extrude(1.064)
result = result.faces('>Z').shell(-0.053)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.218, 0.369, -0.685), normal=(0, 0, 1), xDir=(1, 0, 0))).re... | 5 | 24 | 0.728115 |
train_5cbce6b61afb2196 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.159, 0.241, -0.067), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.774, 0.742).extrude(0.097)
result = result.union(cq.Workplane(cq.Plane(origin=(0.28, -0.212, -0.024), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.098).extrude(0.02))
result = result.... | 12 | 79 | 0.479492 |
train_f9c89783e46bde5d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.067), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.728).extrude(0.097)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.292, 0.254, 0.027), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.245).extrude(0.042))
result = result.union(cq.Wo... | 16 | 198 | 0.256989 |
train_308a289a4afc4544 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.259, 0.597), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.234, -0.255).lineTo(-0.013, 0.089).lineTo(0, 0.108).lineTo(-0.094, 0.255).lineTo(0.094, 0.255).lineTo(0.108, 0.277).lineTo(0.12, 0.255).lineTo(0.013, 0.089).lineTo(0, 0.069).lineTo(0.... | 5 | 49 | 0.206696 |
train_8149a82fcc3cf065 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.589, 1), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.472).sweep(cq.Workplane('YZ').spline([(0.589, -0.069), (0.731, -0.061), (0.872, -0.018), (1.013, 0.149), (1.154, 0.447), (1.296, 0.614), (1.437, 0.657), (1.578, 0.665)]))
result = result.fa... | 3 | 5 | 0.028746 |
train_00f106306ba63f2d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.747, 0.922).lineTo(-0.536, 0.132).lineTo(-0.78, -0.009).lineTo(-0.922, -0.253).lineTo(-0.922, -0.536).lineTo(-0.78, -0.78).lineTo(-0.536, -0.922).lineTo(-0.253, -0.922).lineTo(-0.009, -0.78).... | 3 | 23 | 3.096511 |
train_068a67069806e42a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.019, 0.005, -0.38), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.981, -0.863).lineTo(1.003, -0.893).lineTo(1.019, 0.857).lineTo(-0.977, 0.884).close().moveTo(-0.298, 0.164).lineTo(-0.336, 0.164).lineTo(-0.336, -0.164).lineTo(-0.298, -0.164).lin... | 12 | 90 | 2.119128 |
train_e1abcf4e1f5c4409 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.357, 0.412, 0.243), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.239, 0.538).threePointArc((0, 0.588), (-0.239, 0.538)).threePointArc((-0.588, 0), (-0.239, -0.538)).threePointArc((0, -0.588), (0.239, -0.538)).threePointArc((0.588, 0), (0.239, 0... | 13 | 80 | 0.860283 |
train_e430e656c242b95a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.418), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.599).extrude(0.875)
result = result.union(cq.Workplane(cq.Plane(origin=(0.1, 0.08, 0.452), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.8, 1.439).extrude(0.114))
result = result.union(cq.Wor... | 14 | 110 | 2.533574 |
train_1bbf3446414f5391 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.043), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.12).extrude(0.087)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.258, 0, 0.027), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.076).extrude(0.187))
result = result.cut(cq.Workplane... | 3 | 10 | 0.183132 |
train_b5acaa221e2ba005 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.07, 0.059, -0.254), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.86, 0.673).extrude(0.687)
result = result.union(cq.Workplane(cq.Plane(origin=(0.295, -0.1, 0.425), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.682, -0.091).threePointArc((0.666, -0.... | 6 | 33 | 0.851814 |
train_cfba93e943909b02 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.066, 0.197, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.484, -0.437).lineTo(1, 0.437).lineTo(-1, 0.437).lineTo(0.484, -0.437).close().sweep(cq.Workplane('XY').spline([(0.066, 0.394), (0.145, 0.453), (0.223, 0.483), (0.302, 0.483), (0.381, 0... | 11 | 53 | 0.21255 |
train_90f23bee1329edb8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.827, -0.38, 0.063), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.472, -0.222).threePointArc((0, 0.25), (0.472, -0.222)).lineTo(0.782, -0.222).lineTo(0.937, -0.222).lineTo(0.937, 0.981).lineTo(-0.937, 0.981).lineTo(-0.937, -0.222).lineTo(-0.782,... | 10 | 84 | 3.068743 |
train_0118769abed9cbb0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.815, 0.149, -0.034), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 0.185).lineTo(-0.044, 0.185).lineTo(-0.044, -0.094).lineTo(0.044, -0.094).lineTo(0.044, 0.146).lineTo(0, 0.171).lineTo(-0.006, 0.175).lineTo(0, 0.185).close().extrude(0.098)
res... | 5 | 29 | 0.00277 |
train_53d546223bab2477 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.012, -0.154, 0.197), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.139, 1.012).lineTo(-0.139, -0.988).lineTo(0.139, -0.988).lineTo(0.139, 1.012).lineTo(-0.139, 1.012).close().extrude(0.666)
result = result.edges().chamfer(0.032)
result = result.... | 5 | 38 | 0.361444 |
train_749366e6e3c91a84 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.208), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.838, 2).extrude(0.515)
result = result.union(cq.Workplane(cq.Plane(origin=(0 + 0.426 * math.cos(2.272 + 2 * math.pi * 0 / 7), 0 + 0.426 * math.sin(2.272 + 2 * math.pi * 0 / 7), -0.306), norm... | 13 | 56 | 1.837915 |
train_d518ed27b9540475 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.029, -0.359, -0.025), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.064, -0.21).lineTo(0.544, 0.152).lineTo(0.4, 0.825).lineTo(-0.544, 0.112).lineTo(0.064, -0.21).close().revolve(angleDegrees=180, axisStart=(0.064, -0.21), axisEnd=(0.544, 0.152))
... | 10 | 70 | 0.422791 |
train_6f03803c823ebe96 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.282, 0.392), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.343, 0.086).threePointArc((0.311, 0.181), (0.259, 0.266)).threePointArc((0.144, 0.368), (0.002, 0.424)).threePointArc((-0.077, 0.432), (-0.155, 0.426)).threePointArc((-0.322, 0.361), (-... | 11 | 37 | 0.736056 |
train_913639a090b28230 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.012), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.272, 2).extrude(0.068)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.509 + 0.127, 0, 0.056), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.055, 0.097).lineTo(0, 0.152).lineTo(0.055, ... | 17 | 83 | 0.147111 |
train_1592363c7866874a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.065, -0.787, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.413, 0.045).lineTo(-0.413, 0.68).lineTo(0.413, 0.68).lineTo(0.413, 0.045).lineTo(-0.413, 0.045).close().extrude(0.786)
result = result.edges().fillet(0.182)
result = result.union(cq... | 8 | 66 | 0.429857 |
train_19821d3568584929 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.107, -0.001, 0.378), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.111, 0.14).threePointArc((-0.121, 0.17), (-0.147, 0.188)).threePointArc((-0.204, 0.165), (-0.195, 0.105)).lineTo(-0.07, -0.018).lineTo(-0.003, -0.133).lineTo(0.021, -0.176).lineTo... | 3 | 21 | 0.054682 |
train_f80b218306612f73 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.323, -0.376, -0.006), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.365).workplane(offset=0.1).circle(0.357).workplane(offset=0.084).circle(0.348).workplane(offset=0.091).circle(0.358).workplane(offset=0.072).circle(0.331).workplane(offset=0.08).... | 18 | 118 | 0.457777 |
train_ef8209b80a4fddc6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.609), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.368, -0.17).lineTo(0.736, -0.383).lineTo(0.368, -0.594).lineTo(0.02, -0.796).lineTo(0, -0.807).lineTo(-0.02, -0.796).lineTo(-0.368, -0.594).lineTo(-0.736, -0.383).lineTo(-0.368, -0.17).lin... | 3 | 32 | 0.658144 |
train_436910f52b1236b3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.063, -0.044, -0.149), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.022, 0.079).lineTo(-0.024, 0.079).lineTo(-0.07, 0).lineTo(-0.024, -0.079).lineTo(0.022, -0.079).lineTo(0.022, -0.048).threePointArc((0.07, 0), (0.022, 0.048)).lineTo(0.022, 0.079... | 16 | 99 | 0.061061 |
train_c0d084e940ebd644 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.463, -1.127, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.585, 0.873).lineTo(-0.585, 1.381).lineTo(0.11, 1.381).lineTo(0.106, 1.739).lineTo(0.879, 1.739).threePointArc((0.625, 1.965), (0.305, 2.093)).lineTo(0.305, 1.872).lineTo(0.108, 1.872... | 1 | 23 | 1.182548 |
train_d5754316e402b6d0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.048, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.889, -0.283).lineTo(0, 0.46).lineTo(0.889, -0.283).lineTo(-0.889, -0.283).close().extrude(2)
result = result.edges().fillet(0.265)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.... | 8 | 34 | 0.661516 |
train_7debcb996abc1130 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.003, 0.131, -0.028), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.997, -0.557).lineTo(0.999, -0.568).lineTo(1.003, 0.587).lineTo(-0.994, 0.568).close().moveTo(0.084, 0.161).lineTo(0.042, 0.233).lineTo(-0.044, 0.234).lineTo(-0.083, 0.161).lineTo... | 22 | 301 | 0.162953 |
train_9765e4a7494ba487 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.252), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.408, 2).extrude(0.401)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.163 + 0.027, 0, 0.149), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.012, 0.009).lineTo(-0.001, 0.007).lineTo(0.... | 11 | 78 | 0.302668 |
train_03419e44555cad26 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.349, -1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.622, 0.066).lineTo(0.622, 0.579).threePointArc((0.58, 0.589), (0.571, 0.631)).lineTo(-0.571, 0.631).threePointArc((-0.58, 0.589), (-0.622, 0.579)).lineTo(-0.622, 0.118).lineTo(-0.622, 0.0... | 7 | 61 | 1.372844 |
train_2589bd3ecf2136a4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.044), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.882, 0.174).lineTo(-0.882, -0.174).lineTo(0.882, -0.174).lineTo(0.882, 0.174).lineTo(-0.882, 0.174).close().workplane(offset=0.026).moveTo(-0.655, 0.129).lineTo(-0.655, -0.129).lineTo(0.6... | 8 | 10 | 0.032424 |
train_1fa61d27867e20fd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 1, -0.001), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.505).workplane(offset=0.61).circle(0.662).workplane(offset=0.632).circle(0.601).workplane(offset=0.758).circle(0.612).loft()
result = result.edges().chamfer(0.194)
result = result.cut(cq.... | 30 | 119 | 0.629256 |
train_a56119225d5548c9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.414, 0.333), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.414).sweep(cq.Workplane('YZ').spline([(-0.403, -0.105), (-0.137, -0.295), (0.15, -0.295), (0.416, -0.105), (0.416, 0.1), (0.15, 0.291), (-0.137, 0.291), (-0.403, 0.1)]))
result = resu... | 4 | 8 | 1.263163 |
train_5373da8ef0b1c808 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.098, 0, -0.235), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.17, 0.725).extrude(0.497)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.371, 0.109, -0.291), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.187, -0.059).threePointArc((0.189, -0.0... | 14 | 97 | 0.274186 |
train_2851cf1753a08f32 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.465, 0.437, 0.029), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.971, 0.773).lineTo(-0.831, 0.773).lineTo(-0.831, 0.397).threePointArc((-0.971, 0.061), (-0.634, 0.2)).lineTo(0.971, 0.2).lineTo(0.971, 0.773).close().extrude(0.93)
result = result.... | 15 | 86 | 0.910072 |
train_df99f10885ad9c48 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.074, -0.019, -0.019), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.377, -0.027).lineTo(-0.377, 0.002).lineTo(-0.329, 0.002).lineTo(-0.329, 0.027).lineTo(0.377, 0.027).lineTo(0.377, 0.002).lineTo(0.352, 0.002).lineTo(0.352, -0.027).lineTo(-0.37... | 19 | 102 | 0.019117 |
train_bcc711f0875a909c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.459, -1, 0.269), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.704, -0.539).lineTo(-0.704, 1.203).threePointArc((0.014, 1.094), (0.704, 0.868)).lineTo(-0.704, -0.539).close().extrude(0.977)
result = result.edges().fillet(0.193)
result = result.f... | 17 | 98 | 0.979689 |
train_cec79c04d30ba564 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.008, -0.142, -0.161), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.722, -0.018).lineTo(0.339, 0.619).lineTo(-0.375, 0.633).lineTo(-0.706, -0.019).lineTo(-0.388, -0.632).lineTo(0.379, -0.639).close().moveTo(0.147, 0.001).lineTo(0.042, 0.14).lineT... | 12 | 82 | 0.62989 |
train_8e45e5c55221a281 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.033, 0, 0.01), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(1.01, 0.033).lineTo(-1.01, 0.033).lineTo(-1.01, 0.113).lineTo(0.948, 0.113).lineTo(1.01, 0.033).close().revolve(angleDegrees=360, axisStart=(1.01, 0.033), axisEnd=(-1.01, 0.033))
result =... | 4 | 35 | 0.02978 |
train_403c12e29dfb8088 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.746, -0.446, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.007, 0.554).lineTo(0.071, 0.438).lineTo(0.501, -0.339).lineTo(0.377, -0.554).lineTo(-0.463, -0.554).lineTo(-0.501, -0.308).lineTo(-0.165, 0.262).lineTo(-0.107, 0.361).lineTo(-0.107, 0.... | 1 | 12 | 0.04585 |
train_1b4d059a120a32ae | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.129, -0.364, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.133, -0.604).lineTo(0.133, 1.129).lineTo(-0.133, 1.129).lineTo(-0.133, -0.871).lineTo(0, -0.871).lineTo(0, -0.738).lineTo(0.133, -0.738).lineTo(0.133, -0.604).close().extrude(0.529)
r... | 5 | 50 | 0.256713 |
train_4fc6fd368fe3b8e0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.085, -0.466, -0.287), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.51, 0.019).lineTo(0.371, 0.365).lineTo(0.01, 0.504).lineTo(-0.373, 0.364).lineTo(-0.525, 0.015).lineTo(-0.359, -0.391).lineTo(0.005, -0.534).lineTo(0.353, -0.388).close().moveTo(0... | 10 | 124 | 0.639338 |
train_c5d939d09e6a9772 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1, 0.619), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.248, -0.201).threePointArc((0.025, -0.237), (-0.199, -0.265)).lineTo(-0.248, 0.206).threePointArc((-0.042, 0.231), (0.164, 0.265)).lineTo(0.248, -0.201).close().sweep(cq.Workplane('YZ').s... | 2 | 10 | 0.025614 |
train_b136b14e206b87d6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.174, 0.33, -0.127), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.343, 0.695).extrude(1.1)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.268, 0.49, 0.021), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.612, 0.178).extrude(0.371))
result = result.c... | 10 | 66 | 1.143415 |
train_68eeacc3ca905632 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1.063, -0.071, -0.042), normal=(0, 1, 0), xDir=(0, 0, 1))).lineTo(1.042, 1.117).lineTo(-1.042, 1.117).close().extrude(0.216)
result = result.edges().fillet(0.025)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.25, -0.107, -0.129), normal=... | 17 | 86 | 0.395803 |
train_4893533c28cacf86 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.016), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.067, 0.067).lineTo(-1.006, 0.067).lineTo(-1.006, -0.067).lineTo(1.006, -0.067).lineTo(1.006, 0).lineTo(0.939, 0.067).lineTo(-0.067, 0.067).close().workplane(offset=0.016).moveTo(-0.06, 0.... | 3 | 14 | 0.006118 |
train_5b5286ad0104d06b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.35, 0.187, -0.123), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.077, 0.375).lineTo(-0.16, 0.301).lineTo(-0.096, 0.093).threePointArc((0.032, 0.112), (0.16, 0.11)).lineTo(0.077, 0.375).close().revolve(angleDegrees=180, axisStart=(0, 0), axisEnd=... | 11 | 124 | 0.164486 |
train_84ef3fdc761547d2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.223, -0.489, -0.6), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.984, 0.644).extrude(0.97)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.343, -0.312, -0.287), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.547, 0.305).extrude(0.56))
result = res... | 19 | 300 | 0.737841 |
train_755ffaee89d5f692 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.323, 0, -0.298), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.305, 0.176).lineTo(0.203, 0).lineTo(0.102, -0.176).lineTo(0, -0.352).lineTo(-0.102, -0.176).lineTo(-0.203, 0).lineTo(-0.305, 0.176).lineTo(-0.102, 0.176).lineTo(0, 0.352).lineTo(0.305... | 11 | 49 | 0.245493 |
train_60a7ab2725ea3d9b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.568), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.21, 2).extrude(1.188)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.158, 0.414, -0.24), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.125).extrude(0.741))
result = result.union(cq.Workpl... | 16 | 60 | 3.058619 |
train_d16c88b55cd1ce4b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.644, -0.133, 0.045), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 1.133).lineTo(0, 0.308).threePointArc((0.447, 0.123), (0.633, -0.325)).lineTo(0, -0.325).lineTo(0, -0.958).threePointArc((-0.447, -0.773), (-0.633, -0.325)).lineTo(-0.633, 1.133)... | 10 | 145 | 1.218049 |
train_4d7ed595c5197882 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.297, 0, 0.407), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.297, -0.092).lineTo(0.297, 0.092).lineTo(0.089, 0.092).lineTo(0.089, -0.071).lineTo(-0.089, -0.071).lineTo(-0.089, 0.018).lineTo(-0.217, 0.018).lineTo(-0.217, 0.092).lineTo(-0.297, 0.... | 14 | 166 | 0.113314 |
train_6d16cc391523f782 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.294), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.465).extrude(0.049)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.115, 0.057, -0.246), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.664, 1.058).extrude(0.016))
result = result.union... | 13 | 123 | 0.270858 |
train_c2674938a61d9323 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.054, -0.112), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.092, 1.06).lineTo(-0.092, -0.951).lineTo(0.061, -0.76).threePointArc((0.086, -0.711), (0.092, -0.656)).lineTo(-0.092, 1.06).close().extrude(0.225)
result = result.edges().chamfer(0.0... | 16 | 61 | 0.035884 |
train_f110b211714df1e3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.284, 0, -0.2), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.432, 0.831).extrude(0.726)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.409, -0.141, -0.526), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.154).extrude(0.351))
result = result.un... | 10 | 88 | 0.41175 |
train_ddc687f0201f9af4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.101, -0.073, 0.095), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.165, 0.303).threePointArc((-0.117, 0.11), (-0.038, -0.224)).threePointArc((-0.033, -0.228), (-0.029, -0.232)).threePointArc((-0.002, -0.251), (0.026, -0.268)).lineTo(0.026, -0.237... | 10 | 117 | 0.317613 |
train_531a7f1c7ffdbdcc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.077, -0.203, 0.396), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.16, 0.099).threePointArc((0.087, 0.054), (0.004, 0.034)).threePointArc((-0.081, 0.041), (-0.16, 0.075)).lineTo(-0.016, 0.307).lineTo(0.16, 0.099).close().revolve(angleDegrees=360,... | 7 | 24 | 0.123668 |
train_57cdfb2065eb9411 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.368).sweep(cq.Workplane('XY').spline([(-0.7, -0.599), (-0.42, -0.569), (-0.14, -0.323), (0.14, 0.323), (0.42, 0.569), (0.7, 0.599)]))
result = result.edges().chamfer(0.08)
result = result.cut(c... | 3 | 8 | 0.203753 |
train_b1de16e6f2cf8129 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.775, -0.462, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.316, 0.834).lineTo(-0.388, 0.711).lineTo(-0.427, 0.644).threePointArc((-0.474, 0.439), (-0.427, 0.233)).threePointArc((-0.409, 0.199), (-0.388, 0.166)).threePointArc((-0.33, 0.099), ... | 5 | 50 | 1.200802 |
train_d4b1a994afa53f2c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.331, -0.049, -0.012), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.669, 0.077).lineTo(-0.669, 0.005).lineTo(0.669, 0.005).lineTo(0.669, 0.077).lineTo(0.473, 0.077).lineTo(0.473, 0.053).lineTo(0.394, 0.053).lineTo(0.394, 0.077).lineTo(0.299, 0.0... | 5 | 43 | 0.044018 |
train_69b6002721867a6c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0, -0.248), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.103, 0.177).lineTo(-0.121, 0.177).lineTo(-0.126, 0.16).lineTo(-0.188, -0.031).lineTo(-0.174, -0.042).lineTo(-0.18, -0.058).lineTo(-0.017, -0.177).lineTo(-0.003, -0.166).lineTo(0.012, -0... | 3 | 24 | 0.166047 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.