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_476addf9551f69df | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.145, -0.274, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.401, 0.439).lineTo(-0.311, 0.413).lineTo(-0.22, 0.731).lineTo(-0.182, 0.72).lineTo(-0.182, 0.688).lineTo(-0.1, 0.4).lineTo(-0.054, 0.413).lineTo(0.311, -0.86).lineTo(0.401, -0.834).l... | 6 | 140 | 0.106798 |
train_320aba0c39bf6661 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.846, -0.243, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.624, -0.779).lineTo(-0.624, 0.779).lineTo(0.624, 0.779).lineTo(0.624, -0.779).lineTo(-0.624, -0.779).close().sweep(cq.Workplane('XY').spline([(-0.201, -0.243), (0.122, -0.113), (0.4... | 13 | 129 | 1.993635 |
train_c81e51430dd18fa5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.355, -0.444, -0.398), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.451, -0.556).lineTo(0.324, -0.08).lineTo(0.471, 0.006).lineTo(0.556, 0.153).lineTo(0.556, 0.324).lineTo(0.471, 0.471).lineTo(0.324, 0.556).lineTo(0.153, 0.556).lineTo(0.006, 0.4... | 7 | 33 | 1.062127 |
train_0324bbee0fd7b775 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.473, 0.127), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.494).sweep(cq.Workplane('YZ').spline([(-0.221, -0.466), (0.451, -0.466), (0.734, -0.773), (1.016, -1.08)]))
result = result.edges().chamfer(0.375)
result = result.cut(cq.Workplane(cq.Pl... | 11 | 132 | 0.848809 |
train_313832e09a39cdb7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.007, -0.502, 0.043), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.556, 0.779).extrude(0.602)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.215 + 0.074, -0.502, -0.104), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, -0.04).lineTo(0.016, -0.0... | 20 | 127 | 0.419244 |
train_35c0ffad0dc920d1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.016, -0.008, -0.066), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.252, 0.01).threePointArc((0.141, 0.003), (0.037, 0.044)).threePointArc((-0.109, 0.025), (-0.252, 0.059)).threePointArc((-0.163, -0.031), (-0.038, -0.047)).threePointArc((0.064, ... | 23 | 124 | 0.38252 |
train_a1fa9f5db181c4a0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.591, -1, 0.017), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.663, 1.331).lineTo(-0.134, -0.325).lineTo(0.663, 1.221).lineTo(-0.663, 1.331).close().extrude(1.555)
result = result.edges().chamfer(0.217)
result = result.cut(cq.Workplane(cq.Plane(... | 20 | 180 | 0.962548 |
train_6ace7fad7148946d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.413, -0.066, 0.515), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.188, 0.655).lineTo(-0.188, 0.826).lineTo(0.178, 0.826).lineTo(0.147, 0.795).lineTo(0.178, 0.784).lineTo(0.005, 0.353).lineTo(0.005, 0.461).lineTo(-0.188, 0.655).close().revolve(a... | 12 | 136 | 0.240836 |
train_6dc192dd627b4e97 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.016, 0.055, -0.128), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.799, 0.375).extrude(0.245)
result = result.union(cq.Workplane(cq.Plane(origin=(0.435, -0.048, -0.018), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.117, 0.048).extrude(0.02))
result = ... | 8 | 43 | 0.205599 |
train_e9d1a155db754144 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.096, 0, -0.129), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.1, 2).extrude(0.165)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.066, 0.253, -0.131), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.108).extrude(0.073))
result = result.cut(cq.Work... | 25 | 77 | 0.2391 |
train_d0016d2b3fd5644a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.531, -0.235, 0.304), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.689, 1.092).lineTo(-0.689, -0.621).lineTo(0.689, 0.235).lineTo(-0.689, 1.092).close().extrude(1.053)
result = result.edges().chamfer(0.25)
result = result.cut(cq.Workplane(cq.Pla... | 21 | 127 | 0.522196 |
train_69cc577ea14f2a03 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.186, 0, 0.206), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.459).workplane(offset=0.124).circle(0.46).workplane(offset=0.095).circle(0.49).workplane(offset=0.122).circle(0.454).workplane(offset=0.107).circle(0.467).loft()
result = result.edges... | 13 | 84 | 0.22437 |
train_e1e5caeebc7cb588 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.725, 0.192, -0.006), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.789, 1.256).lineTo(-0.027, -0.305).lineTo(0.512, -0.189).lineTo(0.079, -0.49).lineTo(-0.22, -0.696).lineTo(-0.789, -0.825).lineTo(0.789, 1.256).close().extrude(1.45)
result = resu... | 2 | 35 | 0.798848 |
train_9f6c58299df92ba2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.851, -0.155, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.165, 0.352).lineTo(-0.284, 0.266).lineTo(0.165, -0.352).lineTo(0.284, -0.266).lineTo(-0.165, 0.352).close().sweep(cq.Workplane('XY').spline([(0.345, -0.155), (0.372, 0.044), (0.236, 0... | 2 | 11 | 0.091694 |
train_53f475ac73a5a5ea | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.082, -0.673, -0.078), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.204, 0.015).threePointArc((0, 0.205), (-0.204, 0.015)).lineTo(-0.204, -0.015).threePointArc((0, -0.205), (0.204, -0.015)).lineTo(0.204, 0.015).close().sweep(cq.Workplane('YZ').sp... | 3 | 16 | 0.290808 |
train_f78149db13c6d462 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.271, -0.418, -0.302), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.698, 0.042).lineTo(-0.698, 0.499).lineTo(0.698, 0.499).lineTo(0.698, 0.042).lineTo(-0.698, 0.042).close().extrude(0.654)
result = result.edges().fillet(0.053)
result = result.cu... | 34 | 148 | 0.282881 |
train_a9058870c3f1fc12 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.189, 0.477, 0.153), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.349, -0.523).lineTo(-0.095, -0.523).lineTo(-0.095, 0.164).lineTo(0.264, 0.248).lineTo(0.264, 0.301).threePointArc((0.349, 0.385), (0.264, 0.47)).lineTo(0.264, 0.523).threePointArc... | 5 | 152 | 0.138095 |
train_30a52d529f7056b6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.215, 0, -0.557), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.57, 1.218).extrude(1.299)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.778, 0.114, -0.232), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.444, 0.242).extrude(0.449))
result = resul... | 12 | 100 | 1.956625 |
train_72f2c30167f3827d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.046, -1, -0.112), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.186, 0.148).lineTo(-0.186, -0.062).lineTo(0.186, -0.062).lineTo(0.186, 0.163).lineTo(0.2, 0.163).lineTo(0.2, -0.163).lineTo(-0.2, -0.163).lineTo(-0.2, 0.163).lineTo(-0.186, 0.163).... | 7 | 62 | 0.09389 |
train_82acba1f37515ecc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.019, 0.368, 0.16), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.147, 0.116).lineTo(0.147, -0.06).lineTo(-0.028, -0.06).lineTo(-0.028, -0.069).lineTo(0.02, -0.069).lineTo(0.02, -0.116).lineTo(-0.069, -0.116).lineTo(-0.069, -0.069).lineTo(-0.064, ... | 4 | 37 | 0.047853 |
train_a0cf8702fae70c37 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.265, 0.163, -0.158), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.32, 0.346).extrude(0.316)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.287, 0.65, -0.056), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.041, 0.7).extrude(0.046))
result = res... | 5 | 112 | 0.03993 |
train_eacc916ac50de25f | 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.531, 1.703).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.255, 0.331, -0.555), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.173).extrude(0.34))
result = result.cut(cq.Workplane(... | 7 | 49 | 4.969027 |
train_5c4248974d589ab5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.298, -0.632, -0.632), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.298, 1.272).lineTo(1.298, 0.457).threePointArc((-0.014, 0.821), (-1.298, 1.272)).lineTo(1.298, 1.272).close().revolve(angleDegrees=90, axisStart=(0, 0), axisEnd=(0.5, 0))
result ... | 10 | 58 | 1.296385 |
train_4a2e50e5cb8b704e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.61, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.818, 0.736).extrude(0.678)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.148, -0.351, -0.57), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.042, 1.252).extrude(0.032))
result = result.un... | 4 | 15 | 0.418885 |
train_83278d4488e1810e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.027, -0.204, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.873, 0.832).threePointArc((0.886, 1.053), (0.664, 1.068)).lineTo(0.547, 0.965).lineTo(0.229, 0.683).threePointArc((-0.721, 0.635), (-0.886, -0.302)).threePointArc((-0.797, -0.432), (-... | 6 | 47 | 3.937809 |
train_48e13427979c8122 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, -0.001, -0.106), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.394, 0.819).threePointArc((-0.31, 0.111), (0.394, 0.217)).threePointArc((0.291, 0.9), (-0.394, 0.819)).close().revolve(angleDegrees=270, axisStart=(0, 0), axisEnd=(0.301, 0))
re... | 10 | 27 | 2.041831 |
train_266a1e2e02b3f1c9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.147, 0.09, -0.511), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.984, 0.791).extrude(0.672)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.519, 0.137, -0.184), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.254, 0.32).extrude(0.119))
result = resul... | 19 | 97 | 0.739183 |
train_dc80294faae60bab | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.249), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.092, 1).lineTo(0.092, 0.175).lineTo(0.406, 0.175).lineTo(0.406, -1).lineTo(-0.406, -1).lineTo(-0.406, 1).lineTo(0.092, 1).close().workplane(offset=0.125).moveTo(0.064, 0.693).lineTo(0.064,... | 3 | 21 | 0.146575 |
train_42dc3ed69f7affb5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.427, 0.35, -0.064), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.422, -0.573).lineTo(-0.422, 1.114).lineTo(0.422, 1.114).lineTo(0.422, -0.573).lineTo(-0.422, -0.573).close().extrude(0.889)
result = result.edges().chamfer(0.119)
result = result.... | 11 | 94 | 0.48544 |
train_562e8026e8c1d0de | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.08, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.793, 0.377).lineTo(-0.793, -0.019).lineTo(-0.331, -0.019).lineTo(-0.331, -0.217).lineTo(0.331, -0.217).lineTo(0.331, -0.019).lineTo(0.396, -0.019).threePointArc((0.561, 0.146), (0.727, -0... | 8 | 49 | 0.94298 |
train_93b8598cf0743d77 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.791, 0.597, 0.436), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.489, 0.314).lineTo(0.325, 0.597).lineTo(0.163, 0.879).lineTo(0, 1.161).lineTo(-0.489, 0.879).lineTo(-0.163, 0.879).lineTo(-0.325, 0.597).lineTo(-0.163, 0.314).lineTo(-0.489, 0.314)... | 18 | 64 | 1.361503 |
train_94d7252c6a65e190 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.005, 0.944, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.466).workplane(offset=0.363).circle(0.844).workplane(offset=0.372).circle(0.331).workplane(offset=0.354).circle(0.832).workplane(offset=0.37).circle(0.688).loft()
result = result.edge... | 6 | 25 | 2.090128 |
train_6e49a78d3c34e1c1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1.133, -0.504, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.291, 1.133).lineTo(-0.291, 1.133).lineTo(-0.582, 0.629).lineTo(-0.374, 0.268).lineTo(-0.291, 0.124).lineTo(0.291, 0.124).lineTo(0.374, 0.268).lineTo(0.582, 0.629).lineTo(0.291, 1.133)... | 4 | 36 | 1.325385 |
train_10c06f7418b3ffec | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.048, 0.032, -0.14), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.673, 1.385).extrude(0.601)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.891, -0.393, 0.184), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.218, 0.088).extrude(0.029))
result = r... | 6 | 33 | 1.397394 |
train_66c79d82a734dbaf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.303, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.4, -0.303).lineTo(0.1, -0.303).lineTo(0.4, -0.003).lineTo(0.4, 0.397).lineTo(0.1, 0.697).lineTo(-0.4, 0.697).lineTo(-0.4, -0.303).close().revolve(angleDegrees=360, axisStart=(-0.4, -0.303... | 3 | 25 | 2.010495 |
train_5ac4b586e2b9d992 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.383, 0.001, -0.528), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.5, -0.619).lineTo(0.5, -0.619).lineTo(0.5, 0.21).threePointArc((0.516, 0.326), (0.562, 0.432)).lineTo(0.612, 0.515).threePointArc((0.616, 0.548), (0.597, 0.574)).lineTo(0.53, 0.6... | 14 | 98 | 0.539735 |
train_c760840d7fe02f08 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.495, 0, 0.628), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.247).sweep(cq.Workplane('XZ').spline([(-0.175, -0.081), (-0.021, 0.117), (-0.171, 0.353), (-0.458, 0.247), (-0.414, -0.02)]))
result = result.union(cq.Workplane(cq.Plane(origin=(0.755... | 3 | 15 | 0.557554 |
train_d158b25eb54300ac | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.187, 0.386, -0.018), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.145, -0.096).lineTo(-0.145, 0.497).lineTo(0.145, 0.497).lineTo(0.145, -0.096).lineTo(-0.145, -0.096).close().extrude(0.527)
result = result.edges().fillet(0.068)
result = result.... | 10 | 79 | 0.241067 |
train_29ebc021ac226b27 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.465, -0.015), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.013, 1.276).threePointArc((0.251, 1.191), (0.528, 1.178)).lineTo(0.649, -0.305).threePointArc((-0.016, -0.272), (-0.649, -0.068)).lineTo(-0.013, 1.276).close().extrude(2)
result = r... | 11 | 58 | 2.638935 |
train_7dec6380b076914b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.189, 0, -0.283), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, -0.936).lineTo(0.197, -0.342).lineTo(0.811, -0.468).lineTo(0.395, 0).lineTo(0.811, 0.468).lineTo(0.197, 0.342).lineTo(0, 0.936).lineTo(-0.197, 0.342).lineTo(-0.811, 0.468).lineTo(-0.3... | 9 | 61 | 0.336974 |
train_0e475fb47efd6970 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.589, 0.032, -0.324), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.317, 0.464).extrude(0.472)
result = result.union(cq.Workplane(cq.Plane(origin=(0.274, 0.032, -0.214), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.161).extrude(0.251))
result = result... | 8 | 144 | 0.162025 |
train_9ed385c190c7c8ab | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.003, 0.687, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.111, 0.687).lineTo(0.111, 0.687).lineTo(0.111, -0.313).lineTo(-0.111, -0.313).lineTo(-0.111, 0.687).close().revolve(angleDegrees=360, axisStart=(-0.111, 0.687), axisEnd=(0.111, 0.687))... | 28 | 118 | 0.412211 |
train_35b5c07284ffd3eb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.414, 0.116, 0.022), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.259, -0.092).threePointArc((-0.259, 0.116), (0.259, 0.324)).threePointArc((0.246, 0.116), (0.259, -0.092)).close().extrude(1.414)
result = result.edges().fillet(0.078)
result = res... | 26 | 109 | 0.226365 |
train_e0eead57ffa60bdf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.021, 0.515, -0.083), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.186, 0.413).lineTo(0.139, 0.278).lineTo(0.139, 0.329).lineTo(0.186, 0.31).lineTo(0.186, 0.098).lineTo(0.139, 0.098).lineTo(0.139, -0.083).lineTo(-0.186, -0.218).lineTo(-0.186, 0.4... | 26 | 146 | 0.229157 |
train_2e5943aa5aa63dc6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.824, 0, -0.172), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.176, -0.176).lineTo(-0.168, -0.168).lineTo(0.166, -0.166).lineTo(0.166, 0.166).lineTo(0.176, 0.176).lineTo(-0.176, 0.176).lineTo(-0.176, -0.176).close().sweep(cq.Workplane('XZ').spl... | 11 | 41 | 0.055529 |
train_84f86c92c4b8a087 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.097, -0.675, -0.083), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.685).lineTo(-0.922, 0.685).threePointArc((0, 0.047), (0.922, 0.685)).lineTo(0, 0.685).close().extrude(0.903)
result = result.edges().chamfer(0.053)
result = result.union(cq.W... | 4 | 49 | 0.887815 |
train_3cee3add0d3dd665 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.285, -0.362), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.453, 1.43).extrude(0.724)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.19, 0.705, -0.085), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.296).extrude(0.268))
result = result.cut... | 10 | 41 | 1.23258 |
train_2d8bda1519b3b434 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.251, 0.406, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(1, 0.073).lineTo(-1, 0.073).lineTo(-1, 0.573).lineTo(-0.611, 0.573).lineTo(-0.611, 0.739).lineTo(1, 0.739).lineTo(1, 0.073).close().extrude(0.506)
result = result.edges().fillet(0.047)
r... | 12 | 102 | 0.628824 |
train_6d28a6dd02989f1b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.605, -0.972, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.341, 0.831).lineTo(0.341, 0.695).lineTo(0.477, 0.695).lineTo(0.477, -0.259).lineTo(0.749, -0.259).lineTo(0.749, 0.695).lineTo(0.885, 0.695).lineTo(0.885, 0.831).lineTo(0.885, -0.395).... | 13 | 223 | 4.855412 |
train_62c95c7c74b9f4c4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.288, 0, -0.46), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.425, 1.908).extrude(0.718)
result = result.faces('<Z').shell(-0.044)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.088, 0.301, 0.236), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.... | 5 | 79 | 0.494001 |
train_a8e01f3b0836521f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.226, 0.113, -0.468), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.085, 0.273).lineTo(0.127, 0.255).lineTo(0.127, 0.232).lineTo(0.122, 0.178).lineTo(-0.089, 0.197).lineTo(-0.074, 0.219).lineTo(-0.089, 0.22).lineTo(-0.12, 0.223).lineTo(-0.127, 0.... | 7 | 33 | 0.050587 |
train_8f8a53d08d924b44 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.212, 0, -0.103), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.797).lineTo(-0.331, 0.606).lineTo(-0.331, -0.102).lineTo(-0.263, -0.063).lineTo(-0.263, -0.25).lineTo(-0.331, -0.288).lineTo(-0.331, -0.627).lineTo(-0.263, -0.667).lineTo(-0.263, -... | 4 | 31 | 1.317406 |
train_0f3966deb38e7860 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.056, 0.041, 0.288), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.889, 0.959).lineTo(-0.889, -0.095).lineTo(-0.16, -0.095).lineTo(-0.16, -0.959).lineTo(0.072, -0.959).lineTo(0.072, -0.095).lineTo(0.889, -0.095).lineTo(0.889, 0.11).lineTo(-0.16, ... | 4 | 20 | 0.683759 |
train_e0d7745ac38ab786 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.296, -0.5), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.5, -0.071).lineTo(0.5, -0.104).lineTo(-0.5, -0.104).lineTo(-0.5, 0.696).lineTo(0, 0.696).lineTo(0, -0.071).lineTo(0.5, -0.071).close().revolve(angleDegrees=360, axisStart=(0.5, -0.071)... | 18 | 56 | 1.516689 |
train_54357d7d250ca9fc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.242, -0.589, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.887, -0.298).lineTo(0.887, 0.884).threePointArc((0.714, 1.303), (0.296, 1.477)).lineTo(-0.887, 1.477).lineTo(-0.887, -0.298).lineTo(0.887, -0.298).close().workplane(offset=0.472).move... | 10 | 35 | 3.941987 |
train_82085633c4f225fa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.159, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.855, 0.009).lineTo(1, 0.009).lineTo(1, 0.133).lineTo(-1, 0.133).lineTo(-1, 0.009).lineTo(-0.855, 0.009).close().revolve(angleDegrees=360, axisStart=(0, 0), axisEnd=(0.064, 0))
result = re... | 7 | 102 | 0.129379 |
train_cb5b3b0bb035288b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.591, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.853, 0.684).lineTo(0.185, 0.684).lineTo(0.185, 1.147).lineTo(-0.853, 1.147).lineTo(-0.853, 0.657).threePointArc((-0.596, 0.373), (-0.775, 0.035)).lineTo(-0.07, 0.035).lineTo(0.037, 0.137)... | 4 | 110 | 2.604272 |
train_e1778a47a05294e3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.342, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.453, -0.111).lineTo(-0.952, -0.111).lineTo(-0.952, 0.794).lineTo(0.952, 0.794).lineTo(0.952, -0.111).lineTo(0.453, -0.111).close().workplane(offset=0.349).moveTo(0.418, -0.076).lineTo(-0.8... | 14 | 58 | 0.854172 |
train_b7aa1d6009a51f64 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.378, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.093, 0.184).lineTo(-0.127, 0.151).lineTo(0.184, -0.161).lineTo(0.161, -0.184).lineTo(-0.151, 0.127).lineTo(-0.184, 0.093).lineTo(-0.184, 0.184).lineTo(-0.093, 0.184).close().sweep(cq.Wo... | 2 | 15 | 0.016634 |
train_cd5f1d5135c23703 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.178, 0.275, 0.384), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.536, -0.224).threePointArc((-0.569, -0.21), (-0.582, -0.177)).lineTo(-0.582, 0.761).threePointArc((-0.571, 0.792), (-0.542, 0.808)).threePointArc((-0.272, 0.838), (0, 0.848)).thre... | 16 | 70 | 0.418099 |
train_c734fff06504f392 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.025, -0.213, 0.048), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, 0.294).lineTo(0, 0.312).lineTo(-0.199, 0.312).lineTo(-0.199, -0.312).lineTo(0.199, -0.312).lineTo(0.199, 0).lineTo(0.181, 0).lineTo(0.181, -0.294).lineTo(0, 0).lineTo(0, 0.294).c... | 19 | 233 | 0.055435 |
train_15e069c88b3bad79 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1, -0.173), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.119, 0.205).lineTo(-0.178, 0.103).lineTo(-0.237, 0).lineTo(-0.178, -0.103).lineTo(-0.119, -0.205).lineTo(0.119, -0.205).lineTo(0.178, -0.103).lineTo(0.237, 0).lineTo(0.178, 0.103).lineT... | 4 | 30 | 0.176034 |
train_cac3837f3d4887e7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.295, -0.483, -0.038), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.076, 0.616).lineTo(-0.076, 0.426).lineTo(-0.266, 0.426).lineTo(-0.266, -0.298).lineTo(0.266, -0.298).lineTo(0.266, 0.616).lineTo(-0.076, 0.616).close().extrude(0.857)
result = r... | 32 | 166 | 0.378421 |
train_c2b5424eafed1dc4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.471, -0.076), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.386, 1.059).extrude(0.122)
result = result.union(cq.Workplane(cq.Plane(origin=(0.041, -0.471, 0.045), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.288).extrude(0.019))
result = result.un... | 14 | 87 | 0.202684 |
train_e7e0c5ad9dd0e74f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.07, -0.028, -0.596), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.054, 0.038).lineTo(-0.027, 0.011).lineTo(0.027, 0.011).lineTo(0.054, -0.016).lineTo(0.054, 0.038).lineTo(-0.054, 0.038).close().extrude(0.054)
result = result.edges().fillet(0.00... | 27 | 354 | 0.0069 |
train_ee3c6d88941405a6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.277), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.386).extrude(0.419)
result = result.union(cq.Workplane(cq.Plane(origin=(0.1, 0.069, 0.14), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.624).extrude(0.062))
result = result.union(cq.Workpl... | 5 | 27 | 1.217244 |
train_b94226d0f5a7b4bd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.058), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(1.227).workplane(offset=0.024).circle(1.078).workplane(offset=0.02).circle(0.93).workplane(offset=0.023).circle(0.781).workplane(offset=0.021).circle(0.633).loft()
result = result.edges().ch... | 28 | 101 | 0.098972 |
train_09d8720ff386c50d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.278, 0.492, -0.26), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.24, -0.126).threePointArc((-0.22, -0.031), (-0.165, 0.049)).threePointArc((0.004, 0.117), (0.172, 0.049)).threePointArc((0.24, -0.068), (0.234, -0.203)).threePointArc((0.004, 0.71... | 10 | 51 | 0.510513 |
train_bd6006897434a240 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.124, 0.171, -0.606), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.201, 0.226).threePointArc((-0.192, 0.2), (-0.181, 0.175)).threePointArc((-0.157, 0.14), (-0.127, 0.111)).threePointArc((-0.101, 0.094), (-0.072, 0.08)).lineTo(-0.072, 0.175).line... | 8 | 116 | 0.057528 |
train_c3707ebf1e466a91 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.232, -0.771, -0.477), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.768, 0.089).lineTo(-0.768, 0.834).threePointArc((-0.699, 0.998), (-0.535, 1.066)).lineTo(-0.093, 1.066).threePointArc((0, 1.159), (0.093, 1.066)).lineTo(0.535, 1.066).threePointA... | 15 | 115 | 0.73951 |
train_7fdaaf068aed4057 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.143, -0.52), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.279, 1.714).extrude(1.041)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.141, -0.849, -0.231), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.505, 0.302).extrude(0.426))
result = resu... | 5 | 20 | 2.132976 |
train_b53123649c897107 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.7, 0.007, 0.503), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.169).transformed(offset=(0.16, 0.064, 0.027), rotate=(20, 0, 0)).circle(0.359).transformed(offset=(0.321, 0.127, 0.259), rotate=(20, 0, 0)).circle(0.16).transformed(offset=(0.481, 0... | 3 | 8 | 0.104336 |
train_dc02fc4672850ea0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.333, -1.671, 0.333), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.333, 2.339).threePointArc((0, 2.671), (0.333, 2.339)).lineTo(0.333, 0.671).lineTo(0.111, 0.671).lineTo(-0.111, 0.671).lineTo(-0.333, 0.671).lineTo(-0.333, 2.339).close().revolve(... | 4 | 17 | 1.148776 |
train_b155f1b1cd763fb8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.213, 0.215), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.213).lineTo(0.785, 0.213).lineTo(0.785, 0.344).lineTo(0.039, 0.344).lineTo(0.039, 0.475).lineTo(-0.039, 0.475).lineTo(-0.039, 0.344).lineTo(-0.785, 0.344).lineTo(-0.785, 0.213).lin... | 6 | 44 | 0.146176 |
train_aec8a7ee18d66f4b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.239, -0.488), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.676, 1.523).extrude(0.977)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.123, 0.345, 0.169), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.364, 1.827).extrude(0.104))
result = result.c... | 16 | 108 | 1.562186 |
train_fb057d03b0081223 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.453), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.099, 0.107).lineTo(0.099, 0.379).threePointArc((0.172, 0.554), (0.348, 0.628)).lineTo(0.397, 0.628).lineTo(0.397, 0.553).lineTo(0.795, 0.553).lineTo(1.191, 0.553).lineTo(1.191, 1).lineTo(0... | 15 | 203 | 1.039856 |
train_078e968a2c444410 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.029), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.97).extrude(0.048)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.8 + 0.2, -0.388 + 0.1295, 0.019), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.019, 0.07).lineTo(0.013, 0.076).lin... | 13 | 150 | 0.093357 |
train_660faf0ee8104412 | 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.348, 0.926).extrude(0.05)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.282, 0, -0.962), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.161, 0.439).extrude(0.193))
result = result.union(cq.W... | 4 | 20 | 0.110508 |
train_c21463881e9cbabc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.267, -0.288, -0.236), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.764, 0.368).threePointArc((0.744, 0.542), (0.684, 0.707)).threePointArc((-0.764, 0.368), (0.684, 0.029)).threePointArc((0.744, 0.194), (0.764, 0.368)).close().extrude(0.575)
resu... | 14 | 38 | 0.76052 |
train_ba57ddc3995c3892 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.284, -0.008, -0.374), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.432, 0.772).extrude(0.747)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.077, 0.468, -0.187), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.644, 0.219).extrude(0.247))
result ... | 16 | 83 | 0.674902 |
train_bfb3cb5567796fc2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.385, 0.397, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.489, -0.602).threePointArc((-0.489, 0.323), (0.489, 1.247)).lineTo(0.437, 1.247).lineTo(0.437, 0.554).threePointArc((0.206, 0.323), (0.437, 0.092)).lineTo(0.437, -0.602).lineTo(0.489, ... | 3 | 17 | 1.109281 |
train_4a5f47a2b48b3499 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.46), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.762, 2).extrude(0.92)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.203, -0.231, 0.221), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.251).extrude(0.246))
result = result.cut(cq.Workplan... | 5 | 65 | 2.700223 |
train_0c1d28f7b740286a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.5, 0.003, -0.013), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.5, -0.006).lineTo(0.238, 0.433).lineTo(-0.237, 0.424).lineTo(-0.518, 0.001).lineTo(-0.249, -0.45).lineTo(0.257, -0.443).close().moveTo(-0.144, -0.08).lineTo(-0.134, -0.07).lineTo(-0.... | 7 | 149 | 0.124359 |
train_83deecb72685709d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.009, 0.012, -0.408), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.009, -0.032).lineTo(0.708, 0.68).lineTo(0, 0.969).lineTo(-0.705, 0.696).lineTo(-0.991, 0.028).lineTo(-0.715, -0.689).lineTo(-0.003, -0.992).lineTo(0.695, -0.704).close().moveTo(-0... | 15 | 78 | 1.521198 |
train_de84630f258d9055 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.038, -0.25, -0.284), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.847, -0.017).lineTo(0.443, 0.756).lineTo(-0.434, 0.749).lineTo(-0.828, 0.005).lineTo(-0.455, -0.706).lineTo(0.454, -0.75).close().moveTo(-0.481, -0.269).lineTo(-0.236, -0.27).line... | 14 | 116 | 0.424915 |
train_51783f09a8491040 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.313, 0.022, -0.049), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.187, -0.188).lineTo(0.187, 0.258).lineTo(-0.001, 0.258).threePointArc((-0.02, 0.223), (-0.037, 0.188)).threePointArc((-0.094, 0.004), (-0.106, -0.188)).lineTo(-0.187, -0.188).thr... | 24 | 177 | 0.107925 |
train_fb52854cefecac35 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.031, 0.002, -0.025), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.649, 0.817).extrude(0.244)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.128, -0.477, -0.001), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.326, 0.156).extrude(0.146))
result ... | 6 | 36 | 0.811199 |
train_693da51fbcc10e76 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.788, -0.741, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.807, -0.259).lineTo(-0.807, 1.786).lineTo(0.807, 1.353).lineTo(0.807, -0.259).lineTo(-0.807, -0.259).close().extrude(1.575)
result = result.edges().fillet(0.148)
result = result.cut(... | 22 | 92 | 2.316303 |
train_11fd35f78eb240cc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.718, -0.341, -0.167), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.019, 0.019).lineTo(0.019, 0.012).lineTo(0.023, -0.001).lineTo(0.019, -0.001).lineTo(0.019, -0.019).lineTo(-0.019, -0.019).lineTo(-0.019, -0.001).lineTo(-0.02, -0.001).lineTo(-0.... | 2 | 35 | 0.034899 |
train_0ba19d4647535e48 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.461, 0.005, 0.217), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.539, 0.692).threePointArc((-0.539, 0.019), (0.515, -0.692)).lineTo(0.508, -0.677).threePointArc((-0.523, 0.018), (0.532, 0.678)).lineTo(0.539, 0.692).close().extrude(0.433)
result ... | 3 | 12 | 0.069115 |
train_7c763ccdd1ce17f1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.054, 0.351, -0.201), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.125, 0.41).lineTo(-0.125, 0.41).lineTo(-0.125, -0.41).lineTo(0.125, -0.41).lineTo(0.125, -0.253).lineTo(-0.001, -0.253).lineTo(-0.001, 0.136).lineTo(0.125, 0.136).lineTo(0.125, 0... | 12 | 155 | 0.086923 |
train_ccbc8960971d6b05 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.557, 0.773, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(1, 0.455).lineTo(-1, 0.455).lineTo(-1, 0.079).lineTo(-1, 0.904).lineTo(-0.625, 1.092).lineTo(1, 1.092).lineTo(1, 0.455).close().extrude(1.114)
result = result.edges().chamfer(0.182)
resu... | 8 | 55 | 1.132026 |
train_1425e0850ec273ee | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.011, 0.231, -0.147), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.725, 0.75).extrude(0.24)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.03, 0.202, 0.036), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.083).extrude(0.059))
result = result.cut(... | 16 | 119 | 0.254866 |
train_e4d5fded65ffddb9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.061, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.178).workplane(offset=0.207).circle(0.179).workplane(offset=0.216).circle(0.202).workplane(offset=0.242).circle(0.2).workplane(offset=0.234).circle(0.2).workplane(offset=0.197).circle(0.1... | 4 | 20 | 0.228251 |
train_5e7c6f5ce50fc9da | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.003, -0.289, -0.05), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.39, 0.09).lineTo(0, 0.09).lineTo(0, 0.257).lineTo(-0.579, 0.257).lineTo(0, 0.741).lineTo(0.579, 0.257).lineTo(0.39, 0.09).close().revolve(angleDegrees=270, axisStart=(0, 0), axisEn... | 16 | 88 | 0.339768 |
train_2725a50348dbd2c8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.826, 0.152, -0.596), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.174, 0.05).lineTo(-0.174, 0.125).lineTo(0.05, 0.125).lineTo(0.12, 0.1).lineTo(0.174, 0.05).lineTo(0.05, 0.05).lineTo(0.05, -0.1).lineTo(0.043, -0.1).threePointArc((0.048, -0.112)... | 2 | 22 | 0.028553 |
train_712a44a01790ef5c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.002, 0.707, 1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.217, -0.125).threePointArc((-0.25, 0), (-0.217, 0.125)).threePointArc((-0.125, 0.217), (0, 0.25)).lineTo(0.144, 0.25).lineTo(0.217, 0.125).threePointArc((0.25, 0), (0.217, -0.125)).thr... | 8 | 63 | 0.011015 |
train_306500e10a522397 | 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.932).workplane(offset=0.447).circle(0.88).workplane(offset=0.374).circle(0.827).workplane(offset=0.472).circle(0.775).workplane(offset=0.338).circle(0.722).loft()
result = result.faces('>Z').s... | 22 | 28 | 2.239509 |
train_b32a3ed561fb14ab | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.529, -2.222, 0.019), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.51, 1.415).threePointArc((0, 1.499), (-0.51, 1.407)).lineTo(-0.51, 2.983).threePointArc((0, 3.027), (0.51, 2.987)).lineTo(0.51, 1.415).close().revolve(angleDegrees=270, axisStart=(... | 2 | 20 | 3.278269 |
train_e263ebff22edb2dd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.061, -0.196), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.231, -0.162).threePointArc((-0.182, -0.182), (-0.162, -0.231)).lineTo(0.113, -0.231).threePointArc((0.134, -0.182), (0.182, -0.162)).lineTo(0.182, 0.113).threePointArc((0.231, 0.23... | 13 | 131 | 0.277407 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.