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_b44079ccefc939be | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.046, 0, 0.651), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.134).sweep(cq.Workplane('XZ').spline([(-0.33, 0.054), (-0.105, -0.033), (0.136, -0.033), (0.361, 0.054), (0.361, 0.148), (0.136, 0.236), (-0.105, 0.236), (-0.33, 0.148)]))
| 1 | 3 | 0.042773 |
train_7172b80fe95ab3b5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.581, 0.882, 0.241), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.052).threePointArc((0.249, 0.088), (0.476, 0.19)).threePointArc((0.767, 0.49), (0.889, 0.891)).threePointArc((0.445, 0.93), (0, 0.943)).lineTo(0, 1.834).threePointArc((-0.649, 1... | 11 | 57 | 1.746798 |
train_c8c2dd1533326e41 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.656, -0.499, 0.008), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.976, 0.083).threePointArc((-1.002, 0.181), (-1.025, 0.28)).lineTo(-0.699, 0.385).lineTo(0.936, 0.913).lineTo(1.025, 0.69).lineTo(-0.805, 0.135).lineTo(-0.976, 0.083).close().extr... | 6 | 51 | 0.434108 |
train_179e73920ca2ac8c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.046, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.758, 0.725).extrude(1.794)
result = result.union(cq.Workplane(cq.Plane(origin=(0.378, -0.024, 0.24), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.047).extrude(0.273))
result = result.cut(cq.... | 12 | 275 | 0.824305 |
train_5046fcbaa463a30c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.002, 0.021, -0.305), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.182, 0.145).lineTo(-0.019, -0.145).lineTo(0.182, 0.145).lineTo(-0.182, 0.145).close().extrude(0.309)
result = result.edges().chamfer(0.05)
result = result.union(cq.Workplane(cq.P... | 14 | 89 | 0.034308 |
train_351ce6d7dacfdc6f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.087, -0.145, -0.45), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.147, 1.457).extrude(0.9)
result = result.union(cq.Workplane(cq.Plane(origin=(0.819, 0.022, -0.027), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.362, 0.253).extrude(0.161))
result = res... | 5 | 57 | 1.631287 |
train_6a0e8d90766753d1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.764, 0, 0.44), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.236, -0.527).threePointArc((0.236, 0), (-0.236, 0.527)).lineTo(-0.236, 0.167).lineTo(-0.236, -0.167).lineTo(-0.236, -0.527).close().extrude(0.485)
result = result.edges().fillet(0.055)... | 6 | 79 | 0.285801 |
train_4c161547070d4a3d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.388, 1, -0.067), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.225).sweep(cq.Workplane('XY').spline([(0.388, -0.304), (0.588, -0.25), (0.787, 0.289), (0.987, 0.828), (1.186, 0.882)]))
result = result.edges().fillet(0.037)
result = result.union(cq.... | 9 | 26 | 0.006675 |
train_3807d51bfa313aec | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.397, 0.72, -0.146), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.791, 0.803).threePointArc((0.088, 0.1), (0.791, -0.603)).lineTo(-0.791, -0.603).threePointArc((-0.439, 0.1), (-0.791, 0.803)).lineTo(0.791, 0.803).close().extrude(1.699)
result = r... | 20 | 186 | 1.937468 |
train_f56ae90f2ba0cfe4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.293, 0, 0.671), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.461).workplane(offset=0.676).circle(0.708).workplane(offset=0.666).circle(0.389).loft()
result = result.edges().chamfer(0.317)
result = result.faces('>Z').shell(-0.098)
result = resul... | 4 | 12 | 0.638485 |
train_ef6648c4b1dcbe05 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.108, 0.024, -0.377), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.053, -0.039).lineTo(0.335, 0.976).lineTo(-0.837, 0.657).lineTo(-0.836, -0.592).lineTo(0.301, -1.024).close().moveTo(-0.052, 0.3).lineTo(0.055, 0.3).lineTo(0.055, 0.05).lineTo(0.24... | 9 | 57 | 1.457791 |
train_9daed2682af0b05b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.686, -0.223, -0.001), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.14, 0.179).threePointArc((0.002, -0.228), (0.14, 0.18)).threePointArc((0, 0.228), (-0.14, 0.179)).close().sweep(cq.Workplane('XY').spline([(0.016, -0.721), (0.297, -0.696), (0.... | 8 | 12 | 0.274845 |
train_9f01e6e9add614cc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.668, 0.148, -0.048), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.099, 0.448).lineTo(-0.339, 0.31).lineTo(0.099, -0.448).lineTo(0.339, -0.31).lineTo(-0.099, 0.448).close().sweep(cq.Workplane('XZ').spline([(0.046, -0.798), (0.332, -0.781), (0.6... | 6 | 27 | 0.348116 |
train_504cd722abf141bc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.052, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.769, 0.348).threePointArc((0.769, 0.644), (0.513, 0.792)).lineTo(-0.513, 0.792).threePointArc((-0.769, 0.644), (-0.769, 0.348)).lineTo(-0.256, -0.54).threePointArc((0, -0.688), (0.256, -0.... | 16 | 88 | 2.235243 |
train_83c672327a9e94a1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.313, -0.023), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.263, 0.34).threePointArc((0.391, 0.165), (0.415, -0.051)).lineTo(0.153, -0.379).threePointArc((-0.063, -0.403), (-0.263, -0.316)).lineTo(-0.415, 0.075).lineTo(-0.153, 0.403).lineTo(... | 2 | 38 | 0.416773 |
train_b3a85ad5d7463a80 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.724), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.622, 1.017).extrude(1.361)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0.029), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.128, 0.098).extrude(0.624))
result = result.edges().chamf... | 25 | 135 | 1.692561 |
train_63ff7aae29d27c8e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.56), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.57).extrude(1.12)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.126, 0.307, -0.258), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.435).extrude(0.518))
result = result.edges().chamfer... | 19 | 132 | 1.390433 |
train_ec8095d8f4f310a0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.356, -0.158, -0.411), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.191, 0.532).extrude(0.344)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.652, -0.256, -0.098), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.236, -0.048).threePointArc((-0... | 9 | 81 | 0.562409 |
train_414c32f9730bea91 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.733, 0.455, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.5, 1.321).threePointArc((0, -0.545), (-0.5, 1.321)).threePointArc((0, 1.455), (0.5, 1.321)).close().extrude(1.465)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.03, -0.449, 0.109... | 21 | 136 | 2.282767 |
train_4af84f85ce3f266c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.831, -0.3, -0.564), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.158, -0.065).threePointArc((-0.125, -0.108), (-0.08, -0.139)).threePointArc((-0.029, -0.154), (0.023, -0.152)).threePointArc((0.158, -0.021), (0.09, 0.154)).threePointArc((-0.044... | 26 | 262 | 1.019583 |
train_a311ecd2736dbb71 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.027, -0.072), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1, -0.046).lineTo(-1, 0.046).lineTo(-0.961, 0.046).lineTo(-0.961, -0.007).lineTo(1, -0.007).lineTo(1, -0.046).lineTo(-1, -0.046).close().extrude(0.005)
result = result.union(cq.Workpla... | 5 | 37 | 0.017067 |
train_4f6c56ed834a8fe4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.83, -0.55), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1.074, 0.921).lineTo(-0.718, 0.025).lineTo(1.074, 0.739).lineTo(0.718, 1.634).lineTo(-1.074, 0.921).close().extrude(1.099)
result = result.edges().chamfer(0.2)
| 2 | 26 | 1.766105 |
train_00afb758baec8d5f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.103), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.636).extrude(0.148)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.055, -0.366, 0.044), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.043).extrude(0.059))
result = result.cut(cq.Wor... | 6 | 16 | 0.449043 |
train_5bba129e6192b45b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.113, -1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.152, -0.067).threePointArc((-0.167, 0), (-0.152, 0.067)).lineTo(-0.264, 0.12).threePointArc((-0.153, 0.24), (0.007, 0.277)).threePointArc((0.125, 0.24), (0.216, 0.156)).threePointArc((0.... | 11 | 20 | 0.186464 |
train_e9afbd73df9c35c9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.686, 0.199), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.052, -0.139).threePointArc((-0.123, -0.212), (-0.122, -0.314)).lineTo(-0.341, 0.201).threePointArc((-0.285, 0.238), (-0.224, 0.268)).threePointArc((0, 0.314), (0.224, 0.268)).threePoi... | 2 | 17 | 0.022299 |
train_83e3826ae0a96898 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.862, 0.042, -0.762), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.001, 0.08).threePointArc((-0.049, 0.042), (-0.058, -0.022)).lineTo(-0.101, -0.047).threePointArc((-0.092, -0.066), (-0.081, -0.083)).lineTo(-0.037, -0.058).threePointArc((0.022, ... | 10 | 85 | 0.088111 |
train_3da77040611db554 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.226, 0.423, -0.264), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.736, -0.307).lineTo(0.736, -0.243).lineTo(-0.103, -0.243).lineTo(-0.095, -0.224).lineTo(-0.127, -0.21).lineTo(-0.141, -0.243).lineTo(-0.154, -0.275).lineTo(-0.186, -0.262).lineTo(... | 5 | 28 | 0.239848 |
train_1bfc5d1de17e85a0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.038, 0.001, -0.517), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.962, -0.029).lineTo(0.677, 0.677).lineTo(-0.019, 0.991).lineTo(-0.699, 0.726).lineTo(-1.003, 0.029).lineTo(-0.674, -0.665).lineTo(-0.023, -0.992).lineTo(0.699, -0.701).close().move... | 12 | 79 | 1.114653 |
train_eb4e8eec8fe5bea4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.15, -0.886), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.91, 1.197).extrude(1.417)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.064, -0.006, -0.054), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.092, 0.371).extrude(0.401))
result = result.c... | 14 | 59 | 1.526121 |
train_53b45fb8ef7da1c7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.066, -0.105), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.029, 1).lineTo(-0.006, -0.214).lineTo(-0.029, -1).lineTo(0.029, -1).lineTo(0.029, 1).close().sweep(cq.Workplane('YZ').spline([(-0.003, -0.144), (0.089, -0.143), (0.182, -0.179)]))
resu... | 10 | 229 | 0.105046 |
train_8834da6fd7bde282 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.546, -0.036, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.272, 0.109).threePointArc((0.381, 0), (0.272, -0.109)).lineTo(-0.272, -0.109).threePointArc((-0.381, 0), (-0.272, 0.109)).lineTo(0.272, 0.109).close().sweep(cq.Workplane('XY').spline... | 13 | 103 | 0.065655 |
train_9269b35b90c1336b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.028, 0.006, -0.363), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.678, -0.004).lineTo(0.314, 0.558).lineTo(-0.314, 0.583).lineTo(-0.655, -0.002).lineTo(-0.322, -0.583).lineTo(0.35, -0.574).close().moveTo(0.092, 0.213).lineTo(-0.076, 0.192).lineT... | 16 | 267 | 0.472257 |
train_1f6e4512f4f8351f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.025, -0.103, -0.039), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.036, -0.066).lineTo(0.036, -0.017).lineTo(-0.104, -0.017).lineTo(-0.021, 0.066).threePointArc((0.104, 0.052), (0.063, -0.066)).lineTo(0.036, -0.066).close().sweep(cq.Workplane('YZ... | 16 | 133 | 0.366283 |
train_83786d2722304977 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.148), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.38).extrude(0.116)
result = result.union(cq.Workplane(cq.Plane(origin=(0.119, 0, -0.037), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.145, 0.691).extrude(0.185))
result = result.cut(cq.Work... | 3 | 14 | 0.290891 |
train_50d344bb556f1921 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.299, 0, 0.086), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.302, 0.368).lineTo(0.302, 0.368).lineTo(0.302, 0.243).lineTo(-0.228, 0.243).lineTo(-0.228, -0.243).lineTo(0.302, -0.243).lineTo(0.302, -0.368).lineTo(-0.302, -0.368).lineTo(-0.302, 0.... | 3 | 19 | 0.155914 |
train_b264e5f08e049b39 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.027, 0.148), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.037, 0.148).lineTo(-0.037, -0.148).lineTo(0.037, -0.178).lineTo(0.037, -0.168).lineTo(-0.027, -0.141).lineTo(-0.027, -0.068).lineTo(0.027, -0.046).lineTo(0.037, -0.042).lineTo(0.037,... | 7 | 91 | 0.159143 |
train_1dbc08f9ad8780ab | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.475, 0.072, -0.31), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.576, -0.679).threePointArc((-0.08, -0.182), (-0.576, 0.315)).lineTo(-0.576, 1.073).threePointArc((0.472, 0.508), (0.576, -0.679)).lineTo(-0.576, -0.679).close().extrude(0.815)
res... | 23 | 157 | 0.76106 |
train_3a42ed6d9279b1f7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.016, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.875, -0.225).threePointArc((0.858, -0.239), (0.844, -0.257)).threePointArc((0.838, -0.266), (0.834, -0.276)).lineTo(-1, 0.138).lineTo(-0.969, 0.276).lineTo(0.865, -0.138).lineTo(0.96, -0.1... | 3 | 15 | 0.129702 |
train_3b3cdf7cb3ab9fac | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.696, -0.424, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.398, -0.095).threePointArc((-0.377, 0.036), (-0.313, 0.152)).threePointArc((0, 0.304), (0.313, 0.152)).threePointArc((0.377, 0.036), (0.398, -0.095)).lineTo(0.209, -0.095).threePoin... | 28 | 24 | 0.362627 |
train_75bc26b42592c1c0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.015, -0.653), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.292, 0.455).lineTo(-0.292, -0.455).lineTo(-0.142, -0.222).lineTo(0.142, 0.222).lineTo(0.292, 0.455).lineTo(-0.292, 0.455).close().sweep(cq.Workplane('XY').spline([(0, -0.108), (0.5,... | 3 | 15 | 0.615751 |
train_264e7885c37e6e4d | 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.044).workplane(offset=0.222).circle(0.054).workplane(offset=0.288).circle(0.04).workplane(offset=0.315).circle(0.08).workplane(offset=0.265).circle(0.065).loft()
result = result.faces('>Z').sh... | 8 | 190 | 0.009176 |
train_231621b27a4cbb3d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.298, 0.723, 0.628), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.372, 0.594).lineTo(-0.372, 0.062).lineTo(0.372, 0.062).lineTo(0.372, 0.594).lineTo(-0.372, 0.594).close().extrude(0.644)
result = result.edges().fillet(0.071)
result = result.unio... | 6 | 55 | 0.199399 |
train_592003f90eb59341 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.403, 0.376, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.438).sweep(cq.Workplane('XY').spline([(0.403, -0.405), (0.743, -0.134), (0.692, 0.203), (0.276, 0.434), (-0.294, 0.441), (-0.726, 0.221), (-0.801, -0.115)]))
result = result.cut(cq.Work... | 2 | 11 | 0.436681 |
train_b73f1fa6cefd8d5c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.35, -0.084, -0.274), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.495, 0.375).extrude(0.428)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.014, -0.07, 0.081), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.986, 0.119).lineTo(1.014, 0.119).l... | 2 | 33 | 0.159309 |
train_f09f50971cdb80ea | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.604), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.162, 1).lineTo(0.162, 0.536).lineTo(0.312, 0.536).lineTo(0.312, -0.892).threePointArc((0.28, -0.968), (0.204, -1)).lineTo(-0.204, -1).threePointArc((-0.28, -0.968), (-0.312, -0.892)).lineT... | 12 | 125 | 1.532806 |
train_cebeaff1f68038f8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.211, 0.15, -0.012), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(1.012, 0.407).lineTo(1.012, 0.016).lineTo(-0.628, 0.016).lineTo(-1.012, 0.407).lineTo(1.012, 0.407).close().extrude(0.299)
result = result.edges().chamfer(0.034)
result = result.unio... | 15 | 48 | 0.167895 |
train_ece898618f74b7b2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.06, -0.007, 0.256), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.078, 0.909).threePointArc((0.145, -0.462), (-0.145, 0.879)).threePointArc((-0.034, 0.903), (0.078, 0.909)).close().extrude(0.255)
result = result.edges().fillet(0.055)
result = res... | 13 | 55 | 0.594242 |
train_c920d8b65372c908 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.021, -0.056, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-1, 0.098).lineTo(1, 0.098).lineTo(1, 0.003).lineTo(-1, 0.003).lineTo(-1, 0.098).close().extrude(0.112)
result = result.edges().chamfer(0.045)
result = result.union(cq.Workplane(cq.Plan... | 6 | 41 | 0.011487 |
train_cf6408b0c8daf23a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.505, 0.078, -0.258), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.692, 0.778).extrude(0.138)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.426, -0.382, -0.244), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.085).extrude(0.062))
result = res... | 13 | 125 | 0.236201 |
train_e0ce0a92aeaa3167 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.001, -0.411), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, -0.022).lineTo(0.487, 0.885).lineTo(-0.506, 0.887).lineTo(-1, -0.011).lineTo(-0.525, -0.89).lineTo(0.485, -0.867).close().center(-0.324, 0.287).rect(0.319, 0.227).moveTo(0.603, 0.136)... | 13 | 165 | 1.14987 |
train_7586fc7d3e81d8a8 | 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.775, -0.287).lineTo(-0.89, -0.287).lineTo(-0.89, -0.379).lineTo(0.89, -0.379).lineTo(0.89, 0.379).lineTo(-0.321, 0.379).lineTo(-0.321, 0.239).lineTo(-0.451, 0.239).lineTo(-0.451, 0.379).lineTo... | 10 | 75 | 2.36419 |
train_111d4c8d108e387d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.084, 0.234, -0.189), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.279, 0.732).extrude(0.655)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.48, 0.234, 0.121), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.256).extrude(0.035))
result = result.c... | 27 | 143 | 0.186077 |
train_b0715fb6c98a02e1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.032, 0.178, 0.438), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.096, 0.257).lineTo(-0.115, 0.291).lineTo(-0.054, 0.325).lineTo(-0.035, 0.292).lineTo(0.035, 0.292).lineTo(0.096, 0.257).lineTo(0.131, 0.196).lineTo(0.131, 0.126).lineTo(0.096, 0.06... | 8 | 42 | 0.032543 |
train_fb22a6685daa6a78 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.25, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.729, 0.724).extrude(0.967)
result = result.faces('<Z').shell(-0.056)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.276, -0.377, -0.672), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.07... | 14 | 67 | 0.25268 |
train_e5c12b9a0151df0c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.138, 0, 1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.057, -0.256).lineTo(0.456, -0.256).lineTo(0.342, -0.143).lineTo(0.285, -0.2).lineTo(0.019, 0.067).lineTo(-0.057, 0.143).lineTo(0.057, 0.143).lineTo(0, 0.2).lineTo(-0.057, 0.256).lineTo(-0.... | 8 | 63 | 0.186693 |
train_30f46c1dad7399ee | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.254), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.994, 2).extrude(0.508)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.006, -0.241, -0.34), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.322, 0.21).extrude(0.61))
result = result.cut(cq.Wo... | 5 | 25 | 0.905175 |
train_21ba57b87dfeed7d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.225), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.719, 0.716).extrude(1.225)
result = result.union(cq.Workplane(cq.Plane(origin=(0.005, 0.032, -0.453), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.233, 0.322).extrude(0.242))
result = result.un... | 8 | 45 | 0.523938 |
train_0cb980b323580310 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.735, 0.714, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.688, -0.286).lineTo(0.688, 1.714).lineTo(-0.065, 1.714).lineTo(-0.065, 1.09).lineTo(-0.688, 1.09).lineTo(-0.688, 0.338).lineTo(-0.065, 0.338).lineTo(-0.065, -0.286).lineTo(0.688, -0.28... | 5 | 67 | 1.977126 |
train_ecda9c91529e8d5b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.494, 0.063, 0.196), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.806, 0.305).lineTo(-0.806, 0.012).lineTo(0.512, 0.012).threePointArc((0.719, 0.098), (0.806, 0.305)).lineTo(-0.806, 0.305).close().extrude(0.127)
result = result.edges().fillet(0.... | 12 | 71 | 0.193533 |
train_b4714283204873dd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.892, -0.097, 0.058), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.85, 0.22).threePointArc((0.16, 1.204), (-0.85, 1.856)).lineTo(-0.85, 1.52).lineTo(-0.85, 1.015).threePointArc((-0.276, 0.544), (0.152, -0.064)).lineTo(0.569, 0.105).lineTo(0.85, 0... | 5 | 76 | 2.027696 |
train_0e12b1f36c07c907 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.702, -0.001), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.829).workplane(offset=0.261).circle(0.782).workplane(offset=0.272).circle(0.89).workplane(offset=0.29).circle(1).workplane(offset=0.313).circle(0.783).workplane(offset=0.268).circle(0... | 13 | 42 | 2.990687 |
train_1b4b8dc803eb050e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.016, -0.029, -0.214), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.037, 0.033).threePointArc((0.006, 0.001), (-0.037, -0.012)).threePointArc((-0.017, 0.038), (0.037, 0.033)).close().extrude(0.18)
result = result.edges().chamfer(0.016)
result = re... | 14 | 71 | 0.013604 |
train_291fa818a7d03756 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.108, -0.021, -0.074), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.227, -0.076).lineTo(0.227, 0.443).lineTo(0.018, 0.357).lineTo(0.018, 0.011).lineTo(-0.227, -0.234).lineTo(-0.141, -0.443).lineTo(0.227, -0.076).close().sweep(cq.Workplane('XY').... | 21 | 183 | 0.469688 |
train_b3f9910bc6e11b8c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.425, 0.219, 0.002), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.667, 1.219).lineTo(0.667, 1.219).lineTo(0.597, -0.781).lineTo(-0.667, -0.781).lineTo(-0.667, 1.219).close().extrude(0.793)
result = result.edges().chamfer(0.111)
result = result.c... | 17 | 170 | 1.894108 |
train_3040200afe48ed49 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.205, 0.006), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.038, 0.764).lineTo(-0.038, 0.795).threePointArc((0, -0.795), (0.038, 0.795)).lineTo(0.038, 0.668).lineTo(0.038, 0.636).threePointArc((0, 0.637), (-0.038, 0.636)).lineTo(-0.038, 0.668... | 22 | 149 | 0.068934 |
train_47a13f0e4cc35035 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.007, -0.654, 0.231), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.089, 0.088).lineTo(0.089, -0.177).threePointArc((-0.089, 0), (0.089, 0.177)).lineTo(0.089, 0.088).close().extrude(0.035)
result = result.edges().fillet(0.014)
result = result.uni... | 17 | 312 | 0.602177 |
train_65be8ec714f9b605 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.702, -0.361, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.297, 0.239).threePointArc((-0.223, 0.232), (-0.152, 0.256)).threePointArc((0, 0.298), (0.152, 0.256)).threePointArc((0.224, 0.232), (0.297, 0.239)).lineTo(0.536, 0).lineTo(0.297, -0... | 1 | 12 | 0.182637 |
train_e54c13dcd87199ff | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.473, 0.068, -0.493), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.054, 1.034).extrude(0.717)
result = result.union(cq.Workplane(cq.Plane(origin=(0.424, -0.039, -0.563), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.042).extrude(0.077))
result = resul... | 13 | 96 | 1.550221 |
train_6c950dff4f177fd6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.2, 0, -0.082), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.6, 1.497).extrude(0.831)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.2, 0.1935, -1.122), normal=(1, 0, 0), xDir=(0, 1, 0))).moveTo(-0.044, 0.045).lineTo(-0.044, 0.054).lineTo(-0.... | 18 | 64 | 1.638579 |
train_0ba6ef27233334ed | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.049, 1, 0.166), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.524, 0.555).lineTo(-0.524, 0.555).lineTo(-0.524, -0.05).lineTo(-0.175, -0.05).lineTo(0, -0.352).lineTo(0.524, -0.05).lineTo(0.175, -0.05).lineTo(0.349, 0.253).lineTo(0.524, 0.555).clo... | 23 | 168 | 0.745934 |
train_7c587f3e4214a24c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.082, 0.149, -0.5), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.5, -0.085).lineTo(0.5, 0.249).lineTo(-0.5, 0.249).lineTo(-0.5, 0.22).lineTo(-0.455, 0.22).lineTo(-0.455, -0.055).lineTo(0.024, -0.055).lineTo(0.024, 0.22).lineTo(0.068, 0.22).lineTo... | 13 | 151 | 0.42143 |
train_6155efc434542ddc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.094, 0.084, 0.034), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.218).sweep(cq.Workplane('XZ').spline([(-0.909, -0.517), (-0.676, -0.507), (-0.443, -0.456), (-0.21, -0.255), (0.023, 0.103), (0.256, 0.304), (0.489, 0.355), (0.722, 0.364)]))
resul... | 6 | 26 | 0.200714 |
train_0f82fdfe6efdd5f9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.651, 0.327, -0.011), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.665, 0.373).threePointArc((-0.704, 0.653), (-0.769, 0.929)).lineTo(0.769, 0.929).lineTo(0.769, 0.373).lineTo(-0.665, 0.373).close().workplane(offset=0.404).moveTo(-0.794, 0.319).... | 5 | 37 | 0.79155 |
train_adb897ea2831854f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1.449, 0, -0.648), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.648, 0.7).lineTo(0.648, 2.198).threePointArc((-0.101, 1.997), (-0.648, 1.449)).lineTo(0.648, 0.7).close().revolve(angleDegrees=360, axisStart=(0.648, 0.7), axisEnd=(0.648, 2.198))
res... | 5 | 12 | 2.479661 |
train_f4cd26500646ce6e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.034), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.513).extrude(0.067)
result = result.union(cq.Workplane(cq.Plane(origin=(0.071, 0.047, 0.033), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.164, 0.138).extrude(0.021))
result = result.cut(cq.... | 6 | 18 | 0.177487 |
train_49a0fae2faaa81db | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.147, 0, -0.225), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.706, 1.133).extrude(0.433)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.147, 0, -0.29), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.028, 0.572).extrude(0.563))
result = result.uni... | 13 | 43 | 0.592475 |
train_1e83e9b5d29d4b03 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.071, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.768, 1.398).extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(0.882, 0.097, -0.595), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.073).extrude(0.265))
result = result.cut(cq.Wor... | 14 | 109 | 4.858655 |
train_8e52e556eac576f7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.525, -1, 0.023), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.599, -0.02).threePointArc((-0.054, -0.033), (0.489, -0.073)).lineTo(0.599, 1.038).threePointArc((0.001, 1.083), (-0.599, 1.097)).lineTo(-0.599, -0.02).close().extrude(2)
result = res... | 3 | 51 | 0.565378 |
train_ff3283f2781d345e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.365, 0.471, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.165, 0.179).lineTo(-0.11, 0.179).lineTo(-0.114, 0.124).lineTo(-0.129, -0.069).lineTo(-0.008, -0.069).lineTo(-0.023, 0.124).lineTo(-0.027, 0.179).lineTo(0.028, 0.179).lineTo(0.032, 0.... | 1 | 17 | 0.07995 |
train_1047001f583daebb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.45, 1, -0.094), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.25, 0.856).lineTo(-0.292, 0.044).lineTo(0.292, 0.044).lineTo(0.292, 0.856).lineTo(-0.25, 0.856).close().extrude(1.422)
result = result.union(cq.Workplane(cq.Plane(origin=(0.553, -0.28... | 12 | 76 | 0.695307 |
train_c2ae9de35a901b69 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0, 0.316), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.391).sweep(cq.Workplane('XZ').spline([(-0.042, 0.119), (0.876, 0.119), (1.375, 0.256), (1.874, 0.392)]))
result = result.edges().chamfer(0.255)
result = result.cut(cq.Workplane(cq.Plane(o... | 22 | 38 | 0.713243 |
train_2cae45d8b2960100 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.241, 0.156, 0.502), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.502, -0.653).lineTo(-0.502, 1.134).lineTo(0.502, 1.134).lineTo(0.502, -0.653).lineTo(-0.502, -0.653).close().revolve(angleDegrees=180, axisStart=(-0.502, -0.653), axisEnd=(-0.502,... | 18 | 170 | 1.633916 |
train_0fb29744202cedae | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.082, -0.395, -0.057), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.113).sweep(cq.Workplane('YZ').spline([(-0.395, -0.358), (0.028, -0.095), (0.451, 0.074), (0.875, 0.112), (1.298, 0.057)]))
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.10... | 8 | 26 | 0.069579 |
train_c733dc4c927ccc66 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.008, -0.252, -0.033), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.203, 0.015).lineTo(0.203, 0.015).lineTo(0.203, 0.359).lineTo(0.115, 0.511).lineTo(0, 0.578).lineTo(-0.115, 0.511).lineTo(-0.203, 0.359).lineTo(-0.203, 0.015).close().extrude(0.... | 5 | 36 | 0.073884 |
train_58f6a7d05cd0cb03 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.194, 0.412, -0.363), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.473, 0.055).lineTo(0.473, 0.055).lineTo(0.473, 0.333).lineTo(-0.473, 0.333).lineTo(-0.473, 0.25).lineTo(-0.111, 0.25).lineTo(-0.111, 0.138).lineTo(-0.473, 0.138).lineTo(-0.473, 0... | 6 | 33 | 0.336463 |
train_aa8cf3a512ec98dd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.557, -0.432, 0.1), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.311, 0.427).lineTo(0, 0.614).lineTo(-0.311, 0.427).lineTo(0, 0.24).lineTo(0.311, 0.427).close().workplane(offset=0.346).moveTo(0.42, 0.427).lineTo(0, 0.679).lineTo(-0.42, 0.427).lin... | 16 | 106 | 0.17844 |
train_0bc6c9016bd0aeb0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.306, -0.293, -0.139), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.425, -0.626).lineTo(0.425, -0.626).lineTo(0.425, 0.694).lineTo(-0.425, 0.694).lineTo(-0.425, -0.626).close().extrude(0.973)
result = result.edges().chamfer(0.075)
result = result... | 16 | 384 | 0.769329 |
train_f9f3250fa675da3b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.019, 0.055, 0.162), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.15, 0.15).lineTo(-0.15, -0.15).lineTo(-0.045, -0.15).lineTo(-0.045, -0.045).lineTo(0.045, -0.045).lineTo(0.045, 0.045).lineTo(0.15, 0.045).lineTo(0.15, 0.15).lineTo(-0.15, 0.15).c... | 22 | 241 | 0.032886 |
train_8d317e8768c8b030 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.76, -0.001, -0.334), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.48, 0.48).extrude(0.56)
result = result.union(cq.Workplane(cq.Plane(origin=(0.102, -0.001, -0.13), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.434, 0.157).extrude(0.151))
result = res... | 7 | 35 | 0.235281 |
train_75c1630e8accbc4f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.552, -0.025, 0.047), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.068, -0.068).lineTo(-0.341, -0.068).lineTo(-0.341, 0.068).lineTo(0.341, 0.068).lineTo(0.341, -0.068).lineTo(0.068, -0.068).close().extrude(0.094)
result = result.edges().fillet(0... | 16 | 124 | 0.013966 |
train_cac59ef10a7674a3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.043), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.994, 1.469).extrude(0.024)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.236, 0.024, -0.019), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.289).extrude(0.01))
result = result.union(c... | 10 | 60 | 0.113646 |
train_228e574ec8a5bc1e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.098, 0.705, -0.296), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.705, 0.144).lineTo(0.705, 0.053).lineTo(-0.705, 0.053).lineTo(-0.705, 0.144).lineTo(0.705, 0.144).close().revolve(angleDegrees=90, axisStart=(0.705, 0.144), axisEnd=(0.705, 0.053)... | 15 | 85 | 0.083613 |
train_d7824fb82cff65db | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.505, -0.028, -0.135), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.856, 0.139).extrude(0.111)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.42, -0.009, -0.096), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.16, 0.041).extrude(0.038))
result = ... | 10 | 48 | 0.024271 |
train_77fa8f345144e267 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.375, 0.094), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.076).sweep(cq.Workplane('YZ').spline([(1.325, -0.168), (1.249, 0.205), (0.637, 0.476), (-0.243, 0.528), (-1.008, 0.338), (-1.324, -0.012)]))
result = result.cut(cq.Workplane(cq.Plane(o... | 4 | 18 | 0.020496 |
train_7366e408c3fcf6a3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.011, -0.018, -0.495), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.569, 0.53).extrude(0.879)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.011, -0.018, 0.319), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.362, 0.239).extrude(0.681))
result =... | 12 | 64 | 0.367768 |
train_8a048ee7f6712521 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.121, -0.069, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.952, 0.126).lineTo(0.952, 0.055).lineTo(-0.839, 0.055).threePointArc((-0.892, 0.023), (-0.952, 0.011)).lineTo(-0.952, 0.091).lineTo(-0.839, 0.091).lineTo(-0.839, 0.126).lineTo(0.952, ... | 14 | 63 | 0.017511 |
train_81ec07bf6b1e798a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.239, 0.097, -0.143), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.737, -0.007).lineTo(0.375, 0.66).lineTo(-0.376, 0.666).lineTo(-0.761, 0.012).lineTo(-0.378, -0.63).lineTo(0.356, -0.647).close().moveTo(-0.421, 0.168).lineTo(-0.056, 0.165).lineTo... | 12 | 108 | 0.287267 |
train_a674ba84c23be7e3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.02, 0.048, 0.082), normal=(0, 0, -1), xDir=(1, 0, 0))).lineTo(0.258, 0.242).lineTo(0.258, 0.29).lineTo(0.516, 0.29).lineTo(0.773, 0.29).lineTo(0.773, 0).lineTo(0.516, 0).lineTo(0.258, 0).lineTo(0.258, 0.049).lineTo(0.22, 0.049).threePointArc((0... | 4 | 24 | 0.005268 |
train_2162e646258140e0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.069, -0.061, 0.016), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.029, -0.015).lineTo(0.03, 0.025).lineTo(-0.001, 0.035).lineTo(-0.029, 0.025).lineTo(-0.03, -0.015).lineTo(0.029, -0.015).close().extrude(0.057)
result = result.edges().chamfer(0.0... | 23 | 113 | 0.012399 |
train_6882abf8aa9bf603 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.177, -0.191, 0.22), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.503, 0.469).lineTo(0.503, 0.804).lineTo(-0.503, 0.804).lineTo(-0.503, 0.268).lineTo(-0.067, 0.268).lineTo(-0.067, -0.268).lineTo(-0.503, -0.268).lineTo(-0.503, -0.804).lineTo(0.101... | 13 | 143 | 0.556671 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.