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_d52391ad5707fc72 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.016), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.883, 2).extrude(0.089)
result = result.union(cq.Workplane(cq.Plane(origin=(0, -0.8 + 0.1, 0.073), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.042, 0.066).lineTo(0.022, 0.066).lineTo(0.031, ... | 34 | 312 | 0.321813 |
train_5ec01b942bd7f000 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.156, 1, -0.002), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.966, 0.1).threePointArc((0.054, -0.465), (-0.966, -0.137)).lineTo(-0.1, 0.805).lineTo(0.966, 0.1).close().workplane(offset=0.346).moveTo(0.598, 0.126).threePointArc((0.033, -0.223), (... | 4 | 84 | 1.283392 |
train_0606de2be1aadf0a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.033, -0.5, -0.154), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.066, 0.307).lineTo(-0.12, 0.253).lineTo(-0.169, 0.205).lineTo(0.169, 0.016).lineTo(-0.028, 0.26).lineTo(-0.066, 0.307).close().extrude(0.058)
result = result.edges().fillet(0.012)... | 5 | 36 | 0.339545 |
train_8f874d010cfc3be8 | 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.471, 1.103).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.074, 0.095, -0.231), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.262, 0.693).extrude(1.263))
result = result.cut(cq.Workp... | 10 | 90 | 2.58071 |
train_e5124d80816429f3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.477), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.798, 0.825).lineTo(-0.798, 1).lineTo(-0.764, 1).lineTo(-0.764, 0.919).lineTo(-0.623, 0.919).lineTo(-0.623, 1).lineTo(0.798, 1).lineTo(0.798, 0.919).lineTo(0.657, 0.919).lineTo(0.657, 0.90... | 13 | 125 | 0.718297 |
train_69202c76fb75202c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.745, -0.655, -0.004), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.255).sweep(cq.Workplane('XY').spline([(0.745, -0.913), (1.264, -1.037), (1.783, -1.078), (2.302, -1.037), (2.821, -0.913)]))
result = result.union(cq.Workplane(cq.Plane(origin=(-0... | 2 | 25 | 0.170368 |
train_7c1c2e205656cd2a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.05, 0.172), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.724, -0.196).lineTo(-0.724, -0.302).lineTo(1, -0.302).lineTo(1, -0.515).lineTo(-0.83, -0.515).threePointArc((-0.889, -0.479), (-0.937, -0.43)).threePointArc((-1, -0.249), (-0.937, -0.... | 7 | 116 | 0.347012 |
train_0825776d0fd4bc5a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.187, -0.312, -0.154), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.055, -0.412).lineTo(0.055, -0.023).lineTo(0.251, -0.023).lineTo(0.251, 0.535).lineTo(0.055, 0.535).lineTo(0.055, 0.925).lineTo(-0.055, 0.925).lineTo(-0.055, 0.535).lineTo(-0.251,... | 14 | 178 | 0.112804 |
train_07d35673d355d067 | 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(0.212, 0).lineTo(0.212, 0.303).lineTo(1, 0.303).lineTo(1, -0.303).lineTo(-1, -0.303).lineTo(-1, 0).lineTo(0.212, 0).close().extrude(0.157)
result = result.edges().fillet(0.058)
result = resu... | 26 | 38 | 0.124982 |
train_496a13fc21000071 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.007, -0.084, -0.589), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.203, 1.007).lineTo(-0.203, 0.871).lineTo(0.068, 0.871).lineTo(0.068, -0.993).lineTo(0.203, -0.993).lineTo(0.203, 1.007).lineTo(-0.203, 1.007).close().extrude(0.273)
result = res... | 8 | 96 | 0.640209 |
train_3ed3a91867faea8a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.763, -0.304), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.129).sweep(cq.Workplane('YZ').spline([(-0.109, -0.763), (-0.026, -0.763), (0.056, -0.763), (0.169, -0.923), (0.281, -1.081), (0.394, -1.241)]))
result = result.union(cq.Workplane(cq.Pl... | 3 | 21 | 0.141466 |
train_c55a8d006793d2a6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.063, 0.052), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.162).lineTo(0.249, 0.162).lineTo(0.226, 0.135).lineTo(0.07, 0.135).lineTo(0.055, 0.132).lineTo(0.048, 0.129).lineTo(0.044, 0.124).lineTo(0.021, -0.114).lineTo(0.115, -0.137).lineTo(... | 2 | 23 | 0.05888 |
train_41a84aeedd3e87a4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.085, -0.374, 0.165), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.23, -0.255).threePointArc((0.248, -0.248), (0.255, -0.23)).lineTo(0.255, 0.23).threePointArc((0.248, 0.248), (0.23, 0.255)).lineTo(-0.23, 0.255).threePointArc((-0.248, 0.248), (-0.... | 4 | 18 | 0.448113 |
train_3917424c73271b75 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.878, -0.237, -0.441), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.122, 0.084).lineTo(-0.122, -0.089).lineTo(0.122, -0.089).lineTo(0.122, 0.084).lineTo(0.066, 0.084).lineTo(0.066, 0.089).lineTo(0.044, 0.089).lineTo(0.044, 0.084).lineTo(-0.122, ... | 7 | 41 | 0.203895 |
train_a3595e26ab9033f7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.117, 0.536), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.418).sweep(cq.Workplane('YZ').spline([(-1.128, -0.282), (-0.564, -1.074), (0, -1.074), (0.564, -0.282)]))
result = result.edges().chamfer(0.331)
| 2 | 5 | 1.19579 |
train_3b471ee56c52f274 | 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(2, 1.972).extrude(1.262)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.053, 0.191, -0.086), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.226).extrude(0.736))
result = result.cut(cq.Workpl... | 3 | 13 | 4.585882 |
train_b1a865defad36099 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.133, 0, 0.407), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.283).workplane(offset=0.252).circle(0.282).workplane(offset=0.189).circle(0.288).workplane(offset=0.214).circle(0.267).loft()
result = result.edges().chamfer(0.225)
result = result.cut... | 16 | 103 | 0.122247 |
train_68ce591efaabb917 | 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(2, 1.521).extrude(1.262)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.199, -0.059, -0.649), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.204).extrude(0.718))
result = result.cut(cq.Work... | 9 | 43 | 2.643572 |
train_747696888d460c3e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.248), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.239).extrude(0.496)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.3, -0.014), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.336).extrude(0.028))
result = result.cut(cq.Workplane(cq... | 7 | 35 | 1.196496 |
train_685989bbe3eb62ae | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.328, -0.007, -0.293), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.658, -0.647).lineTo(0.655, -0.639).lineTo(0.69, 0.642).lineTo(-0.672, 0.661).close().moveTo(-0.094, 0.001).lineTo(-0.129, 0.085).lineTo(-0.216, 0.12).lineTo(-0.302, 0.086).lineT... | 8 | 179 | 0.364231 |
train_b6ce8249b9c8633f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.394, 0.045, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.4, -0.955).threePointArc((-0.288, 0.231), (0, 1.386)).threePointArc((0.288, 0.231), (0.4, -0.954)).lineTo(0, -0.955).lineTo(-0.4, -0.955).close().extrude(0.787)
result = result.edges(... | 39 | 237 | 0.375939 |
train_1564d0db3afb803d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.571, 0, -0.063), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.412, 0.157).extrude(0.198)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.6, -0.007, 0.015), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.015).extrude(0.046))
result = result.edges... | 21 | 167 | 0.014233 |
train_be60710608fe8619 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.061, -0.374), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.349, 1.879).extrude(0.749)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.027, 0.071, -0.019), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.037).extrude(0.063))
result = result.edge... | 14 | 76 | 1.863994 |
train_2ed66e0998f060c7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.082, -0.185, -0.886), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.631, 1.631).extrude(1.597)
result = result.faces('<X').shell(-0.082)
result = result.union(cq.Workplane(cq.Plane(origin=(0.16, -0.1, 0.697), normal=(0, 0, 1), xDir=(1, 0, 0))).circ... | 10 | 67 | 1.165115 |
train_5cfb5185c8620fd4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.324, 0.039, 0.035), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.012, -0.003).lineTo(0.012, -0.019).lineTo(0.008, -0.016).lineTo(0.008, -0.003).lineTo(-0.009, -0.003).lineTo(-0.009, -0.001).lineTo(-0.01, 0.001).lineTo(-0.009, 0.002).lineTo(-0.00... | 21 | 305 | 0.023563 |
train_7c64e80d1c2a4b4a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.212, 0, -0.311), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.575, 0.616).extrude(0.477)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.77, -0.031, -0.263), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.46, 0.275).extrude(0.235))
result = resul... | 15 | 156 | 0.335558 |
train_fe1c6a887e893870 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.33), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.821).extrude(0.587)
result = result.union(cq.Workplane(cq.Plane(origin=(0.1, 0.091, 0.254), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.894, 0.885).lineTo(0.894, -0.703).lineTo(-0.694, -0... | 4 | 10 | 2.160422 |
train_9221a09312a53e57 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.357, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.097, 0.33).threePointArc((-0.004, 0.242), (-0.096, 0.339)).lineTo(-0.156, -0.138).threePointArc((-0.16, -0.157), (-0.161, -0.178)).threePointArc((-0.16, -0.194), (-0.157, -0.21)).threePoi... | 4 | 24 | 0.161238 |
train_5ef167439e464fec | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.144), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.929, -0.221).threePointArc((-0.979, -0.201), (-1, -0.15)).lineTo(-1, 0.15).threePointArc((-0.979, 0.201), (-0.929, 0.221)).lineTo(0.929, 0.221).threePointArc((0.979, 0.201), (1, 0.15)).li... | 8 | 68 | 0.235849 |
train_a8202395e05630a7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.15, 0.018, -0.365), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.085, -0.156).lineTo(0.002, -0.15).lineTo(0.01, -0.051).lineTo(-0.023, -0.049).lineTo(-0.031, -0.148).lineTo(-0.113, -0.142).lineTo(-0.133, -0.061).lineTo(-0.036, -0.037).lineTo(-0.... | 15 | 211 | 0.063289 |
train_05bdde5adf6951ca | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.331, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.489, 0.599).lineTo(-0.497, 0.588).lineTo(-0.506, 0.577).lineTo(-0.242, 0.444).lineTo(0.506, 0.064).lineTo(-0.204, 0.446).lineTo(-0.397, 0.549).lineTo(-0.489, 0.599).close().extrude(2)
re... | 2 | 11 | 0.030204 |
train_69c8b34f13d45a46 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.92, -0.191), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.181, 0.08).lineTo(-0.458, -0.08).lineTo(0.458, -0.08).lineTo(0.458, 0).lineTo(0.386, 0).threePointArc((0.378, -0.008), (0.37, 0)).lineTo(-0.078, 0).threePointArc((-0.086, -0.008), (-... | 1 | 11 | 0.013033 |
train_daf0b0ab2eb2354b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.635, 1.451).lineTo(-0.635, 0.627).lineTo(0.635, 0.627).lineTo(0.635, 1.895).lineTo(0.19, 1.895).lineTo(0, 2.086).lineTo(-0.635, 1.451).close().revolve(angleDegrees=90, axisStart=(0, 0), axis... | 7 | 53 | 2.801288 |
train_5f6d7f4782385b9f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.155, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.336, 1.196).extrude(0.878)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.155, -0.462, -0.605), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.96, 0.286).extrude(0.087))
result = result.face... | 12 | 83 | 0.440305 |
train_c9f16c8796a74038 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.395, -1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.105, -0.52).lineTo(0.74, -0.152).lineTo(-0.102, 1.309).lineTo(-0.74, 0.946).lineTo(0.105, -0.52).close().extrude(2)
result = result.edges().chamfer(0.263)
result = result.cut(cq.Workplane... | 13 | 42 | 1.518292 |
train_d462439af8630daa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.639, -0.432), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.5, -0.361).lineTo(-0.5, 1.639).lineTo(0.259, 1.639).lineTo(0.259, 1.398).lineTo(0.5, 1.398).lineTo(0.5, -0.361).lineTo(-0.5, -0.361).close().extrude(0.69)
result = result.edges().fil... | 5 | 67 | 1.347911 |
train_0301b5ff5629d6f2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.053, -0.322, -0.127), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.022, -0.027).lineTo(0.083, 0.079).lineTo(0.098, 0.105).lineTo(0.154, 0.202).lineTo(0.197, 0.202).lineTo(0.066, -0.027).lineTo(0.066, -0.202).lineTo(-0.197, -0.202).lineTo(-0.197, ... | 11 | 68 | 0.106448 |
train_6287b7b3d501af8d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.568, 0, 0.029), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.432, -0.187).lineTo(-0.432, 0.101).lineTo(-0.288, 0.101).lineTo(-0.288, 0.187).lineTo(0.288, 0.187).lineTo(0.288, 0.101).lineTo(0.432, 0.101).lineTo(0.432, -0.187).lineTo(-0.432, -0.... | 9 | 33 | 0.133219 |
train_6415e7828a8ed6e3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.053, 0.114, 0.244), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.211).sweep(cq.Workplane('YZ').spline([(-0.028, -0.071), (-0.05, 0.031), (-0.14, 0.105), (-0.261, 0.085), (-0.34, -0.009), (-0.34, -0.132), (-0.261, -0.227), (-0.14, -0.247), (-0.05,... | 12 | 65 | 0.234383 |
train_c1f318e357615038 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.285, -0.276, 0.55), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.085, 0.042).lineTo(0.085, 0.037).lineTo(0.085, 0.009).lineTo(-0.085, 0.003).lineTo(-0.085, 0.042).close().extrude(0.144)
result = result.union(cq.Workplane(cq.Plane(origin=(0.31, -... | 33 | 343 | 0.132138 |
train_fa621a400e7296d8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.226, -0.015, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.896, 0.159).lineTo(-0.896, 0.227).lineTo(-1, 0.227).lineTo(-1, -0.227).lineTo(-0.896, -0.227).lineTo(-0.896, -0.163).lineTo(1, -0.163).lineTo(1, -0.092).lineTo(-0.896, -0.092).lineT... | 2 | 17 | 0.198793 |
train_3930510e4187eb78 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.392, 0.101, -0.083), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.31, -0.155).lineTo(0.456, -0.155).lineTo(0.456, 0.386).lineTo(-0.456, 0.386).lineTo(-0.456, -0.155).lineTo(0.31, -0.155).close().extrude(1.392)
result = result.edges().chamfer(0.0... | 15 | 127 | 0.726268 |
train_643f337209c31c7f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, 0.106, 0.006), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.353).workplane(offset=0.222).circle(0.323).workplane(offset=0.212).circle(0.346).workplane(offset=0.216).circle(0.334).workplane(offset=0.237).circle(0.304).workplane(offset=0.182).cir... | 13 | 46 | 0.461571 |
train_ea6f267a7fbab51a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.16, -0.124, -0.785), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.791, 0.682).extrude(1.379)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.16, -0.388, -0.171), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.081).extrude(0.151))
result = result.c... | 19 | 97 | 0.643935 |
train_459c10aaeccbee8e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.385, 0.26, -0.542), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.23, 1.277).extrude(0.738)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.958, 0.213, -0.464), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.088, 0.168).extrude(0.156))
result = res... | 8 | 77 | 1.503472 |
train_58ffd554e074fcee | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.257, 0.743), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.743, -0.743).lineTo(0.743, -0.482).lineTo(0.463, -0.3).lineTo(0, 0).lineTo(0.3, 0.463).lineTo(-0.329, 0.329).lineTo(-0.743, 0.743).lineTo(-0.743, -0.743).lineTo(0.743, -0.743).close()... | 9 | 20 | 1.869098 |
train_580f19b3ba81fcd9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.047, -0.013, 0.048), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.745, 0.047).lineTo(0.745, 0.047).lineTo(0.745, 0.022).lineTo(-0.745, 0.022).lineTo(-0.745, 0.047).close().revolve(angleDegrees=180, axisStart=(-0.745, 0.047), axisEnd=(-0.179, 0.... | 16 | 74 | 0.000911 |
train_e84fd5014c5a1ab8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.056, -0.769, -0.729), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.944, 1.508).lineTo(-0.944, 0.071).lineTo(0.944, 0.071).lineTo(0.944, 1.508).lineTo(-0.944, 1.508).close().extrude(1.533)
result = result.edges().fillet(0.153)
result = result.un... | 6 | 39 | 4.072269 |
train_f1bbb018c8270126 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.126, 0.167), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.781, 0.356).threePointArc((-0.392, 0.405), (0, 0.421)).threePointArc((0.392, 0.405), (0.781, 0.356)).threePointArc((1.082, 0), (0.781, -0.356)).threePointArc((0.392, -0.405), (0, -0.4... | 16 | 74 | 0.269821 |
train_b3d657772b1fb46f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.007, -0.121, -0.924), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.075, 0.003).threePointArc((0, 0.082), (-0.075, 0.003)).threePointArc((0, -0.069), (0.075, 0.003)).close().extrude(0.242)
result = result.edges().fillet(0.016)
result = result.uni... | 4 | 15 | 0.00517 |
train_9ab8399ede0ff0d9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.28, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.309, 1.157).lineTo(0.544, 1.157).lineTo(0.544, 0.536).lineTo(0.425, 0.536).lineTo(0.425, 0.506).lineTo(0.536, 0.446).lineTo(0.544, 0.446).lineTo(0.544, -0.107).lineTo(-0.457, -0.107).line... | 8 | 49 | 0.88799 |
train_e2cbda823c5eaf8a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.125, 0, -0.371), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.658, 2).extrude(0.998)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.125, 0, -0.52), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.804, 1.144).extrude(1.297))
result = result.union(cq.... | 6 | 40 | 2.493737 |
train_149c4aa4f5472d6f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.588, -0.591, -0.06), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(1.06, 1.426).lineTo(1.06, -0.322).lineTo(0.838, -0.178).lineTo(0.596, -0.229).lineTo(-1.06, 1.426).lineTo(1.06, 1.426).close().extrude(1.182)
result = result.edges().fillet(0.084)
r... | 12 | 140 | 2.38047 |
train_27513dcd89122c3d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.009, -0.173, -0.639), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.056, -0.142).lineTo(-0.044, -0.145).lineTo(0.009, 0.039).lineTo(0.021, 0.082).lineTo(0.026, 0.08).lineTo(0.026, 0.076).lineTo(0.037, 0.037).lineTo(0.044, 0.039).lineTo(0.056, 0... | 6 | 99 | 0.205315 |
train_e96f62cb3c412714 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.296, -1, -0.552), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.076, 0.001).threePointArc((-0.145, 0.124), (-0.076, 0.246)).threePointArc((0.145, 0.124), (-0.076, 0.001)).close().extrude(2)
result = result.edges().fillet(0.125)
result = result.u... | 9 | 46 | 0.399465 |
train_5bbd102a46ab54ec | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.061, -0.092, -0.322), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.453, 0.365).extrude(0.129)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.061, -0.092, -0.349), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.236, 0.279).extrude(0.03))
result ... | 30 | 104 | 0.51481 |
train_88af63863a607649 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.761, 0, -0.105), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.017, -0.193).lineTo(-0.028, -0.193).lineTo(-0.028, -0.221).lineTo(0.001, -0.221).lineTo(0.001, -0.193).lineTo(-0.01, -0.193).lineTo(0.212, 0.193).lineTo(0.239, 0.193).lineTo(0.239, ... | 2 | 17 | 0.110987 |
train_60a1c5a31d39c31d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.05, -0.76), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.136, 1.136).extrude(1.562)
result = result.union(cq.Workplane(cq.Plane(origin=(0.693, -0.126, 0.193), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.58, 0.93).lineTo(0.586, 0.925).lineTo(0.... | 11 | 94 | 2.055011 |
train_12553d5878676e51 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.448, 0.246, -0.097), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.537, -0.498).lineTo(0.532, -0.507).lineTo(0.552, 0.501).lineTo(-0.533, 0.506).close().moveTo(-0.202, 0.094).lineTo(-0.099, 0.093).lineTo(-0.098, 0.114).lineTo(-0.182, 0.114).lineT... | 18 | 345 | 0.171086 |
train_c09011c4e02dd3d6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.826, 0.103, -0.097), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.057, -0.025).threePointArc((-0.05, -0.061), (-0.022, -0.085)).threePointArc((0, -0.089), (0.022, -0.085)).lineTo(0.135, -0.142).threePointArc((0.151, -0.119), (0.163, -0.094)).t... | 4 | 30 | 0.028895 |
train_68930ebbf2d8494e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.155, -0.419), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.957, 1.155).lineTo(0.881, 1.029).lineTo(0.079, -0.304).lineTo(-0.079, -0.304).lineTo(-0.881, 1.029).lineTo(-0.957, 1.155).lineTo(0.957, 1.155).close().extrude(0.838)
result = result.c... | 6 | 34 | 1.14218 |
train_b9ebffcfff8d1b92 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.122, -0.54, -0.159), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.071, 0.401).lineTo(-0.738, -0.266).lineTo(-0.543, -0.266).lineTo(-0.543, -0.401).lineTo(0.738, -0.401).lineTo(0.738, -0.217).lineTo(0.692, -0.171).lineTo(0.596, -0.266).lineTo(-0.... | 9 | 44 | 0.3835 |
train_ba3290d7b212230c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.095, -0.169, -0.063), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.196, 0.059).threePointArc((-0.438, 0.301), (-0.196, 0.543)).lineTo(0.196, 0.543).threePointArc((0.438, 0.301), (0.196, 0.059)).lineTo(-0.196, 0.059).close().revolve(angleDegrees=... | 9 | 68 | 0.917284 |
train_b1b9ae9cc5c13be1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.295, 0, -0.058), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.41, 1.529).extrude(0.075)
result = result.union(cq.Workplane(cq.Plane(origin=(0.512, -0.056, 0.016), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.156).extrude(0.016))
result = result.unio... | 15 | 103 | 0.115709 |
train_3d5216cac0ba832a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.834, -1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.706, 0.639).threePointArc((0, 1.345), (0.706, 0.639)).lineTo(0.672, 0.421).threePointArc((0.441, 0.087), (0.065, -0.064)).lineTo(0.021, -0.067).lineTo(0, -0.068).lineTo(-0.036, -0.066).l... | 14 | 177 | 2.097084 |
train_f10dbfd2df8e9475 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.146, -0.244), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.189, 1.286).extrude(0.777)
result = result.union(cq.Workplane(cq.Plane(origin=(0.049, -0.884, 0.02), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.392, 0.232).extrude(0.257))
result = resul... | 5 | 20 | 1.426069 |
train_81a6e117f95d1129 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.203, 0.054, 0.057), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.42, 0.42).extrude(0.589)
result = result.union(cq.Workplane(cq.Plane(origin=(0.451, 0.071, 0.335), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.082, 0.051).extrude(0.077))
result = resul... | 13 | 136 | 0.366876 |
train_ad7d1958980e809e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.767, -0.459, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.922, 0.786).threePointArc((0.278, 1.181), (-0.366, 0.786)).lineTo(-0.958, 0.786).threePointArc((-1, 0.459), (-0.958, 0.132)).lineTo(-0.366, 0.132).threePointArc((0.278, -0.263), (0.92... | 10 | 57 | 2.837491 |
train_391ee09895478fcb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.839, 0.452, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.201, -0.161).lineTo(0.201, -0.125).threePointArc((0.195, -0.11), (0.18, -0.104)).lineTo(0.131, -0.104).threePointArc((0.116, -0.098), (0.11, -0.084)).lineTo(0.11, 0.077).threePointArc((... | 1 | 23 | 0.124379 |
train_3c2ad99022ffc48d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.421, 0.385, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.718).lineTo(-1, 0.052).lineTo(0.778, 0.052).lineTo(0.778, 0.274).lineTo(1, 0.274).lineTo(1, 0.496).lineTo(0.778, 0.718).lineTo(-1, 0.718).close().extrude(0.843)
result = result.cut... | 6 | 50 | 0.709774 |
train_7ff32151bf8ddc71 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.211, 0, 0.009), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.579, 1.522).extrude(0.017)
result = result.union(cq.Workplane(cq.Plane(origin=(0.146, 0.033, 0.03), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.113, 0.294).threePointArc((-0.522, 0.015)... | 7 | 95 | 0.672233 |
train_6714816ca86b41d3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.009, 0.785), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.402, 0.663).lineTo(0.019, 0.663).lineTo(0.402, 0).lineTo(0.019, -0.663).lineTo(-0.402, -0.663).lineTo(-0.402, 0.663).close().sweep(cq.Workplane('YZ').moveTo(0.595, -0.015).spline([(0.... | 4 | 27 | 0.967906 |
train_6d013775e0a7127a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.042, 0.397, -0.585), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.688, 1.206).extrude(0.708)
result = result.faces('<Z').shell(-0.041)
result = result.union(cq.Workplane(cq.Plane(origin=(0.274, -0.367, -0.257), normal=(0, 0, 1), xDir=(1, 0, 0))).c... | 8 | 49 | 0.495297 |
train_536ab726251cb6fc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.503, 0.032, -0.262), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.009, -0.02).threePointArc((0.002, -0.021), (-0.005, -0.02)).threePointArc((-0.019, 0), (-0.005, 0.02)).threePointArc((0.002, 0.021), (0.009, 0.02)).lineTo(0.008, 0.016).threePoin... | 5 | 53 | 0.161823 |
train_f0cb246689888e66 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.009, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.454, 0.422).extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(0.249, 0.053, -0.406), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.013).extrude(0.346))
result = result.union(cq.Wo... | 11 | 68 | 0.354963 |
train_cb829c63d61dfc9b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.08, 0.533, 0.747), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.277, -0.339).lineTo(-0.194, -0.339).lineTo(-0.194, 0.046).threePointArc((-0.175, 0.016), (-0.152, -0.012)).threePointArc((-0.113, -0.045), (-0.069, -0.07)).lineTo(-0.069, -0.129).t... | 3 | 14 | 0.206721 |
train_cc6c394e7befa1dd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.449, -0.236, -0.129), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.101, 0.653).extrude(0.441)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.227, -0.375, -0.311), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.295, 0.151).extrude(0.188))
result... | 13 | 66 | 0.239134 |
train_ce0fd325ef353256 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.431, 0.134, 0.431), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.431, 1.134).lineTo(-0.431, -0.866).lineTo(0.431, -0.866).lineTo(0.431, 1.134).lineTo(-0.431, 1.134).close().revolve(angleDegrees=180, axisStart=(-0.431, 1.134), axisEnd=(-0.431, -... | 12 | 64 | 1.922282 |
train_615cac0994bd4663 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.003, -0.001, -0.344), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.997, 0.031).lineTo(0.504, 0.857).lineTo(-0.517, 0.829).lineTo(-1.003, 0.009).lineTo(-0.505, -0.817).lineTo(0.471, -0.856).close().moveTo(-0.095, -0.077).lineTo(-0.106, -0.077).lin... | 11 | 114 | 0.821172 |
train_07860d640e964086 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.14, 0.716, 0.382), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 0.682).threePointArc((-0.618, 0.064), (0, -0.554)).threePointArc((0.107, -0.545), (0.211, -0.517)).threePointArc((0.618, 0.064), (0.211, 0.645)).threePointArc((0.107, 0.673), (0, ... | 4 | 19 | 1.47773 |
train_6483746d188ad40c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.353, 0.553, 0.052), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, -0.647).lineTo(-0.37, -0.647).lineTo(-0.37, 1.363).threePointArc((-0.188, 1.311), (0, 1.293)).threePointArc((0.188, 1.311), (0.37, 1.363)).lineTo(0.37, -0.647).lineTo(0, -0.647).c... | 31 | 95 | 1.503767 |
train_ad59620c345604bc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.271), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.541, 2).extrude(0.463)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.486, -0.31, -0.349), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.049, 0.079).extrude(0.556))
result = result.cut(cq.... | 7 | 33 | 1.405362 |
train_b1f67c727dc22b6f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.49), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.911).extrude(0.981)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.406, 0.094, -0.265), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.271).extrude(0.625))
result = result.edges().fillet... | 3 | 31 | 1.617817 |
train_1afdb36f43647922 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.241, -0.193, 0.684), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.316, 0.019).lineTo(0.316, 0.366).lineTo(-0.316, 0.366).lineTo(-0.316, 0.019).lineTo(-0.029, 0.019).threePointArc((0, 0.021), (0.029, 0.019)).lineTo(0.316, 0.019).close().extrude(... | 3 | 15 | 0.096785 |
train_335ee5ceaf3d6957 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.475, 0, -0.614), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.049, 1.13).extrude(1.002)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.518, 0.282, -0.481), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.121).extrude(0.548))
result = result.cut(... | 9 | 160 | 2.076138 |
train_3cf3f1bfb44268e4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.009, -0.489, -0.702), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.338, -0.438).threePointArc((0.249, -0.485), (0.751, -0.179)).threePointArc((0.978, 0.365), (0.841, 0.937)).lineTo(0.481, 1.528).lineTo(-0.192, 1.368).threePointArc((-0.695, 1.06... | 12 | 105 | 3.237787 |
train_3b703b23b4f1094a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.161, -0.254, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(1, 0.309).lineTo(1, 0.013).lineTo(-1, 0.013).lineTo(-1, 0.309).lineTo(1, 0.309).close().extrude(0.562)
result = result.edges().chamfer(0.091)
result = result.cut(cq.Workplane(cq.Plane(o... | 14 | 130 | 0.287423 |
train_5fd64edff8eac21e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.663, 0.18, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.354, 0.337).threePointArc((0.488, 0), (0.354, -0.337)).lineTo(-0.354, -0.337).threePointArc((-0.488, 0), (-0.354, 0.337)).lineTo(0.354, 0.337).close().sweep(cq.Workplane('XY').spline([(... | 1 | 6 | 0.001968 |
train_5e61d30f47eae43f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.797), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.751).workplane(offset=0.102).circle(0.47).workplane(offset=0.119).circle(0.737).workplane(offset=0.128).circle(0.502).workplane(offset=0.127).circle(0.481).workplane(offset=0.12).circle(0.... | 29 | 71 | 0.979372 |
train_dd821c13f2d4eef3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.087, 0.016, 0.108), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.718, -0.084).threePointArc((0.698, 0.21), (0.571, 0.475)).threePointArc((0.149, 0.765), (-0.363, 0.73)).threePointArc((-0.349, 0.701), (-0.327, 0.677)).threePointArc((-0.561, 0.524... | 10 | 81 | 0.463601 |
train_e5371ebab3030135 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.062, -0.482, 0.152), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.236, 0.65).lineTo(0.133, 0.192).lineTo(0.133, -0.192).lineTo(0.236, -0.65).lineTo(-0.105, -0.401).lineTo(-0.236, 0).lineTo(-0.105, 0.401).lineTo(0.236, 0.65).close().extrude(0.30... | 9 | 152 | 0.402687 |
train_6ee04d65bece94df | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.009, 0.013, -0.086), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.302, 0.983).extrude(0.168)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.511 + 0.2605, 0.097, -0.725), normal=(0, 1, 0), xDir=(1, 0, 0))).moveTo(-0.048, -0.03).lineTo(-0.048, ... | 36 | 242 | 1.231042 |
train_c50f3364f3b13e51 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.704, -0.717, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(1, 1.347).lineTo(1, 0.061).lineTo(-1, 0.061).lineTo(-1, 1.347).lineTo(1, 1.347).close().extrude(1.003)
result = result.edges().chamfer(0.365)
result = result.union(cq.Workplane(cq.Plane... | 4 | 34 | 1.959096 |
train_86534e4feb1d20c3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.272, -0.064, 0.145), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.228, -0.18).threePointArc((0.408, 0), (0.228, 0.18)).lineTo(-0.228, 0.18).threePointArc((-0.408, 0), (-0.228, -0.18)).lineTo(0.228, -0.18).close().extrude(0.073)
result = result.... | 24 | 254 | 1.495338 |
train_695233013ee3ae95 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.205, 0.305, -0.068), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.624, -0.696).lineTo(0.623, -0.66).lineTo(0.607, 0.693).lineTo(-0.618, 0.695).close().moveTo(-0.114, 0.21).lineTo(-0.115, 0.246).lineTo(-0.125, 0.25).lineTo(-0.174, 0.295).lineTo(-... | 16 | 92 | 0.233458 |
train_8c5fe02a28ba7384 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.452), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.75).extrude(0.904)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.468, 0.196, 0.158), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.659, 1.008).extrude(0.301))
result = result.edges().f... | 30 | 308 | 1.61024 |
train_e968c84c06aa7fd3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.464, -0.272), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.072, 1.073).extrude(0.408)
result = result.union(cq.Workplane(cq.Plane(origin=(0.076, 0.464, 0.129), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.375).extrude(0.102))
result = result.unio... | 16 | 144 | 0.571567 |
train_2d26df8919d5e50d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.012, 0.025, 0.647), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.301, -0.959).lineTo(1.009, 0.141).lineTo(0.761, 0.3).lineTo(-0.23, 0.937).threePointArc((-0.353, 0.959), (-0.456, 0.887)).lineTo(-0.987, 0.062).threePointArc((-1.009, -0.061), (-0.... | 4 | 42 | 2.911207 |
train_084d47b7f7f27bde | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.423, 0.644), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.242, 0.577).threePointArc((-0.116, -0.056), (0.242, -0.593)).lineTo(-0.242, 0.577).close().sweep(cq.Workplane('YZ').spline([(0.423, -0.001), (0.281, 0.102), (0.084, 0.115), (-0.08, 0.0... | 2 | 10 | 0.053587 |
train_51f8e51e3469edc6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.21, 0.199), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.291, 0).lineTo(0.175, -0.202).lineTo(0.058, -0.404).lineTo(-0.058, -0.202).lineTo(-0.291, -0.202).lineTo(-0.175, 0).lineTo(-0.291, 0.202).lineTo(-0.058, 0.202).lineTo(0.058, 0.404).lin... | 10 | 125 | 0.228802 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.