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_7de24a556081470b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.012, -0.487, -0.045), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.572, -0.008).lineTo(0.306, 0.513).lineTo(-0.272, 0.492).lineTo(-0.597, -0.002).lineTo(-0.28, -0.513).lineTo(0.284, -0.5).close().moveTo(-0.368, -0.135).lineTo(-0.028, -0.135).line... | 15 | 116 | 0.092015 |
train_08000fac7b84d452 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.458, -0.165), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.518, 1.084).extrude(0.222)
result = result.union(cq.Workplane(cq.Plane(origin=(0, -0.423, 0.054), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.438).extrude(0.054))
result = result.union(... | 13 | 159 | 0.459604 |
train_c093bf7e615a08e9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.764, 0, -0.767), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.316, 0.592).extrude(0.178)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.807, 0.078, -0.602), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.025).extrude(0.402))
result = result.u... | 8 | 39 | 0.191774 |
train_a28c063058449cdc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.015, -0.384, -0.379), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.065, 0).lineTo(-0.065, -0.13).lineTo(0.047, -0.13).threePointArc((0.029, -0.066), (0.024, 0)).lineTo(0.065, 0).lineTo(0.065, 0.13).lineTo(0.047, 0.13).lineTo(-0.065, 0.13).lineT... | 14 | 74 | 0.037209 |
train_9868e4259a3c1501 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.482, -0.001, -0.101), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.509, -0.678).lineTo(0.518, -0.665).lineTo(0.502, 0.679).lineTo(-0.507, 0.678).close().moveTo(-0.112, 0.226).lineTo(-0.16, 0.27).lineTo(-0.193, 0.193).lineTo(-0.192, 0.177).lineTo... | 27 | 209 | 1.056629 |
train_e78ee80fe2ab87db | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.195, -0.443, -0.314), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.628, 0.628).extrude(0.628)
result = result.union(cq.Workplane(cq.Plane(origin=(0.327, 0.056, 0.012), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.238, 0.42).extrude(0.219))
result = re... | 17 | 36 | 0.365219 |
train_e12ed71bffa6a2ea | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.976), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.013, -0.807).lineTo(-0.001, -0.783).lineTo(0.039, -0.783).lineTo(-0.013, -0.874).lineTo(-0.066, -0.783).lineTo(-0.957, 0.76).lineTo(-1, 0.835).lineTo(0.886, 0.835).lineTo(0.886, 0.874).li... | 1 | 18 | 0.281404 |
train_cb865eede628a55f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.191, 0.051, -0.861), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.139, 0.188).lineTo(0.047, 0.188).lineTo(0.047, 0.3).lineTo(0.139, 0.3).lineTo(0.139, -0.196).lineTo(-0.047, -0.196).lineTo(-0.047, -0.295).lineTo(-0.139, -0.295).lineTo(-0.139, 0... | 10 | 123 | 0.437203 |
train_d9df9f586c575fcd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.391, -0.101, 0.139), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.609, 0.249).lineTo(-0.609, -0.249).lineTo(0.609, -0.249).lineTo(0.609, 0.249).lineTo(-0.609, 0.249).close().extrude(0.342)
result = result.edges().fillet(0.042)
result = result.u... | 17 | 140 | 0.184457 |
train_e3a13c1313d01060 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.072, -0.702), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.005).extrude(1.404)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.421, 0.225, -0.941), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.1).extrude(1.684))
result = result.edges().fi... | 14 | 56 | 2.626394 |
train_8814e0b82736e3cf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.478, 0.57, -0.001), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.448).workplane(offset=0.241).circle(0.491).workplane(offset=0.251).circle(0.49).workplane(offset=0.224).circle(0.522).workplane(offset=0.235).circle(0.502).workplane(offset=0.19).... | 8 | 17 | 1.481073 |
train_46912f1617643c84 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.169, -0.2, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.107, -0.053).threePointArc((0.113, -0.043), (0.116, -0.032)).lineTo(0.966, -0.032).threePointArc((1, 0), (0.966, 0.032)).lineTo(0.115, -0.011).threePointArc((0.111, 0), (0.105, 0.01)).... | 1 | 12 | 0.006302 |
train_98e6e50ac25271f9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.455, 0.077), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.307, 0.113).threePointArc((0.467, 0.047), (0.533, -0.113)).lineTo(-0.533, -0.113).threePointArc((-0.467, 0.047), (-0.307, 0.113)).lineTo(0.307, 0.113).close().sweep(cq.Workplane('YZ').... | 6 | 12 | 0.060494 |
train_b2e16502d79942e2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.058, 0.708, 0.289), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.638, 0.043).lineTo(-0.638, -0.207).lineTo(0.638, -0.207).lineTo(0.638, 0.207).threePointArc((0.591, 0.18), (0.542, 0.154)).lineTo(0.542, -0.077).lineTo(-0.542, -0.077).lineTo(-0.54... | 3 | 22 | 0.415138 |
train_cd50d7a24d59efb1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.4, -0.813, -0.11), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.89, 0.665).lineTo(-0.445, 0.074).lineTo(-0.445, 0.43).lineTo(0.445, 0.43).lineTo(0.445, 0.074).lineTo(0.89, 0.665).lineTo(-0.622, 0.665).lineTo(-0.89, 1.021).lineTo(-0.89, 0.665).c... | 18 | 254 | 0.650498 |
train_0816cf828f89af0b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.323, 0.372, 0.063), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.333, -0.677).lineTo(0.333, 1.323).lineTo(-0.333, 1.323).lineTo(-0.333, -0.677).lineTo(0.333, -0.677).close().extrude(0.744)
result = result.edges().fillet(0.109)
result = result.un... | 23 | 146 | 0.620114 |
train_30f9df12391e6cb5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.621).workplane(offset=0.919).circle(0.955).workplane(offset=1.081).circle(0.942).loft()
result = result.edges().fillet(0.077)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, -1.009), n... | 12 | 48 | 5.100721 |
train_384aa0fcbcd20c66 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.195, -0.516, -0.147), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.513, 0.027).lineTo(0, 0.711).lineTo(-0.513, 0.027).lineTo(0.513, 0.027).close().revolve(angleDegrees=360, axisStart=(0.513, 0.027), axisEnd=(0, 0.711))
result = result.edges().ch... | 10 | 32 | 0.388378 |
train_ec1d56408eacb82b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.73, -0.47, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.769, 0.27).lineTo(-0.23, -0.27).lineTo(0.23, -0.27).lineTo(0.769, 0.27).lineTo(-0.769, 0.27).close().sweep(cq.Workplane('XY').spline([(-0.73, -0.302), (-0.365, -0.263), (0, 0.128), (0... | 1 | 6 | 0.245343 |
train_cc27c368990dac5e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.006, -0.002, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.004, 1.002).lineTo(0.004, -0.998).lineTo(-0.004, -0.998).lineTo(-0.004, 1.002).lineTo(0.004, 1.002).close().extrude(0.01)
result = result.edges().fillet(0.002)
result = result.union(c... | 12 | 102 | 0.00014 |
train_8c0f10dbe04df0d5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.107, 0, 0.187), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.04, -0.953).threePointArc((-0.202, -0.767), (-0.382, -0.521)).threePointArc((-0.215, 0), (-0.382, 0.521)).threePointArc((-0.202, 0.767), (0.04, 0.953)).threePointArc((0.382, 0), (0.04, ... | 2 | 9 | 2.108155 |
train_a649f02d7a69e723 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.084, -0.314), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.259, 0.137).extrude(0.276)
result = result.union(cq.Workplane(cq.Plane(origin=(0.03, 0.168, -0.146), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.349, 0.243).threePointArc((0.759, 0.168),... | 4 | 46 | 0.050162 |
train_8b804dacdca731d8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0, -0.151), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.004, 0.01).lineTo(-0.011, 0.019).lineTo(-0.007, 0.008).lineTo(-0.017, 0.01).lineTo(-0.011, 0.002).lineTo(-0.022, 0).lineTo(-0.011, -0.002).lineTo(-0.017, -0.01).lineTo(-0.007, -0.008).l... | 1 | 25 | 0.001624 |
train_a627f7c4a6900a62 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.123, 0, -0.425), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.208, 0.603).extrude(0.85)
result = result.union(cq.Workplane(cq.Plane(origin=(0.851, 0.041, -0.275), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.298, 0.129).extrude(0.236))
result = result... | 14 | 216 | 0.409385 |
train_3a7e472266733073 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.254), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.667).extrude(0.507)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.254, -1.554), normal=(1, 0, 0), xDir=(0, 1, 0))).moveTo(-0.291, -0.036).lineTo(-0.364, 0.036).lineTo(0.364, 0.03... | 15 | 94 | 0.758346 |
train_f053c4a5942ff284 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.132, 0, -0.528), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.61, 2).extrude(1.055)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.794, 0.125, -0.147), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.142).extrude(0.501))
result = result.cut(cq.... | 5 | 45 | 3.152522 |
train_f6f65ac2cd3da2c1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.438, -0.1, -0.056), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.189, -0.243).lineTo(-0.189, 0.243).lineTo(-0.053, 0.243).lineTo(0.038, 0.159).threePointArc((0.071, 0.146), (0.105, 0.16)).lineTo(0.189, 0.243).lineTo(0.189, -0.243).lineTo(-0.05... | 9 | 57 | 0.188739 |
train_67241a2584ff4e1a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.038, -0.218, -0.6), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.234, 1.022).extrude(0.637)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.1, 0.025, -0.216), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.656, 0.564).extrude(0.157))
result = resu... | 24 | 154 | 0.548993 |
train_981a27bcf26c434d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.775), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.379, 0.628).extrude(0.638)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.086, -0.112, -0.23), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.029).extrude(1.23))
result = result.union(c... | 7 | 19 | 0.135037 |
train_8092d6890accc76f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.225), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.807).extrude(0.45)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.653, -0.383, -0.042), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.021).extrude(0.066))
result = result.cut(cq.Workp... | 11 | 151 | 0.666446 |
train_8a29a29f65eae657 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.459, 0, -0.651), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.082, 1.138).extrude(0.616)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.498, 0.024, -0.467), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.003, 0.958).extrude(0.247))
result = resu... | 10 | 43 | 0.825748 |
train_4c8d3489f320730f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.061), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.869, 2).extrude(0.103)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.231, -0.579, 0.042), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.166, 0.197).extrude(0.019))
result = result.cut(c... | 10 | 47 | 0.313168 |
train_136d250ac1ef1aaa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.942, -0.398, 0.038), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.88, 1.398).lineTo(0.356, -0.158).threePointArc((-0.262, -0.602), (-0.88, -0.158)).threePointArc((-0.791, 0.43), (-0.262, 0.701)).lineTo(-0.262, 1.398).lineTo(0.88, 1.398).close().... | 23 | 108 | 1.711663 |
train_5e87a3bbbb87b7ad | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.095, -0.77, -0.398), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.669, -0.313).lineTo(0.669, 0.417).lineTo(0.669, -0.313).lineTo(-0.669, -0.313).close().extrude(1.541)
result = result.edges().chamfer(0.075)
result = result.union(cq.Workplane(cq... | 19 | 211 | 0.777631 |
train_73447482423ab9ed | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.049, 0.616), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.384, 0.014).lineTo(-0.384, 0.083).lineTo(0.384, 0.083).lineTo(0.384, 0.014).lineTo(-0.384, 0.014).close().revolve(angleDegrees=270, axisStart=(-0.384, 0.014), axisEnd=(-0.384, 0.083)... | 2 | 11 | 0.099874 |
train_8fa137cb13ba28f5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.649, -0.257, 0.199), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.306, 0.123).threePointArc((-0.404, 0), (-0.306, -0.123)).lineTo(0.404, -0.279).threePointArc((0.18, 0), (0.404, 0.279)).lineTo(-0.306, 0.123).close().sweep(cq.Workplane('XY').sp... | 11 | 77 | 0.320843 |
train_a88aa321416a7cf0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.646), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.69, 2).extrude(1.071)
result = result.union(cq.Workplane(cq.Plane(origin=(0.166, 0.084, 0.401), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.527, 0.633).extrude(0.244))
result = result.cut(cq.W... | 12 | 42 | 2.731292 |
train_723135534685dcbd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.144, -0.219, -0.553), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.447, 0.349).threePointArc((0.253, -0.349), (-0.447, -0.168)).threePointArc((-0.005, 0.099), (0.447, 0.349)).close().sweep(cq.Workplane('XZ').spline([(-0.85, -0.948), (-0.518, -1.1... | 5 | 74 | 0.568215 |
train_ba7b68845115332b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.657, -0.193, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.21, 0.305).lineTo(0.21, 0.305).threePointArc((0.087, 0.603), (-0.21, 0.726)).lineTo(-0.21, 0.305).close().revolve(angleDegrees=360, axisStart=(-0.21, 0.305), axisEnd=(0.21, 0.305))
re... | 11 | 39 | 0.164694 |
train_9695b64d923b43c2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.228, -0.055, 0.046), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.026).sweep(cq.Workplane('XZ').spline([(0.341, -0.08), (0.301, -0.031), (0.239, -0.014), (0.18, -0.037), (0.145, -0.09)]))
result = result.edges().chamfer(0.01)
result = result.uni... | 5 | 19 | 0.00115 |
train_181e756733c73d98 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.517, 0, 0.06), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, -0.857).lineTo(-0.143, -0.857).lineTo(-0.143, 1).lineTo(0.143, 1).lineTo(0.143, -1).lineTo(0, -1).lineTo(0, -0.857).close().extrude(0.164)
result = result.union(cq.Workplane(cq.Plane(... | 2 | 29 | 0.590441 |
train_e98b51017422031a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.084, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.857, 0.668).lineTo(0.857, 0.668).lineTo(0.857, -0.106).threePointArc((0, -0.5), (-0.857, -0.106)).lineTo(-0.857, 0.668).close().extrude(1.469)
result = result.union(cq.Workplane(cq.Plane... | 6 | 39 | 2.36622 |
train_8a3e98f0e6a3a8c8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.054, 0, -0.789), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.835, 2).extrude(1.578)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.854 + 0.2, 0.3685, -1.982), normal=(1, 0, 0), xDir=(0, 1, 0))).moveTo(-0.001, 0.089).lineTo(0.018, 0.071).lin... | 14 | 11 | 5.796248 |
train_55ce512edfb39dd7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.079, -0.483), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.86, 1.842).extrude(0.967)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.13, -0.569, 0.002), normal=(0, -1, 0), xDir=(0, 0, 1))).lineTo(-0.654, -0.073).threePointArc((-0.789, -0.07... | 12 | 58 | 3.096353 |
train_26da1c854c03be3e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.483, -0.081, -0.612), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.034, 0.675).extrude(1.013)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.703, -0.154, -0.099), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.089).extrude(0.512))
result = resu... | 34 | 244 | 0.570141 |
train_cc3f54e44df623a2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.194, -0.107, -0.465), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.297, 0.052).lineTo(0.284, 0.04).lineTo(0.003, 0.321).lineTo(-0.274, 0.044).lineTo(-0.287, 0.057).lineTo(-0.01, 0.334).lineTo(-0.022, 0.346).lineTo(-0.299, 0.623).lineTo(-0.287, 0.... | 10 | 58 | 0.957178 |
train_c4239d8f6c0c231a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.713, -0.763, -0.344), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.282, 0.141).lineTo(-0.282, 0.113).lineTo(-0.254, 0.113).lineTo(-0.254, -0.113).lineTo(-0.282, -0.113).lineTo(-0.282, -0.141).lineTo(0.282, -0.141).lineTo(0.282, -0.113).lineTo(0... | 5 | 27 | 0.106665 |
train_97ca99a83192e405 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.016, -0.347, -0.744), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.256, -0.24).lineTo(0.256, -0.24).lineTo(0.256, 0.272).lineTo(-0.256, 0.272).lineTo(-0.256, -0.24).close().extrude(0.694)
result = result.edges().chamfer(0.04)
result = result.un... | 5 | 33 | 0.167946 |
train_1cd1aa544c3635d5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.211, 0, -0.545), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.461, 2).extrude(1.091)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.708, 0.254, -0.192), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.234).extrude(0.442))
result = result.edges(... | 13 | 87 | 1.741353 |
train_232d1876190d6940 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.223), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.02, 0.51).lineTo(-0.02, 0.47).lineTo(0.02, 0.47).lineTo(1, -0.51).lineTo(0.903, -0.51).lineTo(0.02, 0.372).lineTo(0.02, -0.51).lineTo(-0.02, -0.51).lineTo(-0.02, 0.413).lineTo(-0.028, 0.4... | 1 | 16 | 0.092484 |
train_297df1028bd9efbf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.697, -0.015, -0.064), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.54, 0.463).lineTo(0.496, 0.463).lineTo(0.496, 0.441).lineTo(0.015, 0.441).lineTo(0.015, -0.448).lineTo(-0.54, -0.448).lineTo(-0.54, -0.463).lineTo(0.54, -0.463).lineTo(0.54, 0.4... | 14 | 64 | 0.879011 |
train_261de4c2b3be1d15 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.165, -0.14, 0.322), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.277, 0.835).lineTo(0.277, 0.737).lineTo(-0.179, 0.281).lineTo(-0.277, 0.379).lineTo(0.179, 0.835).lineTo(0.277, 0.835).close().revolve(angleDegrees=360, axisStart=(0, 0), axisEnd=... | 16 | 198 | 0.984842 |
train_3dc9c1a3357d230d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.65, 1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.085, -0.228).lineTo(-0.049, -0.193).lineTo(0.372, 0.228).lineTo(0.063, 0.059).lineTo(-0.372, 0.059).lineTo(-0.085, -0.228).close().sweep(cq.Workplane('XY').spline([(0.65, 0.028), (0.866, 0.... | 1 | 7 | 0.011542 |
train_d905e951df74b6a8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.586), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.362, 2).extrude(1.172)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.733, -0.307), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.04, 1.188).threePointArc((0.04, 0.275), (0.019, 1.19... | 3 | 17 | 2.918878 |
train_5e815b02fbf39d54 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.024, -0.346, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.222, -0.05).lineTo(0.542, 0.251).lineTo(-0.199, 1.04).lineTo(-0.542, 0.717).lineTo(-0.476, 0.24).lineTo(-0.22, -0.032).lineTo(0.222, -0.05).close().extrude(2)
result = result.edges().... | 12 | 66 | 1.322164 |
train_d393c55b77ad32c2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.617, 0.516, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.489, -0.039).threePointArc((0.494, -0.069), (0.489, -0.099)).threePointArc((0.437, -0.184), (0.344, -0.217)).threePointArc((0.125, -0.247), (-0.066, -0.361)).threePointArc((-0.147, -0.... | 14 | 156 | 0.763042 |
train_e341cd3ea0e240de | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.002, 0.065), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.166, 0.909).threePointArc((0, -0.908), (-0.166, 0.909)).lineTo(-0.182, 0.992).threePointArc((0, -0.992), (0.182, 0.992)).lineTo(0.166, 0.909).close().extrude(0.129)
result = result.ed... | 2 | 26 | 0.059815 |
train_aa66bfe6ab6229a2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.018, 0.531), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.346).sweep(cq.Workplane('YZ').spline([(-0.681, -0.463), (-0.388, -0.782), (-0.096, -0.782), (0.196, -0.463)]))
result = result.edges().fillet(0.107)
result = result.cut(cq.Workplane(cq... | 8 | 63 | 0.890254 |
train_5054177144604afc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.17, -0.348), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.998).extrude(1)
result = result.union(cq.Workplane(cq.Plane(origin=(0 + 0.107 * math.cos(4.122 + 2 * math.pi * 0 / 6), 0.33 + 0.107 * math.sin(4.122 + 2 * math.pi * 0 / 6), 0.151), no... | 52 | 213 | 1.794841 |
train_50017ee105cc284b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.595, -0.685), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.524, 1.259).threePointArc((0.545, 1.21), (0.594, 1.19)).lineTo(0.594, 0.069).threePointArc((0.643, -0.05), (0.524, -0.001)).lineTo(-0.524, -0.001).threePointArc((-0.643, -0.05), (-0.5... | 19 | 157 | 1.733333 |
train_2879bcc9565f6afe | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.122, 0.326, -0.726), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.173, 0.379).lineTo(-0.173, -0.094).lineTo(0.3, -0.094).lineTo(0.3, -0.222).lineTo(-0.3, -0.222).lineTo(-0.3, 0.379).lineTo(-0.173, 0.379).close().extrude(0.786)
result = result.ed... | 16 | 268 | 0.427773 |
train_ae97d2ffd9d085b4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.038, -0.117, -0.436), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.868, 0.006).lineTo(0.469, 0.747).lineTo(-0.45, 0.721).lineTo(-0.878, -0.034).lineTo(-0.441, -0.802).lineTo(0.425, -0.775).close().moveTo(-0.371, 0.692).lineTo(-0.125, 0.689).lineT... | 17 | 135 | 0.754159 |
train_d955db08d62ba7e5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.507, -0.001, -0.463), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.54, -0.094).lineTo(0.467, 0.323).lineTo(0.121, 0.566).lineTo(-0.297, 0.493).lineTo(-0.54, 0.147).lineTo(-0.467, -0.271).lineTo(-0.121, -0.514).lineTo(0.297, -0.441).lineTo(0.54, ... | 24 | 216 | 0.890172 |
train_832b57ff52bd278d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.035, 0.001, 0.168), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.069, 0.154).lineTo(-0.069, -0.066).lineTo(0.069, -0.066).lineTo(0.069, -0.024).threePointArc((0, 0.044), (0.069, 0.113)).lineTo(0.069, 0.154).lineTo(-0.069, 0.154).close().extrude(... | 21 | 130 | 0.01508 |
train_1ba1600cdd93d24d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.23, 0.712, 0.001), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.096, 0.814).lineTo(0.096, 0.478).lineTo(0.402, 0.296).lineTo(0.402, -0.288).lineTo(0.285, -0.288).lineTo(0.285, 0.029).lineTo(0.096, 0.029).lineTo(0.096, -0.048).lineTo(0.037, -0.12... | 12 | 167 | 0.358943 |
train_87f9cacedecb7b1f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.453, -0.412, -0.022), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.474, 0.391).lineTo(-0.413, 0.513).lineTo(-0.474, 0.54).lineTo(-0.474, 1.412).lineTo(-0.215, 0.906).lineTo(-0.112, 0.707).lineTo(-0.36, 0.49).lineTo(-0.263, 0.445).lineTo(-0.027,... | 8 | 44 | 0.271628 |
train_2c01a5e4a318dbed | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.022, -0.003, -0.093), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.147, 0.109).extrude(0.055)
result = result.faces('>X').shell(-0.006)
result = result.union(cq.Workplane(cq.Plane(origin=(0.012, 0, -0.039), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0... | 14 | 97 | 0.006013 |
train_652ab28450d69738 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.051, 1, -0.005), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.168, 0.146).threePointArc((-0.179, 0.12), (-0.205, 0.109)).lineTo(-0.205, -0.135).threePointArc((-0.179, -0.146), (-0.168, -0.171)).lineTo(0.142, -0.171).threePointArc((0.153, -0.146... | 8 | 21 | 0.19521 |
train_dc595bcc5dd34d0c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.441, -0.405), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.058, -0.559).lineTo(0.347, -0.559).lineTo(0.347, 1.441).lineTo(-0.347, 1.441).lineTo(-0.347, -0.228).lineTo(-0.182, -0.228).lineTo(-0.182, -0.311).lineTo(-0.058, -0.311).lineTo(-0.05... | 11 | 110 | 0.899822 |
train_d933a42ef55eff8f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.724, -0.366), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 1.104).lineTo(1, 1.357).lineTo(-1, 1.357).lineTo(-1, 0.091).lineTo(-0.747, 0.091).lineTo(-0.747, 1.104).lineTo(1, 1.104).close().extrude(0.732)
result = result.edges().chamfer(0.114)... | 4 | 46 | 0.347714 |
train_ab8a1326f9a84dff | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.359, -0.402, 0.04), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.078, 0.641).lineTo(0.388, 0.641).lineTo(0.388, 0.02).lineTo(-0.388, 0.02).lineTo(-0.388, 0.331).lineTo(0.078, 0.331).lineTo(0.078, 0.641).close().extrude(0.749)
result = result.edge... | 10 | 81 | 0.589036 |
train_5110e31d192700a6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.016, -0.002, -0.234), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.016, 0.006).lineTo(0.65, 0.7).lineTo(0.023, 0.972).lineTo(-0.731, 0.718).lineTo(-0.984, -0.019).lineTo(-0.65, -0.682).lineTo(0.015, -0.969).lineTo(0.667, -0.673).close().center(-... | 12 | 64 | 0.683753 |
train_bc46d630a60d11a3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.003, 0.087, -0.907), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.093, -0.043).lineTo(-0.053, -0.074).threePointArc((-0.011, -0.091), (0.034, -0.084)).lineTo(0.081, -0.065).lineTo(0.087, -0.015).lineTo(0.093, 0.036).lineTo(0.053, 0.066).lineTo(... | 3 | 20 | 0.006427 |
train_98e6572643cea189 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.174, 0, -0.159), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.652, 0.276).extrude(0.254)
result = result.union(cq.Workplane(cq.Plane(origin=(0.817, -0.02, -0.063), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.365, 0.066).extrude(0.084))
result = resu... | 10 | 34 | 0.116387 |
train_3224ae2bc062b2c4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.074, 0.003, 0.066), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.584, 0.533).extrude(0.054)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.326, 0.093, 0.085), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.255, 0.101).extrude(0.019))
result = re... | 17 | 150 | 0.130005 |
train_3c09bbd8c03e86e8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.5, -0.521, -0.502), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.502, 1.265).lineTo(0.502, 0.592).lineTo(-0.215, 0.033).lineTo(-0.014, 0.592).lineTo(-0.502, 0.663).lineTo(-0.473, 1.151).lineTo(0.502, 1.265).close().revolve(angleDegrees=180, axi... | 6 | 52 | 1.082643 |
train_7a21af0cbd9f54c1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.589, 0.124, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1, 1.125).lineTo(-1, 0.269).threePointArc((-0.786, 0.053), (-0.571, 0.269)).lineTo(1, 0.269).lineTo(1, 1.125).lineTo(-1, 1.125).close().extrude(0.813)
result = result.edges().fillet(0.0... | 14 | 60 | 1.19242 |
train_0805e0f38e8f9190 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.004, -0.007, -0.623), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.21, 0.431).extrude(0.411)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.004, -0.007, -0.229), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.051).extrude(0.173))
result = res... | 14 | 278 | 0.069744 |
train_39c2efae89ec71a7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.545, 1, 0.138), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.765, 0.092).lineTo(0.765, 0.092).lineTo(0.765, 0.999).lineTo(-0.765, 0.999).lineTo(-0.765, 0.092).close().extrude(2)
result = result.edges().fillet(0.359)
result = result.cut(cq.Workp... | 11 | 61 | 2.263534 |
train_f5eca25eaba3b1e5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.007, 0.009, -0.003), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.679, 0.595).lineTo(-0.092, 0.548).lineTo(-0.818, 0.362).lineTo(-1.007, -0.212).lineTo(0.488, -0.613).lineTo(0.72, -0.195).close().moveTo(-0.357, -0.193).lineTo(-0.31, -0.065).lineT... | 10 | 194 | 0.496887 |
train_70d4877f1c62e0c4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.324, -0.344, 0.058), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-1.058, 0.656).lineTo(1.058, 0.026).lineTo(-1.058, 0.026).lineTo(-1.058, 0.656).close().extrude(0.688)
result = result.edges().chamfer(0.12)
result = result.cut(cq.Workplane(cq.Plan... | 9 | 48 | 0.372307 |
train_d1aaae3001d4d737 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.292), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.139, 1.055).extrude(0.734)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.147, 0.032, 0.438), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.02, -0.968).lineTo(0.02, 1.032).lineTo(-0.3... | 8 | 124 | 0.306138 |
train_377dd6e0feb19638 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.222, -0.018, -0.349), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.555, 1.065).extrude(0.698)
result = result.faces('>Z').shell(-0.07)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.229, 0.732, -0.17), normal=(0, 0, 1), xDir=(1, 0, 0))).re... | 10 | 91 | 0.530079 |
train_f77b16ad5ee3bd28 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.242, 0.582, 0.252), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.748, 0.47).lineTo(0.748, 0.47).lineTo(0.748, -0.29).lineTo(0.723, -0.29).threePointArc((0, 0.432), (-0.723, -0.29)).lineTo(-0.748, -0.29).lineTo(-0.748, 0.47).close().extrude(1.1... | 6 | 40 | 0.607865 |
train_dce4ea9e582afa01 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.243, 1, 0.251), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.367, 0.834).threePointArc((-0.002, 0.932), (-0.37, 0.832)).threePointArc((-0.64, 0.561), (-0.738, 0.192)).threePointArc((-0.638, -0.177), (-0.367, -0.446)).lineTo(0.37, -0.445).lineTo(... | 5 | 37 | 2.566891 |
train_a98e7c0b30b9126c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.01, -0.516, -0.439), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.396, -0.469).threePointArc((-0.561, -0.072), (-0.396, 0.325)).threePointArc((0, 0.489), (0.396, 0.325)).threePointArc((0.561, -0.072), (0.396, -0.469)).lineTo(-0.396, -0.469).clo... | 9 | 72 | 0.703342 |
train_f8fdb938e0b2ef7a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.445, -0.363), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.389, 0.485).lineTo(0.389, 0.485).lineTo(0.389, -0.485).lineTo(-0.389, -0.485).lineTo(-0.389, 0.485).close().revolve(angleDegrees=180, axisStart=(-0.389, 0.485), axisEnd=(0.389, 0.485... | 12 | 108 | 0.753779 |
train_5ce0e56c18ca2afd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.412, -0.165), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.333, -0.35).lineTo(0.333, -0.567).lineTo(0.149, 0).lineTo(0.333, 0.567).lineTo(-0.333, 0.35).lineTo(-0.333, -0.35).close().sweep(cq.Workplane('YZ').spline([(-0.861, -0.586), (-0.507,... | 4 | 21 | 0.801974 |
train_21d5dc80e3fe1091 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.07, -0.588), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.685, -0.794).threePointArc((0, 0.935), (0.685, -0.794)).lineTo(-0.685, -0.794).close().extrude(1.175)
result = result.edges().chamfer(0.173)
result = result.cut(cq.Workplane(cq.Plane(... | 13 | 31 | 2.577004 |
train_aa4bf50f7fca18c4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.491, -0.349, 0.529), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.235, 0.905).threePointArc((-0.501, -0.09), (0.501, -0.322)).threePointArc((0.113, 0.279), (-0.235, 0.905)).close().extrude(0.698)
result = result.edges().fillet(0.068)
result = r... | 11 | 99 | 0.421198 |
train_35093b2b56bb34f9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.557, 0, -0.006), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.177, 0.014).extrude(0.012)
result = result.union(cq.Workplane(cq.Plane(origin=(0.706, -0.004, -0.003), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.141, 0.002).extrude(0.007))
result = resu... | 8 | 41 | 0.000056 |
train_edaaba003f53b2a6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.161, 0.391, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.002).lineTo(1, 0.002).lineTo(1, 0.048).lineTo(-1, 0.048).lineTo(-1, 0.002).close().extrude(0.112)
result = result.faces('>Z').shell(-0.003)
result = result.union(cq.Workplane(cq.Pl... | 4 | 52 | 0.06628 |
train_fd25313bd18ca8bb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.405, 0.301, -0.068), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.925, -0.821).lineTo(-0.925, -0.821).lineTo(0.925, 1.929).lineTo(0.925, -0.821).close().workplane(offset=0.168).moveTo(0.789, -0.618).lineTo(-0.789, -0.618).lineTo(0.789, 1.726).li... | 15 | 50 | 0.724279 |
train_accda291c7cae6a5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.173), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.861).workplane(offset=0.053).circle(0.677).workplane(offset=0.074).circle(0.647).workplane(offset=0.052).circle(0.609).workplane(offset=0.05).circle(0.546).workplane(offset=0.064).circle(0... | 7 | 14 | 0.365114 |
train_885f74667f552312 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.147, -0.012, 0.025), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, -0.004).threePointArc((0.004, -0.005), (0.007, -0.006)).lineTo(0.007, -0.004).lineTo(0.007, 0.006).lineTo(-0.007, 0.006).lineTo(-0.007, -0.004).lineTo(0, -0.004).close().sweep(c... | 9 | 62 | 0.041008 |
train_d3f7370dbfe3ad59 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.072, 1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.258, 0.187).lineTo(0.267, 0.368).lineTo(0.258, -0.187).lineTo(-0.267, -0.368).lineTo(-0.258, 0.187).close().sweep(cq.Workplane('XY').spline([(0.072, 0.443), (0.346, 0.779), (0.62, 0.891), ... | 5 | 19 | 0.259074 |
train_fc80145e8609da5a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.209), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.746).extrude(0.419)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.209, -1.344), normal=(0, 1, 0), xDir=(1, 0, 0))).moveTo(-0.012, 0.103).lineTo(-0.094, 0.043).lineTo(0.012, -0.10... | 14 | 95 | 1.157549 |
train_7f12c1b1ac7eb957 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.12, -0.318, 0.001), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.118, -0.135).lineTo(0.118, 0.135).lineTo(-0.118, 0.135).lineTo(-0.118, -0.135).lineTo(0.118, -0.135).close().revolve(angleDegrees=270, axisStart=(0.118, -0.135), axisEnd=(0.118, 0... | 7 | 46 | 0.037958 |
train_8cda64707929c6c9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.726, -0.273, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.055, 0.029).lineTo(-0.121, 0.086).lineTo(-0.055, 0.057).lineTo(-0.043, 0.051).lineTo(-0.007, 0.124).lineTo(0.012, 0.087).lineTo(-0.034, 0.047).lineTo(-0.016, 0.039).lineTo(0.007, 0.... | 1 | 15 | 0.021293 |
train_e6054794c16786c4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.108, -0.043, -0.331), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.474, 0.026).threePointArc((0.374, 0.131), (0.452, 0.254)).threePointArc((0.075, 0.415), (-0.332, 0.454)).threePointArc((-0.326, 0.302), (-0.474, 0.27)).lineTo(-0.407, -0.138).thre... | 8 | 45 | 0.502604 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.