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_d0e837fb8ec92611 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.875, -0.042, 0.436), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.144).lineTo(0.062, 0.108).lineTo(0.125, 0.072).lineTo(0.125, -0.072).lineTo(0.062, -0.108).lineTo(0, -0.144).lineTo(-0.062, -0.108).lineTo(-0.125, -0.072).lineTo(-0.125, 0.072)... | 1 | 14 | 0.072389 |
train_b624ebe8c728d9ad | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.249, -1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.561).sweep(cq.Workplane('XY').spline([(-0.249, 0.32), (-0.359, 0.693), (-0.571, 0.984), (-0.853, 1.15)]))
result = result.edges().chamfer(0.118)
result = result.cut(cq.Workplane(cq.Plane... | 14 | 49 | 0.631527 |
train_6e0f93258c650497 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.252, -0.401), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.993, 1.497).extrude(0.802)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.103, 0.734, 0.037), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.589, 0.532).extrude(0.177))
result = resu... | 7 | 62 | 0.380239 |
train_9e066b32efedf0fd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.087, 0.006, -0.501), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.038, -0.013).lineTo(0.305, 0.994).lineTo(-0.863, 0.647).lineTo(-0.819, -0.632).lineTo(0.362, -1.006).close().center(-0.471, 0).circle(0.223).center(0.941, 0).circle(0.202).extrude... | 15 | 96 | 1.316431 |
train_294ce4e57105455c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.015, -0.014, 0.01), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.005, -0.016).lineTo(0.005, 0.016).lineTo(-0.005, 0.016).lineTo(-0.005, -0.016).lineTo(0.005, -0.016).close().extrude(0.006)
result = result.edges().chamfer(0.001)
result = result.u... | 7 | 119 | 0.00304 |
train_c163c1022bc67aef | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.46, 0.026), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.178, 0).lineTo(-0.429, 0.251).lineTo(-0.429, 0.607).lineTo(-0.178, 0.355).lineTo(0.073, 0.607).lineTo(0.073, 0.251).lineTo(0.429, 0.251).lineTo(0.178, 0).lineTo(0.429, -0.251).lineTo(0... | 4 | 30 | 0.422315 |
train_7bfb6ace44fe04aa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.11, -0.085), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.193, -0.112).lineTo(0.193, 0.112).lineTo(-0.193, 0.112).lineTo(-0.193, 0.08).lineTo(0.161, 0.08).lineTo(0.161, -0.08).lineTo(0.056, -0.08).lineTo(0.056, -0.112).lineTo(-0.056, -0.112)... | 5 | 35 | 0.106901 |
train_8c0de6292fc7d8e1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.349, -0.229, -0.254), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.246).workplane(offset=0.118).circle(0.25).workplane(offset=0.123).circle(0.262).workplane(offset=0.097).circle(0.245).workplane(offset=0.095).circle(0.26).loft()
result = result.... | 27 | 278 | 0.510879 |
train_40c16422aba6f980 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.088, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.633, 0.319).lineTo(0.17, 0.141).lineTo(0.078, 0.051).lineTo(0.003, 0.209).lineTo(0.633, 0.344).lineTo(0.633, 0.816).lineTo(-0.221, 0.068).lineTo(-0.079, -0.108).lineTo(-0.211, -0.24).lineT... | 2 | 24 | 1.18275 |
train_d8278d5c27d1c231 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.052, 0, -0.456), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.577, 2).extrude(0.912)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.058, 0.189, 0.272), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.089).extrude(0.058))
result = result.cut(cq.Wo... | 12 | 56 | 2.544303 |
train_a5882fb423efb749 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.876, 0.682, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.012, 1.875).lineTo(-0.012, 0.888).lineTo(-1, 0.888).lineTo(-1, -0.124).lineTo(1, -0.124).lineTo(1, 1.875).lineTo(-0.012, 1.875).close().extrude(1.364)
result = result.edges().chamfer(... | 10 | 73 | 3.313385 |
train_1bf34d935b532b86 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.114, -0.331), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.576, -0.152).lineTo(-0.38, -0.152).lineTo(-0.576, 0.152).lineTo(0.38, 0.152).lineTo(0.576, -0.152).close().sweep(cq.Workplane('YZ').spline([(-0.114, -0.52), (0.176, -0.514), (0.465, ... | 19 | 6 | 0.273994 |
train_37a578e5b51f8ade | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.324, 0.911), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.177, 0.211).threePointArc((-0.201, 0.201), (-0.211, 0.177)).lineTo(-0.211, 0).lineTo(-0.211, -0.177).threePointArc((-0.201, -0.201), (-0.177, -0.211)).lineTo(0, -0.211).lineTo(0.177, -... | 3 | 18 | 0.097238 |
train_1513bf95f8206556 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.952, -0.395, 0.247), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.299, -0.053).threePointArc((0.005, -0.026), (0.299, 0.053)).lineTo(-0.299, -0.053).close().sweep(cq.Workplane('XY').spline([(0.457, -0.395), (0.543, -0.28), (0.456, -0.166), (0.23... | 7 | 82 | 0.330997 |
train_b440e72d907daf27 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.168, -0.134, -0.689), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.311, -0.168).lineTo(0.311, -0.058).lineTo(0.246, -0.016).lineTo(0.175, -0.031).lineTo(0, 0.144).lineTo(-0.175, -0.031).lineTo(-0.246, 0.304).lineTo(-0.175, 0.319).lineTo(-0.311, ... | 15 | 144 | 0.465834 |
train_525cbfa4dfb6733a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.003, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.002, 0.107).lineTo(0.033, 0.031).lineTo(0.055, 0.003).lineTo(0.04, 0.012).lineTo(0.086, -0.101).lineTo(-0.051, 0.066).lineTo(-0.086, 0.108).lineTo(-0.03, 0.107).lineTo(0.002, 0.107).close... | 10 | 63 | 0.012279 |
train_2978bb599ca4511f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.516, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.966, 0.641).lineTo(-0.969, 0.03).lineTo(0.969, 0.03).lineTo(0.969, 0.999).lineTo(0.222, 1.003).lineTo(0.22, 0.635).lineTo(-0.966, 0.641).close().extrude(2)
result = result.edges().fillet(... | 8 | 97 | 2.781442 |
train_3d8e3d0d3ce17cc5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.619, 0.619, 0.293), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.707, 1.287).lineTo(-0.707, 0.496).threePointArc((0, 0.226), (0.707, 0.496)).lineTo(0.707, 1.287).lineTo(0.177, 1.287).threePointArc((0, 1.11), (-0.177, 1.287)).lineTo(-0.707, 1.28... | 11 | 74 | 1.095531 |
train_cf00da6ab3300970 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.296, 0.989, 0.069), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.517, 0.665).lineTo(-0.517, 0.954).lineTo(0.517, 0.954).lineTo(0.517, 0.665).threePointArc((0.215, -0.067), (-0.517, -0.37)).lineTo(-0.517, 0.665).close().workplane(offset=0.319).m... | 14 | 112 | 1.094245 |
train_d1dae22203a080ab | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.276, 0.233, -0.581), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.447, 1.129).extrude(0.34)
result = result.union(cq.Workplane(cq.Plane(origin=(0.352, -0.414, -0.274), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.515, 0.295).lineTo(-0.515, 0.289).l... | 26 | 137 | 0.639322 |
train_f20b2de0dd5c0c80 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, 0.657, 0.97), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.065, 0.337).threePointArc((-0.343, 0), (-0.065, -0.337)).threePointArc((0.002, -0.343), (0.068, -0.336)).threePointArc((0.343, 0), (0.068, 0.336)).threePointArc((0.002, 0.343), (-0... | 7 | 28 | 0.152893 |
train_5065cf1136351469 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.097, -0.552), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.776).extrude(1.104)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.14, 0.158, -0.221), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.04).extrude(0.126))
result = result.edges().ch... | 21 | 150 | 1.089098 |
train_b30afb5e1662a7a0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.256, 0.239), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.246).threePointArc((-0.158, 0.189), (-0.243, 0.043)).threePointArc((-0.245, 0.022), (-0.246, 0)).threePointArc((0, -0.246), (0.246, 0)).threePointArc((0.245, 0.022), (0.243, 0.043... | 2 | 10 | 0.634607 |
train_1161a4a7df6c818c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.019), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.751, 2).extrude(0.109)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.432, 0.269, -0.038), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.419, 0.358).extrude(0.131))
result = result.cut(cq.... | 24 | 73 | 0.304139 |
train_c8154cbc07fe6cc2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.088, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.553, 1.318).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.105, -0.125, 0.492), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.954, 0.804).extrude(0.521))
result = result.cut(cq... | 16 | 96 | 3.066948 |
train_1167e0643918b7a8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.402), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.525, 2).extrude(0.6)
result = result.union(cq.Workplane(cq.Plane(origin=(0.076, 0.1, 0.192), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.373, 1.8).extrude(0.091))
result = result.union(cq.Work... | 5 | 22 | 2.019798 |
train_159835e9a68d6fdc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.276, -0.925), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.288, -0.164).threePointArc((0.462, 0.026), (0.526, 0.276)).threePointArc((0.462, 0.526), (0.288, 0.716)).threePointArc((0, 0.802), (-0.288, 0.716)).threePointArc((-0.462, 0.526), (-0.... | 14 | 70 | 2.616535 |
train_788004d66eb054d9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.323), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1, 0.111).lineTo(-1, 0.069).lineTo(0.181, 0.069).lineTo(0.181, -0.389).lineTo(0.222, -0.389).lineTo(0.222, 0.069).lineTo(1, 0.069).lineTo(1, 0.111).lineTo(-0.958, 0.111).lineTo(-0.958, 0.38... | 19 | 19 | 0.070886 |
train_e53194e4277b3e6c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.557, 0.58), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.443, -0.101).lineTo(-0.101, -0.443).lineTo(0.443, 0.101).lineTo(0.101, 0.443).lineTo(-0.443, -0.101).close().sweep(cq.Workplane('YZ').spline([(0.557, -0.469), (0.801, -0.311), (1.045, -... | 5 | 16 | 0.186736 |
train_dc93f9907159539d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.003, -0.039, -0.066), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.126, -0.999).lineTo(-0.126, -0.39).lineTo(0.126, 1.08).lineTo(0.126, -0.999).close().extrude(0.132)
result = result.edges().chamfer(0.041)
result = result.cut(cq.Workplane(cq.Pla... | 6 | 35 | 0.0202 |
train_444653cf05562679 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.109, 0.561), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.409, -0.262).lineTo(0.409, -0.262).lineTo(0.409, -0.125).lineTo(-0.199, 0.262).threePointArc((-0.207, 0.027), (-0.409, 0.147)).lineTo(-0.409, -0.125).lineTo(-0.409, -0.262).close().sw... | 2 | 21 | 0.448661 |
train_59bcef124aa9d050 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0, 0.325), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.098, 0.158).threePointArc((-0.113, 0.102), (-0.098, 0.046)).threePointArc((-0.057, 0.004), (0, -0.011)).threePointArc((0.057, 0.004), (0.098, 0.046)).threePointArc((0.113, 0.102), (0.098... | 2 | 14 | 0.409755 |
train_f1cbf9b5f6350585 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.448, 0, -0.156), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.697, 0.66).extrude(0.433)
result = result.faces('>Z').shell(-0.04)
result = result.union(cq.Workplane(cq.Plane(origin=(0.584, -0.197, -0.277), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.0... | 9 | 90 | 0.116339 |
train_356f5a9555114446 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.526, -0.892, 0.072), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.269, 0.794).lineTo(-0.664, 0.794).threePointArc((-0.716, 0.526), (-0.664, 0.257)).lineTo(-0.269, 0.257).lineTo(-0.269, -0.138).threePointArc((0, -0.19), (0.269, -0.138)).lineTo(0... | 9 | 117 | 1.22717 |
train_fc1977cdcc568bb4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.001, -0.289, -0.255), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.343, 0.609).lineTo(0.343, -0.175).lineTo(-0.253, -0.175).threePointArc((-0.323, -0.142), (-0.343, -0.066)).lineTo(-0.23, 0.518).threePointArc((-0.204, 0.582), (-0.138, 0.609)).lin... | 14 | 110 | 0.488743 |
train_34e260a1254df442 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.097), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, 0.815).threePointArc((-0.031, 0.811), (-0.06, 0.798)).threePointArc((0, 0.59), (0.06, 0.798)).threePointArc((0.097, 0.836), (0.113, 0.887)).threePointArc((0, -1.005), (-0.113, 0.887)).thr... | 9 | 123 | 0.39117 |
train_469b12b7612a93b8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.869, 1.821).extrude(0.859)
result = result.union(cq.Workplane(cq.Plane(origin=(0.208, 0.062, -0.157), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.255, 0.31).extrude(0.183))
result = result.edges()... | 5 | 134 | 2.677197 |
train_cd23af1459b07e48 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.171, 0, -0.261), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.658, 1.194).extrude(0.18)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.08, -0.08, -0.084), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.159, 0.098).lineTo(-0.146, 0.087).line... | 9 | 80 | 0.320573 |
train_e3472d8a3b81851d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.346, 0.691, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.624, 0.774).lineTo(-0.624, -0.082).lineTo(0.52, -0.082).lineTo(0.52, -0.117).lineTo(0.624, -0.117).lineTo(0.624, 0.81).lineTo(0.334, 0.81).lineTo(0.334, 0.774).lineTo(-0.624, 0.774).c... | 15 | 56 | 0.652645 |
train_8d5aefc262427ba7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.044, 0.064), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.826, 0.032).threePointArc((-0.321, 0.794), (0.576, 0.625)).threePointArc((0.761, 0.354), (0.826, 0.032)).threePointArc((0, -0.794), (-0.826, 0.032)).close().workplane(offset=0.086).mo... | 11 | 129 | 0.440044 |
train_be983d395a0dc1c5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.005, 0.733), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.631).sweep(cq.Workplane('YZ').spline([(0.374, -0.047), (0.334, 0.241), (0.046, 0.44), (-0.298, 0.297), (-0.44, -0.047), (-0.298, -0.391), (0.046, -0.534), (0.334, -0.335)]))
result = r... | 3 | 7 | 0.136033 |
train_fa3ec64feef76aa1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.102, -0.917, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.111, 0.698).threePointArc((-0.156, 0.689), (-0.202, 0.677)).threePointArc((0, -0.707), (0.202, 0.677)).threePointArc((0.156, 0.689), (0.111, 0.698)).threePointArc((0, 0.707), (-0.111... | 1 | 6 | 1.291425 |
train_c43ae265bc9ca9c0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.023, 0.008, -0.289), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.023, -0.018).lineTo(0.493, 0.875).lineTo(-0.476, 0.872).lineTo(-0.977, -0.01).lineTo(-0.483, -0.844).lineTo(0.518, -0.891).close().moveTo(-0.171, 0.412).lineTo(-0.171, 0.308).line... | 14 | 91 | 1.095227 |
train_60b138d61a7823fd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.439, 0.011, 0.061), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.089, -0.032).lineTo(0.089, -0.032).lineTo(0.089, 0.032).lineTo(-0.089, 0.032).lineTo(-0.089, -0.032).close().extrude(0.14)
result = result.edges().chamfer(0.019)
result = result.... | 10 | 93 | 0.006939 |
train_59acecc0cb21b90b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.26, 0.066), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1, 0.101).threePointArc((0.002, 0.019), (1, -0.101)).lineTo(-1, 0.101).close().sweep(cq.Workplane('YZ').spline([(-0.26, 0.066), (-0.079, 0.075), (0.102, 0.041), (0.284, -0.037)]))
| 1 | 4 | 0.002671 |
train_abf8dba5144254b5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.295, -0.003, 0.08), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.705, 0.021).lineTo(0.355, 0.634).lineTo(-0.344, 0.618).lineTo(-0.713, -0.024).lineTo(-0.346, -0.629).lineTo(0.347, -0.596).close().moveTo(0, -0.122).lineTo(0.033, -0.046).lineTo(0.1... | 4 | 35 | 0.166534 |
train_2d82bd97484e48c5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.476, 0.065, -0.051), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.517, -0.434).lineTo(0.533, -0.43).lineTo(0.53, 0.422).lineTo(-0.524, 0.44).close().moveTo(-0.209, 0.053).lineTo(-0.086, 0.054).lineTo(-0.087, 0.077).lineTo(-0.186, 0.077).lineTo(... | 18 | 398 | 0.312333 |
train_614b51c65d177d6e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.302, 0.336, 0.389), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.229, -0.698).lineTo(0.229, -0.156).lineTo(0.229, -0.649).lineTo(-0.137, -0.649).lineTo(-0.137, -0.128).lineTo(0.301, -0.128).lineTo(0.301, 0.698).lineTo(-0.241, 0.698).threePointArc... | 9 | 109 | 0.713249 |
train_640846e34cf4c916 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.127, -0.028, -0.108), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.915, 1.125).extrude(0.305)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.063, -0.223, 0.035), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.202).extrude(0.028))
result = resul... | 28 | 165 | 0.283401 |
train_abc932db7984ee3d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.022, -0.018, 0.103), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.334, 0).lineTo(0.334, -0.165).lineTo(-0.572, -0.165).lineTo(-0.572, -0.33).lineTo(0.572, -0.33).lineTo(0.572, 0).lineTo(0.453, 0).lineTo(0.453, 0.165).lineTo(0.572, 0.165).lineTo(0... | 3 | 25 | 0.491728 |
train_baab83e88904ee14 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.014, 0, 0.159), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.493, 1.364).extrude(0.232)
result = result.union(cq.Workplane(cq.Plane(origin=(0.014 + 0.23 * math.cos(3.534 + 2 * math.pi * 0 / 4), 0 + 0.23 * math.sin(3.534 + 2 * math.pi * 0 / 4), 0.39... | 16 | 73 | 0.796232 |
train_1318d2a4e5417e45 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.141, 0.213, 0.053), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.81, 1.036).lineTo(-0.81, 1.036).lineTo(-0.81, 0.059).lineTo(0.81, 0.059).lineTo(0.81, 1.036).close().extrude(0.605)
result = result.edges().chamfer(0.245)
result = result.faces('>Z... | 13 | 258 | 0.470483 |
train_abd6655b19dfb6da | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.641, 0.061, -0.069), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.359, 0.007).lineTo(-0.193, 0.173).lineTo(-0.11, 0.09).lineTo(-0.149, 0.051).lineTo(0.359, 0.051).lineTo(0.359, 0.007).lineTo(-0.359, 0.007).close().extrude(0.138)
result = result.... | 3 | 19 | 0.006848 |
train_b69e344e6d454029 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.477, -0.012), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.121, 0.117).threePointArc((0.045, 0.078), (0.059, 0.162)).lineTo(-0.121, 0.104).threePointArc((0.022, 0), (-0.121, -0.104)).lineTo(0.059, -0.162).threePointArc((0.045, -0.078), (0.121,... | 3 | 35 | 0.062 |
train_84b110bafd13bc12 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.245, 0.091, -0.227), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.12, 0.155).threePointArc((-0.022, 0.169), (0.074, 0.186)).lineTo(0.12, -0.058).threePointArc((0.016, -0.076), (-0.087, -0.091)).lineTo(-0.12, 0.155).close().extrude(0.307)
result... | 22 | 156 | 0.119287 |
train_4de16165f45c6dcf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.415, -0.419, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).lineTo(0.369, 0.667).lineTo(0.37, -0.585).lineTo(-0.37, -0.585).lineTo(-0.37, 0.667).lineTo(-0.37, 0.823).lineTo(0.132, 1.106).close().extrude(0.838)
result = result.union(cq.Workplane(cq.Plan... | 10 | 42 | 0.819701 |
train_c22ddc8d6cddae00 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.154, -0.176, -0.29), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.551, 0.158).threePointArc((-0.71, 0), (-0.551, -0.158)).lineTo(0.551, -0.158).threePointArc((0.71, 0), (0.551, 0.158)).lineTo(-0.551, 0.158).close().sweep(cq.Workplane('XY').spl... | 8 | 67 | 0.203186 |
train_56151be506a0dbf0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, -0.047, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.541, 0.258).lineTo(-0.627, 0.266).lineTo(-0.864, 0.286).lineTo(-0.951, 0.162).lineTo(-1, 0.092).lineTo(-0.9, -0.123).lineTo(-0.663, -0.144).lineTo(0.964, -0.286).lineTo(1, 0.123).lin... | 2 | 3 | 0.000352 |
train_3b3fe7408a98777e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.033, 0, -0.405), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.013, 0.041).threePointArc((-0.006, 0.036), (-0.02, 0.023)).threePointArc((-0.028, 0), (-0.02, -0.023)).threePointArc((-0.035, -0.036), (-0.054, -0.041)).lineTo(0.013, -0.041).threePoi... | 1 | 7 | 0.010879 |
train_24f384814a569e15 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.206, -0.006, -0.04), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.794, 0.014).lineTo(0.564, 0.531).lineTo(-0.022, 0.794).lineTo(-0.562, 0.563).lineTo(-0.76, 0.007).lineTo(-0.569, -0.574).lineTo(0.02, -0.782).lineTo(0.53, -0.547).close().moveTo(-0... | 11 | 116 | 0.155194 |
train_8dca9526b7db4b1f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.365, 0.035, 0.059), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.635, 0.019).lineTo(0.464, 0.478).lineTo(0.019, 0.672).lineTo(-0.483, 0.468).lineTo(-0.663, 0).lineTo(-0.447, -0.469).lineTo(-0.023, -0.659).lineTo(0.435, -0.445).close().moveTo(0, 0... | 9 | 136 | 0.297563 |
train_035e659b5fd5f0b8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.469, -0.078, -0.004), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.101, 0.23).lineTo(-0.335, -0.23).lineTo(0.335, -0.23).lineTo(0.101, 0.23).close().sweep(cq.Workplane('XZ').spline([(-1.186, -0.286), (-0.708, -0.563), (-0.229, -0.563), (0.249, -... | 19 | 167 | 0.094071 |
train_e645fe1fe7274fb1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.095, -0.968), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.763, 0.368).threePointArc((0.795, 0.361), (0.826, 0.354)).threePointArc((1, 0.135), (0.826, -0.084)).threePointArc((0.795, -0.091), (0.763, -0.098)).threePointArc((0, -0.178), (-0.763... | 7 | 36 | 1.214002 |
train_62a84184afae7e6d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.607, 0.058, -0.2), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.241, -0.149).threePointArc((0.333, -0.05), (0.373, 0.08)).threePointArc((0.333, 0.25), (0.206, 0.369)).threePointArc((0.074, 0.4), (-0.059, 0.369)).lineTo(-0.271, 0.417).lineTo(-0.3... | 7 | 151 | 0.468616 |
train_bf2600507a78644c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1, -0.023), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.302).sweep(cq.Workplane('YZ').spline([(-0.636, -0.453), (-0.488, -0.33), (-0.339, -0.484), (-0.191, -0.608), (-0.042, -0.576), (0.106, -0.422), (0.254, -0.453)]))
result = result.edges()... | 5 | 14 | 0.339138 |
train_fc1a8fba45059126 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.351, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.629, 0.56).lineTo(-0.629, 0.42).lineTo(0.769, 0.42).lineTo(0.769, -0.209).lineTo(-0.769, -0.209).lineTo(-0.769, 1.189).lineTo(-0.629, 1.049).lineTo(0.769, 1.049).lineTo(0.769, 0.56).lineT... | 13 | 170 | 3.205616 |
train_6b1f87d2b6a59fd0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.362, -1, -0.094), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.634).sweep(cq.Workplane('YZ').spline([(-0.065, -0.871), (0.345, -0.913), (0.756, -1.037), (1.166, -1.242)]))
result = result.edges().chamfer(0.19)
result = result.cut(cq.Workplane(cq... | 15 | 54 | 1.023342 |
train_07101356cf514350 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.074, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.039, 1.023).extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.518, -0.214, -0.053), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.153, 0.08).extrude(0.163))
result = result.cut(c... | 10 | 70 | 1.79941 |
train_b918417141dae83a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.281, -0.309), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.267).extrude(0.618)
result = result.union(cq.Workplane(cq.Plane(origin=(0.241, 0.619, -0.185), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.296).extrude(0.363))
result = result.cut(cq... | 4 | 63 | 1.597162 |
train_a3a1e7a45bc70595 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.385, 0, 0.113), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.072, -0.882).lineTo(0.091, -0.963).lineTo(0.099, -1).lineTo(0.346, -0.945).lineTo(0.279, -0.648).lineTo(0.269, -0.65).lineTo(0.067, 0.252).lineTo(0.078, 0.254).lineTo(0.011, 0.551).lin... | 4 | 31 | 0.031796 |
train_bbc23713307a3072 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.421), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.488, 1.399).extrude(1.421)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.359, 0.33, 0.507), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.333, 0.328).extrude(0.506))
result = result.faces... | 5 | 133 | 0.965867 |
train_0aac42f360f53ab5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.109, 0.084, 0.272), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.507, 0.062).lineTo(0.487, 0.062).threePointArc((0.495, -0.001), (0.507, -0.062)).lineTo(-0.507, -0.062).lineTo(-0.507, 0.062).close().extrude(0.04)
result = result.edges().chamfer... | 8 | 214 | 0.128928 |
train_67339262f55b976c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.076, -0.108, 0.051), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.863, 0.958).extrude(0.241)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.209, -0.243, 0.01), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.075, 0.244).extrude(0.29))
result = res... | 34 | 276 | 0.649382 |
train_35dd0b46381a2d95 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.149, 0.091, -0.526), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.141, 0.254).lineTo(0.141, 0.008).lineTo(-0.141, 0.008).lineTo(-0.141, 0.29).lineTo(0.141, 0.29).lineTo(0.141, 0.254).close().extrude(0.201)
result = result.edges().chamfer(0.056)
... | 17 | 190 | 0.031329 |
train_e5bf50cb5cfae7e0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.349), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.658).extrude(0.523)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.208, 0.258, -0.159), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.489, 0.15).extrude(0.201))
result = result.cut(cq.W... | 12 | 42 | 0.552075 |
train_7f461eda8a0b5345 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.024, 0.007, -0.037), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.007, -0.024).lineTo(0.714, 0.727).lineTo(0.028, 0.993).lineTo(-0.679, 0.671).lineTo(-0.959, -0.023).lineTo(-0.705, -0.699).lineTo(-0.018, -1.007).lineTo(0.675, -0.721).close().mov... | 14 | 157 | 1.479612 |
train_9ad59d4f2b72907e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.073, 0.663, -0.491), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.324, 0.327).lineTo(0.324, 0.096).lineTo(-0.343, 0.096).lineTo(-0.343, -0.327).lineTo(-0.119, -0.327).lineTo(-0.119, 0.071).lineTo(0.324, 0.071).lineTo(0.324, -0.327).lineTo(0.343... | 6 | 49 | 0.16935 |
train_60b2cc48b80b8325 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.002, 0, 0.122), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.038, -0.638).threePointArc((0.006, -0.362), (-0.009, -0.084)).lineTo(-0.132, 0.692).threePointArc((-0.071, 0.907), (0.132, 1)).lineTo(0.132, 0.467).lineTo(0.132, -1).lineTo(-0.019, -1... | 4 | 37 | 0.088271 |
train_9151eb25341cbb99 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.047, -0.039, 0.002), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.088, 0.094).extrude(0.049)
result = result.union(cq.Workplane(cq.Plane(origin=(0.047, 0.015, 0.007), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.064, 0.015).extrude(0.044))
result = re... | 32 | 142 | 0.013115 |
train_93f6d245b974bf33 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.058, 0, -0.614), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.345, 1.634).extrude(0.977)
result = result.faces('>Y').shell(-0.081)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.099, 0.329, 0.19), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.1... | 10 | 91 | 0.629739 |
train_2bfb76b8e2b7d47c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.606, 0.715, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1, 0.035).lineTo(-1, 1.463).lineTo(0.914, 1.463).lineTo(0.914, 1.154).threePointArc((1, 0.749), (0.914, 0.344)).lineTo(0.914, 0.035).lineTo(0.7, 0.035).threePointArc((0, -0.251), (-0.7,... | 10 | 134 | 3.891192 |
train_4f99c3715828074a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.382, 0.065, -0.138), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.48, -0.724).threePointArc((0.199, -0.428), (0.48, 0.258)).threePointArc((0.202, 0.724), (-0.338, 0.705)).lineTo(-0.48, -0.724).close().revolve(angleDegrees=360, axisStart=(-0.338... | 10 | 108 | 2.62809 |
train_300c6e0f225cb280 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.767, 0.908, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.308, 0.198).lineTo(-0.308, -0.198).lineTo(-0.123, -0.198).threePointArc((0, -0.233), (0.123, -0.198)).lineTo(0.308, -0.198).lineTo(0.308, 0.198).lineTo(0.123, 0.198).threePointArc((0, ... | 2 | 14 | 0.22169 |
train_c68f681316f99512 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.336, 0.856, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.579, -0.375).lineTo(0.29, -0.375).threePointArc((0, -0.664), (-0.29, -0.375)).lineTo(-0.579, -0.375).lineTo(-0.579, 0.785).lineTo(0.579, 0.785).lineTo(0.579, -0.375).close().extrude(1.... | 22 | 221 | 2.674017 |
train_6340b292425abd66 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.148, 0.094, -0.306), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.006, 0).lineTo(-0.008, -0.003).lineTo(-0.006, -0.006).lineTo(-0.003, -0.006).lineTo(-0.002, -0.008).lineTo(0.002, -0.008).lineTo(0.003, -0.006).lineTo(0.006, -0.006).lineTo(0.008... | 2 | 44 | 0.011926 |
train_9ecef09b0015c6ed | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.204, -0.244, -0.07), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.237, 0.133).extrude(0.048)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.204, -0.236, -0.023), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.06).extrude(0.011))
result = resu... | 25 | 273 | 0.043528 |
train_c2bf64d5559467b3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.314, -0.105, -0.271), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.372, 0.23).extrude(0.543)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.674, -0.096, -0.138), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.652, 0.085).extrude(0.105))
result =... | 11 | 58 | 0.304805 |
train_a3e5780e6e9e9ff6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.038, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.688).sweep(cq.Workplane('XY').spline([(-0.802, 0.038), (-0.267, 0.202), (0.268, 0.192), (0.803, 0.007)]))
result = result.edges().fillet(0.107)
| 2 | 5 | 2.201967 |
train_0c81b6591eb65815 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.248, 0.028, 0.014), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.376, 0.972).lineTo(-0.376, 0.22).lineTo(-0.527, 0.22).lineTo(-0.527, 0.069).lineTo(-0.151, 0.069).lineTo(-0.151, 0.596).lineTo(0.527, 0.596).lineTo(0.527, 0.972).lineTo(-0.376, 0.... | 15 | 154 | 0.289974 |
train_01bd74d97eba190f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.346, 0.701, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(1, 0.026).lineTo(-1, 0.026).lineTo(-1, 0.878).lineTo(0.071, 0.878).lineTo(0.071, 0.466).lineTo(1, 0.466).lineTo(1, 0.026).close().extrude(1.403)
result = result.union(cq.Workplane(cq.Pla... | 3 | 51 | 1.843055 |
train_87ee53a65254efeb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1, -0.13), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.406, -0.456).lineTo(-0.325, -0.538).lineTo(-0.029, -0.538).lineTo(0.406, -0.103).lineTo(0.258, 0.045).lineTo(-0.235, 0.538).lineTo(-0.406, 0.367).lineTo(-0.406, -0.456).close().sweep(cq.... | 9 | 35 | 0.355014 |
train_414ed44cb93ec027 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.063, 0.063, -0.46), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.263, 0.175).extrude(0.107)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.036, -0.053, -0.449), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.022, 0.044).threePointArc((0.022... | 38 | 266 | 0.036175 |
train_a87d27c4f9190b28 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.214, 0.246, -0.386), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.278, 0.278).extrude(0.577)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.214, -0.14, -0.225), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.078, 0.559).extrude(0.253))
result =... | 12 | 109 | 0.736044 |
train_3cf7a8c827e2b408 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.051, 0.432, 0.333), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.292, 0.203).extrude(0.126)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.031, 0.472, 0.387), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.037).extrude(0.03))
result = result.cut(... | 22 | 136 | 0.428845 |
train_47240e89f6ec9aba | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.57, 0.541, -0.151), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.849, 0.361).lineTo(-0.652, 0.596).lineTo(-0.652, 1.207).lineTo(0.849, 1.207).lineTo(0.849, 0.058).lineTo(0.416, 0.361).lineTo(-0.849, 0.361).close().extrude(0.952)
result = result... | 15 | 83 | 0.834959 |
train_dbefc840930ea5bc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.21, -0.054, -0.627), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.268, 0.921).extrude(0.813)
result = result.union(cq.Workplane(cq.Plane(origin=(0.01, -0.676, -0.318), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.348, 0.396).extrude(0.303))
result = ... | 17 | 114 | 1.026968 |
train_bfd7a7ebc5ca3dce | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.008, 0.22, -0.156), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.891, -0.749).lineTo(0.86, -0.767).lineTo(0.876, 0.751).lineTo(-0.873, 0.78).close().moveTo(0, 0.111).lineTo(0.023, 0.176).lineTo(0.09, 0.163).lineTo(0.045, 0.215).lineTo(0.09, 0.26... | 28 | 258 | 0.427698 |
train_882269b998de8034 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.152, -0.241, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, -0.425).lineTo(0.466, 0.042).lineTo(0.466, 0.508).lineTo(-0.466, 0.508).lineTo(-0.466, 0.042).lineTo(0, 0.042).lineTo(0, -0.425).close().extrude(0.948)
result = result.edges().chamfe... | 13 | 126 | 0.635617 |
train_19313121a93d1b8f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.369, -0.375), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.188, 0.182).lineTo(0.563, 0.557).lineTo(0.188, 0.932).lineTo(-0.188, 1.308).lineTo(-0.563, 0.932).lineTo(-0.188, 0.557).lineTo(0.188, 0.182).close().revolve(angleDegrees=180, axisStar... | 9 | 56 | 1.095408 |
train_805f3a3af7fa4e6c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.063), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.935).extrude(0.126)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.8 + 0.4, -0.774 + 0.258, -0.082), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.176, 0.073).lineTo(-0.266, 0.073).l... | 7 | 78 | 0.442059 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.