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_54262732981280b8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.781, 0.13), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.269, 0.162).threePointArc((0, -0.108), (0.269, 0.162)).lineTo(0.323, 0.162).threePointArc((0, -0.162), (-0.323, 0.162)).lineTo(-0.269, 0.162).close().sweep(cq.Workplane('YZ').spline([(0... | 3 | 20 | 0.035705 |
train_b693bff243afdd44 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.577), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.906).extrude(1.153)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.367, 0.41, 0.5), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.105).extrude(0.078))
result = result.cut(cq.Workplane... | 9 | 123 | 3.670022 |
train_fe24b01a4f3e3f57 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.745, -0.22, -0.116), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.109, 0.163).lineTo(-0.434, 0.163).lineTo(-0.434, -0.38).lineTo(-0.651, -0.38).lineTo(-0.651, 0.38).lineTo(0.651, 0.38).lineTo(0.651, 0.163).lineTo(0.109, 0.163).close().sweep(cq.... | 4 | 43 | 0.880556 |
train_aac68d7c3df31682 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.298, -0.675, -0.328), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.672, 0.662).lineTo(0.672, 0.662).lineTo(0.672, 0.029).lineTo(-0.672, 0.029).lineTo(-0.672, 0.662).close().extrude(1.383)
result = result.edges().fillet(0.163)
result = result.un... | 20 | 80 | 0.992348 |
train_db72619316785be0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.288, -0.462, 0.448), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.551, 0.279).threePointArc((-0.52, 0.488), (-0.539, 0.699)).lineTo(0.512, 0.913).threePointArc((0.551, 0.456), (0.485, 0.002)).lineTo(-0.551, 0.279).close().extrude(0.575)
result ... | 5 | 68 | 0.527925 |
train_7c3faf757ba26bc9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.175, 0.376, -0.135), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.307, -0.154).threePointArc((0, 0.372), (0.307, -0.154)).threePointArc((0, -0.333), (-0.307, -0.154)).close().extrude(0.686)
result = result.edges().chamfer(0.043)
result = resul... | 19 | 157 | 0.479074 |
train_95e94a6e68da700c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.663, -0.664, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.333, 1.664).lineTo(-1, 0.997).lineTo(-1, 0.331).lineTo(-0.333, -0.336).lineTo(0.333, -0.336).lineTo(1, 0.331).lineTo(-0.333, 0.331).lineTo(0, 0.664).lineTo(-0.333, 0.997).lineTo(1, 0... | 12 | 47 | 2.89114 |
train_7370b8a4bf78b2d2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.066, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.945, 1.378).extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.276, 0.687, -0.363), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.153, 0.134).extrude(0.162))
result = result.cut(... | 7 | 54 | 2.541512 |
train_71e89033db3b692d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.68, 0.238), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.329, -0.056).threePointArc((0.461, -0.188), (0.329, -0.32)).lineTo(-0.386, -0.32).threePointArc((-0.402, -0.318), (-0.418, -0.312)).lineTo(-0.194, -0.229).lineTo(-0.194, -0.21).lineTo(-... | 2 | 20 | 0.017308 |
train_eef86ee65dea578f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.412), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.724, 2).extrude(0.962)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.791, -0.13, -0.089), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.199, 0.439).threePointArc((-0.146, 0.376), (-0.1... | 11 | 42 | 3.466689 |
train_03fb01caa21dc6f1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.264, 0.2, -0.216), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.473, 1.018).extrude(0.579)
result = result.faces('>Y').shell(-0.058)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.853 + 0.1475, 0.2, -0.363), normal=(0, 0, 1), xDir=(1, 0, 0... | 9 | 72 | 0.356822 |
train_a4df2da8b4f9234f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.004, 0.124, 0.125), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.229, -0.236).threePointArc((-0.008, -0.023), (0.295, -0.069)).lineTo(0.149, 0.137).threePointArc((0.138, 0.165), (0.142, 0.194)).lineTo(0.179, 0.251).threePointArc((-0.052, 0.721)... | 19 | 201 | 0.335664 |
train_ecc4a2844f3f4fc3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.36), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.082).extrude(0.984)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.372, -0.178, -0.624), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.352, 0.295).extrude(0.271))
result = result.edges... | 11 | 89 | 1.542721 |
train_b16911d955535cc7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.216, -0.359, -0.168), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.553, 0.596).extrude(0.159)
result = result.union(cq.Workplane(cq.Plane(origin=(0.034, -0.359, 0.004), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.05, 0.555).lineTo(0.164, 0.555).li... | 10 | 72 | 0.171799 |
train_59a2b0649c17f4c9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.292, -0.476), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.081, 1.383).extrude(0.708)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.058, 0.153, 0.305), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.333, 0.841).lineTo(-0.406, 0.847).line... | 9 | 52 | 0.747814 |
train_eb6d5920d32cf60d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.092, -0.592), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.252).extrude(1.184)
result = result.union(cq.Workplane(cq.Plane(origin=(0 + 0.149 * math.cos(2.443 + 2 * math.pi * 0 / 7), 0.5 + 0.149 * math.sin(2.443 + 2 * math.pi * 0 / 7), 0.408)... | 13 | 29 | 2.830531 |
train_f3623a060b1e2bce | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.257, -0.668, 0.12), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.647, -0.332).lineTo(-0.578, -0.332).lineTo(-0.578, -0.103).lineTo(-0.647, -0.103).lineTo(-0.647, 0.103).lineTo(-0.578, 0.103).lineTo(-0.578, 0.332).lineTo(0.647, 0.332).lineTo(0.64... | 10 | 101 | 0.694509 |
train_d8ed2231dbff96d7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.299, -0.369, 0.432), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.037, 0.005).lineTo(-0.021, 0.015).lineTo(0.021, 0.015).lineTo(0.037, 0.005).lineTo(0.037, -0.01).lineTo(0.029, -0.015).lineTo(-0.029, -0.015).lineTo(-0.037, -0.01).lineTo(-0.037,... | 8 | 49 | 1.16055 |
train_0e1eb9daf0d450ba | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.097, 0.174, -0.115), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.033, 0.466).lineTo(-0.033, 0.229).threePointArc((-0.187, 0.09), (-0.23, -0.112)).lineTo(-0.436, -0.231).lineTo(-0.3, -0.466).lineTo(-0.095, -0.347).lineTo(0.102, -0.234).lineTo(0.... | 22 | 170 | 0.521116 |
train_a732053d604c0ae0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.476, -0.689, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.777, 0.92).lineTo(-1, 0.92).lineTo(-1, 0.032).lineTo(1, 0.032).lineTo(1, 0.92).lineTo(-0.777, 0.92).close().extrude(1.378)
result = result.edges().chamfer(0.198)
result = result.cut(... | 3 | 30 | 2.047166 |
train_01cd7ad42cfcf334 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.3, 0.603, 0.031), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(1.092, 0.299).threePointArc((-0.235, 1.409), (-1.092, -0.094)).lineTo(-1.018, -0.255).threePointArc((0.251, -0.792), (1.092, 0.299)).close().workplane(offset=0.453).moveTo(0.486, 0.304... | 9 | 44 | 1.780544 |
train_39a34772377baae2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.981, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.968, 1.906).lineTo(-0.968, 0.056).lineTo(0.968, 0.056).lineTo(0.968, 1.906).lineTo(-0.968, 1.906).close().extrude(2)
result = result.edges().fillet(0.129)
result = result.cut(cq.Workplane... | 24 | 152 | 3.851224 |
train_1e5f7c163f0710d5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.215, 0.045, 0.11), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.57, 0.651).extrude(0.324)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.209, -0.433, 0.142), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.168).extrude(0.164))
result = result.... | 34 | 116 | 0.614266 |
train_d43f5676677e0f06 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.709, -0.981), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 1.376).lineTo(0.333, 1.376).lineTo(0, 1.042).lineTo(0.333, 0.709).lineTo(-0.333, 0.709).lineTo(-0.333, 1.376).lineTo(-1, 1.376).lineTo(-1, 0.709).lineTo(-0.333, 0.043).lineTo(0.333, ... | 11 | 106 | 3.567533 |
train_0d84790b583107a7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.561), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.614).extrude(1.123)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.263, -0.187, -0.576), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.326).extrude(0.589))
result = result.edges().fil... | 24 | 174 | 1.859395 |
train_9d6f6a42676d167f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.11, -0.233, 0.279), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.237, 0.27).lineTo(-0.237, 1.233).lineTo(0.237, 1.233).lineTo(0.237, -0.767).lineTo(-0.237, -0.767).lineTo(-0.237, 0.27).close().revolve(angleDegrees=90, axisStart=(-0.237, 0.27), a... | 8 | 48 | 0.285592 |
train_a56387d139d79d76 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.952, -0.014, 0.117), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.048, 0.089).threePointArc((0.018, 0.008), (0.041, -0.095)).lineTo(0.048, -0.095).threePointArc((0.025, 0.011), (-0.044, 0.095)).lineTo(-0.048, 0.089).close().sweep(cq.Workplane(... | 7 | 51 | 0.053529 |
train_c1c86bed505bc495 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.599, -0.065, -0.108), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.476, -0.004).lineTo(0.14, 0.478).lineTo(-0.401, 0.276).lineTo(-0.391, -0.283).lineTo(0.136, -0.474).close().moveTo(0.099, 0.136).lineTo(0.051, 0.222).lineTo(-0.048, 0.222).lineTo... | 17 | 150 | 0.259745 |
train_10649f1538e88a66 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.441, -0.163, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.273, 0.271).lineTo(-0.273, -0.271).lineTo(0.273, -0.271).lineTo(0.199, -0.198).lineTo(0.074, -0.073).lineTo(0, 0).lineTo(0.074, 0.073).lineTo(0.199, 0.073).lineTo(0.199, 0.198).lineT... | 8 | 59 | 0.281571 |
train_a2ef3d793a6f833a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.157), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.587, -0.81).threePointArc((0, -1), (0.587, -0.81)).lineTo(0.587, 0.81).threePointArc((0, 1), (-0.587, 0.81)).lineTo(-0.587, -0.81).close().extrude(0.315)
result = result.edges().chamfer(0... | 10 | 57 | 0.621068 |
train_e23f62472c01bcc0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.157, 0.106, 0.456), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.138, 1.073).threePointArc((-0.138, 0.106), (0.138, -0.861)).lineTo(0.138, 1.073).close().extrude(0.259)
result = result.edges().chamfer(0.024)
result = result.union(cq.Workplane(cq... | 10 | 49 | 0.166879 |
train_734abe913351d188 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.562, -0.694, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1.114, -0.274).lineTo(-0.481, 1.662).lineTo(0.481, 1.662).lineTo(1.114, -0.274).lineTo(-1.114, -0.274).close().extrude(1.125)
result = result.edges().chamfer(0.366)
result = result.cut... | 10 | 56 | 2.277976 |
train_8f947c632b53d252 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.181, -0.471, 0.051), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.055, 0.565).lineTo(0.059, -0.529).threePointArc((-0.059, 0.017), (0.055, 0.565)).close().extrude(0.231)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.027 + 0.046, -0.891 + ... | 9 | 154 | 0.071438 |
train_41fcd13a0f028984 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.326, -0.009, -0.367), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.131, 0.988).lineTo(0.113, 0.963).lineTo(0.13, 0.125).lineTo(0.66, 0.089).lineTo(0.684, -0.13).lineTo(0.125, -0.143).lineTo(0.129, -0.945).lineTo(-0.118, -0.971).lineTo(-0.129, -... | 12 | 117 | 0.10444 |
train_7fff28e5cef7c4f8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.035, 0.965).extrude(0.622)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, -0.426), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.211).extrude(0.94))
result = result.edges().chamfer(0.01... | 10 | 89 | 0.640365 |
train_eb77c59cfd86e6d8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.524, 0.468, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.814, 0.866).threePointArc((-0.913, 0.677), (-0.947, 0.468)).lineTo(-0.947, -0.193).lineTo(0.681, -0.193).lineTo(0.947, -0.193).lineTo(0.947, 0.468).lineTo(0.947, 0.866).lineTo(0.947, ... | 3 | 23 | 3.678504 |
train_6c366a63e1bb1826 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.129, -0.163, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.882, 0.247).threePointArc((1, 0.129), (0.882, 0.011)).lineTo(-0.882, 0.011).threePointArc((-1, 0.129), (-0.882, 0.247)).lineTo(0.882, 0.247).close().extrude(0.327)
result = result.edg... | 10 | 69 | 0.117661 |
train_39e5b818358eb053 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.278, -0.015), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.219, 1.445).extrude(0.628)
result = result.faces('>Z').shell(-0.054)
result = result.union(cq.Workplane(cq.Plane(origin=(0.199, -0.712, 0.227), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(... | 5 | 102 | 0.620709 |
train_82a824f9536bcc76 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.599, -0.135, -0.003), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.246, 0.18).lineTo(-0.246, 0.18).lineTo(-0.246, -0.18).lineTo(-0.109, -0.18).lineTo(-0.053, -0.108).threePointArc((0, 0.049), (0.053, -0.108)).lineTo(0.109, -0.18).lineTo(0.246, -... | 36 | 305 | 0.176448 |
train_726f7653507b762c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.076, -1, -0.146), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.091, 0.263).lineTo(0.091, -0.126).lineTo(0.069, -0.126).lineTo(0.069, -0.263).lineTo(-0.069, -0.263).lineTo(-0.069, -0.103).lineTo(-0.091, -0.103).lineTo(-0.091, 0.263).lineTo(0.091,... | 16 | 72 | 0.110306 |
train_1ad4f7c8e8851fea | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.541, 0.003, 0.102), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.269, -0.997).threePointArc((-0.309, 0.242), (0.309, 1.316)).lineTo(0.309, -0.997).lineTo(-0.269, -0.997).close().extrude(0.767)
result = result.edges().fillet(0.174)
result = resu... | 13 | 47 | 0.568024 |
train_d3c7aab7b2e2ed1b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.187, 0.443, 0.086), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.2).workplane(offset=0.422).circle(0.126).workplane(offset=0.388).circle(0.238).workplane(offset=0.366).circle(0.237).loft()
result = result.edges().chamfer(0.14)
result = result.c... | 43 | 95 | 0.529047 |
train_2e82b7fe890fc478 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.574, -0.201, 0.006), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.426, 0.091).lineTo(0.426, -0.032).lineTo(-0.426, -0.032).lineTo(-0.426, 0.238).lineTo(-0.231, 0.238).lineTo(-0.231, 0.091).lineTo(0.426, 0.091).close().extrude(0.62)
result = resul... | 12 | 106 | 0.17336 |
train_bfce756c396f9f1d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.547), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.433, 1.088).extrude(0.888)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, 0.316), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.392).extrude(0.332))
result = result.union(cq.Workpla... | 11 | 108 | 1.395484 |
train_9b4e6e122d2b27b2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.168), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.401, 2).extrude(0.299)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.16 + 0.032, 0, 0.131), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.015, 0).lineTo(-0.015, -0.006).lineTo(0.006,... | 10 | 91 | 0.216408 |
train_b3478b2c0d7faced | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.814, 0, 0.162), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.369, -0.807).threePointArc((-0.283, -0.652), (-0.216, -0.487)).threePointArc((-0.207, -0.422), (-0.179, -0.361)).threePointArc((-0.159, -0.263), (-0.144, -0.164)).threePointArc((0.228,... | 2 | 12 | 1.344634 |
train_f0496bf768a02e55 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.244, -0.843, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.316, 1.185).threePointArc((-0.658, 1.527), (-1, 1.185)).lineTo(-1, 0.501).threePointArc((-0.658, 0.159), (-0.316, 0.501)).lineTo(0.316, 0.501).threePointArc((0.658, 0.159), (1, 0.501... | 3 | 43 | 1.428613 |
train_b54a97388e766c86 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.229), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.632).extrude(0.457)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0.035), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.395).extrude(0.215))
result = result.cut(cq.Workplane(cq.Pl... | 13 | 66 | 0.819414 |
train_543a9826b9a64551 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.199, 0, 0.225), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.14, -0.322).threePointArc((-0.234, -0.283), (-0.273, -0.188)).lineTo(-0.273, 0.079).threePointArc((-0.312, 0.173), (-0.407, 0.212)).lineTo(-0.407, 0.322).lineTo(0.407, 0.322).lineTo(... | 15 | 45 | 0.473371 |
train_0bc295aa5711db0a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.094, -0.027, -0.193), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.363).moveTo(-0.09, -0.083).lineTo(0.091, -0.082).lineTo(0.089, 0.081).lineTo(-0.09, 0.081).close().extrude(0.173)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.07, 0.131, ... | 9 | 84 | 0.214622 |
train_0cc769d8569a1eb1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.045, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.519, 0.289).lineTo(-0.51, -0.111).lineTo(-0.008, -0.1).lineTo(0.519, 0.566).lineTo(0.519, 0.794).lineTo(0.413, 0.793).lineTo(0.412, 0.854).lineTo(-0.519, 0.289).close().extrude(2)
result ... | 19 | 108 | 1.031939 |
train_946b8ae9c9833104 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.18, -0.825, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.322, 1.71).lineTo(0.322, 1.763).threePointArc((0, -0.113), (-0.322, 1.763)).lineTo(-0.322, 1.71).lineTo(0.322, 1.71).close().workplane(offset=0.076).moveTo(0.31, 1.678).lineTo(0.31, 1.... | 9 | 55 | 1.015582 |
train_c6b3927f7cbe4fe9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.006, 0.507, 0.509), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.503, -0.083).lineTo(-0.503, 1.097).lineTo(0.503, 1.097).lineTo(0.503, -0.083).lineTo(-0.503, -0.083).close().revolve(angleDegrees=270, axisStart=(-0.503, -0.083), axisEnd=(-0.503, ... | 10 | 37 | 2.316741 |
train_c245c27fe1294d9c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.487, -0.209, -0.18), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.16, 0.913).threePointArc((-0.585, 0.487), (-0.16, 0.062)).lineTo(0.16, 0.062).threePointArc((0.585, 0.487), (0.16, 0.913)).lineTo(-0.16, 0.913).close().extrude(0.418)
result = re... | 19 | 154 | 0.18156 |
train_ecd8fce05064d288 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.459, 0.878, 0.467), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.327, -0.103).lineTo(-0.533, -0.103).lineTo(-0.533, 0.103).lineTo(0.533, 0.103).lineTo(0.533, -0.103).lineTo(-0.327, -0.103).close().sweep(cq.Workplane('XY').spline([(0.459, 0.408),... | 3 | 38 | 0.562289 |
train_d458856a57ceb65e | 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(1.118).workplane(offset=0.455).circle(0.559).workplane(offset=0.512).circle(0.88).workplane(offset=0.508).circle(0.752).workplane(offset=0.526).circle(0.821).loft()
result = result.edges().c... | 5 | 13 | 2.949267 |
train_e6be53bf0e027b7f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.427), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, -1).lineTo(0.248, -0.429).lineTo(0.866, -0.5).lineTo(0.496, 0).lineTo(0.866, 0.5).lineTo(0.248, 0.429).lineTo(0, 1).lineTo(-0.248, 0.429).lineTo(-0.866, 0.5).lineTo(-0.496, 0).lineTo(-0.8... | 10 | 151 | 0.616976 |
train_5af232f483ff5684 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.175).workplane(offset=0.947).circle(0.142).workplane(offset=1.053).circle(0.179).loft()
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.022, 0.46, -0.24), normal=(0, 0, 1), xDir=(1, 0, 0)... | 2 | 4 | 0.14884 |
train_56c2c7589b7e7e29 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.155, -0.158, -0.027), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.616, 1.684).extrude(0.45)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.785, 0.054, 0.199), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.178, -0.64).lineTo(-0.178, 0.913).t... | 4 | 27 | 1.424521 |
train_a50eb0dff09d6f76 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.233, 0.563, 0.053), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.151, 0.874).extrude(0.105)
result = result.union(cq.Workplane(cq.Plane(origin=(0.298, -0.068, 0.083), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.246, 0.428).extrude(0.024))
result = re... | 10 | 54 | 0.472973 |
train_1a68f563304dd327 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.282), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.191, 2).extrude(0.428)
result = result.union(cq.Workplane(cq.Plane(origin=(0.059, 0.1, 0.144), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.536).extrude(0.061))
result = result.union(cq.Workp... | 4 | 20 | 1.131697 |
train_58807c7aacb6926a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.408, -0.04), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.8, 1.746).threePointArc((-0.303, 0.792), (-0.8, -0.577)).lineTo(0.8, -0.577).lineTo(0.8, 1.746).close().extrude(2)
result = result.edges().fillet(0.4)
result = result.cut(cq.Workplane(... | 10 | 53 | 4.250572 |
train_2499e62f8129a45e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.148, -0.161), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.959, -0.571).lineTo(0.959, 0.867).lineTo(-0.719, 0.867).threePointArc((-0.819, 0.556), (-0.77, 0.232)).threePointArc((-0.738, -0.2), (-0.959, -0.571)).lineTo(0.959, -0.571).close().ex... | 3 | 34 | 4.729042 |
train_08798e07203e87c7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.145, 0.533, -0.103), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.059, 0.074).lineTo(-0.059, -0.123).lineTo(0.033, -0.123).lineTo(0.054, 0.074).lineTo(0.022, 0.097).lineTo(0.023, 0.107).lineTo(0.059, 0.123).lineTo(0.016, 0.123).lineTo(0.014, 0.... | 19 | 245 | 0.122816 |
train_4debc091d835a7ea | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.555, 0.435, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1, 0.988).lineTo(-1, 0.122).lineTo(1, 0.122).lineTo(1, 0.988).lineTo(-1, 0.988).close().workplane(offset=0.202).moveTo(-0.41, 0.732).lineTo(-0.41, 0.377).lineTo(0.41, 0.377).lineTo(0.41... | 3 | 17 | 0.444053 |
train_fc4144eacd1e478b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.308, -0.249, -0.39), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.384, 0.432).extrude(0.337)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.669, -0.197, -0.252), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.661, 0.241).extrude(0.152))
result =... | 25 | 217 | 0.176391 |
train_2c7632898d12d192 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.459, 0.041, -0.024), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.253, 0.766).lineTo(-0.372, 0.475).lineTo(-0.666, -0.34).lineTo(-0.203, -0.849).lineTo(0.541, -0.357).close().moveTo(0, -0.168).lineTo(0.044, -0.077).lineTo(0.145, -0.084).lineTo(0... | 16 | 73 | 0.17748 |
train_25e88fb00e127699 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.074, 0.201, 0.1), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.012, -0.072).lineTo(-0.012, 0.103).lineTo(0.012, 0.103).lineTo(0.012, -0.072).lineTo(-0.012, -0.072).close().extrude(0.027)
result = result.edges().chamfer(0.007)
result = result.un... | 9 | 171 | 0.065365 |
train_47eaf1d66ff74f0c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.329, -0.187, -0.081), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.72, 1.048).extrude(0.222)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.083, -0.201, -0.038), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.241, 0.656).extrude(0.1))
result = resu... | 20 | 92 | 0.16965 |
train_2995836b9ebec234 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.353, -0.022, -0.195), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.631, 0.011).lineTo(0.208, 0.569).lineTo(-0.492, 0.372).lineTo(-0.508, -0.385).lineTo(0.179, -0.613).close().moveTo(0.133, 0.001).lineTo(0.069, 0.113).lineTo(-0.068, 0.115).lineTo... | 14 | 195 | 0.318313 |
train_43d1f430235592a6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.741, 1.143, 0.881), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-1.751, 2.012).lineTo(-1.751, 0.274).lineTo(-0.01, 0.274).lineTo(-0.01, 2.012).lineTo(-1.751, 2.012).close().revolve(angleDegrees=90, axisStart=(-1.751, 2.012), axisEnd=(-1.751, 0.27... | 13 | 48 | 3.978976 |
train_3b4ac8ccc7353209 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.279, 0.111, -0.609), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.443, 1.064).extrude(1.013)
result = result.faces('>Y').shell(-0.079)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.889, 0.254, -0.294), normal=(0, 0, 1), xDir=(1, 0, 0))).cir... | 13 | 52 | 0.559699 |
train_fd15a2a83297007b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.836, 0, 0.066), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.164).sweep(cq.Workplane('XZ').spline([(-0.836, 0.066), (-0.276, 0.082), (0.283, 0.044), (0.843, -0.051)]))
result = result.cut(cq.Workplane(cq.Plane(origin=(0.14, -0.011, 0.031), norm... | 3 | 7 | 0.010106 |
train_57731208e8c30634 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.195), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.648, 2).extrude(0.193)
result = result.union(cq.Workplane(cq.Plane(origin=(0.083, 0.1, -0.004), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.483, 1.8).extrude(0.027))
result = result.union(cq.W... | 15 | 109 | 0.635146 |
train_deae19b250ccef3f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.744, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.256, 1).threePointArc((-0.279, 0.991), (-0.288, 0.968)).lineTo(-0.288, 0.456).threePointArc((-0.279, 0.434), (-0.256, 0.424)).lineTo(0.256, 0.424).threePointArc((0.279, 0.434), (0.288, 0.... | 14 | 43 | 0.657828 |
train_94584e46c675cd4b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.004, 0.589, 0.034), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.178).lineTo(0.127, 0.032).lineTo(0, -0.115).lineTo(-0.127, -0.115).lineTo(-0.127, 0.032).lineTo(0, 0.178).close().extrude(0.275)
result = result.edges().chamfer(0.011)
result = r... | 13 | 96 | 0.148756 |
train_5edeaad58c035cbb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.017, -0.152, -0.068), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.447, 0.945).extrude(0.757)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.062, -0.16, 0.669), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.045).extrude(0.331))
result = resul... | 21 | 101 | 0.361434 |
train_5662466dcc87f943 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.329), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.355).extrude(0.657)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.293, -0.395, -0.263), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.297).extrude(0.408))
result = result.edges().cham... | 21 | 130 | 0.919832 |
train_27f3321ba045f83b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.079, 0.099, 0.074), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.54).sweep(cq.Workplane('XZ').spline([(-1.093, -0.495), (-0.417, -0.101), (0.258, 0.137), (0.935, 0.218)]))
result = result.edges().chamfer(0.379)
result = result.cut(cq.Workplane(c... | 16 | 102 | 1.249076 |
train_0227293193b19706 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.112, 0, 0.059), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.776, 1.262).extrude(0.108)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.543, 0, 0.134), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.111, 0.411).extrude(0.337))
result = result.uni... | 8 | 165 | 0.424065 |
train_9ef1aabae95cb9d0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.708, 1.494).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.323, 0.382, -0.508), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.257, 0.769).extrude(0.91))
result = result.cut(cq.Workp... | 12 | 49 | 4.014322 |
train_424d0b211ee1ce70 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.481, -0.024, -0.665), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.194, -0.413).threePointArc((0.335, -0.016), (0.238, 0.394)).threePointArc((0.217, 0.428), (0.194, 0.461)).lineTo(-0.335, 0.461).lineTo(-0.335, -0.413).lineTo(0.194, -0.413).close... | 5 | 41 | 0.493691 |
train_58a6cdbf6587006c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.443), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.013, 2).extrude(1.041)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.019, 0.14, 0.186), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.286, 2.4).extrude(0.218))
result = result.union(cq.Wo... | 5 | 37 | 1.985505 |
train_211b6fae33eba90f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.303, -0.062), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.825, 1.393).extrude(0.125)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, -0.223, -0.034), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.101).extrude(0.068))
result = result.cut(cq.W... | 14 | 84 | 0.234687 |
train_8cb47ba7537a393e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.109, 0.399, -0.174), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.426, 0.283).lineTo(-0.426, 0.3).lineTo(0.409, 0.3).lineTo(0.409, 0.903).lineTo(0.426, 0.903).lineTo(0.426, 0.283).lineTo(-0.426, 0.283).close().workplane(offset=0.162).moveTo(-0.... | 6 | 57 | 0.247199 |
train_57a53b503e1d4b24 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.062, 0.081, -0.069), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.873, 0.856).extrude(0.083)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.387, -0.044, -0.045), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.029, 0.042).extrude(0.006))
result =... | 21 | 67 | 0.070766 |
train_2c251cbe6352f782 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.658, -0.341, -0.083), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.664, -0.18).threePointArc((-0.694, 0.341), (0.664, 0.86)).threePointArc((0.694, 0.341), (0.664, -0.18)).close().extrude(1.315)
result = result.edges().chamfer(0.168)
result = res... | 13 | 74 | 2.092182 |
train_02f0891dcb0194f1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.098), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.495).extrude(0.168)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.039, -0.134, 0.069), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.155, 0.068).extrude(0.029))
result = result.cut(c... | 7 | 32 | 0.411602 |
train_e0410f0b9d2f3435 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.269), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.681, 2).extrude(0.538)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.242, -0.226, -0.277), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.733, 1.148).extrude(0.314))
result = result.cut(cq... | 36 | 75 | 1.141759 |
train_401b208c1f7a96f4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.353, -0.155, -0.368), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.748, 0.973).extrude(0.331)
result = result.union(cq.Workplane(cq.Plane(origin=(0.53, -0.275, -0.049), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.237, 0.539).extrude(0.14))
result = r... | 26 | 167 | 0.769461 |
train_4166c51e0eec9afc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.325, 0.923, 0.002), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.078, 0.388).threePointArc((-0.389, 0.389), (-0.388, 0.078)).lineTo(0.091, -0.389).threePointArc((0.388, -0.388), (0.389, -0.091)).lineTo(-0.078, 0.388).close().sweep(cq.Workplane(... | 1 | 6 | 0.721219 |
train_eb9ef1748568c113 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.101, -0.068, 0.397), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.337, -0.408).threePointArc((-0.433, -0.467), (-0.459, 0.305)).threePointArc((-0.076, 0.467), (0.307, 0.305)).threePointArc((0.459, -0.046), (0.337, -0.408)).close().extrude(0.644)... | 26 | 138 | 0.47693 |
train_8cf0aa07e2bfd410 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.173, -0.02, -0.059), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.151, 0.625).lineTo(-0.03, 0.625).lineTo(-0.03, 0.312).threePointArc((-0.063, 0.208), (-0.151, 0.141)).lineTo(-0.151, 0.02).lineTo(-0.151, -0.1).lineTo(-0.151, -0.584).lineTo(-0.03... | 8 | 86 | 0.199108 |
train_a72e5975d353fe6e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.577, -0.192), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.01, -0.847).lineTo(0.014, -0.953).lineTo(0.024, -1).lineTo(0.342, -0.929).lineTo(0.257, -0.546).lineTo(0.244, -0.549).lineTo(-0.016, 0.614).lineTo(-0.003, 0.617).lineTo(-0.088, 1).l... | 3 | 25 | 0.467389 |
train_a186c29aaca77161 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.713, 1.787).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.427, -0.463, -0.139), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.258, 1.972).lineTo(0.258, -0.252).lineTo(0.596, -0.2... | 6 | 48 | 5.644229 |
train_89b208e71670de50 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.178, 0, 0.566), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.213, -0.235).lineTo(-0.213, -0.144).threePointArc((-0.198, -0.144), (-0.183, -0.143)).threePointArc((0.065, -0.022), (0.166, 0.235)).lineTo(0.213, 0.235).lineTo(0.213, -0.235).lineTo(... | 4 | 47 | 0.100273 |
train_5cf93abc953250cb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.512, -0.137, -0.531), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.875, 0.46).lineTo(0.338, 0.537).lineTo(0.29, 0.961).lineTo(-0.488, 0.635).lineTo(0.411, -0.686).close().moveTo(-0.355, -0.318).lineTo(0.363, -0.317).lineTo(0.355, 0.324).lineTo(-... | 9 | 49 | 0.75711 |
train_8c9c84736790279c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.462, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.078, 0.773).threePointArc((-0.245, 0.662), (-0.31, 0.472)).lineTo(-0.465, 0.472).lineTo(-0.485, 0.472).threePointArc((0, -0.013), (0.485, 0.472)).lineTo(0.465, 0.472).threePointArc((0.355... | 1 | 9 | 1.254645 |
train_1da12062afdefbcf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.047, -0.665, 0.079), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.151, -0.333).threePointArc((-0.188, -0.317), (-0.228, -0.313)).threePointArc((-0.209, -0.31), (-0.191, -0.305)).threePointArc((-0.14, -0.27), (-0.111, -0.217)).lineTo(0.016, 0.2... | 19 | 71 | 0.098055 |
train_732495a424b5cd7e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.098, -0.02), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.052, -0.298).lineTo(-0.059, -0.206).lineTo(-0.066, -0.115).lineTo(-0.091, 0.206).lineTo(-0.242, 0.206).lineTo(-0.236, 0.298).lineTo(0.224, 0.298).lineTo(0.23, 0.206).lineTo(0.242, 0.0... | 6 | 29 | 0.272498 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.