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_1f5122bf61adc262 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.153, 0, -0.299), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.693, 0.337).extrude(0.46)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.84, -0.047, -0.106), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.319, 0.13).extrude(0.141))
result = result... | 13 | 57 | 0.20993 |
train_c2f407d30d6812cc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.498), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.404, 2).extrude(0.995)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.467, 0.161, 0.328), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.078).extrude(0.173))
result = result.cut(cq.Workpla... | 12 | 92 | 2.195212 |
train_1eceb080def7ceb0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.326), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.465).extrude(0.549)
result = result.union(cq.Workplane(cq.Plane(origin=(0, -0.186 + 0.037, 0.223), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.025).extrude(0.102))
result = result.union(c... | 10 | 128 | 0.500948 |
train_883a342025dc4aa5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0, 0.425), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.066, 0).lineTo(-0.066, 0.01).lineTo(0, 0.01).lineTo(0, 0).lineTo(0.066, 0).lineTo(0.066, -0.01).lineTo(-0.066, -0.01).lineTo(-0.066, 0).close().sweep(cq.Workplane('XZ').spline([(-0.373, ... | 1 | 9 | 0.001942 |
train_02ae319be621a593 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1, 0.294), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.236, 0).lineTo(-0.236, 0.071).lineTo(0.095, 0.071).lineTo(0.095, 0).lineTo(0.237, 0).lineTo(0.237, -0.071).lineTo(-0.237, -0.071).lineTo(-0.236, 0).close().sweep(cq.Workplane('YZ').splin... | 5 | 29 | 0.051224 |
train_02e99a28a0f1cf87 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.117, 0.096, -0.054), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.029, 0.255).lineTo(-0.029, 0.038).lineTo(0.029, 0.038).lineTo(0.029, 0.255).lineTo(-0.029, 0.255).close().revolve(angleDegrees=270, axisStart=(0, 0), axisEnd=(0.059, 0))
result =... | 10 | 85 | 0.191124 |
train_0e874fc4c09e40f5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.366, -0.327), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.737, 1.269).extrude(0.654)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.101, 0.413, -0.048), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.388, 0.321).extrude(0.182))
result = res... | 6 | 24 | 0.631855 |
train_552695d2b3617603 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.891, -0.097, -0.539), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.353, 0.052).lineTo(-0.283, -0.052).lineTo(0.283, -0.052).lineTo(0.353, 0.052).lineTo(-0.353, 0.052).close().sweep(cq.Workplane('XZ').spline([(-0.337, -0.677), (-0.179, -0.675),... | 5 | 59 | 0.188563 |
train_566e162a562c3051 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.493, 0.193), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1, 0.037).threePointArc((0.924, 0.002), (0.842, -0.01)).lineTo(-0.693, -0.01).lineTo(-0.693, -0.106).threePointArc((-0.707, -0.14), (-0.74, -0.153)).lineTo(-0.843, -0.153).threePointArc... | 1 | 16 | 0.028134 |
train_b95a5b819de9b4e8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.077), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.79, 2).extrude(0.123)
result = result.union(cq.Workplane(cq.Plane(origin=(0.499, -0.467, 0.045), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.075).extrude(0.031))
result = result.cut(cq.Workp... | 10 | 30 | 0.37561 |
train_72984d5e771d0d9b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.05, 0.032, -0.375), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.69, 1.542).extrude(0.602)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.062, -0.862, -0.314), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.306, 0.277).extrude(0.346))
result = r... | 10 | 36 | 0.56978 |
train_d9c2f8add1e8978d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.205, 0, -0.457), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.419, 2).extrude(0.914)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.205, 0, -0.594), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.842, 0.807).extrude(1.187))
result = result.union(cq... | 8 | 15 | 2.010489 |
train_14a6f885ad35431f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.046, 0, 0.136), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.483, -0.432).threePointArc((-0.007, 0.008), (0.483, 0.432)).threePointArc((0.007, -0.008), (-0.483, -0.432)).close().sweep(cq.Workplane('XZ').spline([(0.191, -0.362), (0.083, -0.204)... | 1 | 4 | 0.033911 |
train_f36fc8e2864b2678 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.242, -0.458, 0.368), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.302, -0.24).threePointArc((0, -0.542), (0.302, -0.24)).lineTo(0.302, 0.24).threePointArc((0, 0.542), (-0.302, 0.24)).lineTo(-0.302, -0.24).close().sweep(cq.Workplane('YZ').spline(... | 8 | 51 | 0.643736 |
train_f328eec349924a61 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.357), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.999, 1.929).extrude(0.648)
result = result.union(cq.Workplane(cq.Plane(origin=(0.1, 0.096, 0.289), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.8, 1.736).extrude(0.04))
result = result.union(cq... | 17 | 150 | 2.235768 |
train_0760f0b2c2f69a27 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.184, -0.237), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.602).extrude(0.192)
result = result.union(cq.Workplane(cq.Plane(origin=(0.1, -0.103, -0.045), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.8, 1.442).extrude(0.018))
result = result.unio... | 14 | 55 | 0.55533 |
train_4fefd4c163132efd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.233, 0, -0.365), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.533, 1.4).extrude(0.053)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.768, 0, -0.321), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.157, 0.473).extrude(0.153))
result = result.un... | 4 | 46 | 0.499168 |
train_79486a5b3b348515 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.001, -0.004, -0.403), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.999, 0.007).lineTo(0.714, 0.68).lineTo(-0.025, 0.946).lineTo(-0.687, 0.674).lineTo(-1.001, -0.006).lineTo(-0.65, -0.669).lineTo(0.015, -0.939).lineTo(0.698, -0.708).close().moveTo... | 13 | 201 | 1.213477 |
train_e1b20d2f1ff5fd47 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.232, -0.173, 0.101), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.013, 0.009).lineTo(-0.007, 0.022).lineTo(0.007, 0.022).lineTo(0.013, 0.009).lineTo(0.013, -0.022).lineTo(-0.013, -0.022).lineTo(-0.013, 0.009).close().sweep(cq.Workplane('XZ').s... | 11 | 66 | 0.09422 |
train_2fd27a65ecaf6046 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.722, 0.158, -0.397), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.093, 0.308).lineTo(-0.093, 0.123).lineTo(-0.278, 0.123).lineTo(-0.278, -0.062).lineTo(-0.093, -0.248).lineTo(-0.093, -0.062).lineTo(0.093, 0.123).lineTo(0.093, -0.248).lineTo(0.27... | 13 | 208 | 0.329773 |
train_5effe849a07f1ec0 | 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.795, 1.58).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.08, 0.399, 0.155), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.968, 0.823).extrude(0.465))
result = result.cut(cq.Workplan... | 8 | 81 | 4.727871 |
train_e76e070f574af929 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.13, -0.408), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.676).extrude(0.046)
result = result.union(cq.Workplane(cq.Plane(origin=(0.258, -0.042, -0.366), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.401).extrude(0.068))
result = result.union(... | 11 | 66 | 0.752392 |
train_99f79855dc12bc37 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.377).workplane(offset=0.362).circle(0.49).workplane(offset=0.446).circle(0.382).workplane(offset=0.401).circle(0.393).workplane(offset=0.364).circle(0.396).workplane(offset=0.426).circle(0.499... | 3 | 16 | 0.963331 |
train_71042a3d8c321acd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.508, -0.134, 0.033), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.289, 0.357).lineTo(0.289, 0.357).lineTo(0.289, -0.221).lineTo(-0.289, -0.221).lineTo(-0.289, 0.357).close().extrude(0.248)
result = result.edges().fillet(0.079)
result = result.c... | 25 | 171 | 0.373564 |
train_e58fb53e5ad3a375 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.116, 0.526, -0.104), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.053, 0.949).extrude(0.29)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.063, 0.573, 0.184), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.948, 0.854).extrude(0.041))
result = r... | 17 | 83 | 0.302285 |
train_c76498776059a486 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.203, -0.07, -0.338), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.086, 0.109).lineTo(0.086, -0.014).lineTo(-0.086, -0.014).lineTo(-0.086, 0.109).lineTo(0.086, 0.109).close().revolve(angleDegrees=360, axisStart=(0.086, 0.109), axisEnd=(0.086, -0.... | 17 | 250 | 0.055663 |
train_1c8007227b3910b6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.212), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.948).extrude(0.424)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.212, -1.512), normal=(1, 0, 0), xDir=(0, 1, 0))).moveTo(-0.149, -0.102).lineTo(-0.149, 0.102).lineTo(0.149, 0.10... | 13 | 39 | 0.659393 |
train_4de7861aebe7395c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.076, -0.053, -0.234), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.27, 0.202).threePointArc((-0.263, 0.226), (-0.244, 0.243)).threePointArc((0, 0.298), (0.244, 0.243)).threePointArc((0.263, 0.226), (0.27, 0.202)).lineTo(0.27, 0.027).lineTo(-0.2... | 26 | 278 | 0.230719 |
train_e75cfc47349ee727 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.466, 1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.212, 1.466).lineTo(0, 1.466).lineTo(0, 1.072).lineTo(0.455, 1.072).lineTo(0.455, 0.859).lineTo(0, 0.859).lineTo(0, -0.536).lineTo(-0.455, -0.536).lineTo(-0.455, 0.253).lineTo(-0.139, 0.25... | 13 | 129 | 0.88447 |
train_75395c18ab104494 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.847, 0, -0.355), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.277, 0.248).extrude(0.32)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.814, 0.079, -0.06), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.024, 0.034).extrude(0.415))
result = resul... | 5 | 31 | 0.031319 |
train_a6b34bdddbc1f845 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.193, 0.094, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.471, 0.562).extrude(1.629)
result = result.union(cq.Workplane(cq.Plane(origin=(0.202, 0.129, -0.6), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.19).extrude(0.935))
result = result.union... | 18 | 67 | 0.470226 |
train_364d96ee316ddb21 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.061, -0.605), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.458, 1.877).extrude(1.155)
result = result.union(cq.Workplane(cq.Plane(origin=(0.681, 0.238, -0.053), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.063, 0.462).threePointArc((0.055, 0.40... | 2 | 14 | 3.1971 |
train_44f174c5a07cdf5a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.211, -0.235, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.974, 0.558).lineTo(-1, 0.558).lineTo(-1, 0.08).lineTo(-0.987, 0.08).lineTo(-0.987, 0.082).lineTo(-0.578, 0.271).lineTo(-0.987, 0.271).lineTo(-0.987, 0.556).lineTo(-0.974, 0.367).lin... | 10 | 75 | 1.170777 |
train_2d6cb402a600c7e3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.079, 0.002, 0.454), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.647, -0.589).lineTo(1.144, 0.014).lineTo(0.621, 0.632).lineTo(0.206, 1.124).lineTo(-0.181, 0.632).lineTo(-1.144, 0.632).lineTo(-0.668, 0.014).lineTo(-0.205, -0.589).lineTo(0.206, ... | 11 | 72 | 0.721721 |
train_acd176f64e8c48e9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.766, 0.596).lineTo(0.596, 0.596).lineTo(0.596, -0.766).lineTo(0.766, -0.766).lineTo(0.766, 0.766).lineTo(-0.766, 0.766).lineTo(-0.766, 0.596).close().extrude(2)
result = result.edges().fillet... | 4 | 46 | 0.848074 |
train_7e34865dde363ad9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.071, 0.011, 0.513), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.512, -0.419).lineTo(-0.512, 0.561).lineTo(-0.347, 0.561).threePointArc((-0.006, 0.493), (0.283, 0.3)).lineTo(0.512, 0.071).lineTo(0.283, -0.158).threePointArc((-0.006, -0.352), (-... | 10 | 117 | 1.181669 |
train_e1f0bf20ff6dd412 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.418, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.922, -0.538).lineTo(-0.922, 1.373).lineTo(0.922, 1.373).lineTo(0.922, -0.538).lineTo(-0.922, -0.538).close().extrude(2)
result = result.edges().chamfer(0.281)
result = result.cut(cq.Work... | 8 | 53 | 5.32499 |
train_6605360775dbfe98 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.129, 0, -0.034), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.328).sweep(cq.Workplane('XZ').spline([(-1.028, -0.144), (-0.372, -0.465), (0.335, -0.465), (0.99, -0.144), (0.99, 0.202), (0.335, 0.523), (-0.372, 0.523), (-1.028, 0.202)]))
result =... | 3 | 13 | 0.171956 |
train_e3dbc2108f1fd8f3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.382, -0.022, -0.095), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.17, 0.047).lineTo(-0.17, 0.029).lineTo(-0.162, 0.029).lineTo(-0.162, -0.029).lineTo(-0.17, -0.029).lineTo(-0.17, -0.047).lineTo(0.17, -0.047).lineTo(0.17, 0.047).lineTo(-0.17, ... | 7 | 45 | 0.064667 |
train_dab29322ca067423 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.496), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.724).extrude(0.992)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.044, 0.594, -0.397), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.282).extrude(0.467))
result = result.cut(cq.Workp... | 8 | 27 | 2.766983 |
train_1a8d91dae0b2c62c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.265, -0.812, 0.058), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.396, -0.038).lineTo(-0.396, 0.038).lineTo(0.358, 0.038).threePointArc((0.396, 0), (0.358, -0.038)).lineTo(-0.396, -0.038).close().sweep(cq.Workplane('XZ').spline([(0.353, 0.015)... | 7 | 106 | 0.780946 |
train_bf43b53646d131f2 | 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.201, 1.665).extrude(1.511)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.015, -0.15, 0.204), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.175).extrude(0.315))
result = result.cut(cq.Workpla... | 4 | 19 | 2.827022 |
train_67783c197e7417dc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.199, -0.04, 0.393), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.521, 0.193).lineTo(-0.532, 0.162).lineTo(-0.196, 0.139).lineTo(0.179, 0.113).lineTo(0.151, 0.193).lineTo(0.495, 0.193).lineTo(0.532, 0.298).lineTo(0.179, 0.274).lineTo(-0.196, 0.2... | 3 | 17 | 0.251628 |
train_97137c21b40dda2a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.611, 0.167, 0.183), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.367, 0.138).threePointArc((0, -0.392), (0.367, 0.138)).threePointArc((0, 0.392), (-0.367, 0.138)).close().workplane(offset=0.094).moveTo(-0.185, 0.07).threePointArc((0, -0.197), ... | 12 | 63 | 0.121186 |
train_012004a7c8daaa86 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.147, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.555, -0.6).lineTo(-0.54, -0.415).lineTo(-0.107, -0.415).lineTo(-0.121, -0.231).lineTo(-0.525, -0.231).lineTo(-0.476, 0.415).lineTo(-0.462, 0.6).lineTo(0.462, 0.6).lineTo(0.476, 0.415).l... | 5 | 29 | 1.096805 |
train_928a89ceb61500b0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.31, 0.009, 0.222), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.157, 0.041).lineTo(-0.157, 0.016).threePointArc((-0.155, 0.007), (-0.15, 0)).lineTo(-0.116, -0.034).threePointArc((-0.108, -0.04), (-0.099, -0.041)).lineTo(0.099, -0.041).threePoi... | 9 | 396 | 0.048714 |
train_fbae425d9eeb65a6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.675, 0.39, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.165, 1.675).lineTo(-0.312, 1.675).lineTo(-0.312, 1.479).lineTo(-0.165, 1.479).lineTo(-0.165, -0.143).lineTo(0.312, -0.143).lineTo(0.312, 0.053).lineTo(0.165, 0.053).lineTo(0.165, 1.479... | 10 | 95 | 0.428936 |
train_c65c3158318a6e7c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.156, 0.225, 0.37), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.37, -0.332).lineTo(-0.037, -0.332).threePointArc((0.294, 0), (-0.037, 0.332)).lineTo(-0.737, 0.332).threePointArc((-0.452, 0.655), (-0.037, 0.775)).threePointArc((0.737, 0), (-0.03... | 12 | 64 | 0.773252 |
train_3983fa4e514cfcff | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.822, 0.078, 0.03), normal=(0, 0, 1), xDir=(1, 0, 0))).lineTo(0.055, -0.03).threePointArc((-0.049, -0.138), (-0.05, -0.168)).lineTo(-0.178, -0.168).threePointArc((-0.139, -0.211), (-0.081, -0.207)).lineTo(0.178, -0.168).lineTo(0.178, 0.211).clos... | 2 | 16 | 0.018577 |
train_89944d5313a0b4c2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.475, 0.199, -0.184), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.016, 0.504).lineTo(-0.097, 0).lineTo(-0.097, -0.364).lineTo(-0.209, -0.364).lineTo(-0.209, -0.504).lineTo(0.128, -0.504).lineTo(0.128, -0.364).lineTo(0.209, -0.364).lineTo(0.128,... | 11 | 77 | 0.292826 |
train_9e6ef6fcb112201e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.4), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1, 0.783).lineTo(1, -0.783).lineTo(-0.993, -0.783).lineTo(-0.993, -0.181).lineTo(-1, -0.177).lineTo(-0.993, -0.168).lineTo(-0.993, 0.783).lineTo(1, 0.783).close().workplane(offset=0.456).moveT... | 10 | 51 | 0.643988 |
train_af40df4bd77502b8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.505, -0.035, -0.505), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.505, 0.298).lineTo(0.505, -0.229).lineTo(-0.505, -0.229).lineTo(-0.505, 0.298).lineTo(0.505, 0.298).close().revolve(angleDegrees=180, axisStart=(0.505, 0.298), axisEnd=(0.505, 0... | 17 | 74 | 0.787781 |
train_6c59ad13e3efc180 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.911, 0, 0.124), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.008, -0.048).lineTo(0.014, -0.053).lineTo(0.024, -0.063).lineTo(0.063, -0.024).lineTo(0.053, -0.014).lineTo(0.02, 0.02).lineTo(-0.014, 0.053).lineTo(-0.024, 0.063).lineTo(-0.063, 0.024)... | 1 | 13 | 0.028632 |
train_d11c9926cbd520b4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.771, 0.762, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.717, 1.761).lineTo(-1, 0.045).lineTo(-1, -0.238).lineTo(0.2, 0.962).lineTo(0.2, 0.895).lineTo(1, 0.895).lineTo(1, 1.761).lineTo(0.717, 1.761).close().extrude(1.541)
result = result.cut... | 2 | 14 | 1.341091 |
train_d720a76014c6cca6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.036, 0.901, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.053).sweep(cq.Workplane('XY').spline([(-0.61, -0.146), (-0.214, -0.48), (0.212, -0.48), (0.608, -0.146), (0.608, 0.212), (0.212, 0.546), (-0.214, 0.546), (-0.61, 0.212)]))
| 1 | 3 | 0.00391 |
train_c495ec1db3a49908 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.174), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.826, 0.85).lineTo(0.826, 0.353).lineTo(-0.826, 0.353).lineTo(-0.826, 0.85).lineTo(0.826, 0.85).close().revolve(angleDegrees=360, axisStart=(0, 0), axisEnd=(0.539, 0))
result = result.edges... | 4 | 13 | 3.073081 |
train_a5dc28f2dce67122 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.496, 0.129, -0.2), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.418, 0.517).extrude(0.078)
result = result.union(cq.Workplane(cq.Plane(origin=(0.496, 0.129, -0.123), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.124).extrude(0.009))
result = result.u... | 38 | 320 | 0.559967 |
train_dda31803f2b288f0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.164, -0.909, -0.641), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.697, 0.69).lineTo(-0.916, 0.599).lineTo(-0.38, 0.062).lineTo(-0.289, 0.281).lineTo(0.289, 0.281).lineTo(0.38, 0.062).lineTo(0.916, 0.599).lineTo(0.916, 1.358).lineTo(0.697, 1.26... | 7 | 153 | 1.724931 |
train_10015f5568e084c7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.563, -0.153, -0.227), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.029).sweep(cq.Workplane('YZ').spline([(-0.153, -0.227), (-0.092, -0.178), (-0.031, -0.178), (0.03, -0.227)]))
result = result.edges().chamfer(0.022)
result = result.union(cq.Wor... | 9 | 78 | 0.052206 |
train_5cbc15b1856c8e15 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.082, -0.895), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.095).workplane(offset=0.064).circle(0.103).workplane(offset=0.053).circle(0.086).workplane(offset=0.048).circle(0.088).loft()
result = result.edges().fillet(0.04)
result = result.unio... | 4 | 14 | 0.007291 |
train_554b3bd771dbf2e9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.284, 1).lineTo(-0.284, 0.31).lineTo(0.284, 0.31).lineTo(0.284, 1).lineTo(-0.284, 1).close().revolve(angleDegrees=270, axisStart=(0, 0), axisEnd=(0.742, 0))
result = result.cut(cq.Workplane(cq... | 5 | 50 | 1.064965 |
train_f2f9de545bd809ed | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.218), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.038).extrude(0.133)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.633, 0, -0.116), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.089).extrude(0.333))
result = result.cut(cq.Workpla... | 7 | 45 | 0.267515 |
train_4c7fcb883e2adc90 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.214, -0.199), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.155, 1.192).extrude(0.222)
result = result.union(cq.Workplane(cq.Plane(origin=(0.093, 0.899, -0.12), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.652, 0.202).extrude(0.042))
result = result... | 10 | 82 | 0.398206 |
train_1fc4222cb4bb6935 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.058, -0.267, 0.449), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.165).sweep(cq.Workplane('XY').spline([(-0.058, 0.11), (0.062, -0.067), (0.183, -0.127), (0.304, -0.067), (0.425, 0.11)]))
result = result.edges().chamfer(0.015)
result = result.u... | 14 | 111 | 0.225476 |
train_f9c33b72b475a8e7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.29, 0.082, -0.267), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.696, -0.62).lineTo(0.717, -0.611).lineTo(0.71, 0.619).lineTo(-0.707, 0.613).close().moveTo(-0.023, 0.126).lineTo(0.023, 0.124).lineTo(0.023, 0.024).lineTo(0.13, 0.024).lineTo(0.12... | 19 | 358 | 0.453124 |
train_e79169d61fd47001 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.122, 0.078, -0.664), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.091, 0.009).threePointArc((0.113, 0.061), (0.091, 0.113)).lineTo(-0.092, 0.113).threePointArc((-0.113, 0.061), (-0.092, 0.009)).lineTo(0.091, 0.009).close().extrude(0.244)
result ... | 6 | 30 | 0.008762 |
train_c8e51f526a1b218a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.087, -0.18, -0.19), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.81, 0.013).lineTo(0.81, 0.13).lineTo(-0.81, 0.13).lineTo(-0.81, 0.005).lineTo(0.81, 0.005).lineTo(0.81, 0.013).close().extrude(0.249)
result = result.edges().chamfer(0.058)
result ... | 10 | 63 | 0.035331 |
train_3895532175326b91 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.152, -0.621, 0.099), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.166, 0.511).lineTo(-0.434, 0.316).threePointArc((-0.537, 0), (-0.434, -0.316)).threePointArc((-0.166, -0.511), (0.166, -0.511)).threePointArc((0.434, -0.316), (0.537, 0)).lineTo(0.... | 4 | 19 | 0.553771 |
train_11fc97d67b17b252 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.034, 0.521, -0.224), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.568, 0.678).extrude(0.371)
result = result.union(cq.Workplane(cq.Plane(origin=(0.379, 0.636, -0.099), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.143, 0.313).extrude(0.165))
result = r... | 23 | 145 | 0.226375 |
train_b587b3daf199015d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.008, 0.114, -0.139), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.285, 0.317).extrude(0.21)
result = result.union(cq.Workplane(cq.Plane(origin=(0.077, 0.114, -0.153), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, -0.067).lineTo(-0.085, 0.041).lineT... | 19 | 194 | 0.158833 |
train_2c28f3783b38ef1b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.849, -0.704, -0.018), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.753, -0.151).lineTo(0.516, -0.151).lineTo(0.753, 0.386).lineTo(0.468, 1.849).lineTo(0.127, 1.849).lineTo(-0.753, -0.151).close().extrude(1.407)
result = result.edges().chamfer(0... | 14 | 149 | 2.307863 |
train_42502d68734bdd6c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.728, -0.864), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.599, 1.734).lineTo(0.599, 0.534).lineTo(-0.599, 0.534).lineTo(-0.599, 1.734).lineTo(0.599, 1.734).close().revolve(angleDegrees=90, axisStart=(0, 0), axisEnd=(0.759, 0))
result = resul... | 6 | 39 | 2.300975 |
train_bca8a188c9c89e84 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.534, 0, 0.01), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.511, -0.32).lineTo(0.511, 0.32).lineTo(-0.511, 0.32).lineTo(-0.511, -0.32).lineTo(0.511, -0.32).close().revolve(angleDegrees=270, axisStart=(0.511, -0.32), axisEnd=(0.511, 0.32))
resul... | 6 | 50 | 0.614935 |
train_d05de1d8c1de3a5f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.267, 0.24, -0.102), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.223, 0.443).lineTo(-0.223, 1.267).lineTo(0.223, 1.267).lineTo(0.223, 0.443).lineTo(-0.02, 0.443).lineTo(-0.02, -0.733).lineTo(-0.223, -0.733).lineTo(-0.223, 0.443).close().extrude... | 10 | 67 | 0.134693 |
train_a61b72d5cbcdc665 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.323, 0.044, 0.07), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.026, 0.305).threePointArc((-0.075, 0.349), (-0.125, 0.305)).lineTo(-0.158, 0.044).threePointArc((-0.159, 0.034), (-0.158, 0.025)).lineTo(-0.125, -0.304).threePointArc((-0.043, -0.2... | 8 | 63 | 0.418166 |
train_f723c182a55b48d5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.177, -1, -0.267), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.398, 0.363).threePointArc((0.403, 0.108), (0.33, -0.136)).lineTo(-0.403, 0.218).lineTo(0.398, 0.363).close().extrude(1.597)
result = result.edges().fillet(0.08)
result = result.cut(c... | 27 | 139 | 0.321185 |
train_a01d1aa20fca8a8c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.017, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.661, 0.42).extrude(1.62)
result = result.union(cq.Workplane(cq.Plane(origin=(0.177, -0.21, -0.763), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.018).extrude(0.23))
result = result.cut(cq.Wor... | 9 | 228 | 0.470364 |
train_727d8f4784307c05 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.026, -0.064, -0.089), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.228, -0.156).lineTo(0.228, 0.15).lineTo(-0.235, 0.15).lineTo(-0.235, 0.156).lineTo(0.235, 0.156).lineTo(0.235, -0.156).lineTo(0.228, -0.156).close().sweep(cq.Workplane('YZ').spli... | 5 | 30 | 0.086675 |
train_481b27f12959fdb5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.077, 0, -0.646), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.847, 0.847).extrude(1.128)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.006, 0.4, -0.293), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.025).extrude(0.136))
result = result.cut(cq... | 10 | 29 | 1.842841 |
train_783d7373e5101348 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.706, 0, 0.67), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.294, 0.306).threePointArc((-0.158, 0.186), (-0.022, 0.307)).lineTo(-0.061, -0.073).threePointArc((-0.044, -0.125), (0.005, -0.148)).lineTo(0.228, -0.156).threePointArc((0.294, -0.224), ... | 1 | 10 | 0.06857 |
train_d7518ea9d223bca6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.739, 0, 0.03), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.039, -0.021).threePointArc((0.002, 0.033), (-0.02, 0.094)).lineTo(-0.046, 0.261).lineTo(-0.063, 0.261).lineTo(-0.067, 0.261).lineTo(-0.09, 0.261).lineTo(-0.049, -0.021).threePointArc((-... | 5 | 51 | 0.028421 |
train_fb9eb61083ce6d1d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.098, 0.112, -0.109), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.021, 0.023).threePointArc((0.002, 0.006), (-0.021, -0.006)).threePointArc((-0.001, -0.015), (0.021, -0.018)).lineTo(0.021, 0.023).close().extrude(0.093)
result = result.edges().fi... | 4 | 58 | 0.019455 |
train_b2b5433cba0ff938 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.436), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.784, 0.986).extrude(1.436)
result = result.union(cq.Workplane(cq.Plane(origin=(0.311, 0.205, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.805, 0.358).extrude(0.608))
result = result.cut(cq... | 9 | 99 | 2.261829 |
train_5cb4f0eafb18ea9d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.088, -0.632, 0.32), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.385).sweep(cq.Workplane('XY').spline([(-0.088, -1.319), (0.194, -1.509), (0.475, -1.623), (0.757, -1.661), (1.038, -1.623), (1.32, -1.509), (1.601, -1.319)]))
result = result.edges... | 9 | 48 | 0.33635 |
train_86498438c54b5ead | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(1, 0.644).lineTo(0.999, 0.667).lineTo(-1, 0.576).lineTo(-0.999, 0.553).lineTo(-0.601, 0.571).lineTo(-0.601, 0.217).lineTo(-0.578, 0.216).lineTo(0.149, 0.183).lineTo(0.149, 0.606).lineTo(0.172, 0.... | 16 | 186 | 1.193115 |
train_4f60690da1d253de | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.176, 0.249, 0.124), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.151, 1.501).extrude(0.151)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.116, 0.144, 0.188), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.128, 1.801).extrude(0.044))
result = resul... | 6 | 39 | 0.363219 |
train_892f4326ec634491 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.034, 0.381), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.514, 0.099).lineTo(0.514, 0.929).threePointArc((0, -0.929), (-0.514, 0.929)).lineTo(-0.514, 0.099).lineTo(0.514, 0.099).close().extrude(0.763)
result = result.edges().fillet(0.074)
| 2 | 26 | 1.647864 |
train_f034e4b6ba04cb17 | 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.717, 0.426).extrude(0.057)
result = result.union(cq.Workplane(cq.Plane(origin=(0.031, 0, -0.958), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.085, 0.307).extrude(0.156))
result = result.union(cq.W... | 4 | 16 | 0.02767 |
train_5c6b72c660e02a8e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.199, -0.025, 0.356), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.189, 0.842).lineTo(-0.801, 0.521).lineTo(-0.801, -0.521).threePointArc((-0.358, -0.842), (0.189, -0.842)).threePointArc((0.632, -0.521), (0.801, 0)).lineTo(0.189, 0.842).close().e... | 9 | 111 | 0.704498 |
train_50bcb2a9ab01dfc4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.02, -0.464, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.013, -0.501).threePointArc((0.013, 0.02), (-0.013, 0.541)).lineTo(-0.013, -0.501).close().extrude(0.04)
result = result.edges().chamfer(0.005)
result = result.union(result.mirror('XZ'... | 7 | 60 | 0.00109 |
train_6ef6e3fe4c8f3925 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.126, -0.248), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.45, 1.748).extrude(0.496)
result = result.union(cq.Workplane(cq.Plane(origin=(0.015, -0.867, -0.16), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.496, 0.266).extrude(0.171))
result = result... | 5 | 18 | 1.120498 |
train_f49e634633f159ca | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.391, 0.24, -0.445), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.219, 1.219).extrude(0.657)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.33, 0.301, 0.205), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.549).extrude(0.117))
result = result.... | 17 | 104 | 0.83076 |
train_ef7033522f0c854a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.002, -0.69, -0.14), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.125, 0.108).lineTo(0.125, 0.108).lineTo(0.119, 0.105).lineTo(0.044, 0.066).lineTo(0.001, -0.013).lineTo(0.001, -0.004).lineTo(-0.035, 0.063).lineTo(-0.041, 0.066).lineTo(-0.119, ... | 8 | 96 | 0.172404 |
train_88c630a2a970c46b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.064, -0.156), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.268).extrude(0.312)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.635, 0.342, -0.165), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.104, 0.129).extrude(0.375))
result = result.cut(... | 13 | 50 | 0.731331 |
train_4deb7beeb553b434 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.689, -0.211), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.088, 1.413).threePointArc((-0.729, 0.689), (-0.088, -0.035)).threePointArc((0, -0.04), (0.088, -0.035)).threePointArc((0.729, 0.689), (0.088, 1.413)).threePointArc((0, 1.418), (-0.08... | 11 | 38 | 2.617938 |
train_a62f4cbe990ac5cf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.557, 0.901, -0.027), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.145, 0.118).threePointArc((0.456, 0.247), (0.327, -0.064)).lineTo(0.327, -0.247).lineTo(-0.274, -0.247).threePointArc((-0.456, -0.064), (-0.274, 0.118)).lineTo(0.145, 0.118).close... | 1 | 7 | 0.79432 |
train_a3b78d88cc29c5e6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.546), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.988).extrude(1.141)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.436, 0, -0.219), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.061).extrude(0.488))
result = result.cut(cq.Workplane... | 17 | 114 | 2.101852 |
train_482b04e8b4715214 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.599, -0.071, -0.133), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.801, 0.576).extrude(0.151)
result = result.union(cq.Workplane(cq.Plane(origin=(0.599, -0.028, 0.016), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.534, 0.547).extrude(0.022))
result = ... | 21 | 106 | 0.231408 |
train_df0559f24bdfb600 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.939).workplane(offset=0.414).circle(0.736).workplane(offset=0.339).circle(0.482).workplane(offset=0.436).circle(0.439).workplane(offset=0.346).circle(0.211).workplane(offset=0.464).circle(0.00... | 1 | 3 | 1.823409 |
train_baf69a9c42da34c3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.174, -0.808, -0.759), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.008, -0.016).lineTo(-0.005, -0.016).lineTo(-0.005, -0.014).lineTo(-0.006, -0.009).lineTo(-0.006, 0.018).lineTo(-0.005, 0.022).lineTo(-0.005, 0.023).threePointArc((-0.004, 0.023)... | 9 | 159 | 0.724348 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.