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_b62cfffd43cbcc79 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.523, -0.23, -0.26), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.477, -0.093).lineTo(0.477, 0.093).lineTo(-0.477, 0.093).lineTo(-0.477, -0.093).lineTo(-0.293, -0.093).lineTo(-0.293, 0.011).lineTo(0.293, 0.011).lineTo(0.293, -0.093).lineTo(0.477,... | 3 | 28 | 0.134297 |
train_b73bad0f215caccd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.295, -0.059, -0.12), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.221, -0.078).lineTo(0.221, -0.078).lineTo(0, 0.078).lineTo(-0.221, -0.078).close().extrude(0.169)
result = result.edges().chamfer(0.02)
result = result.union(cq.Workplane(cq.Pla... | 9 | 58 | 0.057428 |
train_d1f9e44f8da4f08b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.572, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.027, -0.428).threePointArc((0.064, 0.072), (-0.027, 0.572)).lineTo(-0.064, 0.572).lineTo(-0.064, -0.428).lineTo(-0.027, -0.428).close().revolve(angleDegrees=360, axisStart=(-0.027, 0.572),... | 15 | 99 | 0.217766 |
train_01f06edac8d3bc0f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.069, -0.505), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.03).extrude(1.01)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.8 + 0.2, 0.372, -1.174), normal=(0, 1, 0), xDir=(1, 0, 0))).moveTo(-0.016, 0.129).lineTo(-0.016, -0.129).lineTo(... | 10 | 9 | 2.082037 |
train_abb78f325063942b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.088, 0.267, -0.112), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, -0.3).lineTo(0.078, -0.108).lineTo(0.285, -0.093).lineTo(0.127, 0.041).lineTo(0.176, 0.243).lineTo(0, 0.133).lineTo(-0.176, 0.243).lineTo(-0.127, 0.041).lineTo(-0.285, -0.093).lin... | 16 | 127 | 0.161433 |
train_e0fcdd0124f96d3d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.574, 0.084), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.703, 0.055).lineTo(-0.703, 0.055).lineTo(-0.427, 1.382).lineTo(0.703, 0.055).close().extrude(2)
result = result.edges().chamfer(0.378)
result = result.cut(cq.Workplane(cq.Plane(origin=... | 9 | 42 | 1.120371 |
train_e1a46d6cccc43f2a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.093, 0.173, -0.489), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.439, -0.11).lineTo(-0.439, 0).lineTo(0.25, 0).lineTo(0.32, 0.687).lineTo(0.439, 0.675).lineTo(0.359, -0.11).lineTo(-0.439, -0.11).close().extrude(0.907)
result = result.edges().fi... | 6 | 100 | 0.377289 |
train_f77c13a3b28ef355 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.321, -0.728, -0.754), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.162, -0.086).threePointArc((0, -0.248), (0.162, -0.086)).lineTo(0.162, 0.44).lineTo(-0.162, 0.44).lineTo(-0.162, -0.086).close().extrude(0.5)
result = result.edges().chamfer(0.0... | 16 | 159 | 0.805536 |
train_a97622f6958b40fa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.153, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.502, 1.502).extrude(1.502)
result = result.union(cq.Workplane(cq.Plane(origin=(0.248, -0.068, 0.481), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.505).extrude(0.519))
result = result.union(c... | 21 | 237 | 3.157803 |
train_3e78f4d43b12b7f6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.112, -0.263, -0.685), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.332, 0.172).lineTo(-0.246, 0.085).lineTo(-0.246, -0.117).lineTo(-0.043, -0.117).lineTo(0.043, -0.204).lineTo(0.13, -0.117).lineTo(0.332, -0.117).lineTo(0.332, 0.259).lineTo(0.13... | 16 | 150 | 0.175728 |
train_791078c586c85ded | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.731, 0.519), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.024, 0.023).lineTo(0.024, 0.01).lineTo(0.031, 0.01).lineTo(0.031, -0.01).lineTo(0.024, -0.01).lineTo(0.024, -0.028).lineTo(-0.023, -0.028).lineTo(-0.031, -0.019).lineTo(-0.031, 0.028).l... | 2 | 17 | 0.0037 |
train_5583d1fd3b6ad681 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.803, 0.169, -0.106), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.317, 0.714).threePointArc((0.317, 0.098), (-0.317, -0.517)).lineTo(-0.317, 0.714).close().revolve(angleDegrees=90, axisStart=(-0.317, -0.517), axisEnd=(-0.317, 0.714))
result = re... | 26 | 232 | 0.503097 |
train_b6b2f17550f592cf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.393, -0.387, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.502, 1.391).threePointArc((0.502, 0.387), (-0.502, -0.617)).lineTo(-0.502, 0.01).lineTo(-0.502, 0.763).lineTo(-0.502, 1.391).close().extrude(1.271)
result = result.edges().fillet(0.0... | 9 | 36 | 1.766603 |
train_2cd49ea4f0c0fdad | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.526, 0.115, 0.061), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.083, -0.565).lineTo(0.083, -0.565).lineTo(0.083, 0.1).lineTo(-0.083, 0.599).lineTo(-0.083, -0.565).close().extrude(0.167)
result = result.edges().fillet(0.024)
result = result.unio... | 15 | 207 | 0.38737 |
train_d4b5dedafd8c170e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.009, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.382, 1.274).extrude(0.983)
result = result.faces('>Z').shell(-0.089)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.572, -0.039, -0.871), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.251, ... | 7 | 61 | 0.711326 |
train_34186582947b8c35 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.117), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.474).extrude(0.188)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.697, 0.031, 0.07), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.042).extrude(0.047))
result = result.cut(cq.Workp... | 6 | 20 | 0.51181 |
train_1904a8e9c8af4180 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.589, 0.408, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.072, -0.421).threePointArc((-0.251, -0.345), (-0.506, -0.135)).lineTo(-0.506, 0.592).lineTo(0.506, 0.592).lineTo(0.506, -0.277).lineTo(0.506, -0.421).lineTo(0.072, -0.421).close().extr... | 12 | 79 | 1.037728 |
train_0b37fafe417a0122 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.468, 0.472, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.178, -0.528).threePointArc((0.063, -0.482), (0.01, -0.371)).threePointArc((-0.147, 0.39), (-0.516, 1.073)).threePointArc((-0.548, 1.193), (-0.488, 1.302)).lineTo(-0.334, 1.432).threePo... | 35 | 140 | 0.593053 |
train_fcb55682a7e6e962 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.342, -0.767, 0.26), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.939, 1.481).threePointArc((-0.84, -0.298), (0.939, -0.199)).lineTo(0.47, 0.221).threePointArc((0.42, 1.111), (-0.47, 1.061)).lineTo(-0.939, 1.481).close().extrude(1.534)
result = ... | 8 | 58 | 4.143328 |
train_4f58dacc9992f8dc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.148, -0.504), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.452).extrude(1.009)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.33, 0.202, -0.676), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.151).extrude(1.21))
result = result.cut(cq.Wo... | 19 | 184 | 1.846714 |
train_24af020a084bebcc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.243, -0.327), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, -0.935).lineTo(0.265, -0.364).lineTo(0.889, -0.289).lineTo(0.428, 0.139).lineTo(0.55, 0.757).lineTo(0, 0.45).lineTo(-0.55, 0.757).lineTo(-0.428, 0.139).lineTo(-0.889, -0.289).lineTo(-... | 12 | 55 | 0.473229 |
train_a98d9cad37684a8a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.196, 0, 0.092), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.607, 1).extrude(0.429)
result = result.faces('>Z').shell(-0.037)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.79, 0.042, 0.165), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.21).... | 8 | 48 | 0.342469 |
train_75b3a0fa0d7a7b62 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.464, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.06, 0.036).lineTo(0.797, 0.215).lineTo(0.909, 0.803).lineTo(0.772, 0.803).lineTo(0.789, 0.892).lineTo(-0.909, 0.892).lineTo(-0.892, 0.803).lineTo(-0.802, 0.328).lineTo(-0.06, 0.173).line... | 2 | 23 | 0.568746 |
train_6a4604d7fd87bc16 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.078, 0.074), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.875, 0.171).lineTo(-0.75, -0.046).lineTo(-0.5, -0.046).lineTo(-0.375, 0.171).lineTo(-0.25, -0.046).lineTo(0, -0.046).lineTo(0.125, 0.171).lineTo(0.25, -0.046).lineTo(0.5, -0.046).lin... | 4 | 98 | 0.04781 |
train_18c38acaffdfeda2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.735, 0.433, 0.455), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.431, 1.019).threePointArc((-0.506, 0.988), (-0.537, 0.914)).lineTo(-0.537, -0.047).threePointArc((-0.469, -0.146), (-0.353, -0.118)).lineTo(0.517, 0.842).threePointArc((0.537, 0.9... | 4 | 42 | 1.964453 |
train_458ca5a9e32f0dc5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.318, 0.038), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.936, 0.048).lineTo(0.624, 0.589).lineTo(-0.624, 0.589).lineTo(-0.936, 0.048).lineTo(0.936, 0.048).close().extrude(0.962)
result = result.edges().chamfer(0.06)
result = result.cut(cq.Wo... | 6 | 42 | 1.391274 |
train_6debdd38e64d6968 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, 0.185, 0.204), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.594, 0).lineTo(0.594, 0.08).lineTo(0.688, 0.08).threePointArc((-0.693, 0), (0.688, -0.08)).threePointArc((0.691, -0.04), (0.693, 0)).lineTo(0.594, 0).close().sweep(cq.Workplane('XY... | 6 | 63 | 1.160482 |
train_5b5cfc302eb2b923 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.065, -0.898, -0.242), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.758, 1.017).lineTo(-0.758, -0.887).lineTo(0.758, -0.887).lineTo(0.758, 1.017).lineTo(-0.758, 1.017).close().extrude(1.796)
result = result.edges().fillet(0.116)
result = result.... | 6 | 55 | 4.911078 |
train_fa91231979cf6525 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.5, -1.048, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.154, 1.048).lineTo(1, 1.048).lineTo(1, 0.048).lineTo(-1, 0.048).lineTo(-1, 0.548).lineTo(-0.154, 0.548).lineTo(-0.154, 1.048).close().revolve(angleDegrees=180, axisStart=(-0.154, 1.04... | 4 | 31 | 2.427335 |
train_08a31f45d65a273d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.662, 0.058, -0.059), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.205, 0.343).threePointArc((0.098, 0.297), (-0.019, 0.302)).threePointArc((-0.092, 0.196), (-0.205, 0.137)).threePointArc((0.178, -0.114), (0.205, 0.343)).close().extrude(0.348)
re... | 8 | 59 | 0.121934 |
train_4fd2d652a852249b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.099, -0.42, -0.315), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.206, 0.244).lineTo(-0.261, 0.244).lineTo(-0.261, -0.027).lineTo(0.206, -0.027).lineTo(0.206, -0.244).lineTo(0.261, -0.244).lineTo(0.261, 0.027).lineTo(-0.206, 0.027).lineTo(-0.20... | 7 | 66 | 0.628579 |
train_35b3fd14b1d92947 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.139, -0.709, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.113, 1.614).lineTo(-0.113, 1.161).lineTo(-0.791, 1.161).lineTo(-0.791, 0.257).lineTo(-0.113, 0.257).lineTo(-0.113, -0.195).lineTo(0.791, -0.195).lineTo(0.791, 1.614).lineTo(-0.113, 1... | 6 | 71 | 1.756783 |
train_6992a6dafcf86125 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.824, 0.93).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.12, -0.154, 0.256), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.116).extrude(0.763))
result = result.cut(cq.Workplane(c... | 11 | 65 | 1.045139 |
train_fbc9f27ee9524473 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.15, -0.123), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.476, -0.15).lineTo(-0.476, -0.131).lineTo(-0.405, -0.087).lineTo(-0.476, -0.051).lineTo(-0.476, 0.15).lineTo(0.476, 0.15).lineTo(0.476, -0.15).lineTo(0.202, -0.15).lineTo(0.105, -0.10... | 5 | 38 | 0.173606 |
train_90dcd5e0f0a8b5ac | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.17), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.75, -0.52).lineTo(0.979, -0.52).lineTo(0.979, 0.52).lineTo(-0.979, 0.52).lineTo(-0.979, -0.52).lineTo(0.75, -0.52).close().workplane(offset=0.182).moveTo(0.765, -0.53).lineTo(0.999, -0.53).... | 15 | 54 | 0.580578 |
train_1bba42e37bbaaccf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.019, -0.716, -0.197), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.569, 0.569).extrude(0.433)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.019, 0.154, -0.108), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.215, 1.328).extrude(0.254))
result ... | 14 | 233 | 0.301357 |
train_3d7e4482531a367d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.411, 0.202, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.904, 0.356).threePointArc((0.007, -0.018), (-0.904, -0.356)).threePointArc((-0.006, 0.015), (0.904, 0.356)).close().sweep(cq.Workplane('XY').spline([(0.073, -0.018), (0.315, 0.001), (... | 2 | 33 | 0.329606 |
train_90ac5678b41d0430 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.167, 0, -0.276), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.666, 0.792).extrude(0.56)
result = result.faces('>Z').shell(-0.042)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.822, -0.102, -0.019), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0... | 4 | 30 | 0.209791 |
train_3bb67351dc5c89f1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1, 0.442), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.034, 0.12).lineTo(0.034, -0.002).lineTo(-0.031, -0.002).lineTo(-0.034, 0).lineTo(-0.103, -0.12).lineTo(0.034, -0.12).lineTo(0.034, -0.116).lineTo(0.002, -0.059).lineTo(0.034, -0.04).lineT... | 1 | 14 | 0.014419 |
train_fd4523d5057a3782 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.09, 0, 0.316), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.316, -0.118).lineTo(-0.316, -0.015).lineTo(0.316, 0.91).lineTo(0.316, 0.808).lineTo(-0.316, -0.118).close().revolve(angleDegrees=270, axisStart=(-0.316, -0.118), axisEnd=(-0.316, -0.015... | 4 | 14 | 0.189026 |
train_8a3eb335a3d175dc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.299, -0.128, -0.714), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.401, 1.572).extrude(1.244)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.585, -0.468, 0.068), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.392, 0.421).extrude(0.287))
result =... | 14 | 159 | 1.997154 |
train_2e6be979380656b9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.105, -0.199, -0.063), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.247, 0.266).lineTo(-0.247, 0.266).lineTo(-0.247, 0.019).lineTo(0.247, -0.266).lineTo(0.247, 0.266).close().sweep(cq.Workplane('XY').spline([(-0.779, -0.199), (0.04, -0.199), (0.51... | 3 | 20 | 0.526161 |
train_9900b71437a4c963 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.9, -0.101, 0.638), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.1, 0.175).lineTo(-0.1, -0.175).lineTo(0.1, -0.175).lineTo(0.1, 0.175).lineTo(-0.1, 0.175).close().sweep(cq.Workplane('XZ').spline([(-0.9, 0.379), (-0.535, 0.379), (-0.17, 0.379), (... | 9 | 53 | 0.152358 |
train_b21daff82387ef1e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.213, 0.282, -0.393), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.607, 0.09).threePointArc((0.161, 0.037), (-0.285, 0.09)).threePointArc((-0.448, 0.137), (-0.607, 0.197)).lineTo(-0.607, 0.779).threePointArc((-0.451, 0.691), (-0.285, 0.623)).thre... | 26 | 125 | 0.242618 |
train_a317d7b1eba89863 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.353, 0.461, 0.27), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.27, 0.691).lineTo(-0.27, 0.016).lineTo(0.27, 0.016).lineTo(0.27, 0.691).lineTo(-0.27, 0.691).close().revolve(angleDegrees=360, axisStart=(-0.27, 0.691), axisEnd=(-0.27, 0.016))
res... | 4 | 12 | 0.751878 |
train_0cdb4e29bd16bd02 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.539, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.414, 0.66).threePointArc((0.431, 0.539), (0.414, 0.417)).lineTo(0.445, 0.417).threePointArc((0, 0.078), (-0.445, 0.417)).lineTo(-0.414, 0.417).threePointArc((-0.431, 0.539), (-0.414, 0.66)... | 6 | 39 | 1.814194 |
train_bee7f0edbe352f9a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.115, 0.163, -0.337), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.428, 1.353).extrude(1.337)
result = result.union(cq.Workplane(cq.Plane(origin=(0.071, -0.223, -0.603), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.032, -0.031).threePointArc((-0.39... | 4 | 19 | 2.55501 |
train_8f389ed1ff0301e6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.509, -0.114, -0.057), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.017, -0.037).lineTo(-0.007, -0.04).lineTo(0.006, 0.032).lineTo(-0.017, 0.04).lineTo(-0.017, -0.037).close().sweep(cq.Workplane('XZ').spline([(0.794, -0.094), (0.67, -0.048), (0.... | 33 | 185 | 0.075111 |
train_4dfabad194dfc6d7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.66, -0.384, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.486, -0.377).threePointArc((-0.381, -0.381), (-0.377, -0.486)).threePointArc((0, -0.616), (0.377, -0.486)).threePointArc((0.489, -0.489), (0.486, -0.377)).threePointArc((0.616, 0), (0.... | 1 | 10 | 0.073287 |
train_047662a9422a22b2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.707, -0.804), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.799, 1.306).threePointArc((-1, 0.707), (0.799, 0.107)).threePointArc((1, 0.707), (0.799, 1.306)).close().extrude(1.609)
result = result.edges().chamfer(0.347)
result = result.cut(cq.W... | 3 | 10 | 3.627228 |
train_02b3e4842e52bd7c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1.037, -0.298, -0.256), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.376, 0.037).lineTo(0.376, 0.845).lineTo(0.282, 0.845).lineTo(0.282, 0.413).lineTo(-0.282, 0.413).lineTo(-0.282, 0.451).lineTo(-0.376, 0.451).lineTo(-0.376, 0.037).lineTo(0.376, 0... | 7 | 124 | 0.295566 |
train_868d4e0769f94718 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.366, -0.151, -0.264), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.395).workplane(offset=0.257).circle(0.33).workplane(offset=0.304).circle(0.266).workplane(offset=0.302).circle(0.201).workplane(offset=0.258).circle(0.137).loft()
result = result... | 12 | 40 | 0.252516 |
train_1fba1e25d375cd50 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.591, 0.185, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.72, 0.273).lineTo(-0.537, 0.273).threePointArc((-0.361, 0.409), (-0.185, 0.273)).threePointArc((0.176, 0.409), (0.537, 0.273)).lineTo(0.72, 0.273).lineTo(0.53, -0.409).lineTo(-0.53, -... | 8 | 39 | 0.003176 |
train_c48193f3ba66ad82 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.586, 0.625, 0.307), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.414, -0.825).lineTo(0.414, 1.996).lineTo(-0.414, 1.167).lineTo(-0.414, 0.005).lineTo(0.414, -0.825).close().extrude(1.25)
result = result.edges().fillet(0.29)
result = result.cut(c... | 27 | 78 | 0.705576 |
train_8a5088c7397cae83 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.052, -0.068, -0.045), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.103, -0.035).lineTo(-0.103, -0.948).lineTo(0.034, -0.948).lineTo(0.034, -0.035).lineTo(0.103, -0.035).lineTo(0.103, 1.052).lineTo(-0.103, 1.052).lineTo(-0.103, -0.035).close().e... | 5 | 96 | 0.06586 |
train_5636bcbc76dd6eeb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.113, 0.672, 0.243), normal=(0, 1, 0), xDir=(0, 0, 1))).threePointArc((0.205, 0.416), (0, 0.5)).threePointArc((-0.207, 0.414), (-0.292, 0.207)).lineTo(0.304, -0.5).close().sweep(cq.Workplane('YZ').spline([(0.293, -0.134), (0.051, -0.074), (-0.165... | 10 | 56 | 0.330641 |
train_150ea7cd30190d93 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.021, 0.425, -0.513), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.526, 0.484).extrude(0.227)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.076, 0.315, -0.464), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.087).extrude(0.049))
result = result... | 19 | 150 | 0.276585 |
train_028e7fecee46a73b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.479, -0.108, -0.502), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.485, 0.119).lineTo(-0.498, 0.119).lineTo(-0.498, -0.119).lineTo(-0.485, -0.024).lineTo(-0.492, -0.024).lineTo(-0.492, 0.024).lineTo(-0.485, 0.024).lineTo(-0.485, 0.118).lineTo(0.... | 3 | 36 | 0.570542 |
train_a5738e99631cb5fc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.08), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.641).extrude(0.117)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.557, 0.236, 0.037), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.037).extrude(0.043))
result = result.cut(cq.Workp... | 7 | 32 | 0.2902 |
train_f4beeadb9f3a8b81 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.682, 0.265), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.409).sweep(cq.Workplane('YZ').spline([(-0.682, 0.265), (0.088, 0.286), (0.86, -0.204)]))
result = result.edges().chamfer(0.1)
| 2 | 5 | 0.216691 |
train_b00f325d5c542171 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.009, -0.026, -0.29), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.521, 1.062).extrude(0.399)
result = result.union(cq.Workplane(cq.Plane(origin=(0.026, -0.11, 0.092), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.211, 0.309).extrude(0.199))
result = r... | 16 | 128 | 0.173775 |
train_364f10200a9b7a23 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.308, 0.28, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.264, 0.041).threePointArc((0, 0.171), (-0.264, 0.041)).threePointArc((-1, 0.258), (-0.264, 0.475)).threePointArc((0, 0.345), (0.264, 0.475)).threePointArc((1, 0.258), (0.264, 0.041)).cl... | 4 | 25 | 0.546227 |
train_607cfa6ead482afe | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.111, 0.514), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.304, 0.304).lineTo(-0.308, 0.3).lineTo(-0.304, 0.296).lineTo(0.3, -0.304).lineTo(0.308, 0.304).lineTo(-0.304, 0.304).close().sweep(cq.Workplane('YZ').spline([(0.111, -0.317), (0.244, -... | 6 | 32 | 0.210283 |
train_8bef6a7d0db136be | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.054, -0.203, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.006, 0.02).lineTo(-0.006, 0).lineTo(-0.017, 0).lineTo(-0.011, -0.01).lineTo(-0.006, -0.019).lineTo(-0.006, -0.007).lineTo(-0.001, -0.01).lineTo(0.017, -0.02).lineTo(-0.006, 0.02).cl... | 2 | 34 | 0.000542 |
train_cdc5cb7028577948 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.079, 0.753), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.864, -1.079).lineTo(0, 0).lineTo(-0.864, -1.079).lineTo(-0.864, 1.079).lineTo(0.864, 1.079).lineTo(0.864, -1.079).close().extrude(1.505)
result = result.edges().chamfer(0.203)
result =... | 14 | 123 | 2.874936 |
train_b2100806b0999fa1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.024, 0, -0.197), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.976, 0.008).lineTo(0.516, 0.904).lineTo(-0.526, 0.906).lineTo(-1.024, -0.005).lineTo(-0.501, -0.871).lineTo(0.503, -0.907).close().moveTo(0, -0.279).lineTo(0.07, -0.121).lineTo(0.241, ... | 15 | 160 | 1.223093 |
train_74096e42babab4b6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.927), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.014, 0.814).extrude(0.041)
result = result.union(cq.Workplane(cq.Plane(origin=(0.089, 0, -0.894), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.064, 0.122).lineTo(-0.064, -0.122).lineTo(0.07... | 5 | 35 | 0.076844 |
train_5f190304eb574683 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.094, -0.186), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.186, 1.094).lineTo(0.186, -0.906).threePointArc((0, -0.895), (-0.186, -0.906)).lineTo(-0.186, 0.876).lineTo(-0.186, 1.094).lineTo(0.186, 1.094).close().revolve(angleDegrees=360, axisSt... | 3 | 6 | 0.834787 |
train_636bbd4e77a6ab33 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.584, -0.711, -0.303), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.298, 1.349).lineTo(-0.513, 1.225).lineTo(-0.811, 0.46).lineTo(-0.298, -0.181).lineTo(0.513, -0.057).lineTo(0.811, 0.708).lineTo(0.298, 1.349).close().extrude(1.422)
result = resu... | 3 | 44 | 2.056296 |
train_88c9d6a981cfd876 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.127, -0.561), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.498, 1.747).extrude(0.969)
result = result.union(cq.Workplane(cq.Plane(origin=(0, -0.029 + 0.1295, 0.313), normal=(0, 1, 0), xDir=(1, 0, 0))).moveTo(-0.025, 0.248).lineTo(-0.025, -0.248... | 7 | 40 | 1.828363 |
train_2730b58cb8b071bd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.508, 0.31, -0.216), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.059, 0.015).lineTo(-0.015, 0.015).lineTo(-0.015, 0.059).lineTo(0.059, 0.059).lineTo(0.059, -0.059).lineTo(-0.059, -0.059).lineTo(-0.059, 0.015).close().transformed(offset=(0.171,... | 2 | 9 | 0.054384 |
train_f72d10979c77ef0e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.012, 0.23, -0.011), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.201, 1.002).lineTo(-0.014, 1.002).lineTo(0.06, -0.208).threePointArc((0.201, -0.682), (-0.201, -0.97)).lineTo(-0.201, 1.002).close().extrude(0.454)
result = result.edges().chamfer... | 3 | 27 | 0.241233 |
train_0dfc8c1491e7a483 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.144, -0.027), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.561, 1.512).extrude(1.027)
result = result.cut(cq.Workplane(cq.Plane(origin=(0 + 0.227 * math.cos(2.057 + 2 * math.pi * 0 / 6), -0.144 + 0.227 * math.sin(2.057 + 2 * math.pi * 0 / 6), -... | 17 | 67 | 1.175979 |
train_7f3452bd36c47b84 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.234, 0.14, -0.472), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.084, 0.523).lineTo(-0.201, -0.325).lineTo(0.113, -0.325).lineTo(0.201, -0.063).lineTo(0.201, 0.523).lineTo(0.084, 0.523).close().extrude(0.766)
result = result.edges().fillet(0.067)... | 31 | 256 | 1.009017 |
train_0db16b5b374e58cd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.242, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.966, 1.229).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.21, 0.141, -1.06), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.074).extrude(2.4))
result = result.edges().chamfer(0... | 8 | 60 | 2.095287 |
train_b84a1ec79c7dcef1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.485, 0, 0.033), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.05, -0.064).threePointArc((0, -0.113), (-0.05, -0.064)).lineTo(-0.05, 0.064).threePointArc((0, 0.113), (0.05, 0.064)).lineTo(0.05, -0.064).close().sweep(cq.Workplane('XY').spline([(-0.0... | 6 | 50 | 0.057884 |
train_e20bb19b79054c20 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.066, -0.149, -0.087), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.918, 0.799).extrude(0.893)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.066 + 0.175 * math.cos(2.754 + 2 * math.pi * 0 / 6), 0.297 + 0.175 * math.sin(2.754 + 2 * math.pi * ... | 42 | 338 | 0.735445 |
train_1a38f829c2c5f27d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.596), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.513, 2).extrude(1.191)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.43, 0.517, 0.509), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.071).extrude(0.088))
result = result.edges().fillet... | 13 | 63 | 3.195475 |
train_52b4bf4f4db3a772 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1.298, -0.115, -0.012), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.082, 0.434).lineTo(-0.036, 0.298).lineTo(0.106, 0.434).lineTo(0.034, 0.464).lineTo(-0.007, 0.464).lineTo(-0.082, 0.434).close().sweep(cq.Workplane('XY').spline([(1.298, 0.593), ... | 3 | 13 | 0.011369 |
train_145eb712350dc731 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.53, -0.484, -0.416), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.94, 0.403).extrude(0.531)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.483, -0.282, 0.15), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.147, 0.829).lineTo(-0.146, 0.132).l... | 16 | 108 | 0.398345 |
train_41bb2207588040ea | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.575, -0.028), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.387, -0.425).lineTo(0.387, -0.349).lineTo(0.037, 0).lineTo(0.387, 0.349).lineTo(0.387, 0.425).lineTo(0.312, 0.425).lineTo(-0.113, 0).lineTo(-0.037, -0.075).lineTo(-0.387, -0.425).line... | 10 | 80 | 0.274046 |
train_d4350c7e93182393 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.166, 0.308, -0.153), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.053, 0.044).threePointArc((0.033, -0.044), (-0.053, -0.017)).lineTo(-0.05, -0.016).lineTo(0.002, 0.01).lineTo(0.05, 0.042).lineTo(0.053, 0.044).close().sweep(cq.Workplane('XY').sp... | 6 | 78 | 0.402325 |
train_e9a9e38ac0b4d5de | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.595, -0.936), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1, 1.31).lineTo(1, 0.594).lineTo(-1, -0.121).lineTo(-1, 1.31).close().extrude(1.873)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.111, 0.109, -1.255), normal=(0, 0, 1), xDir=(1... | 3 | 8 | 2.507494 |
train_cbe43599e294eb9e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.457, -0.626, -0.038), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.242, 0.857).threePointArc((-0.263, 0.523), (-0.083, 0.241)).threePointArc((0.064, 0.153), (0.232, 0.117)).lineTo(0.263, 0.659).lineTo(-0.242, 0.857).close().revolve(angleDegree... | 6 | 32 | 0.992196 |
train_88007ed587c20112 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.083, 0.254, 0.203), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.439, -0.072).threePointArc((0.43, -0.123), (0.406, -0.169)).threePointArc((0.392, -0.185), (0.376, -0.199)).threePointArc((0.329, -0.224), (0.279, -0.232)).lineTo(-0.279, -0.232).t... | 9 | 68 | 0.380691 |
train_4f899f58afcfe413 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.087, 0.132, -0.093), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 1.087).lineTo(0.317, 1.087).lineTo(0.317, -0.913).lineTo(0, -0.913).lineTo(0, 0.992).lineTo(-0.317, 0.809).lineTo(-0.317, 0.999).lineTo(-0.165, 1.087).lineTo(0, 1.087).close().ex... | 4 | 47 | 0.174212 |
train_3376a96fb1fd029d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.114, -0.129, -0.534), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.11, 0.011).lineTo(0.11, 0.246).lineTo(-0.11, 0.246).lineTo(-0.11, 0.011).lineTo(0.11, 0.011).close().extrude(0.202)
result = result.edges().chamfer(0.031)
result = result.union(c... | 5 | 39 | 0.013013 |
train_48ecce589eebbed6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.085, 0.343), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.351, -0.608).lineTo(0.527, -0.304).lineTo(0.702, 0).lineTo(0.527, 0.304).lineTo(0.351, 0.608).lineTo(0, 0.608).threePointArc((-0.304, 0.527), (-0.527, 0.304)).lineTo(-0.702, 0).lineTo... | 10 | 97 | 1.187133 |
train_2599a3fc2461fb3a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.088, -0.443), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.584).extrude(0.886)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.8 + 0.2, 0.118, -1.473), normal=(0, 1, 0), xDir=(1, 0, 0))).moveTo(-0.038, -0.057).lineTo(-0.038, -0.049).lin... | 14 | 9 | 2.808445 |
train_f1e48f23d5fc77bb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.039, -1, -0.43), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.076, -0.153).lineTo(-0.053, -0.153).lineTo(-0.053, 0.151).lineTo(0.053, 0.151).lineTo(0.053, -0.153).lineTo(0.073, -0.153).lineTo(0.073, 0.151).lineTo(0.076, 0.151).lineTo(0.076, -0.... | 3 | 28 | 0.052585 |
train_deae76077b2e3082 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.086, -0.014, -0.213), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.031, 0.02).lineTo(0.301, 1.014).lineTo(-0.859, 0.619).lineTo(-0.83, -0.638).lineTo(0.311, -0.986).close().center(-0.29, 0.309).circle(0.121).center(0.581, 0).circle(0.134).moveTo... | 13 | 84 | 0.51936 |
train_16ccd8768da78905 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.037), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.365, 1.054).threePointArc((-0.162, 0.69), (-0.365, 0.082)).lineTo(0.365, 1.054).close().revolve(angleDegrees=360, axisStart=(0, 0), axisEnd=(0.13, 0))
result = result.edges().fillet(0.046)... | 3 | 9 | 0.613481 |
train_4158d049c9fa02e6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.025, 0.01, 0.154), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.721, 0.28).extrude(0.103)
result = result.union(cq.Workplane(cq.Plane(origin=(0.459, 0.042, 0.203), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.163, 0.161).extrude(0.028))
result = resul... | 31 | 320 | 0.279546 |
train_a2d206ff639c0dc2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.997, -0.041, 0.115), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.046, 0.191).lineTo(-0.592, 0.74).lineTo(-0.616, 0.76).threePointArc((-0.571, -0.427), (0.616, -0.471)).lineTo(0.596, -0.447).lineTo(0.046, 0.191).close().extrude(0.963)
result = r... | 9 | 112 | 1.34722 |
train_1311725292bb3a1f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.634, -0.002, 0.174), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.345, -0.441).threePointArc((0.363, -0.449), (0.356, -0.431)).lineTo(0.356, 0.438).lineTo(0.356, 0.449).lineTo(0.345, 0.449).lineTo(-0.345, 0.449).threePointArc((-0.348, 0.441), (... | 3 | 18 | 0.132335 |
train_e8e62386d055caef | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.269, -0.511), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.625, 1.462).extrude(1.023)
result = result.union(cq.Workplane(cq.Plane(origin=(0.051, 0.714, -0.088), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.627, 0.573).extrude(0.426))
result = resu... | 4 | 18 | 2.438232 |
train_2b6481c4debe2d31 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.481, 0, 0.004), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.392, -0.042).lineTo(-0.392, 0.027).lineTo(-0.434, 0.027).lineTo(-0.434, 0.042).lineTo(0.434, 0.042).lineTo(0.434, 0.027).lineTo(0.02, 0.027).lineTo(0.02, -0.042).lineTo(-0.104, -0.042... | 3 | 26 | 0.004943 |
train_01c4974055512098 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.155, -0.91), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.289, 1.689).extrude(1.584)
result = result.union(cq.Workplane(cq.Plane(origin=(0.279, 0.829, -0.53), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.171).extrude(0.63))
result = result.union... | 12 | 124 | 2.155888 |
train_bf9651cd7453f2e1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.602, 0.537, -0.219), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.223, 0.993).lineTo(0.223, 0.769).threePointArc((0.402, 0.435), (0.223, 0.101)).threePointArc((0, 0.034), (-0.223, 0.101)).threePointArc((-0.402, 0.435), (-0.223, 0.769)).lineTo(-0... | 7 | 49 | 0.455586 |
train_7001e727ea9c1233 | 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.909, 1.791).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.148, 0.499, -0.111), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.817, 0.836).extrude(0.54))
result = result.edges().fill... | 17 | 161 | 5.220227 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.