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_e524ab85e9ac9187 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.279, 0.711, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(1, 0.445).lineTo(-1, 0.445).lineTo(-1, 0.028).lineTo(1, 0.028).lineTo(1, 0.445).close().extrude(1.422)
result = result.edges().chamfer(0.206)
result = result.faces('>Z').shell(-0.018)
re... | 5 | 54 | 0.164322 |
train_3667a441099cd2cf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1, -0.364), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.149, -0.008).lineTo(-0.149, 0.112).lineTo(-0.09, 0.112).lineTo(-0.09, 0.097).threePointArc((-0.069, 0.108), (-0.045, 0.112)).threePointArc((-0.021, 0.108), (0, 0.097)).threePointArc((0.... | 1 | 26 | 0.031164 |
train_c0fb7c65ed067040 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.125, 0.024, 0.379), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.073, -0.003).lineTo(-0.073, -0.003).lineTo(-0.066, 0.058).lineTo(0.073, 0.058).lineTo(0.073, -0.003).close().extrude(0.184)
result = result.edges().fillet(0.024)
result = result.un... | 18 | 179 | 0.020914 |
train_502bac0ddccc8860 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.147, 0, -0.27), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.706, 0.78).extrude(0.539)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.829, 0.055, -0.092), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.374, -0.104).lineTo(-0.374, 0.46).lineTo(-0... | 7 | 42 | 0.690439 |
train_abf993b153ff7155 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.632, -0.056, -0.168), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.737, 0.662).extrude(0.224)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.583, -0.056, 0.053), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.222).extrude(0.042))
result = res... | 14 | 245 | 0.197581 |
train_11d10ef95eeef79e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.107, -0.463, -0.173), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.214, 0.728).lineTo(-0.503, -0.047).lineTo(-0.647, -0.223).lineTo(-0.625, -0.307).lineTo(-0.342, -0.417).lineTo(-0.039, -0.525).lineTo(0.396, -0.372).lineTo(0.725, -0.1).close().... | 13 | 122 | 0.307487 |
train_bf6a5f15864365d4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.096, -0.381), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.68, 1.808).extrude(0.762)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.118, 0.062, 0.214), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.06).extrude(0.089))
result = result.cut(cq.... | 9 | 97 | 2.090853 |
train_ff0b562cc3198366 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.343), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.723).extrude(0.686)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.109, -0.051, 0.125), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.265).extrude(0.066))
result = result.union(cq.Work... | 3 | 16 | 0.986589 |
train_b123e1c71d678ace | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.74, 0.002, -0.039), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.018, -0.005).threePointArc((-0.004, 0.004), (0.005, -0.018)).lineTo(-0.018, -0.018).threePointArc((-0.013, 0.013), (0.018, 0.018)).lineTo(0.018, -0.005).close().sweep(cq.Workplane('... | 1 | 7 | 0.001957 |
train_ba01aa061a14c6ec | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.347, 0.123, 0.117), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.02).lineTo(-0.272, 0.02).lineTo(-0.272, 0.272).lineTo(0.272, 0.272).lineTo(0.272, 0.146).lineTo(0, 0.146).lineTo(0, 0.02).close().revolve(angleDegrees=270, axisStart=(0, 0.02), a... | 24 | 181 | 0.269833 |
train_3a38aa1fdb9cdf7a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.065), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.033, -0.868).lineTo(-0.033, -0.544).threePointArc((-0.402, 0), (-0.033, 0.544)).lineTo(-0.033, 0.868).lineTo(0.401, 0.868).lineTo(0.401, 0.544).lineTo(0.401, -0.544).lineTo(0.401, -0.868)... | 4 | 42 | 0.146331 |
train_b5faaebe0b2ef3a5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.426, -0.564, -0.491), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.303, 0.044).lineTo(0.303, 0.165).lineTo(0.388, 0.165).lineTo(0.388, 0.686).lineTo(-0.388, 0.686).lineTo(-0.388, 0.165).lineTo(-0.303, 0.165).lineTo(-0.303, 0.085).lineTo(-0.327, ... | 2 | 54 | 0.132468 |
train_c9f4d595cf951519 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.029, 0.028, -0.624), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.265, 1.694).extrude(1.388)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.505, 0.936, 0.152), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.061, 0.129).extrude(0.132))
result = ... | 5 | 23 | 2.980299 |
train_3047b7a4d14658ee | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.121, 0.194, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.96, 0.153).threePointArc((-0.988, 0.221), (-0.92, 0.194)).lineTo(0.92, 0.194).threePointArc((0.988, 0.221), (0.96, 0.153)).lineTo(0.96, 0.09).threePointArc((0.988, 0.022), (0.92, 0.04... | 5 | 61 | 0.080195 |
train_931f74a7a7e2fd92 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.999, -0.449, -0.681), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.07, 0.056).lineTo(0.07, 0.056).lineTo(0.07, 0.07).lineTo(0.084, 0.07).lineTo(0.084, -0.07).lineTo(-0.084, -0.07).lineTo(-0.084, 0.07).lineTo(-0.07, 0.07).lineTo(-0.07, 0.056).c... | 2 | 56 | 0.398593 |
train_38732e5856dd20a2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.26, -0.03, -0.517), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.393, -0.206).lineTo(0.294, -0.206).lineTo(0.294, 0.245).lineTo(-0.393, 0.245).lineTo(-0.393, -0.206).lineTo(-0.294, -0.206).lineTo(-0.294, -0.245).lineTo(0.393, -0.245).lineTo(0.39... | 8 | 96 | 0.355601 |
train_9ed7e44bf1366b16 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.74, 0.34, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.475, 0.682).lineTo(-0.475, 0.26).lineTo(-0.369, 0.049).lineTo(-0.158, 0.049).lineTo(-0.053, 0.26).lineTo(0.475, 0.26).lineTo(0.475, 0.682).lineTo(-0.053, 0.682).lineTo(-0.158, 0.893).li... | 15 | 201 | 0.481418 |
train_b2f377c88626d0fe | 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.054, 1.118).extrude(1.523)
result = result.union(cq.Workplane(cq.Plane(origin=(0.048, -0.209, 0.501), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.473, 0.477).extrude(0.499))
result = result.cut(cq... | 3 | 16 | 1.788754 |
train_f3ef703924000539 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.594, 0.218, -0.201), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.799, 0.048).lineTo(-0.799, 0.447).lineTo(-0.733, 0.447).threePointArc((-0.566, 0.281), (-0.399, 0.447)).lineTo(-0.333, 0.447).lineTo(-0.333, 0.647).lineTo(0.333, 0.647).lineTo(0.... | 18 | 180 | 0.697544 |
train_ed483ba720083698 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.027, -0.082, -0.278), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.733, 0.787).extrude(0.361)
result = result.faces('>X').shell(-0.021)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.138, 0.431, -0.105), normal=(0, 0, 1), xDir=(1, 0, 0))).r... | 9 | 95 | 0.257489 |
train_bf07edeccc0822a1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.132, 0.156, 0.327), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1.288, -0.357).threePointArc((-1.313, -0.333), (-1.327, -0.301)).lineTo(-1.327, 0.045).lineTo(-1.288, -0.357).close().sweep(cq.Workplane('XZ').spline([(0.428, -0.151), (0.491, -0.04... | 1 | 5 | 0.023437 |
train_477984f840f9cc1a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.473, -0.14, -0.207), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.185, 0.009).lineTo(0.219, 0.009).lineTo(0.219, 0.141).lineTo(0.351, 0.141).lineTo(0.351, 0.009).lineTo(0.364, 0.009).lineTo(0.364, 0.158).lineTo(-0.364, 0.158).lineTo(-0.364, 0.00... | 25 | 208 | 0.129477 |
train_333c0d8e110fc81e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.875, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(1.037).workplane(offset=0.935).circle(0.873).workplane(offset=0.815).circle(0.88).loft()
result = result.edges().chamfer(0.159)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.799 + 0.4... | 18 | 149 | 4.075494 |
train_bc4e23c9337fe694 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.194, -0.343, -0.186), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.14, 0.08).lineTo(-0.14, 0.009).lineTo(0.14, 0.009).lineTo(0.14, 0.214).lineTo(-0.14, 0.214).lineTo(-0.14, 0.08).close().extrude(0.271)
result = result.edges().fillet(0.022)
resu... | 18 | 206 | 0.20082 |
train_441c9305525b04ce | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.342, 0.004, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.453, 0.384).extrude(0.374)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.475, 0.082, -0.641), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.069, 0.045).extrude(0.567))
result = res... | 6 | 42 | 0.288026 |
train_dd0e285255fbd742 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.337, 0.528, 0.06), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.073, -0.432).lineTo(-0.444, -0.685).threePointArc((-0.488, -0.635), (-0.553, -0.617)).lineTo(-0.553, 1.545).lineTo(0.553, -0.113).lineTo(0.073, -0.432).close().extrude(1.198)
result... | 4 | 40 | 1.496786 |
train_510ad46dd28ed32e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.091, -0.058, -0.525), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.465, 1.465).extrude(1.237)
result = result.faces('>Z').shell(-0.128)
result = result.union(cq.Workplane(cq.Plane(origin=(0.283, 0.073, -0.712), normal=(0, 0, 1), xDir=(1, 0, 0))).ci... | 12 | 55 | 1.299793 |
train_ed01ff11d166b754 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.558, -0.173, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.817, 0.06).lineTo(-0.817, 0.284).lineTo(0.817, 0.284).threePointArc((0.803, 0.236), (0.786, 0.188)).threePointArc((0.787, 0.124), (0.782, 0.06)).lineTo(0.325, 0.06).lineTo(-0.817, 0.... | 13 | 91 | 0.383766 |
train_0c15750c3295f20d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.279), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.614, 0.239).lineTo(-0.614, -0.239).lineTo(0.273, -0.239).lineTo(0.273, -0.214).lineTo(0.455, -0.214).lineTo(0.455, -0.239).lineTo(0.614, -0.239).lineTo(0.614, 0.239).lineTo(0.455, 0.239).... | 2 | 21 | 0.654371 |
train_e595f983524ec13d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.099, 0.017, 0.364), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.04, 0.036).lineTo(0.327, 0.983).lineTo(-0.843, 0.635).lineTo(-0.819, -0.643).lineTo(0.319, -1.017).close().moveTo(0.179, 0.043).lineTo(0.103, 0.083).lineTo(0.116, 0.086).lineTo(-0.... | 14 | 136 | 2.302638 |
train_82924d5bd22a3cad | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.106, 0.039, -0.425), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.121, 0.92).threePointArc((-0.001, 0.813), (0.121, 0.709)).lineTo(0.121, -0.8).threePointArc((-0.001, -0.717), (-0.121, -0.632)).lineTo(-0.121, 0.92).close().extrude(0.125)
resul... | 19 | 89 | 0.060326 |
train_509169ca8dfff585 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.2), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.651, 0.233).lineTo(-0.651, -0.233).lineTo(-0.233, -0.651).lineTo(0.233, -0.651).lineTo(0.651, -0.233).lineTo(0.651, 0.233).lineTo(0.233, 0.651).lineTo(-0.233, 0.651).lineTo(-0.651, 0.233).c... | 4 | 23 | 2.408199 |
train_736428fd41d3f6e1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.732, -0.445, -0.044), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.068, 0.092).lineTo(-0.935, 0.092).lineTo(-0.068, 1.063).lineTo(0.871, 1.063).threePointArc((0.916, 1.044), (0.935, 0.999)).lineTo(0.935, 0.245).lineTo(0.798, 0.092).lineTo(-0.06... | 20 | 154 | 1.581674 |
train_26ad787351cc954c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.024, -0.044, 0.09), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.005, 0.002).lineTo(-0.005, 0.005).lineTo(-0.004, 0.005).lineTo(-0.004, 0.002).lineTo(0.005, 0.002).lineTo(0.005, 0.001).lineTo(-0.004, 0.001).lineTo(-0.004, -0.005).lineTo(-0.005,... | 10 | 101 | 0.101333 |
train_d996356e595f9db3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.07, -0.044, -0.122), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.099, 0.521).threePointArc((-0.352, 0.07), (0.099, -0.381)).lineTo(0.099, -0.183).threePointArc((0.352, 0.07), (0.099, 0.323)).lineTo(0.099, 0.521).close().extrude(0.621)
result = ... | 16 | 296 | 0.465031 |
train_b31ada12966f3f1c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.01, -0.294, -0.354), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.562, -0.695).lineTo(0.177, 0.238).lineTo(0.562, 1.294).lineTo(-0.562, 1.25).lineTo(-0.562, 1.984).lineTo(-0.562, -0.695).close().revolve(angleDegrees=360, axisStart=(-0.562, -0.6... | 3 | 10 | 2.810501 |
train_eadb0e9b26b1581c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.002, 0, 0.132), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.293, 0.169).lineTo(0.098, 0.169).lineTo(0.195, 0).lineTo(0.098, -0.169).lineTo(0.293, -0.169).lineTo(0, -0.338).lineTo(-0.098, -0.169).lineTo(-0.195, 0).lineTo(-0.293, -0.169).lineTo(-0... | 5 | 44 | 0.324128 |
train_85422a49a74e6baa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.047, -0.282, -0.332), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.058, 1.436).extrude(0.492)
result = result.union(cq.Workplane(cq.Plane(origin=(0.1, -0.21, 0.158), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.476).extrude(0.081))
result = result.u... | 14 | 101 | 0.701163 |
train_0c6ff8287c46857e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.281, 0.319, -0.82), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.052, 1.363).extrude(1.64)
result = result.union(cq.Workplane(cq.Plane(origin=(0.001, -0.654, -0.572), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.115, 0.692).extrude(1.17))
result = res... | 13 | 104 | 2.089344 |
train_6255df281536c08e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.22, -0.127, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.456, 0.527).extrude(0.865)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.583, -0.107, -0.706), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.289, 0.462).extrude(0.277))
result = re... | 9 | 33 | 0.314105 |
train_2eba1373d08871b1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.046, 0.093, 0.65), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.242).workplane(offset=0.153).circle(0.253).workplane(offset=0.149).circle(0.202).workplane(offset=0.155).circle(0.202).workplane(offset=0.178).circle(0.21).loft()
result = result.ed... | 11 | 118 | 0.763415 |
train_6fd190763d5e58c0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.098, -0.538, -0.612), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.487, -0.489).threePointArc((0, -0.22), (0.487, -0.489)).lineTo(0.487, 1.538).lineTo(-0.487, 1.538).lineTo(-0.487, -0.489).close().extrude(1.117)
result = result.union(cq.Workpla... | 12 | 91 | 1.982345 |
train_93d5e6de70291059 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.294, -0.217, -0.363), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.032, -0.007).lineTo(-0.137, -0.007).lineTo(-0.137, 0.013).lineTo(0.137, 0.013).lineTo(0.137, -0.007).lineTo(-0.032, -0.007).close().revolve(angleDegrees=360, axisStart=(-0.032,... | 5 | 24 | 0.036958 |
train_851fe6472bc24b38 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.586), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.852, -1).lineTo(-0.852, 0.852).lineTo(1, 0.852).lineTo(1, 1).lineTo(-1, 1).lineTo(-1, -1).lineTo(-0.852, -1).close().extrude(1.171)
result = result.edges().fillet(0.049)
result = result.c... | 6 | 142 | 0.566531 |
train_c62722583d3f6550 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.282, 0, 0.202), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, -0.063).lineTo(0.053, -0.063).lineTo(0.053, -0.01).lineTo(0, -0.01).lineTo(0, -0.044).lineTo(-0.034, -0.044).lineTo(-0.034, 0.063).lineTo(-0.015, 0.063).lineTo(-0.053, 0.063).lineTo(... | 16 | 221 | 0.051367 |
train_fd39dd856f498480 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.044, -0.355, -0.469), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.919, 1.29).extrude(0.383)
result = result.union(cq.Workplane(cq.Plane(origin=(0.001, 0.29, -0.064), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.065, 0.503).lineTo(0.582, 0.503).lin... | 3 | 33 | 0.57722 |
train_df00f64e3496d5e2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1.432, -0.09), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.617, 1.283).lineTo(0.797, 1.584).lineTo(0.617, 2.432).lineTo(-0.797, 2.133).lineTo(-0.617, 1.283).close().revolve(angleDegrees=360, axisStart=(-0.617, 1.283), axisEnd=(0.797, 1.584))... | 16 | 51 | 2.905463 |
train_2906355d39380429 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.067, 0.003, 0.225), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.679, -0.09).threePointArc((0.563, -0.011), (0.425, 0)).threePointArc((0.147, 0.375), (-0.317, 0.343)).threePointArc((-0.53, 0.531), (-0.815, 0.529)).threePointArc((-0.837, 0.519), ... | 16 | 195 | 0.649091 |
train_211c694f9bd8093e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.565, 0.053, -0.022), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.421, 0.054).extrude(0.023)
result = result.union(cq.Workplane(cq.Plane(origin=(0.479, 0.046, -0.001), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.165, 0.028).extrude(0.022))
result = r... | 7 | 42 | 0.257886 |
train_5263967ad8ff8726 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.395, 0.491, -0.15), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.451, -0.647).lineTo(-0.451, 1.287).lineTo(0.451, 1.53).lineTo(0.451, -0.647).close().extrude(1.128)
result = result.edges().chamfer(0.151)
result = result.union(cq.Workplane(cq.Pla... | 13 | 160 | 0.743105 |
train_c0bf37fdc4cd9859 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.645, -0.14, -0.257), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.296, -0.296).lineTo(0.296, 0.296).lineTo(-0.296, 0.296).lineTo(-0.167, 0.167).lineTo(0.152, 0.234).lineTo(0.167, 0.167).lineTo(0.234, -0.152).lineTo(0.167, -0.167).lineTo(0, 0).l... | 7 | 55 | 0.451636 |
train_3990cb9e8ed7e213 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.871, 0.015, -0.277), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.083, 0.131).threePointArc((-0.106, 0.061), (-0.155, 0.007)).lineTo(0.083, -0.131).threePointArc((0.124, -0.072), (0.155, -0.007)).lineTo(-0.083, 0.131).close().transformed(offset=... | 2 | 26 | 0.014506 |
train_f4aa99ceed194a43 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.182, -0.114, 0.706), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.136, -0.164).lineTo(0.136, 0.214).lineTo(-0.136, 0.214).lineTo(-0.136, -0.164).lineTo(0.136, -0.164).close().extrude(0.246)
result = result.edges().chamfer(0.033)
result = result... | 22 | 182 | 0.152288 |
train_6ae49f204a26d107 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.19, 0.025, 0.152), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.063, -0.229).threePointArc((-0.015, -0.246), (0.036, -0.254)).lineTo(0.043, -0.221).lineTo(0.084, -0.252).threePointArc((0.131, 0.254), (-0.131, -0.181)).threePointArc((-0.099, -0... | 2 | 10 | 0.404179 |
train_239e5b671d63b65f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.378), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.964).workplane(offset=0.217).circle(0.913).workplane(offset=0.209).circle(0.975).workplane(offset=0.214).circle(0.902).workplane(offset=0.215).circle(0.975).workplane(offset=0.167).circle(... | 4 | 13 | 3.562893 |
train_961e059afc75fd83 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.06, 0.413, 0.691), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.638, -0.001).lineTo(0.185, 0.585).lineTo(-0.518, 0.383).lineTo(-0.509, -0.365).lineTo(0.205, -0.592).close().moveTo(-0.117, 0.175).lineTo(-0.136, 0.222).lineTo(-0.184, 0.242).lineTo... | 11 | 142 | 0.492028 |
train_6fd7d1e86842ecce | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.435, -0.181), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.394, 0.242).lineTo(0.394, 0.268).lineTo(0.065, 0.268).lineTo(0.065, 0.509).lineTo(0.026, 0.509).lineTo(0.026, 0.268).lineTo(-0.144, 0.268).lineTo(-0.144, 0.509).lineTo(-0.289, 0.509).l... | 11 | 340 | 0.467192 |
train_99e4d7391abadb62 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.207, 0.106, -0.694), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.139, 0.097).lineTo(0.154, 0.097).lineTo(0.154, -0.097).lineTo(-0.154, -0.097).lineTo(-0.154, 0.097).lineTo(-0.139, 0.097).lineTo(-0.139, -0.081).lineTo(0.139, -0.081).lineTo(0.139... | 15 | 113 | 0.351351 |
train_e979d1a56215ce9a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.783, 0.236, 0.665), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.157).workplane(offset=0.526).circle(0.189).workplane(offset=0.575).circle(0.172).workplane(offset=0.563).circle(0.161).loft()
result = result.edges().chamfer(0.113)
result = resul... | 6 | 27 | 0.27961 |
train_86c4cfd19ba89571 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.186, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.033, -0.54).threePointArc((-0.476, -0.184), (-0.294, 0.354)).lineTo(-0.237, 0.39).lineTo(0, 0.541).lineTo(0, 0.451).threePointArc((0.122, 0.435), (0.237, 0.39)).threePointArc((0.266, 0.... | 2 | 10 | 0.603116 |
train_f092566acf4bea68 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.58, 1, -0.01), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 0.089).lineTo(-1.039, 1.127).lineTo(0, 0.5).lineTo(1.039, 1.127).lineTo(0.411, 0.089).lineTo(0, 0.089).close().workplane(offset=0.673).moveTo(0, 0.152).lineTo(-0.913, 1.064).lineTo(0, ... | 11 | 56 | 0.577215 |
train_b73251fb78dc4bfa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.073, -0.147), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.726, -0.672).lineTo(0.726, 0.743).lineTo(-0.651, 0.743).lineTo(-0.651, 0.817).lineTo(-0.726, 0.817).lineTo(-0.726, 0.669).lineTo(-0.651, 0.669).lineTo(-0.651, -0.672).lineTo(0.726, -0... | 10 | 82 | 4.070348 |
train_73e06de058615712 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.041, 0, 0.164), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.209, -0.177).threePointArc((0, -0.386), (-0.209, -0.177)).lineTo(-0.209, 0.386).lineTo(0.209, 0.386).lineTo(0.209, -0.177).close().extrude(0.328)
result = result.edges().fillet(0.057)
... | 20 | 137 | 0.056147 |
train_96a1937cb82df356 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.055), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.983).extrude(0.156)
result = result.union(cq.Workplane(cq.Plane(origin=(0, -0.793 + 0.1135, 0.101), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.012, 0.031).lineTo(-0.004, 0.031).lineTo(-0... | 22 | 150 | 0.466861 |
train_557433e703784997 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.633, 0.146, 0.44), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.427, 0.941).lineTo(-0.427, 0.504).lineTo(0.215, 0.504).threePointArc((0.365, 0.567), (0.427, 0.716)).lineTo(0.427, 0.728).threePointArc((0.365, 0.878), (0.215, 0.941)).lineTo(0.118... | 11 | 71 | 0.431609 |
train_177f6439a30a4fd2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.058, 0.151, 0.143), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.732, 0.871).extrude(0.141)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.055, 0.151, 0.283), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.293).extrude(0.027))
result = result... | 30 | 233 | 0.188764 |
train_2ae03de26aa379f0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.115, -0.263), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.433).extrude(0.634)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.8 + 0.2665, -0.458 + 0.2865, -0.358), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.129, -0.015).lineTo(0.129, 0... | 21 | 83 | 1.70797 |
train_78af8c5ced79c543 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.5, -0.501, -0.302), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.69, 0.561).extrude(0.076)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.5, -0.67, -0.221), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.017, 0.27).lineTo(-0.011, 0.261).lin... | 15 | 192 | 0.602151 |
train_de96c1e6fb15de57 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.464, 0.1, -0.242), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.365).transformed(offset=(0.071, 0.033, 0.031), rotate=(20, 0, 0)).circle(0.489).transformed(offset=(0.143, 0.046, 0.167), rotate=(0, 0, 0)).circle(0.211).transformed(offset=(0.214, ... | 3 | 9 | 0.135197 |
train_6e311b831864124b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.917, -1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.951, 1.725).lineTo(-0.951, 1.725).lineTo(-0.951, 0.109).lineTo(0.951, 0.109).lineTo(0.951, 1.725).close().extrude(2)
result = result.edges().chamfer(0.521)
result = result.cut(cq.Workplan... | 4 | 101 | 3.813962 |
train_5a4b43930f165911 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.306, 0.204, -0.063), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.962, 0.789).extrude(1.063)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.306, 0.016, 0.402), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.217).extrude(0.133))
result = result.... | 17 | 156 | 0.882394 |
train_b049a860368192fb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.604, 0.203, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.503, 0.396).lineTo(0.503, -0.207).lineTo(-0.095, -0.207).lineTo(-0.095, -0.237).lineTo(0.067, -0.237).lineTo(0.067, -0.396).lineTo(-0.235, -0.396).lineTo(-0.235, -0.237).lineTo(-0.218,... | 2 | 38 | 0.09961 |
train_90e70e8a6758ef4c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.007, -0.058, 0.529), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1.072, -0.861).lineTo(-0.078, 0.951).lineTo(-1.072, -0.951).lineTo(1.072, -0.861).close().extrude(1.215)
result = result.edges().fillet(0.228)
result = result.union(cq.Workplane(cq.... | 6 | 42 | 2.18406 |
train_3a8cb51e80c5a77c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.325), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.51, 0.763).lineTo(0.089, -0.763).lineTo(0.51, -0.52).lineTo(-0.51, 0.763).close().workplane(offset=0.135).moveTo(-0.536, 0.801).lineTo(0.094, -0.801).lineTo(0.536, -0.546).lineTo(-0.536, ... | 8 | 27 | 0.296919 |
train_2c586795a5e0a594 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.233, -0.182, -0.115), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.448, 0.006).lineTo(0.135, 0.43).lineTo(-0.378, 0.279).lineTo(-0.372, -0.265).lineTo(0.138, -0.44).close().moveTo(-0.247, -0.139).lineTo(-0.044, -0.141).lineTo(-0.046, 0.14).lineT... | 17 | 134 | 0.482069 |
train_719a183736454a3d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.035, 0.684, 0.335), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.121, -0.695).lineTo(-0.139, -0.47).lineTo(-0.665, -0.47).lineTo(-0.648, -0.246).lineTo(-0.156, -0.246).lineTo(-0.216, 0.54).lineTo(-0.587, 0.54).lineTo(-0.57, 0.765).lineTo(0.553,... | 10 | 79 | 1.322497 |
train_78ef8676e278558f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.201, -1, -0.134), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.11).sweep(cq.Workplane('YZ').spline([(-0.599, -0.68), (-0.438, -0.535), (-0.278, -0.463), (-0.117, -0.463), (0.043, -0.535), (0.204, -0.68)]))
result = result.edges().chamfer(0.067)... | 13 | 283 | 0.196256 |
train_ec5787dc185c2c8e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.832, -0.291), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.744).workplane(offset=0.484).circle(0.663).workplane(offset=0.361).circle(0.583).workplane(offset=0.471).circle(0.502).workplane(offset=0.347).circle(0.422).loft()
result = result.edg... | 14 | 161 | 1.117185 |
train_2dc38d3202ad42ac | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.221, 0.069, -0.242), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.342, 0.273).lineTo(0.342, 0.273).lineTo(0.528, -0.273).lineTo(-0.528, -0.273).lineTo(-0.342, 0.273).close().revolve(angleDegrees=180, axisStart=(-0.342, 0.273), axisEnd=(0.342, 0... | 28 | 241 | 0.911342 |
train_44dc3485a958a546 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.418, -0.516, -0.226), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.165, 0.924).extrude(0.305)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.884, -0.47, 0.091), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.023, -0.01).threePointArc((-0.02... | 13 | 65 | 0.75469 |
train_05bc2a35b6cdbe9a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.313, -0.002, -0.261), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.22, -1.002).lineTo(-0.22, 0.481).threePointArc((-0.111, 0.582), (-0.22, 0.683)).lineTo(-0.22, 0.793).threePointArc((-0.159, 0.941), (-0.01, 1.002)).lineTo(0, 1.002).lineTo(0.01,... | 16 | 226 | 1.014943 |
train_da5eda99646c959a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.437, 0.399, -0.166), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.127, 1.125).extrude(0.016)
result = result.union(cq.Workplane(cq.Plane(origin=(0.371, -0.051, -0.141), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.016, -0.136).threePointArc((0.173,... | 4 | 64 | 0.360079 |
train_68eb63ef5992808d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1.046, -0.196, -0.056), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.603, 0.328).threePointArc((-0.812, 0.855), (-0.634, 1.392)).threePointArc((-0.3, 2.022), (0.308, 1.649)).threePointArc((0.482, 1.558), (0.628, 1.428)).threePointArc((0.74, 1.267... | 11 | 122 | 3.559079 |
train_1e4fb610b490e651 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.252, -0.098, 0.146), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.583, -0.117).threePointArc((-0.711, -0.244), (-0.583, -0.371)).lineTo(0.095, -0.371).threePointArc((0.144, -0.362), (0.185, -0.334)).lineTo(0.711, 0.191).threePointArc((0.711, 0.... | 9 | 59 | 0.271061 |
train_e2a9df98c876a5d9 | 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.945, 1.571).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.062, -0.11, -0.005), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.932, 1.513).lineTo(-0.932, -0.154).lineTo(0.712, -0.... | 5 | 32 | 5.128387 |
train_12bc30fcee3347bf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.028, 0.222), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.445, 0.26).lineTo(-0.182, 0.027).lineTo(-0.445, -0.26).lineTo(-0.066, -0.172).lineTo(0.445, 0.26).close().sweep(cq.Workplane('YZ').spline([(0.028, -0.412), (0.213, -0.291), (0.397, -0.2... | 5 | 45 | 0.269405 |
train_194269d3edcfc42d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.477, 0.289, 0.448), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.552, 0.272).lineTo(0.552, 0.065).lineTo(0.552, 0.623).lineTo(-0.552, 0.623).lineTo(-0.552, 0.272).lineTo(0.552, 0.272).close().extrude(0.765)
result = result.faces('<X').shell(-0.0... | 11 | 50 | 0.094569 |
train_b2f5dc3cc2072e9b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.153, -0.009, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.882, 0.067).lineTo(0.882, 0.008).lineTo(1, 0.008).lineTo(1, 0.126).lineTo(-1, 0.126).lineTo(-1, 0.008).lineTo(-0.882, 0.008).lineTo(-0.882, 0.067).lineTo(0.882, 0.067).close().extrude... | 4 | 148 | 0.122057 |
train_cb718c5be0c2db33 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.135, -0.595), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.447, -0.241).lineTo(0.446, 0.009).lineTo(0.446, 0.241).lineTo(0.123, 0.241).lineTo(-0.011, 0.128).lineTo(-0.162, 0).lineTo(-0.447, -0.241).lineTo(0.447, -0.241).close().sweep(cq.Work... | 7 | 40 | 0.221434 |
train_78bef4180bdc8a2e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.315, 0.107, -0.27), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.584, 0.479).lineTo(-0.584, 0.333).lineTo(-0.73, 0.333).lineTo(-0.73, 0.187).lineTo(-0.584, 0.187).lineTo(-0.584, 0.041).lineTo(0.584, 0.041).lineTo(0.73, 0.187).lineTo(0.73, 0.333... | 4 | 27 | 0.16952 |
train_97d4eaca25ec8098 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.519, 0.488, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1, 0.029).lineTo(-1, 0.577).lineTo(1, 0.577).lineTo(1, 0.029).lineTo(-1, 0.029).close().extrude(0.976)
result = result.edges().chamfer(0.17)
result = result.union(cq.Workplane(cq.Plane(... | 20 | 171 | 0.565987 |
train_3a611fdd59510b08 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.015, -0.016, -0.472), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.985, 0).lineTo(0.535, 0.864).lineTo(-0.5, 0.871).lineTo(-1.015, 0.009).lineTo(-0.468, -0.839).lineTo(0.527, -0.828).close().moveTo(0.001, 0.3).lineTo(-0.067, 0.397).lineTo(-0.041,... | 10 | 122 | 1.253035 |
train_d80e4fa368bc788e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.375, 0.008, -0.02), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.339, 0.338).extrude(0.085)
result = result.union(cq.Workplane(cq.Plane(origin=(0.375, 0.008, 0.065), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.088).extrude(0.012))
result = result.c... | 24 | 153 | 0.08885 |
train_975a2eae99c26a42 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.092, 0, -0.013), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.007, 0.5).lineTo(0.007, 0.488).lineTo(0.007, -0.5).lineTo(-0.007, -0.5).lineTo(-0.007, 0.5).close().sweep(cq.Workplane('YZ').spline([(-0.074, -0.022), (-0.034, -0.046), (0.006, -0.058... | 18 | 92 | 0.002599 |
train_20c00c6ff1cfb72c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.147, 0.304, 0.394), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.847, 0.484).extrude(0.25)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.434, 0.214, 0.456), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.348, 0.208).extrude(0.147))
result = res... | 22 | 125 | 0.520636 |
train_e974b634d7d61e22 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.391, -0.165, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.047, -0.238).threePointArc((-0.243, 0), (-0.047, 0.238)).lineTo(-0.047, 0.097).lineTo(0.047, 0.097).lineTo(0.047, 0.238).threePointArc((0.243, 0), (0.047, -0.238)).lineTo(0.047, -0.... | 9 | 50 | 0.116852 |
train_ed93eaa0f3909c6a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.101, 0.643, -0.166), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.442, 0.92).lineTo(-0.442, -0.712).threePointArc((0, -0.53), (0.442, -0.712)).lineTo(0.442, 0.92).close().extrude(1.105)
result = result.edges().chamfer(0.035)
result = result.unio... | 14 | 71 | 0.44568 |
train_9d9d8228a18b97d3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.507, 0.186, -0.222), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.348, 1.139).threePointArc((0.802, 0.734), (0.438, 0.246)).lineTo(-0.692, 0.031).lineTo(-0.802, 1.124).lineTo(0.348, 1.139).close().extrude(1.058)
result = result.edges().chamfer(0... | 15 | 67 | 1.480819 |
train_339ae9af4f1096d2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.217, -0.546), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.672, 1.217).lineTo(-0.672, -0.783).lineTo(0.672, -0.783).lineTo(0.672, -0.027).lineTo(-0.174, -0.027).lineTo(-0.174, 1.217).lineTo(-0.672, 1.217).close().extrude(1.092)
result = resu... | 10 | 209 | 1.432852 |
train_3538c75b998025d8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.478, 0.264, -0.106), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.602, 1.264).lineTo(0.602, 1.264).lineTo(0.602, -0.219).lineTo(0.464, -0.219).lineTo(0.464, 1.125).lineTo(-0.464, 1.125).lineTo(-0.464, -0.219).lineTo(-0.602, -0.219).lineTo(-0.60... | 4 | 38 | 0.56836 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.