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_f40a5338b353afb5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.741), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.882, 2).extrude(1.431)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.643, -0.471, -0.984), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.219, 0.125).extrude(1.717))
result = result.edges(... | 11 | 92 | 5.11521 |
train_a75864f1220101a1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.273, -0.652), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1, 0.033).lineTo(-1, 0.533).lineTo(1, 0.533).lineTo(1, 0.033).lineTo(-1, 0.033).close().extrude(1.304)
result = result.union(cq.Workplane(cq.Plane(origin=(0.754, 0.286, 0.048), normal=... | 3 | 12 | 1.304663 |
train_11c5609a0b7d5abc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.094, -0.609), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.917, 1.812).extrude(1.218)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.767 + 0.3835, 0.3375, -1.787), normal=(0, 1, 0), xDir=(1, 0, 0))).moveTo(-0.167, -0.041).lineTo(-0.152, -0... | 25 | 101 | 4.138764 |
train_bf071e12848919ed | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.015, -0.581, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1, 0.06).lineTo(0.2, 0.06).lineTo(0.2, 0.056).lineTo(1, 0.056).lineTo(1, -0.056).lineTo(0.2, -0.056).lineTo(0.2, -0.06).lineTo(-1, -0.06).lineTo(-1, 0.06).close().sweep(cq.Workplane('X... | 5 | 64 | 0.201077 |
train_a400c6eec0bf56d9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.134, -0.677), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.477, 1.732).extrude(1.234)
result = result.union(cq.Workplane(cq.Plane(origin=(-1.066, 0.378, 0.203), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.103, 0.476).lineTo(-0.103, 1.286).line... | 5 | 19 | 3.035924 |
train_492675410b34aec9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.18), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.875, 2).extrude(0.123)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.061, 0, -0.071), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.062).extrude(0.252))
result = result.cut(cq.Workplan... | 6 | 16 | 0.415426 |
train_acd89b711319e48b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.41, -0.378, -0.148), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.065).sweep(cq.Workplane('XY').spline([(-0.41, -0.258), (-0.315, -0.239), (-0.22, -0.074), (-0.125, 0.356), (-0.031, 0.52), (0.064, 0.54)]))
result = result.union(cq.Workplane(cq.... | 22 | 105 | 0.147811 |
train_f7b4316f9df85bcb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.598), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.466, 2).extrude(1.197)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.121, 0.639, -0.282), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.931, 0.76).extrude(0.76))
result = result.edges().ch... | 16 | 283 | 2.370354 |
train_9cdbe9c2f60ebf61 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.056, 0.385, -0.528), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.043, -0.36).lineTo(0.043, 0.012).lineTo(0.472, 0.012).lineTo(0.472, 0.099).lineTo(0.043, 0.099).lineTo(0.043, 0.471).lineTo(-0.043, 0.471).lineTo(-0.043, 0.099).lineTo(-0.472, 0.0... | 16 | 135 | 0.14535 |
train_c686f5c41363f39e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.056, 0.293, -0.291), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.487, 0.794).extrude(0.326)
result = result.union(cq.Workplane(cq.Plane(origin=(0.013, 0.375, 0.03), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.25, 0.473).extrude(0.112))
result = res... | 22 | 138 | 0.160002 |
train_77a3ee38599faf2c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.164, 0.257, 0.443), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, -0.033).lineTo(0.31, -0.033).lineTo(0.31, -0.743).threePointArc((0, 0.743), (-0.31, -0.743)).lineTo(-0.31, -0.033).lineTo(0, -0.033).close().sweep(cq.Workplane('YZ').spline([(0.25... | 4 | 20 | 0.383538 |
train_793950a6e9f9f96f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.142, -0.005, 0.19), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.78, 0.597).threePointArc((-0.812, 0.517), (-0.836, 0.433)).threePointArc((-0.141, -0.597), (0.834, 0.176)).threePointArc((0.835, 0.208), (0.836, 0.241)).threePointArc((0.816, 0.4... | 3 | 34 | 0.342394 |
train_f65a8458f944bf29 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.173, -0.331), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.963, 1.654).extrude(0.662)
result = result.union(cq.Workplane(cq.Plane(origin=(0.222, -0.808, -0.168), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.192).extrude(0.338))
result = result.cu... | 4 | 11 | 2.102795 |
train_7f0395ce168a17ae | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.802, 0.469, 0.319), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.109, 0.497).lineTo(-0.681, 0.509).lineTo(-0.681, 1.164).lineTo(0.681, 1.164).lineTo(0.681, 0.509).lineTo(0.109, 0.497).lineTo(0.109, 0.061).lineTo(-0.109, 0.061).lineTo(-0.109, 0.... | 15 | 329 | 0.88122 |
train_10c4779ad5adb24f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.868, 0, -0.497), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.619, -0.01).lineTo(0.151, 1.745).lineTo(-0.619, -0.01).lineTo(0.619, -0.01).close().revolve(angleDegrees=360, axisStart=(0.619, -0.01), axisEnd=(0.151, 1.745))
result = result.edges()... | 4 | 5 | 2.244815 |
train_e530f95ebe35f392 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.344, -0.334, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.485, -0.27).lineTo(-0.485, 1.344).lineTo(0.485, 1.344).lineTo(0.485, -0.27).lineTo(0, -0.714).lineTo(-0.485, -0.27).close().extrude(0.667)
result = result.edges().fillet(0.163)
resul... | 14 | 80 | 0.899901 |
train_ffc8afc27708118a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.867, 0.356, 0.086), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, -0.133).threePointArc((0.066, -0.106), (0.093, -0.04)).threePointArc((0.085, -0.001), (0.06, 0.031)).threePointArc((0.036, 0.063), (0.028, 0.101)).lineTo(0.028, 0.129).threePointA... | 2 | 18 | 0.064128 |
train_a7b579a6b4fa35c7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.432, -0.236), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.65, 0.476).extrude(0.505)
result = result.faces('>Y').shell(-0.053)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.259, 0.326, -0.012), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.138... | 9 | 88 | 0.500823 |
train_731aab24c1959cc5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.12, -0.266, -0.115), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.017, 0.002).lineTo(-0.074, 0.035).lineTo(-0.057, 0.064).lineTo(0, 0.031).lineTo(0.057, 0.064).lineTo(0.074, 0.035).lineTo(0.017, 0.002).lineTo(0.017, -0.064).lineTo(-0.017, -0.06... | 22 | 100 | 0.105507 |
train_e52febe061254657 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.107, 0.132, -0.13), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.147, 0.116).lineTo(0.098, 0.031).lineTo(0.049, -0.054).lineTo(0, -0.139).lineTo(-0.049, -0.054).lineTo(-0.098, 0.031).lineTo(-0.147, -0.054).lineTo(-0.147, 0.116).lineTo(-0.049, 0.1... | 7 | 123 | 0.083987 |
train_068fd1dca9e35cdd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.015, -0.464, -0.215), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.668, 0.394).extrude(0.149)
result = result.union(cq.Workplane(cq.Plane(origin=(0.052, -0.464, -0.068), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.14).extrude(0.029))
result = resul... | 27 | 276 | 0.249501 |
train_cf527164133da5cc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.368, 0, 0.771), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.24).sweep(cq.Workplane('XZ').spline([(0.094, 0.444), (-0.208, 0.378), (-0.275, -0.097), (0.016, -0.227), (0.269, 0.076)]))
result = result.edges().fillet(0.064)
| 2 | 5 | 0.61071 |
train_b96c47966b4ecff5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.129, 0.242, -0.009), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.897, 1.516).extrude(0.1)
result = result.union(cq.Workplane(cq.Plane(origin=(0.227, -0.1, 0.089), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.104).extrude(0.033))
result = result.uni... | 13 | 132 | 0.191081 |
train_1aa9fa0e33069521 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.464), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.05, 2).extrude(0.927)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.166, 0.78, 0.041), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.508, 0.464).extrude(0.148))
result = result.cut(cq.Work... | 9 | 20 | 1.648272 |
train_367ebbd2ecc0bc69 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.639, 0.248, 0.127), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.102, -0.435).threePointArc((0.06, -0.597), (0.161, -0.73)).threePointArc((0.207, -0.747), (0.255, -0.752)).threePointArc((0.443, -0.568), (0.273, -0.367)).threePointArc((-0.443, 1.... | 14 | 69 | 2.869823 |
train_644b7f57323775f0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.18, 0.001, -0.089), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.807, -0.682).lineTo(0.82, -0.654).lineTo(0.788, 0.647).lineTo(-0.797, 0.681).close().moveTo(0.145, -0.001).lineTo(0.073, 0.125).lineTo(-0.072, 0.126).lineTo(-0.143, 0).lineTo(-0.06... | 9 | 59 | 0.283983 |
train_ac8c76448c553988 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.65, 0.125, -0.603), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.35, -0.35).lineTo(-0.21, -0.35).lineTo(-0.21, 0.21).lineTo(-0.35, 0.35).lineTo(0.35, 0.35).lineTo(0.35, -0.35).close().sweep(cq.Workplane('XY').spline([(-0.65, -0.544), (-0.405, -0... | 4 | 26 | 0.190567 |
train_7d7cc9cf71bf0aec | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, 0.016, 0.115), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.218, 1.016).lineTo(0.218, 0.083).lineTo(-0.218, -1.016).lineTo(-0.102, 1.016).lineTo(0.218, 1.016).close().extrude(0.23)
result = result.edges().chamfer(0.034)
result = result.cut... | 35 | 41 | 0.106805 |
train_125be5339c92aa7d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.05, 0.035, 0.045), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 0.015).lineTo(-0.173, 0.015).lineTo(-0.173, 0.181).lineTo(0.173, 0.181).lineTo(0.173, 0.015).lineTo(0, 0.015).close().extrude(0.201)
result = result.edges().chamfer(0.035)
result =... | 8 | 70 | 0.565744 |
train_c09d8cb6a942e839 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.003, 0.31, -0.732), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.696, 0.696).extrude(1.732)
result = result.faces('>Z').shell(-0.052)
result = result.union(cq.Workplane(cq.Plane(origin=(0.035, 0.407, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.... | 4 | 27 | 0.445782 |
train_7cbdbf59ab903811 | 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.197, 0.843).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.188, 0.369, 0.252), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.042).extrude(0.196))
result = result.cut(cq.Workplane(c... | 10 | 37 | 1.634302 |
train_4c2baf1e0e45685f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1, -0.143), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.622).sweep(cq.Workplane('YZ').spline([(-0.311, -0.494), (-0.006, -0.494), (0.298, -0.494), (0.98, -0.244), (1.662, 0.007)]))
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.08, 0.43... | 4 | 44 | 1.893016 |
train_84e61a316a8ff811 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.175, -0.35, -0.395), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.147, -0.153).lineTo(-0.147, 0.153).lineTo(-0.134, 0.153).lineTo(-0.134, -0.147).lineTo(0.147, -0.147).lineTo(0.147, -0.153).lineTo(-0.147, -0.153).close().sweep(cq.Workplane('XZ... | 6 | 65 | 0.233357 |
train_43f04f4602ca5928 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.337, 0.031, 0), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.56, -0.609).threePointArc((-0.39, 0.042), (-0.027, 0.609)).lineTo(0.56, -0.409).lineTo(-0.56, -0.609).close().revolve(angleDegrees=360, axisStart=(-0.027, 0.609), axisEnd=(0.56, -0.4... | 6 | 29 | 1.110748 |
train_bd16e8836b31c7a0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.268), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.898).extrude(0.442)
result = result.union(cq.Workplane(cq.Plane(origin=(0.1, 0.095, 0.17), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.8, 1.708).extrude(0.073))
result = result.union(cq.Wor... | 18 | 141 | 1.750158 |
train_40a2427318d82da3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, 0.022, -0.715), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.285, 0.285).lineTo(-0.285, -0.285).lineTo(0.285, -0.285).lineTo(0.285, 0.285).lineTo(-0.285, 0.285).close().sweep(cq.Workplane('XY').spline([(-0.357, 0.022), (-0.119, 0.111), (0.... | 8 | 73 | 0.244424 |
train_6125cb4867015302 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.081, 0.008, 0.076), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.372, -0.006).lineTo(0.287, 0.283).lineTo(-0.016, 0.378).lineTo(-0.27, 0.281).lineTo(-0.393, -0.009).lineTo(-0.28, -0.275).lineTo(0.002, -0.394).lineTo(0.257, -0.284).close().moveTo... | 17 | 147 | 0.120139 |
train_5a6dc26f3d1d83e4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.057, -0.161, -0.097), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.716, 1.305).extrude(0.345)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.082, -0.173, 0.237), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.188, 0.449).extrude(0.164))
result =... | 22 | 110 | 0.264638 |
train_db671aaf3ff4a4ee | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.509, -0.071, 0.118), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.316, 0.081).lineTo(-0.617, 0.003).lineTo(0.617, 0.003).lineTo(0.306, 0.081).lineTo(-0.316, 0.081).close().extrude(0.07)
result = result.edges().fillet(0.017)
result = result.union... | 5 | 75 | 0.00836 |
train_d3f9edcb000fb864 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.295, 0.13, -0.001), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.432).lineTo(-0.012, 0.454).lineTo(-0.025, 0.446).lineTo(-0.025, 0.432).lineTo(-0.095, 0.432).lineTo(-0.095, 0.348).lineTo(0, 0.403).lineTo(0, -0.17).lineTo(0.095, -0.17).lineTo(... | 10 | 81 | 0.177576 |
train_322ac2fb493b1bd4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.477, -0.267, 0.369), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.325, 0.439).lineTo(0.325, 0.439).lineTo(0.325, 0.045).lineTo(-0.325, 0.045).lineTo(-0.325, 0.439).close().extrude(0.615)
result = result.edges().fillet(0.07)
result = result.unio... | 14 | 156 | 0.277576 |
train_19a7a83ecaf0b54c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.159, -0.223, 0.421), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.421, 0.626).lineTo(-0.421, -0.105).lineTo(-0.311, -0.216).lineTo(0.421, -0.216).lineTo(0.421, 0.626).lineTo(-0.421, 0.626).close().revolve(angleDegrees=360, axisStart=(-0.421, 0.... | 6 | 30 | 1.661871 |
train_96b03cef18185efa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.668, 0.901, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.509, -0.053).lineTo(-0.509, 1.389).lineTo(-0.353, 1.389).lineTo(-0.271, 1.448).threePointArc((0.509, 0.668), (-0.271, -0.111)).lineTo(-0.353, -0.053).lineTo(-0.509, -0.053).close().wo... | 2 | 8 | 2.785923 |
train_db14e4dead741cbf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.25, -0.26, -0.613), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.166, 1.481).extrude(1.225)
result = result.union(cq.Workplane(cq.Plane(origin=(0.56, -0.307, -0.154), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.546, 0.531).extrude(0.209))
result = r... | 4 | 64 | 2.235557 |
train_b0d9ac538f07c6dd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.32, -0.522), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.302, 1.359).extrude(1.045)
result = result.union(cq.Workplane(cq.Plane(origin=(0.168, 0.665, -0.15), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.705, 0.669).extrude(0.567))
result = result... | 3 | 12 | 1.998504 |
train_7f3c6927b9f3b832 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.118, -0.396), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.435).extrude(0.792)
result = result.faces('>Z').shell(-0.052)
result = result.union(cq.Workplane(cq.Plane(origin=(0.492, 0.709, -0.317), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.617... | 3 | 16 | 0.463547 |
train_e4605c3bb7ec6110 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.108, 0, 0.494), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.492, 0.121).lineTo(-0.506, 0.121).lineTo(-0.506, -0.121).lineTo(-0.499, -0.024).lineTo(-0.499, 0.024).lineTo(-0.492, 0.024).lineTo(-0.492, -0.119).lineTo(0.506, 0.024).lineTo(-0.492, ... | 10 | 57 | 0.008528 |
train_8e36c3361f5cb1bc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.029, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.88, 0.618).extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.439, -0.142, -0.317), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.031).extrude(0.323))
result = result.cut(cq.Wor... | 10 | 62 | 1.024378 |
train_f94ed42f137d565e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.008, -0.266, -0.157), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.855, -0.017).lineTo(0.414, 0.693).lineTo(-0.41, 0.69).lineTo(-0.839, -0.012).lineTo(-0.399, -0.734).lineTo(0.399, -0.73).close().moveTo(-0.199, -0.386).lineTo(0.202, -0.389).line... | 9 | 54 | 0.971431 |
train_11c0a87f6a009b24 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.479, 0, -0.05), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.041, 1.064).extrude(0.134)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.424, -0.074, 0.038), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.358, 1.276).extrude(0.017))
result = result... | 18 | 112 | 0.250837 |
train_fec173200fab7334 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.387, 0.002, -0.207), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.787, 1.023).extrude(0.024)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.379, 0.12, -0.183), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.292).extrude(0.011))
result = resul... | 5 | 77 | 0.307772 |
train_b8e7c09a624d1039 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.783), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.308).extrude(1.565)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.807, -0.077, -0.473), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.139).extrude(0.805))
result = result.cut(cq.Work... | 12 | 69 | 3.146588 |
train_1c21052f658bceff | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.363, 0.187, -0.65), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.734, 1.047).extrude(0.913)
result = result.union(cq.Workplane(cq.Plane(origin=(0.082, 0.383, -0.206), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.172, 0.445).extrude(0.138))
result = r... | 12 | 82 | 0.639353 |
train_4707ac9cfa37c6f1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.414, 0, 0.072), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.713, 1.066).extrude(0.383)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.093, 0.186, 0.177), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.327, 0.48).extrude(0.158))
result = result.... | 3 | 18 | 0.350478 |
train_89dfb0e7e09fc1fb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.69, 0.075), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.624, -0.31).lineTo(-0.461, -0.148).lineTo(-0.163, 0.148).lineTo(0, 0.31).lineTo(0.162, 0.149).lineTo(0.463, -0.149).lineTo(0.624, -0.31).lineTo(-0.624, -0.31).close().sweep(cq.Workplane... | 1 | 9 | 0.14035 |
train_25e8023db28c6dad | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.671, -0.197, -0.494), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.658, 0.658).extrude(1.042)
result = result.union(cq.Workplane(cq.Plane(origin=(0.235, -0.197, -0.121), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.368, 0.132).extrude(0.297))
result ... | 10 | 132 | 0.884756 |
train_d67a61fe292ac394 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.334, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.414, 0.286).threePointArc((0.334, 0.333), (0.288, 0.413)).lineTo(-0.367, 0.24).threePointArc((-0.367, 0.147), (-0.414, 0.067)).lineTo(0.063, -0.413).threePointArc((0.144, -0.367), (0.237,... | 2 | 11 | 0.247062 |
train_c34b1cc643e43f9d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.186), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.461, 0.242).lineTo(-0.603, 0.42).lineTo(-0.549, 0.42).lineTo(-0.814, 0.906).lineTo(-0.479, 0.906).lineTo(-0.151, 0.431).threePointArc((-0.147, 0.426), (-0.144, 0.42)).threePointArc((-0.14... | 11 | 104 | 0.940786 |
train_0950eeacf1a81375 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.565, -0.52, 0.588), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.721, 1.09).lineTo(0.416, -0.046).lineTo(-0.721, 0.259).lineTo(-0.416, 1.394).lineTo(0.721, 1.09).close().revolve(angleDegrees=180, axisStart=(0.721, 1.09), axisEnd=(0.416, -0.046))... | 6 | 24 | 1.850024 |
train_180bd16e7db6a184 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.779, 0.948, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(1, 0.137).lineTo(-1, 0.137).lineTo(-1, 1.421).lineTo(1, 1.421).lineTo(1, 0.137).close().extrude(1.897)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.03, 0.415, -0.553), normal=(0, ... | 11 | 293 | 3.000237 |
train_dd89c8e986df39e4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.415), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.323, 0.854).lineTo(-0.86, 0.09).lineTo(-0.791, -0.018).lineTo(-0.311, -0.765).threePointArc((-0.293, -0.788), (-0.278, -0.814)).lineTo(-0.254, -0.854).lineTo(-0.17, -0.8).lineTo(-0.707, 0.... | 1 | 15 | 0.360571 |
train_449269ada8f40f3d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1, -0.047), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.216, -0.801).threePointArc((0.5, -0.661), (0.711, -0.428)).threePointArc((0, 0.829), (-0.711, -0.428)).threePointArc((-0.5, -0.661), (-0.216, -0.801)).threePointArc((0, -0.829), (0.216, ... | 1 | 6 | 2.698179 |
train_b13f509a7707d062 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.445, -0.088), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.808, 1.167).threePointArc((0.256, 1.173), (-0.212, 1.466)).lineTo(-1.137, 0.632).threePointArc((-0.094, -0.023), (1.137, -0.034)).lineTo(0.808, 1.167).close().extrude(2)
result = resu... | 12 | 68 | 3.254305 |
train_e94ff61332c58bd2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.639, -0.16, -0.596), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.196, 0.281).threePointArc((-0.319, 0.158), (-0.196, 0.036)).lineTo(0.319, 0.036).lineTo(0.319, 0.281).lineTo(-0.196, 0.281).close().workplane(offset=0.143).moveTo(-0.202, 0.285)... | 5 | 45 | 0.751604 |
train_0d78a33415c8622c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.301, 0.516), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.372, 0.029).threePointArc((-0.373, 0), (-0.372, -0.029)).threePointArc((-0.264, -0.264), (-0.029, -0.372)).lineTo(-0.029, -0.339).lineTo(0.029, -0.339).lineTo(0.029, -0.372).threePoint... | 5 | 35 | 0.426813 |
train_7ac82d3c7281de94 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.242, 0.396, -0.993), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.214, 1.208).extrude(0.379)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.002, 0.2, -0.616), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.241).extrude(0.07))
result = result.c... | 26 | 165 | 0.487565 |
train_f8ad996f663bcbfb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.481, -0.818, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.365, 1.818).lineTo(-0.315, 1.818).threePointArc((-0.365, 1.768), (-0.315, 1.718)).lineTo(-0.315, 0.868).threePointArc((-0.365, 0.818), (-0.315, 0.768)).lineTo(-0.315, -0.082).lineTo(-... | 4 | 20 | 1.217962 |
train_e662f44bf30c7bfc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.001, 0.178), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1.584, -0.226).lineTo(0, 0.226).lineTo(-1.584, -0.226).lineTo(1.584, -0.226).close().workplane(offset=0.18).moveTo(1.276, -0.183).lineTo(0, 0.183).lineTo(-1.276, -0.183).lineTo(1.276, -... | 15 | 141 | 0.089895 |
train_7f19e7560e2420fe | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.258, 0.005, -0.856), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.224, 0.346).threePointArc((0.2, 0.429), (0.158, 0.505)).lineTo(0, 0.571).lineTo(-0.158, 0.505).lineTo(-0.224, 0.346).lineTo(-0.158, 0.188).lineTo(0, 0.122).lineTo(0.158, 0.188).li... | 14 | 105 | 0.34995 |
train_f4e0cf635ec3fd78 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.52, -0.437, -0.232), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.368, 0.04).threePointArc((0.143, 0.246), (0.368, 0.749)).threePointArc((0, 0.769), (-0.368, 0.777)).lineTo(-0.368, 0.04).close().extrude(1.039)
result = result.edges().fillet(0.2... | 7 | 46 | 0.480712 |
train_76e913cb6f2aad0b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.5), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.5, 0.034).lineTo(0.5, 0.074).lineTo(-0.459, 0.074).lineTo(-0.459, 0.115).lineTo(-0.5, 0.115).lineTo(-0.5, 0.034).lineTo(0.5, 0.034).close().revolve(angleDegrees=360, axisStart=(0.5, 0.034),... | 8 | 88 | 0.174125 |
train_1ce11b98b9d5a9bc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.013, 0.748, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-1, 0.2).lineTo(-1, -0.2).lineTo(1, -0.2).lineTo(1, 0.2).lineTo(-1, 0.2).close().sweep(cq.Workplane('XY').moveTo(0.087, 0.424).spline([(-0.07, 0.429), (-0.227, 0.179), (-0.215, -0.096), (... | 1 | 6 | 0.407729 |
train_f64aab0dd51261ef | 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.837, 0.785).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.04, 0.062, 0.559), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.138).extrude(0.453))
result = result.cut(cq.Workplane(cq... | 11 | 54 | 2.559581 |
train_f27d15ffd6fef5fb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.995), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.732).extrude(1.99)
result = result.cut(cq.Workplane(cq.Plane(origin=(0 + 0.403 * math.cos(4.167 + 2 * math.pi * 0 / 5), 0 + 0.403 * math.sin(4.167 + 2 * math.pi * 0 / 5), -1.294), normal=... | 29 | 176 | 4.525221 |
train_75f02addceab2140 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.833, -0.026, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.19, 0).lineTo(0.19, 0.19).threePointArc((0, 0.27), (-0.19, 0.19)).lineTo(-0.19, -0.19).threePointArc((0, -0.27), (0.19, -0.19)).lineTo(0.19, 0).close().sweep(cq.Workplane('XY').moveTo(... | 10 | 42 | 0.255938 |
train_0318dba94af18561 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.389, 0.17, 0.337), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.539, 1.011).extrude(0.124)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.387, 0.241, 0.408), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.055).extrude(0.016))
result = result.un... | 19 | 123 | 0.295396 |
train_557e550d29470575 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.128, 0.656, 0.213), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.423, 0.885).lineTo(0.423, 0.773).lineTo(-0.61, 0.773).lineTo(-0.701, 0.682).lineTo(-0.701, -0.33).lineTo(0.701, -0.33).lineTo(0.701, 0.682).lineTo(0.61, 0.773).lineTo(0.498, 0.885)... | 27 | 154 | 0.958273 |
train_65d102fd6b0db43d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.286, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.112, 0.044).lineTo(0.087, -0.044).lineTo(-0.087, -0.044).lineTo(-0.112, 0.044).lineTo(0.112, 0.044).close().sweep(cq.Workplane('XY').spline([(-1.601, 0.286), (-1.068, 0.766), (-0.534, 1.054... | 4 | 13 | 0.038412 |
train_80deb33ad3ae9abc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.313, -0.019, -0.058), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.688, 0.566).extrude(0.478)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.082, 0.04, -0.01), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.125, 0.336).extrude(0.19))
result = re... | 27 | 107 | 0.333112 |
train_4625c444c31c03c6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.195, 0.055, 0.251), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.105, 0.357).threePointArc((-0.193, 0.272), (-0.222, 0.154)).lineTo(-0.543, -0.031).threePointArc((-0.462, -0.106), (-0.438, -0.212)).lineTo(-0.118, -0.027).threePointArc((0, -0.06... | 23 | 162 | 0.405439 |
train_b5b0ca0ca071459e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.241, 0.019, -0.186), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.516, 0.516).extrude(0.195)
result = result.union(cq.Workplane(cq.Plane(origin=(0.267, 0.045, 0.008), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.465, 0.465).extrude(0.015))
result = re... | 13 | 114 | 0.108151 |
train_c0f116901ea885ca | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.17, 0.127, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(1, 0.033).lineTo(1, 0.333).lineTo(-1, 0.333).lineTo(-1, 0.033).lineTo(1, 0.033).close().extrude(0.209)
result = result.edges().fillet(0.06)
result = result.union(cq.Workplane(cq.Plane(ori... | 21 | 82 | 0.21022 |
train_239c107eff3e4c6d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.374, -0.766, -0.125), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.443, -0.376).threePointArc((-0.55, 0.303), (-0.859, 0.916)).threePointArc((0, 1.175), (0.859, 0.916)).threePointArc((0.55, 0.303), (0.443, -0.376)).lineTo(0, -0.376).lineTo(-0.4... | 18 | 184 | 1.700089 |
train_537242b91ead128b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.008, -0.242, -0.736), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.264, -0.028).lineTo(0.264, -0.101).lineTo(-0.264, -0.101).lineTo(-0.264, 0.117).lineTo(0.141, 0.117).lineTo(0.141, -0.028).lineTo(0.264, -0.028).close().extrude(0.485)
result = r... | 7 | 64 | 0.097937 |
train_57649468dffc5fbd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.377), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.645).workplane(offset=0.385).circle(0.839).workplane(offset=0.369).circle(1.07).loft()
result = result.edges().fillet(0.079)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.14, 0.733, ... | 12 | 18 | 1.673612 |
train_2c59e02812a4e977 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.367), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.33).extrude(0.704)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.103, -0.043, -0.486), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.614, 0.282).extrude(0.845))
result = result.cut(cq.W... | 9 | 37 | 1.672633 |
train_48c224438a948260 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.138, 0.683, -0.241), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.306).sweep(cq.Workplane('YZ').spline([(0.144, -0.592), (0.268, -0.321), (0.166, -0.042), (-0.109, 0.102)]))
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.138, -0.118, -0.71... | 7 | 31 | 0.108521 |
train_12c169dd3ff1251d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.262, 0.021, -0.066), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.243, -1.021).threePointArc((-0.12, 0.055), (0.243, 1.074)).lineTo(0.243, -1.021).lineTo(-0.243, -1.021).close().extrude(0.524)
result = result.edges().fillet(0.027)
result = resu... | 7 | 58 | 0.349977 |
train_eba33f129db7c1ba | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.034, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.045, 1.277).extrude(1.251)
result = result.union(cq.Workplane(cq.Plane(origin=(0.056, 0.227, 0.23), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.176, 0.365).extrude(0.348))
result = result.cut(... | 20 | 92 | 1.526485 |
train_5f4c2e6d1f2410c8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.604, 0.027, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.215).sweep(cq.Workplane('XY').spline([(-1.068, 0.027), (-0.882, 0.187), (-0.696, 0.267), (-0.51, 0.267), (-0.325, 0.187), (-0.138, 0.027)]))
result = result.edges().chamfer(0.061)
resu... | 8 | 31 | 0.158416 |
train_3ad2cfe8abcdd191 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.106, 0.047, -0.467), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.263, 0.329).lineTo(-0.263, -0.548).lineTo(-0.044, -0.548).lineTo(0.048, 0.329).lineTo(0.24, 0.329).lineTo(0.263, 0.548).lineTo(0.102, 0.476).lineTo(0.097, 0.432).lineTo(0.062, 0.... | 3 | 50 | 0.504954 |
train_f21a1ad6a51f17bb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.404, -0.077, -0.123), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.191, 1.048).extrude(0.193)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.404, -0.077, 0.068), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.339).extrude(0.032))
result = res... | 15 | 82 | 0.235763 |
train_01d2c6a548ede94e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.114, -0.241, -0.11), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.684, 1.517).extrude(0.705)
result = result.union(cq.Workplane(cq.Plane(origin=(0.181, 0.747, 0.302), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.315, 0.505).extrude(0.171))
result = re... | 5 | 38 | 0.847248 |
train_5be76f2f653391e9 | 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.646, 1.627).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.138, 0.594, -0.141), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.232).extrude(0.45))
result = result.edges().fillet(0.0... | 4 | 54 | 5.262171 |
train_45a8d9718d300719 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(2.078, 0.504, -0.009), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.291, 2.078).lineTo(0, 2.078).lineTo(-0.291, 1.574).lineTo(0, 1.07).lineTo(0.291, 1.07).lineTo(0.291, 2.078).close().revolve(angleDegrees=180, axisStart=(0.291, 2.078), axisEnd=(0,... | 8 | 81 | 0.554863 |
train_71b51d18afb1a91b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.049, -0.017, -0.356), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.065, -0.04).threePointArc((-0.063, -0.025), (-0.058, -0.01)).threePointArc((-0.045, 0.008), (-0.027, 0.021)).lineTo(-0.049, 0.021).threePointArc((0.003, 0.04), (0.056, 0.021)).... | 4 | 25 | 0.001255 |
train_7a537356512de582 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.035, 0.045), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.5, 0.435).lineTo(-0.5, -0.965).lineTo(-0.7, -0.965).lineTo(-0.7, 0.635).lineTo(-0.5, 0.635).lineTo(-0.5, 1.035).lineTo(0.7, 1.035).lineTo(0.7, 0.435).lineTo(-0.5, 0.435).close().extru... | 8 | 255 | 0.852312 |
train_481a5fe7a3dbe050 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 1.007), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.178).workplane(offset=0.372).circle(0.266).workplane(offset=0.371).circle(0.223).workplane(offset=0.304).circle(0.181).workplane(offset=0.302).circle(0.209).workplane(offset=0.285).circle(... | 18 | 90 | 0.143945 |
train_b5295c0fa474a434 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.421, 0.188, 0.147), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.155, 0.482).lineTo(-0.155, 0.482).lineTo(-0.155, -0.049).lineTo(0.155, -0.049).lineTo(0.155, 0.482).close().extrude(0.504)
result = result.edges().fillet(0.015)
result = result.uni... | 17 | 126 | 0.18485 |
train_6d25b9fd46f0581c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.912, -0.657, 0.152), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.884, 0.791).lineTo(-0.884, 0.33).lineTo(-0.346, -0.209).lineTo(0.653, -0.209).lineTo(0.653, 0.33).lineTo(0.884, 0.561).lineTo(0.653, 0.791).lineTo(0.653, 1.329).lineTo(0.115, 1.3... | 14 | 108 | 3.813822 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.