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_a19ff90062608bad | 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.814, 1.441).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.167, -0.294, -0.049), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.301, 0.543).extrude(1.076))
result = result.cut(cq.Wor... | 12 | 84 | 2.014062 |
train_6dd379fdbc2b7a2a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.126, 0, -0.426), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.749, 1.196).extrude(0.851)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.574 + 0.233, 0.1985, -1.203), normal=(0, 1, 0), xDir=(1, 0, 0))).moveTo(0.024, 0.064).lineTo(0.024, 0.049)... | 21 | 51 | 1.664264 |
train_18903096975a3bc1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.915, 0, -0.367), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.085, 0.11).lineTo(-0.085, -0.149).lineTo(-0.026, -0.149).lineTo(-0.026, -0.003).lineTo(0, -0.003).lineTo(0, 0.11).lineTo(0.085, 0.11).lineTo(0.085, 0.149).lineTo(-0.026, 0.149).line... | 1 | 12 | 0.032674 |
train_85a1117199792d67 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.383, -0.023, -0.272), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.872, 1.17).extrude(0.158)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.383, 0.059, -0.117), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.477, 1.1).extrude(0.034))
result = r... | 25 | 178 | 0.232472 |
train_1c3918b70e1aaedf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.726), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.621).extrude(1.452)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.583, 0.13, -0.496), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.439).extrude(0.836))
result = result.cut(cq.Workpl... | 8 | 20 | 3.862383 |
train_3cefb0e3700be452 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.205, -0.768, 0.137), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.581, -0.232).lineTo(0.581, 0).lineTo(0.096, 0).threePointArc((-0.232, 0.232), (-0.561, 0)).threePointArc((-0.581, -0.116), (-0.561, -0.232)).lineTo(0.096, -0.232).lineTo(0.581, -... | 4 | 18 | 0.167108 |
train_20e5fb894c4ef432 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.28, -0.334, -0.213), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.044, 0.088).lineTo(-0.132, 0).lineTo(-0.132, -0.088).lineTo(-0.044, -0.088).lineTo(0, -0.044).lineTo(0.044, 0).lineTo(0.044, -0.088).lineTo(0.132, -0.088).lineTo(0.132, 0).lineT... | 9 | 99 | 0.855724 |
train_fc90f6d9a43e0fa1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.093, 0.041, -0.363), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.983, 0.538).extrude(0.21)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.232, 0.203, -0.264), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.112).extrude(0.079))
result = result.... | 27 | 305 | 0.253803 |
train_caa6cd73dad74165 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.399, -0.06, -0.091), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.226, 0.197).extrude(0.235)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.531, -0.08, 0.039), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.04, 0.041).extrude(0.059))
result = r... | 15 | 171 | 0.03277 |
train_1b62dd16726ce8d4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, 1.012, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.351).lineTo(-1, 1.672).lineTo(-0.825, 1.672).lineTo(-0.825, 0.658).threePointArc((-0.788, 0.57), (-0.7, 0.534)).lineTo(-0.595, 0.534).lineTo(-0.595, 0.439).lineTo(1, 0.439).lineTo(1, 0.... | 1 | 12 | 0.303112 |
train_3a36d0de4c711339 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.252, -0.643, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.105).sweep(cq.Workplane('XY').spline([(0.252, -0.178), (0.536, -0.508), (0.82, -0.508), (1.104, -0.178)]))
result = result.union(result.mirror('YZ', basePointVector=(0, -0.178, -0.485... | 3 | 12 | 0.077857 |
train_87cda54cadeee68d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.175), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, -1).lineTo(-0.34, -1).lineTo(-0.34, -0.76).lineTo(-0.5, -0.76).lineTo(-0.399, 0.629).threePointArc((-0.272, 0.893), (0, 1)).threePointArc((0.272, 0.893), (0.399, 0.629)).lineTo(0.5, -0.76... | 4 | 27 | 0.45242 |
train_5e18b62466882411 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.059, 0.058, 0.188), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.088, -0.942).lineTo(-0.088, -0.942).lineTo(-0.088, 1.058).lineTo(0.088, 1.058).lineTo(0.088, -0.942).close().extrude(0.104)
result = result.edges().fillet(0.006)
result = result.fa... | 11 | 176 | 0.034249 |
train_b70264a03daa282b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.283, 0, 0.416), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.164, -1).lineTo(-0.128, -1).lineTo(-0.128, -0.989).threePointArc((-0.113, -0.975), (-0.128, -0.96)).lineTo(-0.128, -0.946).threePointArc((-0.113, -0.932), (-0.128, -0.917)).lineTo(-0.1... | 4 | 51 | 0.202799 |
train_34ba51d075d38b9f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.305, 0, 0.512), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.437).sweep(cq.Workplane('XZ').spline([(0.166, 0.003), (0.135, 0.125), (-0.001, 0.172), (-0.119, 0.078), (-0.119, -0.073), (-0.001, -0.167), (0.135, -0.12)]))
result = result.edges().f... | 9 | 46 | 1.081287 |
train_db262191932189d0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.284), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.646).extrude(0.492)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, 0.203), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.116, 0.918).extrude(0.082))
result = result.cut(cq.Workplan... | 3 | 13 | 1.468421 |
train_3a9367451ca0197b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.043, 0.414, -0.269), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.006, 1.135).extrude(0.047)
result = result.union(cq.Workplane(cq.Plane(origin=(0.08, 0.48, -0.223), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.711, 1.04).extrude(0.027))
result = resu... | 6 | 47 | 0.649175 |
train_663af202d6292095 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.45, -0.802, 0.196), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.637, 1.122).lineTo(-0.637, 0.874).lineTo(-0.804, 0.874).lineTo(-0.804, -0.221).lineTo(0.652, -0.221).lineTo(0.652, 0.874).lineTo(0.804, 0.874).lineTo(0.804, 1.122).lineTo(-0.637, ... | 14 | 36 | 2.927443 |
train_9b255609550b68e7 | 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.405, -0.649).threePointArc((-0.546, -0.591), (-0.604, -0.449)).lineTo(-0.604, 0.449).threePointArc((-0.546, 0.591), (-0.405, 0.649)).lineTo(0.405, 0.649).threePointArc((0.546, 0.591), (0.604,... | 4 | 30 | 2.895014 |
train_d70ee4901988a383 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.538, 1.17, 0.14), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.567, 0.352).lineTo(-0.567, 0.101).lineTo(-0.567, 1.258).lineTo(0.567, 1.258).lineTo(0.567, 0.352).close().extrude(1.461)
result = result.edges().fillet(0.279)
result = result.union(c... | 24 | 85 | 1.696 |
train_debcc99acd982623 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.298), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.81, 2).extrude(0.597)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0.013), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.799, 1.117).moveTo(-0.101, -0.144).lineTo(-0.101, -0.011).line... | 13 | 66 | 1.211842 |
train_c2585aff8521c349 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.515, 0.848), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.072, 0.345).lineTo(0.062, 0.379).lineTo(0.087, 0.383).lineTo(0.097, 0.352).lineTo(0.169, 0.107).lineTo(0.143, 0.107).lineTo(0.191, -0.055).lineTo(0.213, -0.041).lineTo(0.281, -0.269).li... | 2 | 23 | 0.113093 |
train_fcb00978e46129c1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.208, -0.268), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.388, 1.583).extrude(0.536)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.179, -0.782, -0.011), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.218).extrude(0.186))
result = result.c... | 4 | 16 | 1.105748 |
train_d3f0132e6735efd2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.578, 0, 0.311), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.444).sweep(cq.Workplane('XZ').spline([(-0.578, 0.311), (-0.199, 0.085), (0.18, 0.009), (0.56, 0.085), (0.94, 0.311)]))
result = result.edges().chamfer(0.037)
result = result.cut(cq.Wo... | 11 | 48 | 0.437131 |
train_bd3e3e89b09b50ee | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.378, -1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.114, 0.557).lineTo(-0.549, 0.438).threePointArc((0.053, 0.387), (0.549, 0.043)).lineTo(0.114, 0.557).close().extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(0.253, -0.327, ... | 4 | 19 | 0.102854 |
train_c45bc1f79bcef06e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.004, 0, 0.104), normal=(0, 0, -1), xDir=(1, 0, 0))).lineTo(0.973, -0.32).lineTo(1.004, -0.32).lineTo(1.004, 0.32).lineTo(0.973, 0.32).lineTo(0.973, 0.383).close().extrude(0.242)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.714, 0.053, 0.... | 8 | 55 | 0.083954 |
train_89c5128cccc9fde4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.032, -0.445, 0.309), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.321, -0.162).threePointArc((0.27, -0.224), (0.218, -0.285)).lineTo(-0.321, 0.201).threePointArc((-0.285, 0.242), (-0.25, 0.285)).lineTo(0.321, -0.162).close().sweep(cq.Workplane('Y... | 2 | 13 | 0.22036 |
train_532bac294fc2daab | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.804, 0, 0.203), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.771).workplane(offset=0.391).circle(0.775).workplane(offset=0.343).circle(0.694).workplane(offset=0.434).circle(0.678).workplane(offset=0.44).circle(0.591).loft()
result = result.edges... | 11 | 55 | 1.279575 |
train_237dbd3892a7346b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.169, 0.416, -0.257), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.991, 0.891).extrude(0.816)
result = result.faces('<Z').shell(-0.08)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.018, 0.74, 0.018), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.... | 6 | 44 | 0.810122 |
train_8363f8e9d6f3a7e2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.618, -0.002, -0.206), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.077).sweep(cq.Workplane('XY').spline([(-0.197, -0.002), (-0.014, -0.002), (0.169, -0.002), (0.328, -0.086), (0.487, -0.171), (0.646, -0.255)]))
result = result.edges().chamfer(0... | 14 | 68 | 0.067967 |
train_d6c86e7a1363e291 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.006, -0.052, -0.653), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.176, 1.135).extrude(1.653)
result = result.union(cq.Workplane(cq.Plane(origin=(0.171, 0.566, -0.326), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.079, 0.105).extrude(0.126))
result = ... | 14 | 73 | 2.075873 |
train_92960b8f2466d422 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.108, -0.129), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.569, -0.146).threePointArc((0, -0.031), (0.571, -0.143)).lineTo(0.569, 0.313).lineTo(-0.571, 0.31).lineTo(-0.569, -0.146).close().extrude(2)
result = result.edges().fillet(0.12)
res... | 11 | 61 | 0.621772 |
train_3fe2840bbfb249ac | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.104, 0.107), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.799, 0.088).lineTo(-0.722, -0.014).lineTo(-0.667, -0.088).lineTo(0.667, -0.088).lineTo(0.667, -0.355).lineTo(1, 0.088).lineTo(1, 0.355).lineTo(-1, 0.355).lineTo(-0.799, 0.088).close()... | 21 | 80 | 0.124426 |
train_72d4ccf81b70c17f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.246), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.839).extrude(0.459)
result = result.union(cq.Workplane(cq.Plane(origin=(0.1, 0.092, 0.213), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.827).extrude(0.033))
result = result.cut(cq.Workpla... | 4 | 20 | 1.636316 |
train_179e28bf61875203 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.048, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.25, 0.783).extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(0.623, 0.054, 0.383), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.098, 0.068).extrude(0.29))
result = result.cut(cq.W... | 9 | 30 | 1.819292 |
train_be595c3c95bd7a5e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.197, -0.669), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.984, 1.607).extrude(0.718)
result = result.union(cq.Workplane(cq.Plane(origin=(0.486, -0.404, 0.041), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.246).extrude(0.13))
result = result.uni... | 11 | 79 | 2.352107 |
train_95df312a44d97bf7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.07, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.154).lineTo(0, 0.07).lineTo(0.972, 0.07).lineTo(0.972, -0.014).lineTo(-0.972, -0.014).lineTo(-0.972, 0.154).lineTo(0, 0.154).close().extrude(2)
result = result.cut(cq.Workplane(cq.Plane(... | 7 | 28 | 0.42368 |
train_c4f11257cfe476ed | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.014, -0.36), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.947).extrude(0.555)
result = result.union(cq.Workplane(cq.Plane(origin=(0, -0.393 + 0.0755, 0.195), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.038).extrude(0.165))
result = result.un... | 19 | 83 | 0.921227 |
train_24de2267d4b65a1c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.182, 0, 0.08), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.584).lineTo(0, 0.596).lineTo(-0.472, 0.596).lineTo(-0.472, 0.573).lineTo(0, 0.573).lineTo(0, 0.478).lineTo(-0.142, 0.478).lineTo(-0.142, 0.454).lineTo(0, 0.454).lineTo(0, 0.36).line... | 6 | 59 | 1.059365 |
train_b69e552414f500a0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.068, 0.271), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.53, 1.113).lineTo(-0.53, -1.113).lineTo(0.53, -0.926).lineTo(0.53, 0.054).lineTo(-0.53, 1.113).close().extrude(0.542)
result = result.edges().chamfer(0.255)
result = result.cut(cq.Wo... | 22 | 26 | 0.570146 |
train_623b2661f65ce8b3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.5, 0.233, 0.5), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.5, 0.566).lineTo(-0.5, -0.101).lineTo(-0.48, -0.101).lineTo(-0.48, -0.081).lineTo(-0.475, -0.081).lineTo(-0.475, -0.101).lineTo(-0.455, -0.101).lineTo(-0.455, 0.521).lineTo(0.455, 0.5... | 2 | 12 | 0.158612 |
train_8852ceb204af4ccf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.146, 0, 0.072), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.024, 0.046).lineTo(0.024, -0.046).lineTo(-0.024, -0.046).lineTo(-0.024, 0.046).lineTo(0.024, 0.046).close().sweep(cq.Workplane('XZ').spline([(-0.083, 0.041), (-0.041, -0.018), (0.002,... | 5 | 51 | 0.017182 |
train_dcc28ba01e775035 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.488, -0.257, -0.216), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.024, 1.345).extrude(0.574)
result = result.union(result.mirror('YZ', basePointVector=(0, -0.257, -0.216)))
result = result.cut(cq.Workplane(cq.Plane(origin=(0.138, -0.133, -0.233), ... | 19 | 201 | 1.08842 |
train_99e7d14d2b8e3b6a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.03, -0.036, -0.517), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.215, 1.067).extrude(1.156)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.37, -0.014, -0.182), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.249).extrude(0.543))
result = result... | 14 | 75 | 1.061433 |
train_f0c7cdadc30442f7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.07, -0.557), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.709).extrude(0.892)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.8 + 0.16, 0.1975, 0.298), normal=(0, 1, 0), xDir=(1, 0, 0))).moveTo(0.076, -0.04).lineTo(0.076, -0.013).line... | 29 | 199 | 2.757032 |
train_2391a5929a203383 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(3.234, 0.53, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.396, 3.234).lineTo(-0.396, 3.234).lineTo(-0.396, 2.175).lineTo(0.396, 2.175).lineTo(0.396, -2.587).lineTo(0.396, 3.234).close().revolve(angleDegrees=180, axisStart=(0.396, 3.234), axisE... | 3 | 18 | 0.700493 |
train_4050cff0e7a3c735 | 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(2, 1.044).extrude(1.436)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.14, -0.098, -0.185), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.956, 0.867).lineTo(-1.236, 0.867).lineTo(-1.236,... | 5 | 33 | 1.803416 |
train_f33da07206eddf56 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.721, 0.305, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.279).sweep(cq.Workplane('XY').spline([(0.721, 0.685), (1.102, 0.714), (1.482, 0.497)]))
result = result.union(cq.Workplane(cq.Plane(origin=(-0.164, 0, -0.129), normal=(0, 0, 1), xDir=(... | 12 | 43 | 0.088357 |
train_b4d2ae8a5ab56309 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.02, 0, -0.227), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.732).sweep(cq.Workplane('XZ').spline([(0.065, -0.151), (-0.04, -0.12), (-0.126, -0.203), (-0.127, -0.31), (-0.051, -0.372), (0.05, -0.38), (0.113, -0.31), (0.138, -0.217)]))
result = ... | 3 | 12 | 0.314723 |
train_50fcf546d040c3e8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.646, 0.389, 0.138), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.643, 0.389).threePointArc((-0.643, 0.146), (-0.4, 1.432)).lineTo(-0.4, 0.389).lineTo(0.643, 0.389).close().extrude(0.542)
result = result.edges().chamfer(0.095)
result = result.uni... | 20 | 44 | 0.775095 |
train_1d80b28552791c82 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.398, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.098, -0.098).lineTo(0.247, -0.098).lineTo(0.247, -0.068).lineTo(0.065, 0.247).lineTo(-0.081, 0.102).lineTo(-0.091, 0.091).lineTo(0.068, -0.068).lineTo(0.068, -0.089).lineTo(-0.102, 0.081... | 1 | 14 | 0.113772 |
train_c3f84922ac1fced5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.941, 0.371, -0.783), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.01, -0.01).lineTo(0, 0).lineTo(-0.006, 0.004).lineTo(-0.004, 0.004).lineTo(-0.01, 0.01).lineTo(0.01, 0.01).lineTo(0.004, 0.004).lineTo(0.006, -0.004).lineTo(0.01, -0.007).lineTo(0... | 7 | 49 | 0.163669 |
train_fcf4c667ef482da8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.14, -0.181, -0.162), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.167, -0.167).threePointArc((0.075, 0.075), (-0.167, 0.167)).lineTo(0, 0).lineTo(0.167, -0.167).close().sweep(cq.Workplane('XY').spline([(-0.148, -0.181), (0.044, 0.005), (0.235, 0.... | 14 | 136 | 0.177736 |
train_fdfab973b3bcce67 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.464, 0.497, 0.5), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.872, 0.977).extrude(0.09)
result = result.union(cq.Workplane(cq.Plane(origin=(0.452, 0.568, 0.589), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.383, 0.153).extrude(0.014))
result = result... | 12 | 108 | 0.763 |
train_e88e783c2c0cd233 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.002, 0.034, -0.172), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.112, 0.279).lineTo(-0.112, 0.42).lineTo(0.147, 0.42).lineTo(0.147, -0.332).lineTo(-0.112, -0.332).lineTo(-0.112, 0.138).lineTo(-0.147, 0.138).lineTo(-0.147, 0.279).lineTo(-0.112... | 13 | 165 | 0.813608 |
train_f5137c47a762f6d3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.534, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.265, 1.088).lineTo(-0.31, 1.062).threePointArc((-0.511, 0.842), (-0.575, 0.551)).lineTo(-0.265, 0.066).lineTo(0.31, 0.09).threePointArc((0.511, 0.311), (0.575, 0.602)).lineTo(0.265, 1.088... | 7 | 62 | 1.633872 |
train_b8196a3e43cb7e54 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.044, 0.173, 0.217), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.24, 0.317).lineTo(0, 0.456).lineTo(0, 0.178).lineTo(-0.24, 0.04).lineTo(0, -0.099).lineTo(0.24, 0.04).lineTo(0.24, 0.317).close().extrude(0.671)
result = result.edges().chamfer(0.0... | 16 | 107 | 0.276322 |
train_5e6306ab42f304cb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.383, -0.245, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, 1.141).lineTo(0.372, 1.383).lineTo(0.428, 1.337).lineTo(0.244, 0.541).lineTo(0.244, -0.617).lineTo(-0.244, -0.617).lineTo(-0.244, 0.541).lineTo(-0.428, 1.337).lineTo(-0.372, 1.383).l... | 9 | 29 | 0.429247 |
train_780915085169cae0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.368, -0.148, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.164, 0.444).threePointArc((-1, 0), (0.164, -0.444)).lineTo(0.924, -0.444).threePointArc((1, 0), (0.924, 0.444)).lineTo(0.164, 0.444).close().sweep(cq.Workplane('XY').spline([(0.001, ... | 1 | 6 | 1.788564 |
train_3bb58f838ea66eb7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.147, -0.485, -0.089), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.258, 0.065).lineTo(0.258, 0.229).lineTo(-0.258, 0.229).lineTo(-0.258, 0.12).lineTo(0.071, 0.12).lineTo(0.071, 0.065).lineTo(0.258, 0.065).close().revolve(angleDegrees=360, axisSt... | 27 | 320 | 0.187855 |
train_5605fe52ec7598de | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.633), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.509, 0.46).extrude(0.451)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, -0.204), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.154).extrude(0.246))
result = result.union(cq.Workpla... | 13 | 32 | 0.151621 |
train_529eb43dd01faa88 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.009, -1), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.05, -0.004).threePointArc((-0.046, -0.001), (-0.041, 0.002)).threePointArc((-0.028, 0.004), (-0.015, 0)).threePointArc((0, 0.004), (0.015, 0)).threePointArc((0.033, 0.004), (0.05, -0.00... | 7 | 51 | 0.002036 |
train_0b6c32d554d77e66 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.076, -0.114, -0.578), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.422, 0.023).lineTo(0.422, 0.287).lineTo(-0.422, 0.287).lineTo(-0.422, 0.023).lineTo(-0.412, 0.023).lineTo(0.422, 0.023).close().extrude(0.229)
result = result.edges().chamfer(0.0... | 10 | 57 | 0.049371 |
train_0d91ec105c0527a5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.132, 0.156), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.528).workplane(offset=0.968).circle(0.243).workplane(offset=0.762).circle(0.59).loft()
result = result.edges().chamfer(0.473)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.334, ... | 13 | 55 | 0.297636 |
train_af2ecb0796ba5e24 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.498, 0, 0.491), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.157, 0.214).lineTo(-0.157, -0.297).lineTo(0.157, -0.297).lineTo(0.157, -0.041).lineTo(0.173, -0.041).lineTo(0.173, -0.313).lineTo(-0.173, -0.313).lineTo(-0.173, 0.23).lineTo(-0.087, ... | 1 | 14 | 0.075722 |
train_7186eec6d5013dec | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.68, 0, 0.317), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.32, 0.34).lineTo(-0.32, -0.34).lineTo(0.32, -0.34).lineTo(0.32, 0.34).lineTo(-0.32, 0.34).close().extrude(0.634)
result = result.edges().chamfer(0.221)
result = result.union(cq.Workpl... | 4 | 34 | 0.139577 |
train_e3ee2b1b54476ff7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.476, -0.065, 0.111), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.59, 0.325).lineTo(-0.59, -0.048).lineTo(0.404, -0.048).threePointArc((0.59, 0.138), (0.404, 0.325)).lineTo(-0.59, 0.325).close().extrude(1.146)
result = result.edges().fillet(0.0... | 26 | 184 | 0.466027 |
train_0282664c33990f5d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.457, 0.419, -0.143), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.857, 0.028).lineTo(0.857, 0.028).lineTo(0.857, 0.886).lineTo(-0.857, 0.886).lineTo(-0.857, 0.028).close().extrude(0.838)
result = result.edges().chamfer(0.05)
result = result.cut... | 19 | 182 | 0.686429 |
train_ea584b28d4295bac | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.282, -0.579), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.901, 1.435).extrude(0.888)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.219, -0.182, -0.336), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.238, 1.722).extrude(0.167))
result = resu... | 27 | 148 | 0.470878 |
train_6c29cc25ab363991 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.35, 0.311, -0.142), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.304, 0.637).threePointArc((-0.013, 0.402), (0.304, 0.203)).threePointArc((0.03, -0.129), (-0.137, -0.526)).lineTo(-0.304, -0.526).lineTo(-0.304, 0.637).close().workplane(offset=0.... | 13 | 113 | 0.849458 |
train_995fbb9510766ed2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.032, -0.274, -0.084), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.121, -0.719).lineTo(0.121, -0.719).lineTo(0.121, 0.968).lineTo(-0.121, 0.968).lineTo(-0.121, -0.719).close().extrude(0.312)
result = result.edges().fillet(0.022)
result = result.... | 18 | 82 | 0.120221 |
train_b3dbb5ab6ddd0331 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.274, -0.322, -0.928), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.63, 0.63).lineTo(0.63, -0.63).lineTo(-0.63, -0.63).lineTo(-0.63, 0.63).lineTo(0.63, 0.63).close().revolve(angleDegrees=90, axisStart=(0.63, 0.63), axisEnd=(0.63, 0))
result = re... | 25 | 211 | 1.686124 |
train_d990596a5444ff2f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.124, -0.338, 0.738), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.652, -0.138).threePointArc((-0.428, 0.428), (0.138, 0.652)).threePointArc((0.652, -0.652), (-0.652, -0.138)).close().extrude(1.475)
result = result.union(cq.Workplane(cq.Plane(or... | 4 | 17 | 2.788049 |
train_620d20545a7e7628 | 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.235, 0.881).threePointArc((0.179, 0.875), (0.124, 0.855)).threePointArc((-0.197, 0.867), (-0.489, 1)).threePointArc((-0.258, 0.638), (0.107, 0.41)).threePointArc((0.168, 0.384), (0.235, 0.375)... | 10 | 51 | 0.692683 |
train_8268f697a88d78b8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.708, 1.208).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.074, 0.336, -0.8), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.528, 0.564).extrude(0.857))
result = result.cut(cq.Workpla... | 9 | 86 | 3.469344 |
train_876cb2de06ebf1db | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.113, 1, 0.355), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.552, 0.765).lineTo(-0.607, 0.746).lineTo(-0.216, -0.437).lineTo(-0.195, -0.501).lineTo(-0.122, -0.538).lineTo(-0.011, -0.501).lineTo(0.569, -0.309).lineTo(0.607, -0.236).lineTo(0.45, ... | 2 | 24 | 0.424717 |
train_345cac69a662e774 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.088, -0.101, 0.439), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.426, 0.106).threePointArc((0.375, 0.228), (0.497, 0.178)).lineTo(0.497, 1.029).threePointArc((0.375, 0.978), (0.426, 1.101)).lineTo(-0.426, 1.101).threePointArc((-0.375, 0.978), (... | 5 | 46 | 0.431314 |
train_26afcf3cbb2d722d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.763, 0, -0.319), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.237).sweep(cq.Workplane('XZ').spline([(-0.763, -1.429), (-0.445, -1.694), (-0.127, -1.827), (0.19, -1.827), (0.507, -1.694), (0.825, -1.429)]))
result = result.cut(cq.Workplane(cq.Pla... | 8 | 44 | 0.29482 |
train_52ab4041e1056dc5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.091, 0, -0.284), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.458, 0.471).extrude(0.058)
result = result.union(cq.Workplane(cq.Plane(origin=(0.23, 0.009, -0.222), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.136, 0.172).lineTo(-0.166, 0.076).lineTo... | 9 | 176 | 0.235609 |
train_8b5342e44383de8d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.106, -0.165, 0.282), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.24, 0.574).threePointArc((-0.261, 0.473), (-0.24, 0.373)).threePointArc((-0.18, 0.285), (-0.09, 0.228)).threePointArc((-0.127, 0.161), (-0.12, 0.084)).threePointArc((0, 0.004), (... | 5 | 29 | 0.5587 |
train_7fd83f22e569fb11 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.565, 0.412, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 1.622).lineTo(0.285, -0.435).lineTo(-0.285, -0.435).lineTo(-0.223, 0.009).lineTo(0, 1.622).close().extrude(0.824)
result = result.edges().chamfer(0.057)
result = result.cut(cq.Workpla... | 11 | 46 | 0.431521 |
train_8b1da0dc638864dd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.118, 0, -0.489), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.763, 1.54).extrude(0.978)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.407, 0.34, -0.136), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.833, 0.905).extrude(0.314))
result = result.... | 11 | 119 | 2.311094 |
train_7cb2303ec0b7d7df | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.042, 0, 0.16), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.162, 0.051).threePointArc((0, 0.053), (-0.162, 0.051)).threePointArc((-0.258, 0.048), (-0.353, 0.043)).threePointArc((-0.656, 0.021), (-0.958, -0.014)).lineTo(-0.952, -0.053).threePointA... | 7 | 15 | 0.000072 |
train_045392d86fdd5401 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.17).extrude(0.2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.025, -0.217, -0.134), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.217).extrude(0.24))
result = result.cut(cq.Workplane(c... | 25 | 116 | 0.38803 |
train_f3202cd2056609ba | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.69, -0.705), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.26, 0.163).threePointArc((-0.242, 0.206), (-0.2, 0.223)).lineTo(0.058, 0.223).threePointArc((0.084, 0.217), (0.105, 0.199)).lineTo(0.248, 0.011).threePointArc((0.257, -0.006), (0.26, ... | 24 | 89 | 0.129908 |
train_f8f966654d9d8203 | 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.39, 1.241).extrude(2)
result = result.edges().fillet(0.052)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.639, 0.254, 0.556), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.117, 0.162).extrude... | 15 | 69 | 3.066319 |
train_85e58270e9f6cdf2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.108, -0.158, -0.166), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.855, -0.004).lineTo(0.591, 0.61).lineTo(-0.005, 0.809).lineTo(-0.57, 0.579).lineTo(-0.825, -0.022).lineTo(-0.591, -0.565).lineTo(0.007, -0.842).lineTo(0.597, -0.614).close().move... | 6 | 110 | 0.555424 |
train_ca05b51c76982677 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.337, 0.557), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.557, 0.489).lineTo(-0.557, 0.532).lineTo(-0.32, 0.532).threePointArc((0.085, 0.262), (0.557, 0.142)).lineTo(0.342, 0.142).threePointArc((-0.015, 0.266), (-0.32, 0.489)).lineTo(-0.32,... | 3 | 94 | 0.093144 |
train_3cb1338617837f47 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.681, -0.065, 0.018), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.032, 0.101).lineTo(0.083, -0.16).lineTo(0.062, -0.169).lineTo(-0.057, 0.101).lineTo(-0.083, 0.16).lineTo(-0.062, 0.169).lineTo(-0.032, 0.101).close().sweep(cq.Workplane('XY').sp... | 10 | 84 | 0.019124 |
train_6ea976ae0e28fc01 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.605), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.802, 1.994).extrude(1.024)
result = result.union(cq.Workplane(cq.Plane(origin=(0.169, 0.107, -0.818), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.118, 0.09).threePointArc((-0.096, -0.026), ... | 9 | 76 | 2.164961 |
train_cab7184cba6f6c91 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.235, 0.106, -0.049), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.008, 0.024).lineTo(0.008, -0.024).lineTo(-0.008, -0.024).lineTo(-0.008, 0.024).lineTo(0.008, 0.024).close().sweep(cq.Workplane('YZ').spline([(0.106, -0.055), (0.109, -0.055), (0.1... | 13 | 183 | 0.024223 |
train_c19075799e4712d7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.141, 0.006, -0.15), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.084, 0.773).extrude(0.098)
result = result.union(cq.Workplane(cq.Plane(origin=(0.045, 0.018, -0.056), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.291, 0.296).extrude(0.045))
result = r... | 23 | 136 | 0.203336 |
train_23032c3b89a54d80 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.293, 0.759, 0.143), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.29, 1.261).threePointArc((-0.857, -0.397), (0.801, 0.17)).lineTo(0.857, 0.17).lineTo(0.857, 0.416).lineTo(0.801, 0.416).threePointArc((0.523, 0.983), (-0.045, 1.261)).threePointAr... | 9 | 86 | 3.293591 |
train_79ba1983d96c35d4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.662, -0.186), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.148, -0.155).lineTo(-0.008, 0.063).lineTo(-0.076, 0.169).lineTo(0.06, 0.169).lineTo(0, 0.075).lineTo(0.008, 0.063).lineTo(0.148, -0.155).lineTo(0.14, -0.169).lineTo(0.132, -0.155).li... | 3 | 15 | 0.073835 |
train_75e6982f6a353a47 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.205, -0.199, -0.417), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.092, 1.602).extrude(0.577)
result = result.union(cq.Workplane(cq.Plane(origin=(0.205, -0.199, 0.152), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.848, 0.931).extrude(0.118))
result = ... | 14 | 135 | 1.204793 |
train_342120e3af231944 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.088, -0.298, 0.376), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.624, 0.437).threePointArc((-0.598, 0.39), (-0.57, 0.347)).threePointArc((-0.545, 0.313), (-0.517, 0.281)).threePointArc((-0.476, 0.24), (-0.43, 0.201)).lineTo(0.43, 0.201).threeP... | 14 | 77 | 0.044482 |
train_8a55943e63d2e6ca | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.282, -0.228), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.99, 1.437).extrude(0.151)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.016, 0.161, -0.054), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.194, -0.406).lineTo(0.266, -0.365).lineT... | 18 | 91 | 0.448739 |
train_5985bf2fa7056439 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.266, 0, -0.862), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.468, 1.654).extrude(1.723)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.122, -0.116, -0.45), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.221).extrude(0.347))
result = result.edges... | 19 | 119 | 2.486743 |
train_14a75f0d5826257e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.5, 0, 0), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.5, 0.314).lineTo(-0.5, -0.314).lineTo(0.5, -0.314).lineTo(0.5, 0.314).lineTo(-0.5, 0.314).close().revolve(angleDegrees=270, axisStart=(-0.5, 0.314), axisEnd=(-0.5, -0.314))
result = result.... | 3 | 33 | 1.403706 |
train_0bf96f05e26f3656 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.795, -0.025, 0.116), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.205).sweep(cq.Workplane('XZ').spline([(-0.795, 0.116), (-0.018, 0.116), (0.427, -0.181), (0.873, -0.479)]))
result = result.union(cq.Workplane(cq.Plane(origin=(0.212, 0.203, -0.2... | 3 | 17 | 0.129129 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.