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_3e30063a4d314b1c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.053, -0.109, 0.364), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.122, -0.432).lineTo(-0.122, 0.432).lineTo(0.122, 0.187).lineTo(0.122, -0.187).lineTo(-0.122, -0.432).close().extrude(0.263)
result = result.edges().chamfer(0.028)
result = resul... | 9 | 93 | 0.086115 |
train_c170c04038c2fc15 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.412, -0.016), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.054, 0.038).lineTo(0.054, 0.038).lineTo(-0.054, -0.038).lineTo(-0.054, 0.038).close().sweep(cq.Workplane('XY').spline([(-0.325, -0.412), (-0.055, -0.222), (0.215, -0.127), (0.485, ... | 2 | 9 | 0.004854 |
train_65b918cf84893851 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.558, 0.584), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.385, -0.867).lineTo(-0.385, 0.867).lineTo(0.385, 0.83).lineTo(0.385, -0.867).lineTo(0.357, -0.867).lineTo(0.357, 0.802).lineTo(-0.061, 0.824).lineTo(-0.088, 0.824).lineTo(-0.088, 0.826... | 1 | 13 | 0.266737 |
train_58e76ce373d60d08 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.102, 0.009, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.153, 1.021).threePointArc((-0.153, 0.009), (0.153, -1.002)).lineTo(0.153, 1.021).close().extrude(0.204)
result = result.edges().chamfer(0.013)
result = result.cut(cq.Workplane(cq.Plane... | 8 | 56 | 0.082428 |
train_831304a7767077dd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.512, 0.432, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.419, 0.093).threePointArc((-0.174, 0.339), (-0.419, 0.931)).lineTo(-0.053, 0.931).lineTo(-0.053, 0.659).lineTo(0.419, 0.387).lineTo(0.419, 0.093).close().workplane(offset=0.155).moveTo... | 4 | 24 | 0.402472 |
train_ccad67139f6e7767 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.293, -0.238, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.293, 1.238).lineTo(-0.293, -0.762).lineTo(0.293, -0.762).lineTo(-0.293, 1.238).close().revolve(angleDegrees=360, axisStart=(-0.293, 1.238), axisEnd=(-0.293, -0.762))
result = result.e... | 11 | 34 | 0.629854 |
train_07090b15a08db7a6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.081), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.329).sweep(cq.Workplane('XZ').spline([(-0.868, -0.216), (-0.289, 0.169), (0.289, 0.169), (0.868, -0.216)]))
result = result.edges().fillet(0.078)
result = result.union(cq.Workplane(cq.Plane... | 17 | 148 | 0.543976 |
train_e52d344df5f2846d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.059, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1, 0.088).lineTo(-1, 0.502).lineTo(1, 0.502).lineTo(1, 0.088).lineTo(-1, 0.088).close().revolve(angleDegrees=360, axisStart=(0, 0), axisEnd=(0.118, 0))
result = result.edges().fillet(0.029)... | 12 | 134 | 1.465063 |
train_562b12c100e003bf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.049, 0, -0.447), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.903, 1.384).extrude(0.894)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.81 + 0.3805, -0.554 + 0.1845, -0.581), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.1).extrude(1.163))
res... | 15 | 23 | 2.188189 |
train_53a44419799ac088 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.309, 0.566, 0.168), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.417, 0.566).lineTo(-0.417, -0.169).lineTo(0.293, -0.169).lineTo(0.417, 0.566).lineTo(-0.417, 0.566).close().extrude(0.901)
result = result.edges().fillet(0.165)
result = result.fa... | 21 | 122 | 0.387275 |
train_50e6fb0bd45ba2b8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.23, 0.274, -0.238), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.038, 1.452).extrude(0.621)
result = result.union(cq.Workplane(cq.Plane(origin=(0.508, 0.161, -0.162), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.482, 0.435).extrude(0.308))
result = r... | 4 | 16 | 1.053907 |
train_3f9cda24ec593b55 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.075, -0.111, 0.139), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.861, 0.006).lineTo(0.861, 0.143).lineTo(-0.861, 0.143).lineTo(-0.861, 0.006).lineTo(0.861, 0.006).close().extrude(0.222)
result = result.edges().chamfer(0.038)
result = result.cut... | 10 | 54 | 0.045559 |
train_4127f4f19d848ada | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.923, 0, -0.465), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.048, 0.047).threePointArc((-0.07, 0.038), (-0.08, 0.016)).lineTo(-0.08, -0.016).threePointArc((-0.07, -0.038), (-0.048, -0.047)).lineTo(-0.043, -0.047).lineTo(0.08, -0.047).lineTo(0.0... | 1 | 16 | 0.007176 |
train_4d0087ad844f2d77 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.386, -0.007, 0.631), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.236).lineTo(-0.272, -0.236).lineTo(0.272, -0.236).lineTo(0.065, -0.116).lineTo(0, -0.079).lineTo(0.129, -0.004).lineTo(0.136, 0).lineTo(0, 0.236).close().sweep(cq.Workplane('XZ'... | 3 | 78 | 0.192838 |
train_49c025f95cf8a43f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1.164, 0.006, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.715, 1.158).lineTo(-0.992, 1.158).lineTo(-0.992, 0.568).lineTo(-0.379, 0.152).lineTo(0.992, 0.152).lineTo(0.992, 1.158).lineTo(-0.715, 1.158).close().revolve(angleDegrees=270, axisSta... | 11 | 186 | 3.686689 |
train_1e90f0953a9e1374 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.5, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.026, 0.95).lineTo(-0.117, 0.933).lineTo(-0.218, 1).lineTo(-0.195, 0.881).lineTo(-0.313, 0.904).lineTo(-0.246, 0.804).lineTo(-0.264, 0.712).lineTo(-0.246, 0.621).lineTo(-0.195, 0.544).lineTo... | 4 | 51 | 0.316859 |
train_37b88f094d3279cf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.415, 0.121), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.668, -0.146).lineTo(0.668, 0.146).lineTo(-0.668, 0.146).lineTo(-0.668, -0.146).lineTo(0.668, -0.146).close().transformed(offset=(0.146, -0.171, 0.058), rotate=(0, 0, 90)).moveTo(0.391,... | 1 | 6 | 0.381867 |
train_93350cead6c32ba2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.098, -0.419, -0.469), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.286, 1.419).lineTo(0.286, 0.419).lineTo(-0.361, 0.419).lineTo(-0.361, -0.581).lineTo(0.361, -0.581).lineTo(0.361, 1.419).lineTo(0.286, 1.419).close().extrude(1.308)
result = resu... | 5 | 27 | 0.330675 |
train_dd1e93269af2695c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.383, 0.216, 0.033), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.42, 0.011).lineTo(-0.42, 0.011).lineTo(-0.42, 0.188).lineTo(0.42, 0.188).lineTo(0.42, 0.011).close().extrude(0.476)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.122, 0.12... | 14 | 150 | 2.320683 |
train_8761a16f09334145 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0, -0.33), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.336).sweep(cq.Workplane('XZ').spline([(-0.34, -0.707), (0.32, -0.442), (0.98, -0.498)]))
result = result.edges().fillet(0.091)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, -0.269 ... | 11 | 64 | 0.433124 |
train_3babca256f539819 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.326, -0.286, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(1, -0.438).lineTo(-1, 0.098).lineTo(-0.909, 0.438).lineTo(0.751, -0.007).lineTo(1, -0.438).close().sweep(cq.Workplane('XY').spline([(0.324, -0.286), (0.486, -0.073), (0.44, 0.176), (0.... | 2 | 7 | 0.461694 |
train_bb40e7c728ffd8e2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1, 0.418), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.308, -0.308).lineTo(0.173, -0.173).lineTo(-0.158, -0.244).lineTo(0.158, 0.244).lineTo(-0.173, 0.173).lineTo(-0.244, 0.158).lineTo(-0.173, -0.173).lineTo(-0.308, -0.308).lineTo(-0.308, 0.3... | 1 | 12 | 0.108449 |
train_b366114e10757f2d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.246, -0.742), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.409, -0.295).lineTo(-1, 0.443).lineTo(0.901, 0.443).threePointArc((0.906, 0.434), (0.911, 0.424)).threePointArc((1, 0.063), (0.901, -0.295)).lineTo(-0.259, -0.295).lineTo(-0.259, -0... | 7 | 35 | 0.957119 |
train_e9948a6d8414f229 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.141, 0.066, 0.62), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.147, -0.116).lineTo(-0.147, 0.321).lineTo(0.147, 0.321).lineTo(0.147, -0.116).lineTo(-0.147, -0.116).close().revolve(angleDegrees=360, axisStart=(-0.147, -0.116), axisEnd=(-0.147, ... | 29 | 256 | 0.221863 |
train_a0d8f8ffbbfedc68 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.705, -0.277, -0.165), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.835, 0.705).lineTo(-0.835, 0.705).lineTo(-0.835, 0.15).lineTo(0.835, 0.15).lineTo(0.835, 0.705).close().revolve(angleDegrees=180, axisStart=(0.835, 0.705), axisEnd=(0.759, 0.705)... | 6 | 37 | 0.172608 |
train_5447d9367d937189 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.323), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.237).extrude(0.731)
result = result.union(cq.Workplane(cq.Plane(origin=(0.099, 0.061, 0.406), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.557).extrude(0.093))
result = result.union(cq.Wor... | 14 | 47 | 1.367999 |
train_f56dddee73b6acd2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.262, 0.156), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.194, -0.065).lineTo(-0.196, -0.066).lineTo(-0.039, -0.204).lineTo(-0.039, -0.201).lineTo(0.157, -0.134).lineTo(0.196, 0.068).lineTo(0.041, 0.204).lineTo(-0.154, 0.137).lineTo(-0.194, ... | 18 | 35 | 0.151673 |
train_83b0dec24a2ac107 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.525, -0.039, 0.21), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.435, 1.039).threePointArc((-0.404, 0.985), (-0.374, 0.93)).threePointArc((-0.078, 0.052), (-0.087, -0.875)).threePointArc((0.13, -0.89), (0.33, -0.972)).threePointArc((0.381, -0.9... | 14 | 135 | 1.536587 |
train_f5ffc257b898b265 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.089, -0.228, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.861, 0.228).lineTo(1, 0.228).lineTo(1, 0.05).lineTo(-1, 0.05).lineTo(-1, 0.228).lineTo(-0.861, 0.228).close().revolve(angleDegrees=180, axisStart=(-0.861, 0.228), axisEnd=(0.861, 0.... | 18 | 116 | 0.055387 |
train_4e03bd9e970775c6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.061, 0.321), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.5, -1).threePointArc((-0.207, -0.707), (-0.5, 0)).lineTo(-0.5, 1).lineTo(0.5, 1).lineTo(0.5, 0).lineTo(0.5, -1).close().sweep(cq.Workplane('YZ').spline([(0.37, -0.349), (0.458, -0.229... | 5 | 39 | 1.721827 |
train_9931381975a9a53e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.16, -0.027, 0.108), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.291, 1.027).lineTo(0.291, 0.679).lineTo(0.639, 0.679).lineTo(0.639, 0.097).lineTo(-0.639, 0.097).lineTo(-0.639, 0.679).lineTo(-0.291, 0.679).lineTo(-0.291, 1.027).lineTo(0.291, 1.... | 12 | 204 | 0.44691 |
train_36eb0d986f39b7e8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.059, 0.022, -0.36), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.882, 1.157).extrude(0.715)
result = result.union(cq.Workplane(cq.Plane(origin=(0.602, 0.661, -0.161), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.064).extrude(0.045))
result = result... | 6 | 26 | 1.561359 |
train_23d6b20d9926f3fb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.447, 0.497, -0.028), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.492, 1.163).lineTo(0.246, 1.305).lineTo(0, 1.447).lineTo(-0.246, 1.305).lineTo(-0.492, 1.163).lineTo(-0.492, 0.595).lineTo(-0.246, 0.453).lineTo(0, 0.311).lineTo(0.246, 0.453).lin... | 21 | 91 | 1.229496 |
train_b26f9e4a7d46c98f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.797, 0.051, -0.182), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.217, 0.451).lineTo(0.217, -0.416).lineTo(-0.014, -0.416).lineTo(-0.014, -0.076).threePointArc((-0.031, -0.035), (-0.072, -0.018)).lineTo(-0.217, -0.018).lineTo(-0.217, 0.451).line... | 8 | 91 | 0.40055 |
train_5b2ab9a52252031b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.403, -0.262, -0.515), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.172, 0.17).extrude(0.026)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.369, -0.291, -0.507), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.109, 0.048).extrude(0.016))
result = ... | 32 | 223 | 0.810698 |
train_e7b01e5056122558 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.299, 0.069, -0.086), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.561, 0.677).extrude(0.956)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.363, 0.549, 0.26), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.207, 0.303).extrude(0.415))
result = r... | 9 | 62 | 0.33382 |
train_822ba865319feea3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.185, 0, -0.265), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.309, 0.32).extrude(0.332)
result = result.union(cq.Workplane(cq.Plane(origin=(0.153, -0.089, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.009).extrude(0.805))
result = result.union(c... | 5 | 70 | 0.033999 |
train_bc06ec60a95c00d8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.379), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.999).extrude(0.758)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0.154), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.407, 0.062).lineTo(0.415, 0.062).lineTo(0.415, 0.004).line... | 14 | 71 | 2.600747 |
train_f81cddc127751d8a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.19, -0.115), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.177, 0.177).lineTo(0.177, -0.044).lineTo(0.044, -0.177).lineTo(-0.177, -0.177).lineTo(-0.177, 0.177).lineTo(0.177, 0.177).close().extrude(0.425)
result = result.edges().chamfer(0.086)
... | 6 | 57 | 0.038775 |
train_17e83c5224310c78 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.118, -0.011, 0.703), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.221).sweep(cq.Workplane('XZ').spline([(0.488, -0.193), (0.722, 0.021), (0.739, 0.298), (0.532, 0.526)]))
result = result.edges().chamfer(0.153)
result = result.union(cq.Workplane... | 14 | 57 | 0.300051 |
train_e897d4cf27bf5d63 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.32, 0.137, -0.107), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.152, 0.334).threePointArc((-0.173, 0.286), (-0.226, 0.291)).lineTo(-0.378, 0.028).threePointArc((-0.347, -0.015), (-0.378, -0.058)).lineTo(-0.226, -0.321).threePointArc((-0.173, ... | 3 | 34 | 0.825636 |
train_75a8a3712c566843 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.267, -0.781, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.292, 0.101).lineTo(1.105, 0.479).lineTo(0.759, 1.222).lineTo(0.599, 1.566).lineTo(-1.105, 0.771).lineTo(-0.792, 0.101).lineTo(0.292, 0.101).close().extrude(1.119)
result = result.edge... | 14 | 159 | 1.474538 |
train_5492b2c1a9871aa3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.042, -0.073, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.463, 1.478).extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.731, 0.246, 0.397), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.043).extrude(0.198))
result = result.union(... | 11 | 110 | 4.206105 |
train_4c762e3cdfdc7345 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.028, 0.148, -0.089), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.169, 0.073).lineTo(-0.169, 0.059).lineTo(-0.184, 0.059).lineTo(-0.184, -0.073).lineTo(0.184, -0.073).lineTo(0.184, 0.073).lineTo(-0.169, 0.073).close().sweep(cq.Workplane('YZ').sp... | 26 | 257 | 0.026907 |
train_811be65b719b9039 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.09, -1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.347, -0.063).lineTo(-0.44, 0.005).lineTo(-0.206, 0.192).lineTo(0.047, 0.244).lineTo(0.44, -0.063).lineTo(-0.347, -0.063).close().extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origi... | 12 | 50 | 0.218496 |
train_cbc4077c7493c9a4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.775, 0.609, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.872, 0.045).threePointArc((-0.962, 0.082), (-1, 0.173)).lineTo(-1, 1.045).threePointArc((-0.962, 1.136), (-0.872, 1.173)).lineTo(0.872, 1.173).threePointArc((0.962, 1.136), (1, 1.045)... | 8 | 53 | 2.717163 |
train_8458a90035f1a828 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.17, -0.792, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.133, 0.413).threePointArc((-0.144, 0.418), (-0.155, 0.413)).threePointArc((-0.23, 0.277), (-0.261, 0.125)).threePointArc((-0.306, -0.135), (-0.431, -0.366)).threePointArc((-0.442, -0... | 2 | 29 | 0.386266 |
train_3dc7857d151974a7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.132, 0.133, 0.502), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.126, -0.827).threePointArc((0.222, -0.761), (0.522, -0.572)).threePointArc((0.827, 0.091), (0.574, 0.776)).threePointArc((-0.776, 0.827), (-0.827, -0.522)).threePointArc((-0.509, ... | 7 | 39 | 2.282077 |
train_0dcabbe8f615de52 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.657, 0.304, 0.025), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.342, 1.076).lineTo(-0.342, 0.05).lineTo(0.342, 0.05).lineTo(0.342, 1.076).lineTo(0.085, 1.076).threePointArc((0, 1.162), (-0.085, 1.076)).lineTo(-0.342, 1.076).close().revolve(ang... | 29 | 184 | 1.061261 |
train_e052a5e814c78ba6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.304, -0.156), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.421, 1.392).extrude(0.188)
result = result.union(cq.Workplane(cq.Plane(origin=(0.071, -0.234, 0.031), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.279, 1.253).extrude(0.032))
result = resu... | 19 | 167 | 0.395778 |
train_22b92ba4a99ccd50 | 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.389).workplane(offset=0.964).circle(0.554).workplane(offset=1.036).circle(0.704).loft()
result = result.edges().chamfer(0.187)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.568, -0.091, ... | 13 | 57 | 1.295878 |
train_c5230fe86d98fbcd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.004, -0.005, -0.545), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.138, 0.838).lineTo(-0.278, 0.838).lineTo(-0.278, -0.995).lineTo(-0.362, -0.995).lineTo(-0.362, 1.005).lineTo(0.222, 1.005).lineTo(0.362, 0.838).lineTo(0.138, 0.838).close().extrud... | 7 | 59 | 0.519446 |
train_c827750f52ce27b5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.062, 0.003, -0.278), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.137, 0.998).lineTo(0.137, -0.201).lineTo(-0.137, -0.201).lineTo(-0.137, 0.998).lineTo(0.137, 0.998).close().revolve(angleDegrees=270, axisStart=(0.137, 0.998), axisEnd=(0.137, -0.... | 8 | 79 | 0.143576 |
train_6b5d92cda71af870 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.818, 0.156, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.061, 0.166).lineTo(-0.174, -0.068).lineTo(-0.221, -0.115).lineTo(-0.314, -0.209).lineTo(-0.361, -0.256).lineTo(-0.221, -0.397).lineTo(-0.08, -0.256).lineTo(-0.033, -0.209).lineTo(0.237... | 9 | 27 | 0.189732 |
train_34af05b11a861ab1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.448, 0.214, -0.534), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.277, 0.114).lineTo(-0.131, 0.659).lineTo(0.277, 0.55).lineTo(0.131, 0.005).lineTo(-0.277, 0.114).close().extrude(0.591)
result = result.edges().chamfer(0.059)
result = result.uni... | 7 | 135 | 0.278243 |
train_217a14c1625fc4dc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.338, 0.147), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.217).sweep(cq.Workplane('YZ').spline([(-0.879, -0.24), (-0.466, 0.068), (-0.052, 0.17), (0.361, 0.068), (0.775, -0.24)]))
result = result.cut(cq.Workplane(cq.Plane(origin=(0.88 + 0.217... | 10 | 57 | 0.239532 |
train_5753938970287bef | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0, 0.135), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.147, 0.01).threePointArc((-0.01, -0.018), (-0.147, -0.1)).threePointArc((-0.031, 0.045), (0.147, 0.1)).lineTo(0.147, 0.01).close().sweep(cq.Workplane('XZ').spline([(-0.531, 0.014), (-0.21... | 15 | 76 | 0.025738 |
train_450c67f26d196635 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.439, 0, -0.636), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.56, 0.232).lineTo(-0.56, -0.031).lineTo(0.104, -0.031).threePointArc((0.156, -0.126), (0.177, -0.232)).lineTo(0.56, -0.232).lineTo(0.56, -0.031).lineTo(0.199, -0.031).lineTo(0.199, 0... | 4 | 19 | 0.45385 |
train_d08fbc9de4a7b84f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.211, -0.141, 0.053), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.033, -0.096).lineTo(-0.023, -0.099).lineTo(0.021, 0.055).lineTo(0.031, 0.091).lineTo(0.033, 0.096).lineTo(0.023, 0.099).lineTo(0.011, 0.058).lineTo(-0.033, -0.096).close().sweep... | 15 | 105 | 0.110036 |
train_202213a0e342783f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.451, 0.031), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.263).workplane(offset=0.034).circle(0.302).workplane(offset=0.034).circle(0.268).workplane(offset=0.041).circle(0.604).loft()
result = result.edges().chamfer(0.055)
result = result.un... | 15 | 59 | 0.064577 |
train_3138b657e57f07fe | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.258, 0.415), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1.043, 0).threePointArc((0, 0.344), (-1.043, 0)).threePointArc((0, -0.344), (1.043, 0)).close().extrude(0.633)
result = result.edges().fillet(0.058)
result = result.union(cq.Workplane(c... | 9 | 60 | 0.408696 |
train_6ccbe3b9b6eb70af | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.354, 0, -0.291), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.354, -0.476).lineTo(0.354, 0.476).lineTo(-0.354, 0.476).lineTo(-0.354, -0.476).lineTo(-0.177, -0.476).threePointArc((0, -0.299), (0.177, -0.476)).lineTo(0.354, -0.476).close().revolv... | 2 | 14 | 1.147103 |
train_026948e6b0d08d71 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.379, 0, -0.072), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.149, 1.207).extrude(1.072)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.543, 0, 0.257), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.41).extrude(0.414))
result = result.union(cq... | 9 | 63 | 1.527239 |
train_df5597cb74dc10b8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.809, -0.183), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.583, 1.715).lineTo(0.583, 0.809).threePointArc((0.584, 0.771), (0.583, 0.731)).lineTo(0.583, -0.096).lineTo(-0.584, -0.096).lineTo(-0.584, 0.731).lineTo(-0.584, 0.809).lineTo(-0.584,... | 11 | 66 | 2.502798 |
train_090863ec37f70e3b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.479), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.712, 2).extrude(0.958)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.005, -0.194, -0.171), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.194, 0.022).lineTo(0.295, 0.022).threePointArc(... | 9 | 39 | 1.077071 |
train_0f2a5abc684b9759 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.088, -0.172, 0.652), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.348, 0.393).lineTo(-0.348, 0.043).lineTo(0.348, 0.043).lineTo(0.348, 0.393).lineTo(-0.348, 0.393).close().extrude(0.344)
result = result.edges().fillet(0.034)
result = result.uni... | 4 | 33 | 0.083449 |
train_b4776be5a79453c1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.216, 0.078, -0.499), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.743, 0.613).extrude(0.365)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.426, -0.056, -0.173), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.107, 0.078).extrude(0.878))
result ... | 9 | 62 | 0.26138 |
train_f313b36ec1f70cfb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.513, 0, -0.414), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.501).workplane(offset=0.492).circle(0.583).workplane(offset=0.533).circle(0.553).loft()
result = result.edges().fillet(0.319)
result = result.union(cq.Workplane(cq.Plane(origin=(0.051... | 6 | 23 | 1.161692 |
train_5e0b0c3b0fbe31a6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.31, -0.007, -0.367), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.998, 0.848).extrude(0.735)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.897, -0.148, -0.154), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.103).extrude(0.19))
result = resu... | 15 | 237 | 0.311054 |
train_d4f6c0fecaea91a1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.471, 0, -0.448), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.057, 1.199).extrude(0.895)
result = result.union(result.mirror('YZ', basePointVector=(0, 0, -0.448)))
result = result.edges().chamfer(0.044)
| 3 | 26 | 2.129743 |
train_78ef4740c86270c0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.068, 0, -0.183), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.265, 1.15).extrude(0.827)
result = result.union(cq.Workplane(cq.Plane(origin=(0.062, -0.228, 0.614), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.224).extrude(0.332))
result = result.unio... | 18 | 53 | 1.463558 |
train_bf24c74edd9372e9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.171, -0.797, -0.339), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, -0.04).lineTo(0.006, -0.012).lineTo(0, -0.012).lineTo(0.006, -0.012).lineTo(0.007, -0.007).lineTo(0.012, -0.012).lineTo(0.011, -0.013).lineTo(0.013, -0.013).lineTo(0.02, -0.02).... | 12 | 270 | 0.157054 |
train_2fbb546b94b67b43 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.222, 0, -0.5), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.5, 0.716).lineTo(0.5, -0.271).lineTo(-0.5, -0.272).lineTo(-0.5, 0.716).lineTo(0.5, 0.716).close().revolve(angleDegrees=270, axisStart=(0.5, 0.716), axisEnd=(0.5, -0.271))
result = resul... | 10 | 65 | 2.197422 |
train_32b00614ed651b72 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.231, -0.347, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.281).workplane(offset=0.318).circle(0.263).workplane(offset=0.335).circle(0.293).loft()
result = result.union(cq.Workplane(cq.Plane(origin=(0.604, -0.579, 0.118), normal=(0, 1, 0), xD... | 3 | 25 | 0.178014 |
train_b5147131688a7e66 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.498, -0.016, 0.085), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, -0.358).lineTo(-0.059, -0.393).lineTo(-0.12, -0.427).lineTo(-0.12, -0.565).lineTo(-0.059, -0.599).lineTo(0, -0.634).lineTo(0.059, -0.599).lineTo(0.12, -0.565).lineTo(0.12, 0.645)... | 6 | 83 | 0.36046 |
train_e525d2a34ab6fda2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.262, -0.252, -0.091), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.738, -0.021).lineTo(0.381, 0.63).lineTo(-0.396, 0.628).lineTo(-0.748, -0.011).lineTo(-0.397, -0.623).lineTo(0.36, -0.633).close().moveTo(-0.3, 0.205).lineTo(-0.322, 0.262).lineTo(... | 12 | 88 | 0.202791 |
train_71d1d1d85b0e74f1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.414, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.615, 0.339).lineTo(0.615, 0.339).lineTo(0.615, 1.257).lineTo(-0.615, 1.265).lineTo(-0.615, 0.339).close().revolve(angleDegrees=360, axisStart=(-0.615, 0.339), axisEnd=(0.615, 0.339))
resul... | 12 | 129 | 3.036988 |
train_de9086978c28089e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.375, -0.375, -0.061), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.08, -0.229).lineTo(0.08, -0.357).lineTo(-0.048, -0.357).lineTo(-0.048, -0.229).lineTo(-0.08, -0.229).lineTo(-0.08, 0.413).lineTo(0.035, 0.413).lineTo(0.035, 0.235).threePointArc(... | 25 | 247 | 0.627962 |
train_0bdf39a2e88f774f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.87, 0.99, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.137, 1.256).threePointArc((-0.699, 0.57), (-0.137, -0.116)).threePointArc((0.699, 0.57), (-0.137, 1.256)).close().extrude(1.979)
result = result.edges().fillet(0.274)
result = result.cu... | 7 | 27 | 3.129656 |
train_778ca90473a075a6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.673, 0.119, -0.252), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.748, 0.39).lineTo(0.748, 0.39).lineTo(0.748, -0.39).lineTo(-0.748, -0.39).lineTo(-0.748, 0.39).close().sweep(cq.Workplane('XY').spline([(-0.187, 0.119), (0.323, 0.119), (0.553, ... | 3 | 15 | 0.932591 |
train_6baf4c56f9cefd25 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.356), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.635, 2).extrude(0.534)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.254 + 0.051, 0, 0.179), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.026, 0.032).lineTo(0.026, 0.038).lineTo(-0.0... | 9 | 48 | 0.64021 |
train_b8dc7ac413edefce | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.736, 0, -0.3), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.561).sweep(cq.Workplane('XZ').spline([(0.736, -0.3), (0.35, -0.104), (-0.238, -0.002), (-0.886, -0.017)]))
result = result.edges().chamfer(0.412)
result = result.cut(cq.Workplane(cq.Pla... | 7 | 22 | 0.547365 |
train_9d308e2b5e0da807 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.184, 0.101, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.955, 0.298).lineTo(-0.955, 0.343).lineTo(-1, 0.343).lineTo(-1, 0.025).lineTo(1, 0.025).lineTo(1, 0.07).lineTo(-0.955, 0.07).lineTo(-0.955, 0.298).close().extrude(0.202)
result = resul... | 4 | 62 | 0.018773 |
train_99e16a84bf31fe17 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.047, -0.06, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.673, 0.088).lineTo(-1, 0.088).lineTo(-1, 0.006).lineTo(1, 0.006).lineTo(1, 0.088).lineTo(-0.673, 0.088).close().extrude(0.121)
result = result.edges().fillet(0.006)
result = result.cu... | 15 | 154 | 0.014566 |
train_5247229fb6e02dc6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.761, 0.418, -0.688), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.027, -0.019).lineTo(-0.021, -0.007).lineTo(-0.003, 0.029).lineTo(0.007, 0.011).lineTo(0.015, -0.005).lineTo(0.022, -0.019).lineTo(0.027, -0.029).lineTo(0.004, -0.019).lineTo(-0.... | 1 | 37 | 0.000237 |
train_0fe76e343f385d6c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.694, -0.016, -0.469), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.531, 0.775).lineTo(-0.367, -0.045).lineTo(-0.316, -0.303).lineTo(-0.531, -0.303).lineTo(-0.531, -0.372).lineTo(-0.302, -0.372).lineTo(-0.289, -0.44).lineTo(-0.228, -0.744).lineT... | 8 | 134 | 1.537712 |
train_4f3ba6ade6020609 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.241), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, -1).lineTo(0.191, -0.33).lineTo(0.866, -0.5).lineTo(0.381, 0).lineTo(0.866, 0.5).lineTo(0.191, 0.33).lineTo(0, 1).lineTo(-0.191, 0.33).lineTo(-0.866, 0.5).lineTo(-0.381, 0).lineTo(-0.866,... | 9 | 54 | 0.331185 |
train_9f54109ee73360b5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.012, -0.036, 0.018), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.146, -0.059).lineTo(-0.146, -0.078).lineTo(0.146, -0.078).lineTo(0.146, -0.049).lineTo(0.01, -0.049).lineTo(0.01, 0.078).lineTo(-0.01, 0.078).lineTo(-0.01, -0.059).lineTo(-0.146, ... | 8 | 74 | 0.019208 |
train_9c7e4a61fc256367 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.115, 0.235, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.484, -0.885).lineTo(-0.484, 1.115).lineTo(0.484, 1.115).lineTo(0.484, -0.885).lineTo(-0.484, -0.885).close().extrude(0.47)
result = result.edges().chamfer(0.131)
result = result.cut(c... | 13 | 72 | 0.646402 |
train_3d0cb6c2fd76d280 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.351, -0.191, -0.012), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.406, 0.014).lineTo(-1.012, 0.014).lineTo(-0.658, 0.368).lineTo(1.012, 0.368).lineTo(1.012, 0.014).lineTo(0.406, 0.014).close().extrude(0.702)
result = result.edges().chamfer(0.03... | 12 | 73 | 0.427409 |
train_6320955a63985d88 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.272, 0.002, -0.282), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.728, -0.008).lineTo(0.384, 0.656).lineTo(-0.354, 0.641).lineTo(-0.749, 0.024).lineTo(-0.369, -0.653).lineTo(0.363, -0.659).close().moveTo(-0.195, -0.248).lineTo(-0.18, -0.206).line... | 13 | 93 | 0.262142 |
train_327646e6acd0b577 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.008, -0.38, 0.319), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.189, 0.695).threePointArc((-0.368, 0.38), (-0.189, 0.065)).threePointArc((0.368, 0.38), (-0.189, 0.695)).close().extrude(1.008)
result = result.edges().chamfer(0.143)
result = res... | 9 | 77 | 0.332016 |
train_ef77583a250ca11a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.123, -0.223, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, -0.345).lineTo(-0.104, -0.345).lineTo(-0.158, 1.223).lineTo(0.158, 1.223).lineTo(0.104, -0.345).lineTo(0, -0.345).close().extrude(0.193)
result = result.union(cq.Workplane(cq.Plane(o... | 18 | 59 | 0.074469 |
train_7404bfd7dc7e4c1b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.657), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.132, 0.175).extrude(0.16)
result = result.union(cq.Workplane(cq.Plane(origin=(0.017, 0.045, -0.528), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.01).extrude(0.396))
result = result.edges().c... | 9 | 55 | 0.006373 |
train_dcdf1e170743f550 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.283, -0.112), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.198, 0.393).threePointArc((0.154, 0.377), (0.131, 0.335)).threePointArc((-0.157, 0.029), (-0.547, 0.185)).threePointArc((-0.625, 0.248), (-0.727, 0.255)).lineTo(-0.739, 0.253).threeP... | 5 | 58 | 0.494247 |
train_aaaec318b9b9553a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.144, 0, 0.031), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.241, 0.279).lineTo(-0.252, 0.284).lineTo(-0.621, 0.425).lineTo(-0.346, 0.277).lineTo(-0.4, 0.272).lineTo(-0.957, 0.231).lineTo(-0.969, 0.229).lineTo(0.969, -0.425).lineTo(0.926, -0.4)... | 1 | 11 | 0.157567 |
train_969788717b838046 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.675, -0.306, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.231, 0.244).lineTo(0.487, 0.244).lineTo(0.487, -0.325).lineTo(0.568, -0.325).lineTo(0.568, 0.325).lineTo(-0.568, 0.325).lineTo(-0.568, 0.244).lineTo(0.231, 0.244).close().sweep(cq.Wo... | 1 | 9 | 0.106995 |
train_df619df6ce074cf3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.156, -0.467, -0.295), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.251, 1.163).lineTo(-0.593, 1.089).lineTo(-0.251, -0.526).lineTo(-0.178, -0.869).lineTo(0.593, 0.318).lineTo(-0.251, 1.163).close().extrude(0.855)
result = result.edges().chamfer... | 14 | 92 | 0.694448 |
train_7861146369bf3c6c | 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.06, 1.188).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.087, 0.087, 0.035), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.167).extrude(0.99))
result = result.edges().fillet(0.037... | 4 | 34 | 2.348911 |
train_de1ec36ea25e61b7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.406), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, 0.562).lineTo(-0.125, 0.562).lineTo(-0.125, -0.313).lineTo(-0.999, -0.313).lineTo(-0.999, -0.438).lineTo(0, -0.438).lineTo(0, -0.562).lineTo(0.125, -0.562).lineTo(0.125, -0.438).lineTo(0.... | 3 | 20 | 0.112514 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.