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_57d6c8fe8ff87023 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.393, 0, -0.946), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.3).sweep(cq.Workplane('XZ').spline([(0.393, -0.946), (0.784, -0.204), (0.254, 0.495), (-0.852, 0.695)]))
result = result.edges().chamfer(0.177)
result = result.cut(cq.Workplane(cq.Pla... | 11 | 9 | 0.410937 |
train_703b686a2171a612 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.002, -0.422), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.683).extrude(0.843)
result = result.union(cq.Workplane(cq.Plane(origin=(0.071, -0.399, -0.246), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.016, 0.123).extrude(0.302))
result = result.... | 3 | 14 | 1.190692 |
train_670dc2920514f8d2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.124, 0.576, 0.49), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.51, 0.239).threePointArc((-0.51, 0.229), (-0.509, 0.219)).threePointArc((0, -0.271), (0.509, 0.219)).threePointArc((0.51, 0.229), (0.51, 0.239)).lineTo(0.431, 0.239).threePointArc(... | 7 | 59 | 0.891607 |
train_48f551d9b39a38f8 | 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.979).workplane(offset=0.408).circle(0.722).workplane(offset=0.365).circle(0.774).workplane(offset=0.438).circle(0.76).workplane(offset=0.337).circle(0.773).workplane(offset=0.452).circle(0.693... | 8 | 40 | 2.360543 |
train_4da6a10a7bbf8d45 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.493, 0.703, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.574).workplane(offset=0.298).circle(0.513).workplane(offset=0.242).circle(0.452).workplane(offset=0.305).circle(0.391).workplane(offset=0.313).circle(0.33).loft()
result = result.edge... | 11 | 90 | 1.200399 |
train_1e174c29daf9e0a0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.653, -0.785, 0.261), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, 1.134).lineTo(-0.58, 1.262).threePointArc((-0.721, 1.199), (-0.705, 1.045)).lineTo(-0.304, 0.607).lineTo(-0.126, 0.041).threePointArc((-0.122, 0.129), (-0.066, 0.195)).lineTo(0, ... | 6 | 45 | 0.707069 |
train_4878321f8ad4c462 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.154, 0.008, -0.002), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.52, 0.055).extrude(0.124)
result = result.union(cq.Workplane(cq.Plane(origin=(0.676, 0.019, 0.03), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.648, 0.021).extrude(0.071))
result = resu... | 8 | 38 | 0.008201 |
train_339ff66a00a03231 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.667, 0.741, 0.108), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 1.559).threePointArc((-0.094, 1.554), (-0.188, 1.54)).lineTo(-0.188, 0.856).lineTo(-0.872, 0.856).threePointArc((-0.892, 0.668), (-0.872, 0.479)).threePointArc((-0.631, 0.037), (-... | 14 | 194 | 1.301996 |
train_211323044bc27351 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.115, -0.015, 0.037), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.129, 0.163).extrude(0.028)
result = result.union(cq.Workplane(cq.Plane(origin=(0.115, -0.015, 0.064), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.101, 0.1).extrude(0.006))
result = res... | 25 | 235 | 0.289137 |
train_f22a766bfa35699a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.311, 0, -0.284), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.377, 1.224).extrude(0.567)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.667, -0.112, -0.022), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.666, 0.548).extrude(0.208))
result = res... | 3 | 12 | 0.982136 |
train_29eb4387bc3eaeaa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.008, 0, 0.033), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.151, -0.071).lineTo(-0.151, -0.071).lineTo(-0.151, 0.071).lineTo(0.151, 0.071).lineTo(0.151, -0.071).close().sweep(cq.Workplane('XZ').spline([(-1.094, -0.049), (-0.359, 0.334), (0.375, ... | 7 | 27 | 0.075399 |
train_55bd93e840def0e7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.369, 0.463, 0.466), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.469, 0.007).threePointArc((0.438, -0.068), (0.362, -0.1)).lineTo(-0.362, -0.1).threePointArc((-0.438, -0.068), (-0.469, 0.007)).lineTo(-0.469, 0.731).threePointArc((-0.438, 0.807),... | 14 | 242 | 1.27503 |
train_39a1b4da5ff25e7c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.296, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.2, -0.2).lineTo(0, 0).lineTo(0.101, 0.101).lineTo(0.093, 0.143).lineTo(-0.101, 0.101).lineTo(-0.2, 0.2).lineTo(-0.2, -0.2).lineTo(0.2, -0.2).close().sweep(cq.Workplane('XY').spline([(-0.... | 7 | 34 | 0.102335 |
train_d41c881bb42f9dae | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.656, -0.594), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.885, 1.258).lineTo(1.046, 0.883).lineTo(-0.885, 0.055).lineTo(-1.046, 0.43).lineTo(0.885, 1.258).close().extrude(1.189)
result = result.edges().fillet(0.145)
result = result.cut(cq.Wo... | 6 | 44 | 0.854977 |
train_d1f5718175cd584e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.241, -0.144, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.254, -0.758).lineTo(0.124, 1.046).lineTo(-0.254, 1.046).lineTo(-0.254, -0.758).lineTo(0.254, -0.758).close().workplane(offset=0.247).moveTo(0.221, -0.639).lineTo(0.107, 0.927).lineTo(... | 17 | 126 | 0.254841 |
train_fb374c57f9aab437 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.068, 0.187, 0.417), normal=(0, -1, 0), xDir=(0, 0, 1))).lineTo(0.443, 0.014).lineTo(0.443, 0.203).close().extrude(0.169)
result = result.union(cq.Workplane(cq.Plane(origin=(0.046, 0.12, 0.271), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.396, ... | 13 | 126 | 0.132588 |
train_05dcd25747dcdb72 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0, 0.089), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.08, 0.107).lineTo(0.131, 0.107).lineTo(0.113, 0.088).lineTo(0.113, 0.056).lineTo(0.084, 0.056).lineTo(-0.051, -0.089).threePointArc((-0.058, -0.095), (-0.066, -0.101)).threePointArc((-0.0... | 5 | 32 | 0.026544 |
train_e31d87de2dcf8aca | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.183, 0.145, 0.31), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.139).sweep(cq.Workplane('XZ').spline([(0.03, -0.002), (0.107, 0.148), (0.004, 0.287), (-0.136, 0.171), (-0.094, 0.035)]))
result = result.edges().chamfer(0.045)
result = result.cut... | 25 | 220 | 0.078135 |
train_e14e926622609761 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.067, 0, -0.75), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.401, 2).extrude(1.537)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.288, -1.212, -0.209), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.221, -1.007).lineTo(-0.221, -1.212).line... | 9 | 306 | 3.543206 |
train_6ad12c98dfd56f4c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.556, -1, 0.164), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.483, 1.327).threePointArc((-0.6, 0.928), (-0.625, 0.513)).threePointArc((-0.598, 0.27), (-0.538, 0.031)).threePointArc((-0.512, -0.045), (-0.483, -0.118)).threePointArc((-0.438, -0.1... | 28 | 50 | 1.62317 |
train_fde6e37918fe02df | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.137, 0.093, 0.428), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.429, 0.405).extrude(0.572)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.137 + 0.057 * math.cos(0.068 + 2 * math.pi * 0 / 5), 0.379 + 0.057 * math.sin(0.068 + 2 * math.pi * 0 / ... | 12 | 75 | 0.266267 |
train_80beae0fb5f8face | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.257, -0.366, -0.141), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.105, -0.089).lineTo(-0.064, -0.104).lineTo(-0.029, -0.087).threePointArc((0.124, -0.025), (0.021, 0.104)).threePointArc((-0.049, 0.074), (-0.079, 0.004)).lineTo(-0.108, -0.009).... | 23 | 220 | 0.330286 |
train_7b188e66009d145d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.757, 0.337, 0.047), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.333, 1.099).lineTo(-0.333, -0.565).threePointArc((0.333, 0.267), (-0.333, 1.099)).close().extrude(0.697)
result = result.edges().fillet(0.314)
result = result.union(cq.Workplane(c... | 8 | 32 | 0.375725 |
train_4106316e06607341 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.4, 0.036, 0.287), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.385, 0.378).threePointArc((0.291, 0.63), (0.054, 0.759)).threePointArc((-0.385, 0.378), (0.054, -0.003)).threePointArc((0.291, 0.126), (0.385, 0.378)).close().extrude(0.758)
result =... | 22 | 176 | 0.786775 |
train_ba8745546ec1abae | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.833, -0.298, 0.002), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1.015, 0.02).lineTo(-0.798, 0.312).lineTo(-0.423, 0.536).lineTo(-0.249, 0.578).lineTo(0.381, 0.501).lineTo(1.015, 0.02).lineTo(-1.015, 0.02).close().extrude(1.812)
result = result.... | 3 | 63 | 1.368539 |
train_6583176ad77f52ff | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.992), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.303).extrude(1.983)
result = result.edges().fillet(0.19)
| 2 | 26 | 5.013079 |
train_fd0e96f440544cd6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.282, -0.231, 0.05), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.198, -0.152).threePointArc((0.198, -0.156), (0.197, -0.16)).lineTo(0.198, -0.16).threePointArc((0.182, -0.188), (0.152, -0.199)).lineTo(-0.152, -0.199).threePointArc((-0.185, -0.185... | 13 | 81 | 0.234873 |
train_b29a9001447afcc3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.28, -0.578, 0.138), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.272).workplane(offset=0.165).circle(0.382).workplane(offset=0.147).circle(0.41).workplane(offset=0.117).circle(0.256).workplane(offset=0.131).circle(0.251).loft()
result = result.e... | 16 | 78 | 0.21224 |
train_c474847e51c9bfb7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.041, -0.198), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1, 0.03).lineTo(-1, -0.13).lineTo(1, -0.13).lineTo(1, 0.03).lineTo(0.9, 0.13).lineTo(0.8, 0.03).lineTo(0.4, 0.03).lineTo(0.3, 0.13).lineTo(0.2, 0.03).lineTo(0, 0.03).lineTo(-0.1, 0.13).... | 9 | 56 | 0.096035 |
train_88f170da745fb866 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.29, 0.017, 0.084), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.064, 0.01).threePointArc((0, 0.007), (0.064, 0.01)).lineTo(0, 0.08).lineTo(-0.064, 0.01).close().extrude(0.225)
result = result.edges().fillet(0.011)
result = result.cut(cq.Workplan... | 27 | 374 | 0.139171 |
train_d8b44bef59888071 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.631), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.592, 2).extrude(0.808)
result = result.union(cq.Workplane(cq.Plane(origin=(0.08, 0.1, 0.174), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.433, 1.8).extrude(0.125))
result = result.union(cq.Wor... | 16 | 61 | 2.176853 |
train_96efb0b6b15611ee | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.227, 0, -0.606), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.546, 0.702).extrude(1.213)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.119, -0.158, 0.134), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.855, 0.208).extrude(0.156))
result = resul... | 19 | 101 | 1.096313 |
train_a95c1b93fdd7f597 | 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.431, 1.797).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.393, 0.146, -0.061), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.677, 1.147).extrude(0.456))
result = result.edges().fil... | 15 | 201 | 3.737769 |
train_f88f982ac692564f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.073, 0.011, -0.23), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.01, 0.04).lineTo(0.026, 0.04).lineTo(0.016, 0.052).lineTo(-0.026, 0.052).lineTo(-0.026, -0.036).threePointArc((-0.023, -0.037), (-0.02, -0.037)).lineTo(-0.02, -0.025).lineTo(-0.02,... | 13 | 109 | 0.067365 |
train_6c8be91ed92a9501 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.021, -0.016, -0.566), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.979, 0.013).lineTo(0.516, 0.847).lineTo(-0.492, 0.885).lineTo(-1.021, -0.016).lineTo(-0.473, -0.853).lineTo(0.53, -0.841).close().moveTo(-0.215, -0.242).lineTo(0.218, -0.244).line... | 10 | 59 | 2.098788 |
train_70bf9166b720957f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.345), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.845).extrude(0.69)
result = result.faces('>Z').shell(-0.035)
| 2 | 11 | 0.302234 |
train_00faa8755a9bc061 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.546), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.335, 0.244).lineTo(-0.245, 0.106).lineTo(0.088, -0.405).lineTo(0.335, -0.244).lineTo(0.002, 0.267).lineTo(-0.088, 0.405).lineTo(-0.335, 0.244).close().extrude(0.454)
result = result.unio... | 8 | 40 | 0.14113 |
train_142fe1240ef0760d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.168, -0.246), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.924, 0.837).extrude(0.433)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.123, -0.489, -0.142), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.399, 0.204).extrude(0.109))
result = resu... | 33 | 198 | 0.300583 |
train_165a8f58758d63da | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.456, -0.583, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.514, 0.051).lineTo(-1, 0.051).lineTo(-1, 0.861).lineTo(1, 0.861).lineTo(1, 0.051).lineTo(-0.514, 0.051).close().extrude(1.321)
result = result.edges().chamfer(0.159)
result = result.... | 10 | 54 | 1.885919 |
train_f9b0a20573bc31be | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.492, 0.162, -0.087), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.371, 1.162).lineTo(0.371, 0.896).lineTo(-0.24, 0.896).lineTo(-0.24, -0.326).lineTo(0.371, -0.326).lineTo(0.371, -0.584).lineTo(-0.371, -0.584).lineTo(-0.371, 1.162).lineTo(0.371, ... | 5 | 122 | 0.226061 |
train_732da814ca1486e7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.069, 0.037, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(1.02, 0.069).lineTo(-0.974, 0.069).lineTo(-1.02, 0.142).lineTo(0.974, 0.142).lineTo(1.02, 0.069).close().revolve(angleDegrees=180, axisStart=(1.02, 0.069), axisEnd=(-0.974, 0.069))
resul... | 10 | 22 | 0.013875 |
train_f486947f29118bc3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.426), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.265).extrude(0.629)
result = result.union(cq.Workplane(cq.Plane(origin=(0.1, 0.063, 0.197), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.569).extrude(0.107))
result = result.union(cq.Workp... | 15 | 102 | 1.510969 |
train_8e63fd96adb82a2c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.396, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.168, 0.112).lineTo(-0.104, 0.175).lineTo(0.685, 0.175).lineTo(0.738, 0.112).lineTo(0.759, 0.112).lineTo(0.696, 0.175).lineTo(0.626, 0.242).lineTo(0.252, 0.682).lineTo(-0.125, 0.242).line... | 3 | 22 | 0.46349 |
train_0630266282bd0a96 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.152, -0.067, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, 0.285).threePointArc((-0.478, 0.226), (-0.928, 0.052)).threePointArc((-0.962, 0.033), (-0.996, 0.013)).lineTo(-1, 0.02).threePointArc((-0.968, 0.038), (-0.935, 0.056)).threePointArc(... | 1 | 15 | 0.002074 |
train_62fad4127f15e04c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.051, 0.024), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.055, 1).threePointArc((0.055, 0), (-0.055, -1)).lineTo(-0.055, 1).close().sweep(cq.Workplane('YZ').moveTo(-0.305, -0.094).spline([(-0.238, -0.147), (-0.167, -0.147), (-0.1, -0.094), (... | 2 | 12 | 0.002346 |
train_53b60e37f0af3cbe | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.262, -0.066, -0.423), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.167, -0.934).lineTo(-0.167, 0.755).threePointArc((0, 1.066), (0.167, 0.755)).lineTo(0.167, -0.734).lineTo(0.167, -0.934).lineTo(-0.167, -0.934).close().extrude(0.374)
result = r... | 10 | 103 | 0.173767 |
train_e5e3f1ed3e37625e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.453, 0, -0.305), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.095, 1.541).extrude(0.61)
result = result.union(result.mirror('YZ', basePointVector=(0, 0, -0.305)))
| 2 | 6 | 1.88096 |
train_89efcc5e4bb85f6d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.759, -0.578, -0.004), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.018, -0.003).threePointArc((0.027, 0.006), (0.018, 0.015)).threePointArc((-0.004, 0.018), (-0.028, 0.02)).lineTo(-0.028, 0.021).threePointArc((-0.004, 0.019), (0.018, 0.016)).thr... | 5 | 31 | 0.012711 |
train_95761e15c4ad7027 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.135, 0.206, 0.047), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.692, -0.248).threePointArc((0.459, -0.436), (0.207, -0.6)).threePointArc((-0.064, -0.742), (-0.348, -0.856)).threePointArc((-0.329, -0.55), (-0.277, -0.248)).threePointArc((-0.496... | 8 | 87 | 0.279374 |
train_ac68912ef3216ee4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.692, 0.848, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.714, 1.54).lineTo(0.714, 1.54).threePointArc((0, -0.16), (-0.714, 1.54)).close().revolve(angleDegrees=90, axisStart=(-0.714, 1.54), axisEnd=(0.714, 1.54))
result = result.edges().fill... | 4 | 27 | 1.650634 |
train_57487f5ec8b931f4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.208, 0, -0.773), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.585, 1.444).extrude(1.22)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.319, -0.002, -0.048), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.095).extrude(0.198))
result = result.uni... | 37 | 94 | 1.823067 |
train_e6a6593fdbf22b5f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.482, 0.306, -0.038), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.527, -0.694).lineTo(0.527, 1.306).lineTo(-0.527, 1.306).lineTo(-0.527, -0.694).lineTo(0.527, -0.694).close().revolve(angleDegrees=90, axisStart=(0.527, -0.694), axisEnd=(0.527, -0... | 5 | 103 | 1.69357 |
train_144bf64c46295bdf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.077, -0.013, -0.78), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.174, 1.174).extrude(1.78)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.585, 0.064, 0.055), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.079).extrude(0.397))
result = result.... | 11 | 225 | 2.552715 |
train_b47719cd5e6c28c1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.126), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.533).extrude(0.169)
result = result.union(cq.Workplane(cq.Plane(origin=(0.393, 0.054, 0.041), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.198, 0.118).extrude(0.039))
result = result.union(c... | 7 | 32 | 0.434914 |
train_f392b9778083ce55 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.211, 0.269, 0.012), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.292, 1.4).lineTo(-0.292, -0.829).threePointArc((0.292, 0.286), (-0.292, 1.4)).close().extrude(1.004)
result = result.edges().fillet(0.151)
result = result.union(cq.Workplane(cq.Pl... | 7 | 32 | 0.836619 |
train_5138a5d56c23c81a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.782, 0.749, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.886, 1.208).threePointArc((0.866, 1.282), (0.812, 1.337)).lineTo(0.074, 1.763).threePointArc((0, 1.783), (-0.074, 1.763)).lineTo(-0.812, 1.337).threePointArc((-0.866, 1.282), (-0.886, ... | 15 | 66 | 3.52999 |
train_362fcd3fee5d7300 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.594, 0.213, -0.234), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.406, 0.001).lineTo(0.136, 0.375).lineTo(-0.336, 0.249).lineTo(-0.327, -0.236).lineTo(0.123, -0.372).close().moveTo(-0.129, -0.089).lineTo(-0.11, -0.032).lineTo(-0.051, -0.045).line... | 15 | 189 | 0.477863 |
train_e178eedf536ad339 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.001, -0.396, -0.312), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.889, 0.109).lineTo(0.116, 0.256).lineTo(0.071, 0.023).lineTo(-1.013, 0.231).lineTo(-0.913, 0.757).lineTo(1.013, 0.757).lineTo(0.889, 0.109).close().extrude(0.624)
result = result.... | 2 | 38 | 0.717505 |
train_05274f30f69ea762 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.734, 0, -0.494), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.025, 0.19).lineTo(-0.043, 0.292).lineTo(-0.067, 0.171).lineTo(-0.169, 0.24).lineTo(-0.146, 0.12).lineTo(-0.266, 0.144).lineTo(-0.198, 0.041).lineTo(-0.216, -0.051).lineTo(-0.198, -0.1... | 27 | 22 | 0.432393 |
train_ac17cc0e5eba4c98 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.272, -0.358, -0.002), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.55, 0.53).threePointArc((0.023, 0.375), (-0.505, 0.53)).lineTo(-0.505, 0.542).threePointArc((-0.593, 0.606), (-0.673, 0.68)).lineTo(-0.562, 0.872).threePointArc((-0.577, 0.89), (... | 2 | 48 | 0.395091 |
train_9decff9ddedf279f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.078), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1, 0.263).lineTo(1, 0.263).lineTo(1, -0.263).lineTo(0.649, -0.263).lineTo(0.649, 0.005).lineTo(-1, 0.005).lineTo(-1, 0.263).close().extrude(0.286)
result = result.edges().fillet(0.065)
resu... | 13 | 62 | 0.136098 |
train_fd859e9c7fa58411 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.213, 0, 0.004), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, -0.194).threePointArc((0.845, 0), (0, 0.194)).threePointArc((-0.845, 0), (0, -0.194)).close().sweep(cq.Workplane('XZ').spline([(-0.387, -0.36), (-0.3, -0.347), (-0.213, -0.213), (-0.1... | 1 | 4 | 0.241521 |
train_de8dcc889e1ef777 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.355, 0.294, 0.024), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.447, 0.951).lineTo(0.149, -0.24).lineTo(-0.447, -0.24).lineTo(-0.447, 0.951).lineTo(0.447, 0.951).close().workplane(offset=0.252).moveTo(0.397, 0.885).lineTo(0.133, -0.174).lineTo(... | 4 | 38 | 0.834347 |
train_3ec63037dde8f9cf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.619, -0.506, -0.003), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1.115, 0.035).lineTo(0, 0.86).lineTo(1.115, 0.035).lineTo(-1.115, 0.035).close().revolve(angleDegrees=90, axisStart=(-1.115, 0.035), axisEnd=(0, 0.86))
result = result.edges().ch... | 4 | 163 | 0.486154 |
train_a9f256c578ab134a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.69, 0.358, 0.076), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.256, 0.249).threePointArc((-0.27, 0.288), (-0.307, 0.309)).threePointArc((-0.372, 0.279), (-0.365, 0.208)).threePointArc((-0.328, 0.187), (-0.288, 0.195)).lineTo(-0.157, -0.03).line... | 4 | 41 | 0.224098 |
train_f61ab73d1e3f1193 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.115, -1, -0.176), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.245).sweep(cq.Workplane('YZ').spline([(-0.427, -0.445), (0.214, -0.445), (0.387, -0.571), (0.56, -0.696), (0.733, -0.822)]))
result = result.union(cq.Workplane(cq.Plane(origin=(0.23... | 5 | 16 | 0.262796 |
train_44a37aa9f622b9d6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.602), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.63, 1.692).extrude(1.602)
result = result.faces('>Y').shell(-0.1)
result = result.union(cq.Workplane(cq.Plane(origin=(0.015, -0.239, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.139).ext... | 7 | 85 | 1.051743 |
train_a36d2a4b9ee23205 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.316, -0.819, 0.13), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.528, 0.887).threePointArc((0, 0.058), (0.528, 0.887)).threePointArc((0, 0.666), (-0.528, 0.887)).close().extrude(1.637)
result = result.edges().chamfer(0.114)
result = result.unio... | 11 | 85 | 0.497674 |
train_cb6d725ecfd2957a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.296, 0.119, -0.419), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.408, 1.227).extrude(0.839)
result = result.faces('>Z').shell(-0.071)
result = result.union(cq.Workplane(cq.Plane(origin=(0.692, -0.057, -0.231), normal=(0, 0, 1), xDir=(1, 0, 0))).r... | 9 | 146 | 0.428432 |
train_47e5e4de7cacba20 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.438, 0, 0.666), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.334, 0.765).threePointArc((0, 0.834), (-0.334, 0.765)).lineTo(-0.334, -0.765).threePointArc((0, -0.834), (0.334, -0.765)).lineTo(0.334, 0.765).close().sweep(cq.Workplane('XZ').spline(... | 4 | 30 | 0.54034 |
train_b989be9a74762963 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.688, 0.347, 0.106), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.381).transformed(offset=(0.114, -0.035, 0.027), rotate=(0, 0, 20)).circle(0.244).transformed(offset=(0.227, -0.058, 0.018), rotate=(0, 0, 20)).circle(0.289).transformed(offset=(0.... | 2 | 5 | 0.152719 |
train_aa3fec4723cffa45 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.181, -0.695, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.718, -0.1).threePointArc((-0.92, 0.28), (-0.508, 0.408)).lineTo(0, 0.618).threePointArc((0.381, 0.819), (0.508, 0.408)).threePointArc((0.92, 0.28), (0.718, -0.1)).threePointArc((0.92... | 6 | 28 | 2.017235 |
train_43902d337e29c856 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.087, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.114, 1.114).extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(0.715, -0.062, 0.085), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.089).extrude(0.389))
result = result.union(cq.Wo... | 15 | 123 | 2.287968 |
train_c435bc50acfa8d37 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.996), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.525).extrude(1.992)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.092, 0.381, -0.335), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.224).extrude(1.366))
result = result.edges().fille... | 15 | 87 | 4.696268 |
train_c097c782dc890fc0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.007, 0.076, -0.354), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.04, 0.029).threePointArc((0.018, -0.026), (-0.04, -0.019)).threePointArc((-0.006, 0.016), (0.04, 0.029)).close().extrude(0.108)
result = result.edges().chamfer(0.007)
result = res... | 9 | 72 | 0.092369 |
train_db89c0c934ad540c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.148, 0, 0.735), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.23).sweep(cq.Workplane('XZ').spline([(-0.148, -0.329), (-0.061, -0.323), (0.025, -0.281), (0.112, -0.124), (0.198, 0.032), (0.285, 0.074), (0.372, 0.08)]))
result = result.edges().cham... | 4 | 15 | 0.030985 |
train_7d6a89f4294e9095 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.017, -0.203, -0.008), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.05).lineTo(0.011, 0).lineTo(0.019, -0.036).lineTo(0.022, -0.036).lineTo(0.022, -0.05).lineTo(-0.022, -0.05).lineTo(-0.022, -0.036).lineTo(-0.019, -0.036).lineTo(-0.011, 0).lin... | 7 | 63 | 0.006281 |
train_770e1c706fbdda3b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.776, 0, -0.167), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.197, -0.216).lineTo(0.195, -0.25).lineTo(0.161, -0.228).lineTo(-0.19, 0.003).lineTo(-0.224, 0.025).lineTo(-0.194, 0.041).lineTo(0.214, 0.245).lineTo(0.224, 0.25).lineTo(0.223, 0.239)... | 1 | 11 | 0.045668 |
train_4fdd528657bdc02d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.748, -0.071), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.652, 0.845).threePointArc((0.652, 1.165), (-0.084, 0.041)).lineTo(-0.652, 0.845).close().extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.459, -0.101, 0.267), normal=... | 14 | 114 | 2.129763 |
train_4504f1bf61110b93 | 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.621, 1.018).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.224, -0.08, -0.226), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.697, 0.2).extrude(1.258))
result = result.cut(cq.Workpla... | 8 | 90 | 2.737398 |
train_f4ae2aaf1baf9aa2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.081, 0.087, -0.074), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.776, 0.823).extrude(0.761)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.07, 0.09, -0.096), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.038).extrude(0.913))
result = result.un... | 21 | 366 | 0.602861 |
train_bd4c08e7065f781b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.11, -0.646, -0.088), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.965, 0.708).extrude(0.08)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.11, -0.645, -0.008), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.284).extrude(0.007))
result = resul... | 17 | 120 | 0.130501 |
train_c4c82aadeb5f8abd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.042, 0, -0.267), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.952, 2).extrude(0.499)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.132, -0.488, -0.351), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.115, 0.334).extrude(0.598))
result = result.un... | 25 | 116 | 1.220921 |
train_5d0017e6ca106d15 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1.065, -0.624), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.535, 1.922).threePointArc((0, 2.066), (0.535, 1.922)).threePointArc((0.928, 1.529), (1.072, 0.994)).lineTo(0.535, 0.065).lineTo(-0.535, 0.065).threePointArc((-0.928, 0.457), (-1.072,... | 4 | 40 | 2.471968 |
train_1b71a16d1be66691 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.22, 0.186, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.706, 0.043).lineTo(-1, 0.043).lineTo(-1, 0.375).threePointArc((-0.906, 0.558), (-0.715, 0.635)).lineTo(-0.706, 0.635).threePointArc((-0.68, 0.634), (-0.655, 0.631)).lineTo(1, 0.631).l... | 3 | 73 | 2.477033 |
train_698e5c2035cadf62 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.494, -0.824, -0.082), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.716, -0.09).lineTo(0.716, -0.131).lineTo(0.091, 0.494).lineTo(0.716, 1.12).lineTo(0.716, 1.222).lineTo(0.616, 1.222).lineTo(-0.01, 0.596).lineTo(-0.636, 1.222).lineTo(-0.687, 1.2... | 4 | 41 | 0.936579 |
train_18ee9a86ad50d51f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.176, -0.411, -0.197), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.759, 1.178).extrude(0.603)
result = result.faces('>X').shell(-0.037)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.332, 0.384, 0.038), normal=(0, 0, 1), xDir=(1, 0, 0))).r... | 8 | 31 | 0.275001 |
train_0c599e655600fb86 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.079, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.476, 0.25).lineTo(0.357, 0.25).lineTo(0.357, 0.297).lineTo(-0.476, 0.297).lineTo(-0.476, -0.297).lineTo(-0.357, -0.297).lineTo(-0.357, -0.25).lineTo(0.476, -0.25).lineTo(0.476, 0.25).close(... | 6 | 137 | 0.274699 |
train_bbe7bbc332eddffc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.033, 0.103, 0.118), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.011, -0.017).threePointArc((-0.006, -0.01), (-0.019, 0.003)).lineTo(-0.012, 0.016).threePointArc((-0.011, 0.016), (-0.009, 0.017)).lineTo(-0.002, 0.016).threePointArc((0, 0.016), (... | 10 | 125 | 0.192165 |
train_14e031d04792140d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.262, -1, -0.3), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.212, 0.677).lineTo(0.171, 0.634).lineTo(0.171, -0.634).lineTo(0.212, -0.677).lineTo(-0.212, -0.677).lineTo(-0.212, 0.677).lineTo(0.212, 0.677).close().sweep(cq.Workplane('YZ').spline(... | 5 | 17 | 0.821233 |
train_21c89b03d7a21179 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.112, -0.085, 0.191), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.125, -0.915).lineTo(-0.125, -0.874).lineTo(-0.086, -0.874).lineTo(0.084, -0.707).lineTo(0.084, 1.085).lineTo(0.125, 1.085).lineTo(0.125, -0.724).lineTo(-0.069, -0.915).lineTo(-0.... | 3 | 43 | 0.058068 |
train_6649c64d902e1634 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.098, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.19, 0.215).lineTo(0.495, 0.145).lineTo(0.251, -0.05).lineTo(0.142, -0.137).lineTo(0.081, -0.263).lineTo(-0.054, -0.232).lineTo(-0.19, -0.263).lineTo(-0.495, -0.333).lineTo(-0.36, -0.05).lin... | 28 | 76 | 0.454101 |
train_6a247e6e25812fe9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.405, 0.63, -0.005), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.96, 0.231).threePointArc((-0.816, 0.308), (-0.668, 0.379)).threePointArc((-0.024, 0.582), (0.649, 0.637)).threePointArc((0.598, 0.702), (0.54, 0.762)).threePointArc((0.749, 0.684)... | 5 | 51 | 0.564654 |
train_afb0c3b21941e8fd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.17, 0, -0.334), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.661, 0.664).extrude(0.52)
result = result.union(cq.Workplane(cq.Plane(origin=(0.823, -0.012, -0.258), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.354, 0.166).extrude(0.205))
result = resul... | 12 | 57 | 0.45699 |
train_878c19dd517f6c7f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.353), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.514).extrude(0.725)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.04, 0.336, -0.5), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.114).extrude(0.157))
result = result.edges().chamf... | 11 | 133 | 1.924841 |
train_7684e087ac824111 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.553, -0.746, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.995, 0.068).threePointArc((0, 1.062), (0.995, 0.068)).lineTo(0.9, 0.068).lineTo(-0.9, 0.068).lineTo(-0.995, 0.068).close().extrude(1.154)
result = result.edges().fillet(0.089)
result... | 13 | 115 | 1.154658 |
train_eb1ae303ff34f957 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.003, -0.08, -0.046), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.206, 0.154).extrude(0.156)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.003 + 0.019 * math.cos(4.36 + 2 * math.pi * 0 / 4), -0.002 + 0.019 * math.sin(4.36 + 2 * math.pi * 0 ... | 13 | 60 | 0.024362 |
train_a9a34203d682265e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.057, -0.152, -0.34), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.822, 0.788).extrude(0.681)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.105, -0.328, -0.272), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.524, 0.279).extrude(0.376))
result = r... | 24 | 90 | 0.316821 |
train_9df52c6303db33eb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.426, -0.431, 0.096), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.808, 0.754).lineTo(-0.808, 0.754).lineTo(-0.808, 0.108).lineTo(0.808, 0.108).lineTo(0.808, 0.754).close().workplane(offset=0.189).moveTo(0.827, 0.761).lineTo(-0.827, 0.761).lineTo... | 21 | 55 | 1.052329 |
train_cfc61bffe40b64ee | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.122, -0.583, -0.157), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.041, 0).lineTo(0.002, 0.039).lineTo(-0.007, 0.029).lineTo(-0.003, 0.025).lineTo(-0.01, 0.017).lineTo(-0.013, 0.021).lineTo(-0.041, -0.011).lineTo(-0.037, -0.015).lineTo(-0.013, -0... | 13 | 210 | 0.024987 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.