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_66e1b65061502616 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.042, 0.209, 0.272), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.287).sweep(cq.Workplane('YZ').spline([(0.279, 0.063), (-0.288, 0.078), (-0.572, -0.127), (-0.319, -0.343), (0.261, -0.365), (0.597, -0.156)]))
result = result.union(cq.Workplane(cq.... | 21 | 51 | 0.7061 |
train_0d144c410fbdb07d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.498, 1.406, 0.032), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.856, 0.747).lineTo(-1.084, 0.856).lineTo(-0.507, 2.538).lineTo(1.084, 1.772).lineTo(0.128, 0.273).lineTo(-0.098, 0.383).lineTo(-0.856, 0.747).close().extrude(0.996)
result = resul... | 11 | 101 | 1.692941 |
train_1316c1b36aeeaf8f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.117, -0.798), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.677, 1.453).extrude(1.596)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.284, -0.793, -0.538), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.595, 0.415).extrude(0.374))
result = res... | 11 | 101 | 3.613674 |
train_ebf42cc064679f7c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.033, -0.059), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.116, 0.085).threePointArc((-0.108, 0), (-0.116, -0.085)).lineTo(0.116, -0.085).lineTo(0.116, 0.085).lineTo(-0.116, 0.085).close().sweep(cq.Workplane('YZ').spline([(0.315, -0.164), (... | 3 | 41 | 0.019295 |
train_cda8836f4b0a4366 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.236, 0.001, 0.719), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.476, 0.132).threePointArc((0.181, 0.05), (-0.031, -0.172)).lineTo(-0.476, 0.172).lineTo(0.476, 0.132).close().sweep(cq.Workplane('XZ').spline([(0.236, 0.278), (0.341, 0.37), (0.273,... | 14 | 49 | 0.159295 |
train_4f47a3f7a18a2fde | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.325), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.992).extrude(0.65)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.314, -0.213, -0.328), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.072).extrude(0.117))
result = result.cut(cq.Workpl... | 7 | 31 | 2.216605 |
train_a4df6c0f03fb176e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.348), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.064, 2).extrude(0.695)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.438, -0.342, -0.278), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.197, 0.915).extrude(0.419))
result = result.cut(cq.... | 18 | 106 | 1.316553 |
train_153c4932e11c1e11 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.115, 0.009, 0.096), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.076, 0.011).lineTo(-0.043, 0.03).lineTo(0.076, 0.03).lineTo(0.076, -0.03).lineTo(-0.076, -0.03).lineTo(-0.076, 0.011).close().sweep(cq.Workplane('XZ').spline([(-0.463, 0.057), (-0.... | 17 | 128 | 0.012206 |
train_fd19394fbf812057 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.273, 0.32, -0.216), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.115, 0.242).lineTo(-0.115, 0.016).lineTo(0.003, 0.016).threePointArc((0.115, 0.129), (0.003, 0.242)).lineTo(-0.115, 0.242).close().extrude(0.231)
result = result.edges().chamfer(0... | 7 | 38 | 0.31595 |
train_b5b26ea7a2fef2e8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.583, -0.056, 0.229), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.323, -0.443).lineTo(-0.323, 0.443).lineTo(0.323, 0.443).lineTo(0.323, -0.443).lineTo(-0.323, -0.443).close().workplane(offset=0.131).moveTo(-0.358, -0.491).lineTo(-0.358, 0.491)... | 11 | 114 | 0.265904 |
train_c7f2e7437382666c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.019, 0.433, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.909, -0.381).lineTo(-0.824, -0.297).lineTo(0.125, -0.297).lineTo(0.21, -0.381).lineTo(1, -0.381).lineTo(1, -0.297).lineTo(0.244, -0.297).lineTo(0.152, -0.207).lineTo(-0.35, 0.381).line... | 1 | 26 | 15.213621 |
train_9ba847c004661587 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.952, -0.3, 0.494), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, 0.048).lineTo(0.01, 0.038).lineTo(0.026, 0.038).lineTo(0.024, 0.024).lineTo(0.048, 0).lineTo(0.048, -0.048).lineTo(0.009, -0.048).lineTo(0.009, -0.028).lineTo(-0.008, -0.028).line... | 1 | 29 | 0.007087 |
train_89711afd007a565c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.364, 0.176, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.192, -0.291).lineTo(0.192, -0.291).lineTo(0.192, -0.505).lineTo(0.225, -0.505).lineTo(0.225, -0.449).lineTo(0.271, -0.449).lineTo(0.271, -0.164).lineTo(0.214, -0.107).lineTo(0.214, 0.... | 1 | 20 | 0.146956 |
train_8db625dce08eef79 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.124, -0.292, -0.169), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.352, 1.318).extrude(0.124)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.102, -0.16, -0.046), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.119).extrude(0.038))
result = res... | 18 | 166 | 0.335116 |
train_b453f0be5ae9306f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.151, -0.768), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.706, 1.697).extrude(1.536)
result = result.union(cq.Workplane(cq.Plane(origin=(0.372, 0.842, -0.337), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.609, 0.316).extrude(0.51))
result = resul... | 4 | 76 | 4.335349 |
train_09ceb2a1023318eb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.535, 0.191, 0.146), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.528).sweep(cq.Workplane('XZ').spline([(-0.535, 0.146), (-0.05, -0.156), (0.435, -0.156), (0.921, 0.146)]))
result = result.edges().chamfer(0.136)
result = result.union(cq.Workplan... | 11 | 53 | 1.08803 |
train_a971eab9820c588e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.534, -0.019, -0.101), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.13, -0.13).lineTo(-0.416, -0.06).threePointArc((-0.42, 0), (-0.416, 0.06)).lineTo(-0.13, 0.13).lineTo(-0.138, 0.096).threePointArc((-0.119, 0.119), (-0.096, 0.138)).threePointA... | 9 | 139 | 0.702757 |
train_0d7789d7e1de8c1c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.248, -0.292, -0.086), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.752, 0.035).lineTo(-0.752, 0.072).lineTo(-0.527, 0.072).threePointArc((0, 0.53), (0.527, 0.072)).lineTo(0.752, 0.072).lineTo(0.752, 0.035).lineTo(0.494, 0.035).threePointArc((0,... | 10 | 141 | 0.042133 |
train_4fd66b48a6e94a79 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1, -0.48), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.33).sweep(cq.Workplane('YZ').spline([(-0.17, -0.71), (0.086, -0.488), (0.341, -0.362), (0.597, -0.373), (0.852, -0.479)]))
result = result.edges().chamfer(0.211)
result = result.cut(cq.Wo... | 5 | 50 | 0.321321 |
train_584b5039c8ca58f1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.843), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.918, 2).extrude(1.686)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.294, -0.619, 0.073), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.188).extrude(0.297))
result = result.edges().fille... | 21 | 87 | 4.275183 |
train_eeab7bd89b911f41 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.857, -0.396, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.539, -0.604).lineTo(0.539, 0.604).lineTo(0.51, 0.587).lineTo(0.504, 0.583).lineTo(-0.476, 0.017).threePointArc((-0.539, 0), (-0.476, -0.017)).lineTo(0.51, -0.587).lineTo(0.539, -0.60... | 3 | 21 | 0.491351 |
train_28d90ddfcd9cba2e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.201, 0.464, -0.166), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.53, 0.011).lineTo(0.387, 0.369).lineTo(0.006, 0.536).lineTo(-0.387, 0.373).lineTo(-0.525, -0.003).lineTo(-0.352, -0.374).lineTo(0.022, -0.528).lineTo(0.365, -0.381).close().moveTo... | 12 | 180 | 0.315834 |
train_0e4a03301f6a9a42 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.087, 0.639, -0.781), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.219).sweep(cq.Workplane('XY').spline([(0.087, 1.267), (0.508, 1.493), (0.928, 1.568), (1.349, 1.493), (1.77, 1.267)]))
result = result.edges().chamfer(0.128)
result = result.union... | 3 | 8 | 0.148918 |
train_1ef9ba3915f91419 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.352, 0, -0.221), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.925).workplane(offset=0.539).circle(0.749).workplane(offset=0.521).circle(0.841).loft()
result = result.edges().fillet(0.316)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.177,... | 9 | 36 | 1.819073 |
train_984481d2cb4f49a9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1.189, 0, -0.342), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.069, 1.347).lineTo(0.342, 1.19).lineTo(0.615, 1.032).lineTo(0.523, 0.189).lineTo(0.024, 0.639).lineTo(-0.615, 0.847).lineTo(0.069, 1.347).close().revolve(angleDegrees=360, axisStart=(... | 15 | 5 | 1.633917 |
train_f99143633c25de04 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.348, -0.346, -0.326), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.564, 0.758).threePointArc((0.234, 1.318), (0.571, 0.403)).threePointArc((0.526, 0.342), (0.475, 0.287)).lineTo(-0.571, -0.987).lineTo(-0.564, 0.71).lineTo(-0.564, 0.758).close()... | 16 | 66 | 2.242327 |
train_04c8bbb61905e113 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0, -1), normal=(0, 0, -1), xDir=(1, 0, 0))).lineTo(0, 0.194).lineTo(2.002, 0.194).lineTo(2.002, -0.194).lineTo(0, -0.194).close().revolve(angleDegrees=90, axisStart=(0, 0), axisEnd=(0, 0.174))
result = result.edges().fillet(0.076)
result = res... | 10 | 34 | 1.054002 |
train_d93c0cf501242eb0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.602, 0.378, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1, 0.102).threePointArc((0, 1.102), (1, 0.102)).lineTo(0.989, 0.102).threePointArc((0, 1.091), (-0.989, 0.102)).lineTo(-1, 0.102).close().workplane(offset=0.121).moveTo(-0.928, 0.138).t... | 1 | 6 | 0.017441 |
train_e203fe760ea647a2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.002, 0, 0.085), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.296, 0.348).lineTo(-0.404, 0.16).lineTo(-0.404, -0.056).lineTo(-0.296, -0.244).lineTo(-0.356, -0.348).lineTo(-0.168, -0.456).lineTo(-0.108, -0.352).lineTo(0.108, -0.352).lineTo(0.296,... | 6 | 32 | 0.880833 |
train_d93f4b30bc4afa97 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.63, -0.519, -0.015), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.583, 0.019).lineTo(-0.583, -0.481).lineTo(0.283, -0.481).lineTo(0.283, 0.019).lineTo(0.583, 0.019).lineTo(0.583, 1.519).lineTo(0, 1.519).lineTo(0, 1.019).lineTo(-0.283, 1.019).li... | 12 | 164 | 2.451226 |
train_668b425582511fec | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.249, 0.25), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.278, -0.278).lineTo(0.5, -0.278).lineTo(0.5, 0.011).threePointArc((0.484, 0.051), (0.445, 0.066)).lineTo(0.278, 0.066).lineTo(0.278, 0.278).lineTo(-0.5, 0.278).lineTo(-0.5, -0.278).li... | 4 | 23 | 0.529782 |
train_4280e7ccf7910b8a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.2, 0.507, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.917, 0.335).lineTo(0.917, 0.065).lineTo(-0.917, 0.065).lineTo(-0.917, 0.335).lineTo(0.917, 0.335).close().workplane(offset=0.145).moveTo(0.312, 0.246).lineTo(0.312, 0.154).lineTo(-0.312,... | 10 | 124 | 0.261772 |
train_6106b42f594cb2e1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1.127, -0.949), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.037, 2.126).lineTo(-0.037, 1.164).lineTo(-1, 1.164).lineTo(-1, 0.127).lineTo(1, 0.127).lineTo(1, 2.126).lineTo(-0.037, 2.126).close().extrude(1.898)
result = result.edges().fillet(0.... | 9 | 75 | 5.286322 |
train_290df051b968174a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.203, 0, -0.159), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.595, 1.188).extrude(0.119)
result = result.union(cq.Workplane(cq.Plane(origin=(0.282, 0.059, -0.041), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.535).extrude(0.019))
result = result.uni... | 12 | 277 | 0.256105 |
train_1adbcf6e74e7822c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.608, 0.462, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.657, 0.461).lineTo(-0.657, 1.046).lineTo(0.657, 1.046).lineTo(0.657, 0.169).lineTo(-0.657, 0.169).lineTo(-0.657, 0.461).close().workplane(offset=0.273).moveTo(-0.925, 0.402).lineTo(-0... | 2 | 11 | 1.140897 |
train_0b87e50787f184f7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.154), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.643, 2).extrude(0.214)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.113, -0.305, 0.059), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.065).extrude(0.054))
result = result.union(cq.W... | 7 | 65 | 0.639092 |
train_47fdb5aa6758e888 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.801, -0.565, -0.637), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.096, -0.26).lineTo(0.096, 0.26).lineTo(0, 0.26).lineTo(0, 0.222).lineTo(-0.096, 0.222).lineTo(-0.096, 0.196).lineTo(0.001, 0.196).lineTo(0.001, -0.104).lineTo(-0.096, -0.104).lin... | 1 | 12 | 0.222985 |
train_f54542688f0ed5e7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.287).workplane(offset=0.703).circle(0.284).workplane(offset=0.551).circle(0.295).workplane(offset=0.746).circle(0.399).loft()
result = result.edges().chamfer(0.216)
result = result.cut(cq.Work... | 11 | 34 | 0.473163 |
train_d270f2cb5ee3385a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.106, -0.054, -0.234), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.01, 0.261).threePointArc((-0.092, 0.245), (-0.163, 0.2)).threePointArc((-0.187, 0.173), (-0.206, 0.144)).threePointArc((-0.091, -0.169), (0.206, -0.016)).threePointArc((0.165, 0... | 34 | 187 | 0.263376 |
train_7d3934a0631f488d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.532, -0.155), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.786, 0.491).extrude(0.274)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.159, -0.555, -0.159), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.237, 0.088).extrude(0.179))
result = resu... | 33 | 188 | 0.164983 |
train_e690bfc686d837d1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.113, -0.179), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.453, 0.336).lineTo(-0.453, -0.109).lineTo(-0.032, -0.109).threePointArc((0, -0.076), (0.032, -0.109)).lineTo(0.453, -0.109).lineTo(0.453, 0.336).lineTo(-0.453, 0.336).close().workpl... | 10 | 85 | 1.19308 |
train_5595aa828d3fd81f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.206, -0.044, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.299).lineTo(-1, 0.332).lineTo(1, 0.332).lineTo(1, 0.032).lineTo(-1, 0.032).lineTo(-1, 0.299).close().extrude(0.416)
result = result.edges().fillet(0.056)
result = result.cut(cq.Wor... | 8 | 80 | 0.3364 |
train_e3fe1a735e7ea21b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.564, 0.647, 0.253), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.498, -0.225).threePointArc((0.627, -0.209), (0.747, -0.158)).lineTo(0.747, 0.273).lineTo(0.747, 1.269).threePointArc((0.674, 1.445), (0.498, 1.519)).lineTo(-0.498, 1.519).threePoin... | 18 | 180 | 1.963868 |
train_89763900c0bc52d8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.565, 0.895), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.183).lineTo(0.066, 0.281).lineTo(0.089, 0.165).lineTo(0.164, 0.115).lineTo(0.28, 0.138).lineTo(0.215, 0.04).lineTo(0.33, 0.017).lineTo(0.232, -0.049).lineTo(0.215, -0.138).lineTo(0.1... | 1 | 23 | 0.083107 |
train_1eaff2b4729205e1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.004, -0.001, -0.117), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.606, 1.001).lineTo(0.615, 0.983).lineTo(0.594, 0.721).lineTo(0.144, 0.677).lineTo(0.122, -0.999).lineTo(-0.152, -0.951).lineTo(-0.141, 0.728).lineTo(-0.607, 0.725).close().cente... | 10 | 60 | 0.137209 |
train_18f51091e798e773 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.185, 0, -0.112), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.608).moveTo(0.163, -0.002).lineTo(0.084, 0.143).lineTo(-0.085, 0.14).lineTo(-0.165, -0.002).lineTo(-0.08, -0.143).lineTo(0.083, -0.142).close().extrude(0.224)
result = result.cut(cq.W... | 9 | 54 | 0.202916 |
train_50a15b526e1c8e45 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, -0.636, -0.582), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.028, 0.01).lineTo(-0.017, 0.017).lineTo(0.028, -0.01).lineTo(0.017, -0.017).lineTo(-0.028, 0.01).close().sweep(cq.Workplane('YZ').spline([(0.162, -0.604), (0.578, -0.604), (0.9... | 5 | 22 | 0.014685 |
train_6f2677755015a328 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.094, -0.225, -0.324), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.46, 0.007).lineTo(0.137, 0.422).lineTo(-0.362, 0.28).lineTo(-0.376, -0.253).lineTo(0.148, -0.435).close().moveTo(-0.038, -0.001).lineTo(-0.069, 0.077).lineTo(-0.143, 0.107).lineT... | 19 | 249 | 0.463082 |
train_a044ca499d79601f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1, -0.284), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.02, -0.09).threePointArc((0, -0.098), (0.02, -0.09)).lineTo(0.336, -0.406).threePointArc((0, 0.406), (-0.336, -0.406)).lineTo(-0.02, -0.09).close().sweep(cq.Workplane('YZ').spline([(-0.... | 10 | 12 | 0.788016 |
train_f5c5aee2fd6e1ad6 | 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.137, 1.429).extrude(1.378)
result = result.union(cq.Workplane(cq.Plane(origin=(0.263, -0.151, 0.341), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.358, 0.842).extrude(0.659))
result = result.edges(... | 3 | 51 | 2.41966 |
train_3ee514e1630c33f3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.432, -0.546, -0.825), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.986, 0.909).extrude(0.701)
result = result.union(cq.Workplane(cq.Plane(origin=(0.038, -0.5, -0.082), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.333, 1.093).lineTo(-0.333, 1.5).li... | 11 | 105 | 0.948983 |
train_d9b01d2b80556a7e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.108, -0.388, 0.31), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.029, -0.211).threePointArc((0.2, -0.097), (0.213, 0.108)).threePointArc((0.2, 0.134), (0.184, 0.158)).threePointArc((0, 0.25), (-0.184, 0.158)).lineTo(-0.213, 0.108).threePointArc... | 4 | 31 | 0.542179 |
train_3e55c4522d9e569a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.086, -0.306, 0.174), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.361, 0.694).lineTo(0.361, 0.694).lineTo(0.361, -0.694).lineTo(-0.361, -0.694).lineTo(-0.361, 0.694).close().extrude(0.347)
result = result.edges().chamfer(0.058)
result = result... | 29 | 129 | 0.161073 |
train_6e113256baad9c07 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.427, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.081, -0.368).threePointArc((-0.372, 0.155), (0.187, 0.368)).threePointArc((0.372, -0.116), (-0.081, -0.368)).close().sweep(cq.Workplane('XY').spline([(-0.404, -0.427), (0.063, -0.427), ... | 4 | 12 | 0.773577 |
train_26aee14e493e7637 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.267, 0.569, 0.062), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.43, -0.482).lineTo(-0.033, 1.267).lineTo(0.43, -0.482).lineTo(0.324, -0.482).lineTo(0.146, 0.255).lineTo(-0.178, 0.255).lineTo(-0.324, -0.482).lineTo(-0.43, -0.482).close().workpl... | 16 | 21 | 0.294848 |
train_bec91fed5488a741 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.004, 0.578), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1, 0.192).lineTo(1, 0.004).lineTo(0.84, 0.004).lineTo(0.818, -0.192).lineTo(-1, 0.01).lineTo(-1, 0.192).lineTo(1, 0.192).close().extrude(0.461)
result = result.edges().chamfer(0.071)
res... | 5 | 154 | 0.241331 |
train_9dbe408b3bb16c4a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.504, 0.3, -0.503), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.503, 0.828).lineTo(0.503, -0.09).lineTo(-0.503, -0.09).lineTo(-0.503, 0.828).lineTo(0.503, 0.828).close().revolve(angleDegrees=180, axisStart=(0.503, 0.828), axisEnd=(0.503, 0.714))
... | 15 | 278 | 1.300196 |
train_6b8ee54ef98969d8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.181, 0, 1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.233, -0.219).lineTo(-0.233, -0.082).lineTo(0.177, 0.155).lineTo(0.366, 0.264).lineTo(0.366, 0.291).lineTo(0.177, 0.181).lineTo(-0.233, -0.055).lineTo(-0.366, -0.133).lineTo(-0.365, -0.158... | 1 | 12 | 0.020901 |
train_3ddd252efc7fb636 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.434, 0.585), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.328).sweep(cq.Workplane('YZ').spline([(0.25, -0.012), (0.201, 0.18), (0.009, 0.29), (-0.204, 0.201), (-0.292, -0.012), (-0.204, -0.225), (0.009, -0.313), (0.201, -0.203)]))
result = res... | 5 | 35 | 0.97687 |
train_af771f5572289664 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.061, 0.081, -0.588), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.088, 1.838).extrude(1.187)
result = result.union(cq.Workplane(cq.Plane(origin=(0.541, -0.533, -0.02), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.128, 0.146).extrude(0.067))
result = ... | 6 | 30 | 2.377382 |
train_c8efdc345702b80d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.287, -0.093, -0.333), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.427, 0.72).extrude(0.665)
result = result.faces('>Z').shell(-0.06)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.497, 0.356, -0.064), normal=(0, 0, 1), xDir=(1, 0, 0))).ci... | 4 | 19 | 0.241288 |
train_29337f6975079ca8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.634), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.876, 2).extrude(1.268)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.27, 0.087, 0.033), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.96, 0.776).extrude(0.618))
result = result.cut(cq.Wor... | 10 | 70 | 4.276832 |
train_27c45365f41cd86a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.966, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.46, 0.109).threePointArc((0.533, 0.147), (0.612, 0.126)).threePointArc((0.741, 0.218), (0.895, 0.258)).lineTo(0.895, 1.823).threePointArc((-0.109, 1.567), (-0.895, 0.891)).lineTo(0.46, 0.1... | 1 | 7 | 1.699197 |
train_62f019c9d6a79bd7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.974, 0.027, 0.068), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.018, 0.085).lineTo(0.006, 0.085).lineTo(0.017, 0.067).lineTo(0.009, -0.05).lineTo(0.024, -0.056).lineTo(0.026, -0.065).lineTo(0.019, -0.071).lineTo(0.011, -0.077).lineTo(0.011, -0.... | 3 | 35 | 0.001166 |
train_59476b0378d6811b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.299, -0.723, -0.075), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 0.042).lineTo(-0.005, 0.042).lineTo(0, -0.041).lineTo(0.01, -0.042).lineTo(0, 0.042).close().sweep(cq.Workplane('XY').spline([(0.299, -0.12), (0.48, -0.445), (0.661, -0.607), (0... | 10 | 63 | 0.041616 |
train_2374c694c825d784 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.002, 0.064, 0.057), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.4, 0.115).threePointArc((-0.704, 0.079), (-0.926, -0.13)).threePointArc((-0.827, -0.176), (-0.752, -0.256)).threePointArc((-0.576, -0.268), (-0.4, -0.256)).threePointArc((-0.138, ... | 1 | 17 | 0.549086 |
train_b590cbc2b39c33bb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.002, -0.12, -0.319), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.002, 0.003).threePointArc((0.105, 0.03), (-0.002, 0.03)).threePointArc((-0.105, 0.003), (0.002, 0.003)).close().extrude(0.231)
result = result.edges().fillet(0.019)
result = resul... | 14 | 197 | 0.115842 |
train_ebce8402146cde7c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.01, 0.027, -0.544), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.01, 0.039).lineTo(0.693, 0.715).lineTo(-0.022, 0.947).lineTo(-0.679, 0.676).lineTo(-0.99, -0.03).lineTo(-0.685, -0.669).lineTo(-0.003, -1.002).lineTo(0.704, -0.727).close().moveTo(... | 17 | 118 | 1.967819 |
train_4c1eb7085e6debd2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.014, -0.012, -0.168), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1.014, -0.946).lineTo(0.986, -0.955).lineTo(0.979, 0.98).lineTo(-1.011, 0.948).close().center(-0.276, 0.27).circle(0.14).center(0.552, 0).circle(0.122).moveTo(-0.578, -0.63).lineTo... | 13 | 55 | 0.785836 |
train_93ea2ff51f543eb6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.04, 0.115, -0.231), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.811, 1.01).extrude(0.262)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.04, 0.115, 0.03), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.209).extrude(0.028))
result = result.cu... | 25 | 154 | 0.250607 |
train_078945ec69d18917 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.129, -0.07, 0.221), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.111, -0.871).lineTo(0.111, 0.988).lineTo(-0.111, 0.988).lineTo(-0.111, -0.871).lineTo(0.111, -0.871).close().extrude(0.104)
result = result.edges().fillet(0.014)
result = result.un... | 13 | 245 | 0.12817 |
train_c5b0c054d41630ab | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.076, 0.142, -0.007), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.985, 0.005).threePointArc((-0.992, 0.077), (-1.007, 0.147)).lineTo(1.007, 0.147).lineTo(1.007, 0.005).lineTo(-0.985, 0.005).close().extrude(0.284)
result = result.edges().chamfer... | 8 | 48 | 0.058988 |
train_19c7c7793bf566bb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.299, 0, 0.363), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.12, 0.162).threePointArc((0.202, 0), (0.12, -0.162)).lineTo(0.12, -0.202).lineTo(0, -0.202).threePointArc((-0.063, -0.192), (-0.12, -0.162)).threePointArc((-0.202, 0), (-0.12, 0.162))... | 4 | 21 | 0.063673 |
train_67bd9a37ad7b28ae | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.595, -0.573), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1.051, 0.099).lineTo(-0.776, 0.372).lineTo(-0.776, 0.87).lineTo(-0.275, 0.87).lineTo(0, 1.142).lineTo(0.272, 0.872).lineTo(0.272, 0.37).lineTo(0.779, 0.37).lineTo(1.051, 0.099).lineTo(... | 8 | 89 | 0.6541 |
train_918bc1602856136e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.075, 0, -0.613), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.042, 1.428).extrude(1.017)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.787, -0.109, -0.167), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.426, 0.72).extrude(0.167))
result = res... | 4 | 18 | 1.6819 |
train_f638f5e031966624 | 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.525, 0.558).extrude(0.635)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, -0.419), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.184, 0.225).extrude(0.729))
result = result.union(cq.Workp... | 11 | 55 | 0.177818 |
train_fdf6b9cb7d388e12 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.002, -0.056), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.069, 0.238).lineTo(0.297, 0.321).lineTo(0.278, 0.369).lineTo(0.214, 0.509).lineTo(0.118, 0.689).lineTo(0.01, 0.861).lineTo(-0.079, 0.985).lineTo(-0.111, 1.025).lineTo(-0.297, 0.869).li... | 8 | 38 | 0.896835 |
train_2f7befbab8563bd6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.004, -0.001, -0.284), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1.004, 0.767).lineTo(0.996, 0.776).lineTo(0.993, 0.467).lineTo(0.172, 0.44).lineTo(0.164, -0.77).lineTo(-0.133, -0.773).lineTo(-0.154, 0.472).lineTo(-1.001, 0.475).close().center(-... | 10 | 60 | 0.50935 |
train_f5c92b3ff6c03e15 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.574, 0.968, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.137).sweep(cq.Workplane('XY').spline([(0.574, -0.122), (0.804, -0.102), (1.034, 0.064), (1.265, 0.499), (1.495, 0.665), (1.725, 0.685)]))
result = result.edges().fillet(0.052)
result = ... | 4 | 16 | 0.082159 |
train_9e4ed3bab1a555db | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.117, 0.088, 0.049), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.045).workplane(offset=0.076).circle(0.034).workplane(offset=0.074).circle(0.001).loft()
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.192, 0.065, 0.031), normal=(0, 0, 1), ... | 35 | 74 | 0.013508 |
train_27088414d4ac76c8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.046, 0.04), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.916).sweep(cq.Workplane('YZ').spline([(-0.984, -0.339), (-0.363, -0.967), (0.305, -0.967), (0.926, -0.339), (0.926, 0.339), (0.305, 0.967), (-0.363, 0.967), (-0.984, 0.339)]))
result = ... | 4 | 12 | 0.629016 |
train_2247f5098348ff15 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.44, -0.696, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.667, 1.44).lineTo(-0.667, 1.44).lineTo(-0.667, -0.56).lineTo(0.667, -0.56).lineTo(0.667, 1.44).close().extrude(1.391)
result = result.edges().fillet(0.185)
result = result.cut(cq.Workp... | 8 | 67 | 3.383297 |
train_171778ee4dde2f53 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.718), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.12, 2).extrude(1.379)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.521, 0.496, -0.209), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.083, 0.083).extrude(0.094))
result = result.cut(cq.Wo... | 13 | 77 | 2.955521 |
train_f48b05ee7c661b8e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.359, -0.188, -0.163), normal=(1, 0, 0), xDir=(0, 0, 1))).lineTo(0.039, -0.585).lineTo(0.177, 0.646).lineTo(-0.061, 0.646).close().extrude(0.256)
result = result.edges().chamfer(0.025)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.227, ... | 7 | 46 | 0.394271 |
train_02ed06e70567bf39 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.217, -0.044, -0.086), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.322, 0.439).extrude(0.061)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.176, -0.014, -0.103), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.047).extrude(0.019))
result = re... | 13 | 151 | 0.551569 |
train_1b2026447f74e21f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.142, 0, -0.907), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.004, -0.006).lineTo(0.008, -0.002).lineTo(0.008, 0.002).lineTo(0.004, 0.006).lineTo(-0.008, 0.006).lineTo(-0.008, 0).threePointArc((-0.006, -0.004), (-0.002, -0.006)).lineTo(0.004, -... | 4 | 29 | 0.000412 |
train_41cdbdd52bfca008 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.094, -0.185, -0.09), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.283, -0.787).lineTo(0.599, -0.506).lineTo(0.283, 0.486).threePointArc((-0.298, 0.787), (-0.599, 0.205)).lineTo(-0.283, -0.787).close().sweep(cq.Workplane('YZ').spline([(-0.185, -... | 5 | 27 | 0.280823 |
train_12fcf88ff4d5d390 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.24, -0.469), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.585, 1.52).extrude(0.937)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.04, 0.616, -0.167), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.167).extrude(0.652))
result = result.edges()... | 7 | 138 | 0.780482 |
train_ffbe036436ad7e8c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.008, -0.538, -0.597), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.191, -0.18).threePointArc((-0.171, -0.183), (-0.15, -0.18)).lineTo(-0.107, -0.18).lineTo(-0.107, -0.182).threePointArc((-0.049, -0.142), (-0.04, -0.071)).threePointArc((0.026, -... | 9 | 119 | 0.436182 |
train_684c2090c1b08e95 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.573, 0.636), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.427, -0.427).lineTo(0.427, 0.427).lineTo(-0.427, 0.427).lineTo(-0.24, 0.24).lineTo(0.219, 0.338).lineTo(0, 0).lineTo(-0.338, 0.219).lineTo(-0.24, -0.24).lineTo(-0.427, -0.427).lineTo(0.... | 1 | 11 | 0.20508 |
train_acf26195ada5aa2e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.141, 0.073), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.149, 0.566).lineTo(-0.149, -0.566).lineTo(0.078, -0.566).lineTo(0.078, -0.156).lineTo(0.149, -0.156).lineTo(0.149, 0).lineTo(0.078, 0).lineTo(0.078, 0.283).lineTo(0.149, 0.283).lineTo... | 12 | 90 | 0.03752 |
train_0d08f6eb250cf784 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.1, -0.589), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1, -0.5).lineTo(-1, -0.254).threePointArc((0.074, 0.383), (0.292, 0.438)).lineTo(0.333, 0.438).lineTo(0.667, 0.438).lineTo(0.667, 0.5).lineTo(1, 0.5).lineTo(1, 0.125).lineTo(0.667, 0.125... | 14 | 48 | 0.766311 |
train_e5814238831e1136 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.492, 0.298, 0.273), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.291, 0.589).lineTo(0.727, 0.589).lineTo(0.727, 0.008).lineTo(-0.727, 0.008).lineTo(-0.727, 0.589).lineTo(-0.291, 0.589).close().extrude(0.983)
result = result.union(cq.Workplane(c... | 15 | 79 | 0.583477 |
train_dce5ed4c2cb5f188 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, 0, -0.173), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.39, -0.227).threePointArc((0.365, -0.181), (0.337, -0.137)).threePointArc((0.065, 0.099), (-0.286, 0.176)).threePointArc((-0.322, 0.204), (-0.364, 0.222)).threePointArc((-0.377, 0.225), (-... | 4 | 12 | 0.182286 |
train_aab3b9216e77f0bc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.5, 0.057, 0.5), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.5, 0.082).lineTo(-0.5, 0.031).lineTo(0.5, 0.031).lineTo(0.5, 0.082).lineTo(-0.5, 0.082).close().revolve(angleDegrees=180, axisStart=(-0.5, 0.082), axisEnd=(-0.5, 0.042))
result = resu... | 6 | 18 | 0.077543 |
train_8d713a2f15797bca | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.355, -0.014, -0.236), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.29, 0.74).extrude(0.371)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.355, 0.037, 0.131), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.347).extrude(0.056))
result = result... | 17 | 64 | 0.310663 |
train_a7c9c7202a73fbf8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.171, 0.27, 0.241), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.759, 0.424).lineTo(0.759, 0.044).lineTo(-0.759, 0.044).lineTo(-0.759, 0.424).lineTo(0.759, 0.424).close().extrude(0.563)
result = result.faces('>Z').shell(-0.034)
result = result.un... | 21 | 159 | 0.264659 |
train_84b1be9c61c5cd93 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.853), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.982).extrude(1.705)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.233, 0.301, -1.143), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.561, 0.279).extrude(2.046))
result = result.cut(cq.... | 4 | 98 | 6.302536 |
train_fa96e46a32873bd3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.09, -0.501), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.03, 1.82).extrude(0.929)
result = result.cut(cq.Workplane(cq.Plane(origin=(0 + 0.236 * math.cos(1.75 + 2 * math.pi * 0 / 5), -0.09 + 0.236 * math.sin(1.75 + 2 * math.pi * 0 / 5), -0.641)... | 24 | 87 | 1.518464 |
train_04fd85b2b4da7f5c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.864, -0.297), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.041, -0.043).lineTo(-0.041, 0.043).lineTo(0.041, 0.043).lineTo(0.041, -0.043).lineTo(-0.041, -0.043).close().sweep(cq.Workplane('YZ').spline([(-0.864, -0.393), (-0.492, -0.08), (-0.1... | 9 | 62 | 0.014281 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.