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_d2842acb4d162c0f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.225, -0.249, -0.161), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.291, 0.312).lineTo(-0.291, -0.088).lineTo(0.314, -0.088).lineTo(0.314, 0.312).lineTo(-0.314, 0.312).lineTo(-0.291, 0.312).close().extrude(0.54)
result = result.edges().chamfer(0... | 24 | 197 | 0.292723 |
train_2edf393f8484586c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.07, -0.357, -0.172), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.688, 0.03).lineTo(0.93, 0.273).lineTo(0.93, 0.624).lineTo(-0.93, 0.624).lineTo(-0.93, 0.273).lineTo(-0.688, 0.03).lineTo(0.688, 0.03).close().extrude(0.421)
result = result.edges(... | 9 | 111 | 0.208956 |
train_fc39c36b61e20e75 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, 0.005, -0.544), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.975, 0.001).lineTo(0.691, 0.68).lineTo(0.016, 0.995).lineTo(-0.702, 0.733).lineTo(-0.974, -0.011).lineTo(-0.729, -0.687).lineTo(0.028, -1.005).lineTo(0.737, -0.708).close().center... | 14 | 149 | 2.214622 |
train_3c5eca60620039eb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.52), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1, 0.693).lineTo(-1, -0.693).lineTo(1, -0.693).lineTo(1, 0.693).lineTo(-1, 0.693).close().extrude(0.926)
result = result.edges().chamfer(0.274)
result = result.cut(cq.Workplane(cq.Plane(orig... | 36 | 173 | 1.850433 |
train_4a5ff022a9a48403 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.579, 0.083, -0.707), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.841, 0.841).extrude(1.097)
result = result.union(cq.Workplane(cq.Plane(origin=(0.37, 0.083, -0.33), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.26, 0.394).extrude(0.344))
result = res... | 13 | 95 | 0.835756 |
train_84c233b152ce6f72 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.239, -0.185, 0.244), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.497, 0.682).extrude(0.355)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.167, -0.185, 0.35), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.193).extrude(0.142))
result = result... | 6 | 35 | 0.342835 |
train_212bed1720583e3c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.647, -0.685), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.81, 1.534).lineTo(-0.607, 1.341).lineTo(0.773, 1.341).lineTo(0.773, 1.176).lineTo(0.966, 1.379).lineTo(0.966, -0.241).lineTo(0.773, -0.038).lineTo(0.773, -0.204).lineTo(-0.773, -0.20... | 10 | 36 | 5.015584 |
train_5f26350b5d90b380 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.004, -0.003, 0.002), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.002, 0.037).lineTo(0.002, -0.997).lineTo(-0.002, -0.997).lineTo(-0.002, 1.003).lineTo(0.002, 1.003).lineTo(0.002, 0.037).close().revolve(angleDegrees=90, axisStart=(0.002, 0.037),... | 2 | 15 | 0.000437 |
train_83f0849312c4d5a9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.237, -0.626, 0.089), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.134).transformed(offset=(0.092, -0.069, 0.043), rotate=(0, 0, 60)).circle(0.265).transformed(offset=(0.184, -0.137, 0.068), rotate=(0, 10, 0)).circle(0.156).transformed(offset=(0.... | 1 | 6 | 0.04575 |
train_aac8782a4b091a80 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.164, 0.025, 0.4), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.081, -0.836).lineTo(-0.081, 1.164).lineTo(0.014, 1.164).lineTo(-0.016, 0.519).lineTo(-0.017, 0.506).lineTo(-0.048, -0.138).lineTo(0.081, -0.138).lineTo(0.081, -0.152).lineTo(-0.048,... | 16 | 46 | 0.024621 |
train_29c24ae293e78554 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.054, -0.221), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.748, 1.892).extrude(0.441)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.049, -0.187, -0.08), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.094, 2.27).extrude(0.037))
result = result.... | 6 | 23 | 1.437862 |
train_eae64c981f07649b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.106, 0.141, 0.013), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.844, 0.015).lineTo(0.586, 0.636).lineTo(-0.024, 0.859).lineTo(-0.592, 0.629).lineTo(-0.876, -0.019).lineTo(-0.609, -0.614).lineTo(0.011, -0.85).lineTo(0.644, -0.629).close().moveTo(... | 8 | 91 | 1.365981 |
train_e1a33bcd8f4c597e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.276, -0.041, -0.05), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.325, -0.865).threePointArc((0.325, 0.276), (-0.325, 1.418)).threePointArc((-0.122, 0.863), (-0.052, 0.276)).threePointArc((-0.122, -0.311), (-0.325, -0.865)).close().extrude(0.59... | 14 | 71 | 0.347118 |
train_10d721840a333956 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.575), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.391, 0.338).extrude(0.52)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, -0.061), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.308, 0.209).extrude(0.219))
result = result.union(cq.Wo... | 13 | 178 | 0.123715 |
train_56102c3288281b55 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.074, 0.019, -0.019), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.851, 0.315).extrude(0.347)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.598, 0.022, -0.328), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.123).extrude(0.325))
result = resu... | 9 | 36 | 0.259342 |
train_a85b87c1339572b0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.043), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.036).extrude(0.074)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.516, -0.302, 0.031), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.126, 0.065).extrude(0.013))
result = result.cut(c... | 8 | 21 | 0.134254 |
train_cd231853b0627ba1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.024, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.143, 0.874).extrude(1.817)
result = result.union(cq.Workplane(cq.Plane(origin=(0.306, -0.492, -0.312), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.034).extrude(0.284))
result = result.edges... | 13 | 105 | 1.378651 |
train_5a83dee5ebc73e4e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.052, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.37, 0.031).lineTo(0.37, -0.024).threePointArc((-0.004, -0.055), (-0.37, 0.031)).lineTo(-0.35, 0.031).threePointArc((-0.272, 0.059), (-0.193, 0.081)).lineTo(-0.193, 0.031).lineTo(-0.186, 0... | 7 | 38 | 0.077168 |
train_92d4027c094519a5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.166, 0.623), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.067, -0.253).threePointArc((-0.116, -0.168), (-0.214, -0.168)).lineTo(0.08, 0).lineTo(-0.214, 0.168).threePointArc((-0.116, 0.168), (-0.067, 0.253)).lineTo(-0.067, 0.378).threePointA... | 2 | 21 | 0.089805 |
train_4bd1ee7911494885 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.01, 0.025, -0.023), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.027, 0).lineTo(0.014, 0.022).lineTo(-0.013, 0.023).lineTo(-0.026, 0.001).lineTo(-0.013, -0.024).lineTo(0.013, -0.024).close().moveTo(-0.006, -0.007).lineTo(0.006, -0.007).lineTo(0.... | 8 | 65 | 0.000019 |
train_1fb82a0c739a1165 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.745, 1).lineTo(-0.745, 0.355).lineTo(0.745, 0.355).lineTo(0.745, 1).lineTo(-0.745, 1).close().revolve(angleDegrees=360, axisStart=(0, 0), axisEnd=(0.243, 0))
result = result.edges().chamfer(0... | 14 | 130 | 1.814164 |
train_6a6b79785109d28b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.388, 0.434), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(1.002, 0.993).lineTo(-1.002, 0.629).lineTo(-1.002, -0.163).lineTo(-0.822, -0.059).lineTo(1.002, 0.993).close().extrude(2)
result = result.edges().fillet(0.193)
result = result.cut(cq.Wor... | 34 | 292 | 0.639329 |
train_d12706c77719e992 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.113, 0.106, -0.032), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.581, 0.651).extrude(0.034)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.215, 0.129, 0.002), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.055).extrude(0.015))
result = resul... | 19 | 160 | 0.434758 |
train_fee7a360e09dd2a6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.09, -0.04, 0.002), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.049, 0.91).lineTo(-0.049, 0.91).lineTo(-0.049, -0.836).lineTo(0.049, -0.836).lineTo(0.049, 0.91).close().extrude(0.079)
result = result.edges().chamfer(0.001)
result = result.union(c... | 7 | 58 | 0.01366 |
train_f87e37158b07a240 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.83, 0, -0.249), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.17, 0.166).lineTo(-0.17, -0.166).lineTo(0.17, -0.166).lineTo(0.17, 0.166).lineTo(-0.17, 0.166).close().sweep(cq.Workplane('XZ').spline([(-0.83, -0.249), (-0.407, -0.082), (0.017, 0.0... | 22 | 162 | 0.089385 |
train_6ab1969c1c2c5770 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.078, 0.013, -0.228), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.071).sweep(cq.Workplane('YZ').spline([(0.088, -0.362), (0.134, -0.411), (0.184, -0.411), (0.231, -0.362), (0.231, -0.308), (0.184, -0.259), (0.134, -0.259), (0.088, -0.308)]))
res... | 6 | 37 | 0.33281 |
train_fe0eea121e0ffd99 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.758, 0.268, -0.378), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.242, 0.307).lineTo(0.242, 0.408).lineTo(-0.242, 0.281).lineTo(-0.242, -0.408).lineTo(0.242, -0.408).lineTo(0.242, 0.307).close().transformed(offset=(0.232, 0, 0.286), rotate=(30, ... | 2 | 12 | 0.090779 |
train_922a02b7d79aaba2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.064, 0.77, -0.268), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.732, 0.54).lineTo(-0.732, -0.413).lineTo(0.732, -0.413).lineTo(0.732, 0.54).lineTo(-0.732, 0.54).close().extrude(1.539)
result = result.union(cq.Workplane(cq.Plane(origin=(0.219, ... | 8 | 39 | 1.830325 |
train_5a2183a6c9eac92d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.502, 0, -0.09), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.415).workplane(offset=0.561).circle(0.389).workplane(offset=0.454).circle(0.391).loft()
result = result.edges().fillet(0.203)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.005... | 15 | 300 | 0.817593 |
train_e2f0c10fcede99bd | 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.441, 1.927).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.158, 0.814, -0.33), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.837, 0.316).extrude(1.13))
result = result.cut(cq.Workpl... | 11 | 170 | 4.194507 |
train_c887da27b8269bf1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.468, 0.207, -0.343), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.266, 0.015).lineTo(0.266, 0.399).lineTo(-0.266, 0.399).lineTo(-0.266, 0.144).lineTo(-0.174, 0.047).lineTo(-0.145, 0.015).lineTo(0.266, 0.015).close().revolve(angleDegrees=360, axi... | 7 | 35 | 0.345657 |
train_8ea0add163f524ec | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.089, -0.053, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.006).lineTo(-1, 0.1).lineTo(1, 0.1).lineTo(0.979, 0.006).lineTo(-1, 0.006).close().workplane(offset=0.033).moveTo(-0.813, 0.014).lineTo(-0.813, 0.091).lineTo(0.813, 0.091).lineTo(... | 8 | 53 | 0.003884 |
train_e002c7ede6c0cd51 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.392, 0.008, -0.738), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.156, 0.682).threePointArc((0.231, 0.651), (0.261, 0.577)).lineTo(0.262, -0.561).threePointArc((0.231, -0.635), (0.156, -0.666)).lineTo(-0.156, -0.666).threePointArc((-0.231, -0.63... | 11 | 79 | 0.402942 |
train_7d8691fef878cffe | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.447, -0.263), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1, 0.317).lineTo(-1, 0.028).lineTo(1, 0.028).lineTo(1, 0.664).lineTo(0.542, 0.664).lineTo(0.253, 0.808).lineTo(-0.051, 0.808).threePointArc((-0.229, 0.866), (-0.407, 0.808)).lineTo(-0.... | 11 | 110 | 0.70593 |
train_50f89a99d0396732 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.564, -0.142, 0.049), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.383, -0.016).lineTo(0.383, 0.751).lineTo(0.316, 0.751).lineTo(0, 0.436).lineTo(0.068, 0.368).lineTo(0, 0.3).lineTo(-0.068, 0.368).lineTo(-0.383, 0.684).lineTo(-0.383, -0.016).line... | 25 | 111 | 0.441267 |
train_eca482525f1b86b8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.155, -0.717, 0.057), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.245, 0.982).threePointArc((-0.603, 0.624), (-0.735, 0.134)).threePointArc((-0.603, -0.356), (-0.245, -0.714)).threePointArc((0.245, -0.846), (0.735, -0.714)).lineTo(0.245, 0.134).... | 3 | 23 | 1.916866 |
train_939faf8734ae9585 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.592, 0.528, 0.501), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.501, 0.74).lineTo(-0.501, 0.597).lineTo(0.358, 0.597).lineTo(0.358, 0.151).lineTo(0.501, 0.151).lineTo(0.501, 0.74).lineTo(-0.501, 0.74).close().revolve(angleDegrees=180, axisStar... | 9 | 81 | 0.843606 |
train_4beb6b0233d9bce8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.941, -0.054, 0.308), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.087, 0.119).lineTo(0.087, 0.108).threePointArc((0.063, 0.101), (0.087, 0.094)).lineTo(0.087, -0.119).lineTo(-0.087, -0.119).lineTo(-0.087, 0.094).threePointArc((-0.063, 0.101), (... | 6 | 35 | 2.706665 |
train_553670466c720d91 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.118, 0.288, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(1.16, 0.03).threePointArc((0, 0.547), (-1.16, 0.03)).lineTo(1.16, 0.03).close().extrude(0.716)
result = result.edges().chamfer(0.222)
result = result.faces('>Z').shell(-0.037)
result = r... | 19 | 87 | 0.184908 |
train_8a77b115fd0ece41 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.127, -0.131), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.233).lineTo(0.028, 0.227).lineTo(0.028, 0.077).lineTo(0.733, 0.077).lineTo(1, 0.021).lineTo(-1, 0.021).lineTo(-0.733, 0.077).lineTo(-0.028, 0.077).lineTo(-0.028, 0.227).lineTo(0, 0... | 5 | 36 | 0.026277 |
train_9eae121c50a9fc75 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.526, -0.001, -0.266), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.376, 0.813).lineTo(-0.376, -0.355).lineTo(0.376, -0.355).lineTo(0.376, 0.813).lineTo(-0.376, 0.813).close().workplane(offset=0.171).moveTo(-0.325, 0.733).lineTo(-0.325, -0.275).... | 13 | 120 | 0.27969 |
train_8ec644eb4774f492 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.633, -0.59), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.982, 0.446).lineTo(0.982, 1.173).lineTo(0.545, 1.173).lineTo(0.545, 0.664).lineTo(-0.638, 0.664).threePointArc((-0.765, 0.693), (-0.891, 0.664)).lineTo(-1, 0.664).lineTo(-1, 0.578).lin... | 5 | 45 | 1.474448 |
train_76d89118441e9f48 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.008, -0.104, -0.002), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.292, 0.214).extrude(0.038)
result = result.union(cq.Workplane(cq.Plane(origin=(0.008, -0.104, 0.036), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.078).extrude(0.004))
result = resul... | 18 | 80 | 0.374281 |
train_03f21ac33c244e92 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.064, 0.02, -0.503), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.142, 0.139).lineTo(-0.142, -0.07).lineTo(0.142, -0.07).lineTo(0.142, 0.103).threePointArc((0.131, 0.128), (0.106, 0.139)).lineTo(-0.142, 0.139).close().extrude(0.463)
result = res... | 14 | 154 | 0.075057 |
train_b48bc917ad06df8d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.313, -0.845, -0.107), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.741, 1.025).lineTo(-0.645, 0.741).lineTo(-0.461, 0.192).lineTo(0.461, 0.192).lineTo(0.305, 0.741).lineTo(0.645, 0.741).lineTo(0.741, 1.025).lineTo(0.741, 1.659).lineTo(-0.741, 1... | 16 | 33 | 1.877991 |
train_0f2dce8265d2c8cc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.452, 0.531), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.227, -0.351).threePointArc((0.117, 0), (0.227, 0.351)).lineTo(-0.054, 0.548).threePointArc((-0.227, 0), (-0.054, -0.548)).lineTo(0.227, -0.351).close().sweep(cq.Workplane('YZ').spline([... | 2 | 7 | 0.236975 |
train_c555635386d15261 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.094, 0.029, 0.087), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.094, 0.076).extrude(0.14)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.094, 0.029, 0.218), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.055, 0.049).extrude(0.106))
result = re... | 12 | 117 | 0.01357 |
train_a7c07791a66a519a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.533, -0.131, -0.062), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.079, 0.141).threePointArc((-0.105, 0.121), (-0.126, 0.095)).threePointArc((-0.148, 0.016), (-0.126, -0.063)).threePointArc((-0.114, -0.071), (-0.101, -0.066)).threePointArc((-0... | 17 | 181 | 0.163815 |
train_61e028538db08866 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.455, 0, -0.526), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.775, 0.71).extrude(0.563)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.45, -0.147, -0.054), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.121, 0.115).extrude(1.054))
result = resu... | 8 | 40 | 0.634649 |
train_30f31e17f362c569 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.257, -0.004, -0.436), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.487, 0.007).lineTo(0.241, 0.404).lineTo(-0.249, 0.408).lineTo(-0.489, 0.011).lineTo(-0.245, -0.408).lineTo(0.238, -0.416).close().moveTo(-0.075, 0.056).lineTo(0.075, 0.057).lineT... | 14 | 191 | 0.649582 |
train_951b2c74fa073b5f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.424, -0.191, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.4, 0.241).lineTo(0.4, 0.203).threePointArc((0, 0.141), (-0.4, 0.203)).lineTo(-0.4, 0.241).lineTo(0.4, 0.241).close().workplane(offset=0.426).moveTo(0.997, 0.315).lineTo(0.997, 0.22).t... | 7 | 51 | 0.233714 |
train_17de63810c44cb90 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.185, -0.599, -0.211), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.639, 0.91).lineTo(-0.639, -0.795).lineTo(0.639, -0.795).lineTo(0.639, 0.91).close().extrude(1.197)
result = result.edges().chamfer(0.118)
result = result.union(cq.Workplane(cq.Pla... | 12 | 79 | 1.082285 |
train_72958ffa254aeabb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.526, -0.543, -0.728), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.826, 0.914).extrude(1.457)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.375, -0.543, -0.312), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.129, 0.464).extrude(0.624))
result ... | 6 | 33 | 1.590893 |
train_14f7f8911baacc80 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.067, -0.115, -0.104), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.223, -0.001).lineTo(-0.177, -0.099).lineTo(-0.138, -0.182).lineTo(0.223, -0.014).lineTo(0.17, 0.182).lineTo(-0.223, -0.001).close().sweep(cq.Workplane('XY').spline([(0.107, -0.... | 6 | 74 | 0.052477 |
train_1f482db0c1a72b4e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.401, -0.093, -0.691), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.236, -0.45).lineTo(-0.005, 0.45).lineTo(-0.236, 0.367).lineTo(0.236, -0.45).close().sweep(cq.Workplane('XY').spline([(0.22, -0.093), (0.201, 0.046), (0.136, 0.138), (0.052, 0.148)... | 11 | 51 | 0.539524 |
train_75864480c608deb6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.129, 0, -0.297), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.139, 2).extrude(0.456)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.929 + 0.2, 0.0915, 0.273), normal=(1, 0, 0), xDir=(0, 1, 0))).moveTo(-0.047, 0.024).lineTo(-0.047, -0.024).... | 46 | 297 | 0.75285 |
train_daa5ef1eed3b9cfc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.302, 0.115, -0.705), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.396, 1.17).extrude(1.41)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.405, 0.679, -0.023), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.166, 0.003).lineTo(-0.166, 0.166).... | 7 | 31 | 2.371532 |
train_f3239c6631de8955 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0, -0.077), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.082, 0.332).threePointArc((0.26, 0.215), (0.329, 0.014)).threePointArc((0, -0.315), (-0.329, 0.014)).threePointArc((-0.26, 0.215), (-0.082, 0.332)).lineTo(-0.082, 0.439).lineTo(-0.082, 0... | 3 | 22 | 0.608593 |
train_f615f8aabfbd77f2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.909, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.997).workplane(offset=0.337).circle(0.991).workplane(offset=0.366).circle(0.918).workplane(offset=0.302).circle(0.902).workplane(offset=0.402).circle(1.008).workplane(offset=0.409).circle(... | 12 | 25 | 2.873698 |
train_81f7071aa22bfa13 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.707), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.097).extrude(1.235)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.009, 0.09, -0.713), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.198).extrude(0.264))
result = result.edges().chamfe... | 33 | 268 | 1.869705 |
train_cecab93ec869938a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.008, 0, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1.008, -0.466).lineTo(1.008, 0.466).lineTo(-1.008, 0.466).lineTo(-1.008, -0.466).lineTo(1.008, -0.466).close().revolve(angleDegrees=90, axisStart=(1.008, -0.466), axisEnd=(1.008, 0.466))
re... | 29 | 315 | 1.451933 |
train_76ba7abeff630feb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.008, 0.305, 0.047), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.719, -0.015).lineTo(0.503, 0.489).lineTo(0.006, 0.695).lineTo(-0.518, 0.496).lineTo(-0.703, 0.008).lineTo(-0.513, -0.488).lineTo(0.001, -0.731).lineTo(0.51, -0.498).close().moveTo(... | 16 | 176 | 0.233446 |
train_0ecd0e82ecb0be87 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.404), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.287, 2).extrude(0.555)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.02, 0.395, 0.136), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.632, 0.744).extrude(0.268))
result = result.cut(cq.... | 19 | 130 | 1.299775 |
train_37e339dd60f1bb7a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.213, -0.69, -0.864), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.443, 0.346).extrude(0.679)
result = result.union(cq.Workplane(cq.Plane(origin=(0.229, -0.774, -0.237), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.026).extrude(1.101))
result = resul... | 8 | 77 | 0.355559 |
train_26e19acdee5ac204 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.57, -0.298, -0.161), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.242, 0.491).threePointArc((-0.403, -0.06), (0.065, -0.393)).lineTo(0.065, -0.254).threePointArc((0.403, -0.015), (0.287, 0.383)).threePointArc((0.314, 0.092), (0.065, -0.061)).th... | 21 | 227 | 0.376695 |
train_e16d0acd5ea52831 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.543, -0.915), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.781, 1.062).lineTo(0.781, 1.379).lineTo(-0.781, 1.379).lineTo(-0.781, -0.007).threePointArc((-0.558, 0.041), (-0.606, -0.182)).lineTo(-0.463, -0.182).lineTo(0.463, -0.182).lineTo(0.46... | 24 | 167 | 3.612115 |
train_b192de226b5e641b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.189), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.366).extrude(0.378)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.189, -1.489), normal=(1, 0, 0), xDir=(0, 1, 0))).circle(0.07).extrude(0.871))
result = result.cut(cq.Workplane(c... | 13 | 79 | 0.835346 |
train_5a3a0de51f1f5e37 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.013, -0.058, -0.182), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.179, -0.893).lineTo(0.179, -0.942).lineTo(-0.179, -0.942).lineTo(-0.179, 1.058).lineTo(0.179, 1.058).lineTo(0.179, -0.893).close().extrude(0.364)
result = result.edges().chamfer(... | 11 | 211 | 0.252272 |
train_827f9de56c5188d1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.004, -0.143, -0.983), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.492, 1.492).extrude(1.605)
result = result.faces('<X').shell(-0.092)
result = result.union(cq.Workplane(cq.Plane(origin=(0.119, 0.075, 0.607), normal=(0, 0, 1), xDir=(1, 0, 0))).re... | 24 | 139 | 3.487359 |
train_0d0903299057cd17 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.118, -0.529, -0.218), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.782, 0.73).lineTo(-0.782, -0.495).lineTo(0.782, -0.495).lineTo(0.782, 0.73).lineTo(-0.782, 0.73).close().extrude(1.122)
result = result.edges().chamfer(0.071)
result = result.un... | 16 | 122 | 2.391132 |
train_8c47a89eac0aa13a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.282, -0.256, 0.068), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.932, -0.278).lineTo(-0.932, 0.218).lineTo(-0.751, 0.218).lineTo(-0.751, 0.278).lineTo(0.871, 0.278).lineTo(0.871, 0.218).lineTo(0.932, 0.218).lineTo(0.932, -0.278).lineTo(-0.932,... | 8 | 31 | 0.874728 |
train_35d93b0e1b48b365 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.238, 0, -0.124), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.63).moveTo(-0.116, 0.172).lineTo(-0.116, -0.172).lineTo(-0.021, -0.031).lineTo(0, -0.061).lineTo(-0.075, -0.172).lineTo(0.116, -0.172).lineTo(0.021, -0.031).lineTo(0, 0).lineTo(0.116,... | 11 | 126 | 0.265741 |
train_5d01e27c7ded7e49 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.706, 0, 0.427), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.294, 0.085).lineTo(0.098, 0.085).lineTo(0, 0.255).lineTo(-0.294, 0.085).lineTo(-0.196, -0.085).lineTo(-0.294, -0.255).lineTo(0.294, -0.255).lineTo(0.196, -0.085).lineTo(0.294, 0.085).cl... | 4 | 22 | 0.054592 |
train_1151863ea6b5ad73 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.315, 0, -0.279), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.37, 0.74).extrude(0.558)
result = result.union(cq.Workplane(cq.Plane(origin=(0.663, -0.119, -0.021), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.674, 0.353).extrude(0.244))
result = resul... | 13 | 46 | 0.535281 |
train_9500ba4db361962e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, 0.009, -0.351), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.208, 0.98).lineTo(0.201, 0.991).lineTo(0.203, 0.217).lineTo(0.876, 0.204).lineTo(0.913, -0.21).lineTo(0.208, -0.18).lineTo(0.168, -1.009).lineTo(-0.203, -0.958).lineTo(-0.209, -0... | 13 | 196 | 0.47864 |
train_160bdfbab79042ce | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.213, -0.323, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(1, 0.372).threePointArc((0.53, 0.284), (0.124, 0.032)).threePointArc((0, 0.351), (-0.124, 0.032)).threePointArc((-0.53, 0.284), (-1, 0.372)).lineTo(1, 0.372).close().extrude(0.646)
resu... | 8 | 39 | 0.070998 |
train_f37a27970a44b02b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, 1, 0.003), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.399).workplane(offset=1.063).circle(0.483).workplane(offset=0.937).circle(0.456).loft()
result = result.cut(cq.Workplane(cq.Plane(origin=(-3.179 + 0.16, 3.787, -2.039), normal=(1, 0, ... | 17 | 45 | 1.031688 |
train_e14e316678de6739 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.027), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.16, 1).lineTo(-0.16, 0.899).lineTo(-0.261, 0.899).lineTo(-0.261, 0.267).lineTo(-0.16, 0.267).lineTo(-0.16, 0.166).lineTo(0.16, 0.166).lineTo(0.16, 0.267).lineTo(0.261, 0.267).lineTo(0.261... | 12 | 59 | 1.062671 |
train_d8a7beaf7deaf6e6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.38, -0.602, -0.013), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.595, 0.148).lineTo(0.595, 0.822).lineTo(-0.595, 0.822).lineTo(-0.595, 0.148).lineTo(0.595, 0.148).close().workplane(offset=0.121).moveTo(0.503, 0.2).lineTo(0.503, 0.77).lineTo(-0.... | 10 | 66 | 0.503852 |
train_87af9098621f81c8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.471, -0.542), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.237, 1.058).extrude(1.084)
result = result.union(result.mirror('XZ', basePointVector=(0, 0, -0.542)))
result = result.edges().fillet(0.105)
| 3 | 26 | 2.642473 |
train_ff4f705959cf300e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.153, 0.17, 0.031), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.142, -0.11).lineTo(-0.142, -0.652).lineTo(0.142, -0.652).lineTo(0.142, 0.847).lineTo(-0.142, 0.847).lineTo(-0.142, -0.11).close().extrude(0.255)
result = result.edges().fillet(0.0... | 16 | 83 | 0.100742 |
train_ecc0f85ff696a54d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.734, 0.512, 0.006), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.768, 1.06).threePointArc((0.012, 1.477), (-0.759, 1.093)).threePointArc((-0.851, 0.976), (-0.954, 0.867)).threePointArc((-0.027, -0.453), (0.954, 0.828)).threePointArc((0.855, 0.94... | 7 | 30 | 4.291705 |
train_d83107def513dedb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.073, 0.612, -0.057), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.217, 0.104).lineTo(-0.217, 0.219).threePointArc((-0.208, 0.255), (-0.183, 0.282)).threePointArc((-0.153, 0.291), (-0.123, 0.281)).threePointArc((0, 0.242), (0.123, 0.281)).threeP... | 3 | 46 | 0.347395 |
train_c97f920d77936182 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.316), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.793).extrude(0.591)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.8 + 0.16, -0.717 + 0.1795, 0.275), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.087).extrude(0.144))
result = res... | 30 | 99 | 1.764581 |
train_17d04c1fe5a7d255 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.007), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1, -0.179).lineTo(1, 0.179).lineTo(-1, 0.179).lineTo(-1, -0.179).lineTo(1, -0.179).close().extrude(0.023)
result = result.edges().chamfer(0.009)
result = result.union(cq.Workplane(cq.Plane(o... | 7 | 35 | 0.015177 |
train_f47b73f6bf2f2d60 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.056, -0.009, -0.363), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.067, -0.011).lineTo(-0.067, 0.011).lineTo(-0.066, 0.011).lineTo(-0.045, -0.009).lineTo(0.067, -0.009).lineTo(0.067, -0.011).lineTo(-0.067, -0.011).close().sweep(cq.Workplane('XZ'... | 5 | 30 | 0.020134 |
train_1f55b6f457b0d723 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(1, 0.04).threePointArc((0.998, 0), (1, -0.04)).lineTo(-1, -0.04).lineTo(-1, 0.04).lineTo(1, 0.04).close().sweep(cq.Workplane('XY').spline([(-0.169, -0.121), (-0.112, -0.117), (-0.056, -0.092), (0... | 3 | 14 | 0.025998 |
train_eaa62eb40f2ff06e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.148, 0.14, -0.776), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.703, 1.104).extrude(1.086)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.097, 0.082, 0.278), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.083).extrude(0.498))
result = result.... | 15 | 69 | 1.105895 |
train_2b3febae0223232e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.599, -0.012, -0.067), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.533, -0.107).threePointArc((0.011, -0.053), (0.533, 0.107)).close().extrude(0.206)
result = result.edges().fillet(0.013)
result = result.union(cq.Workplane(cq.Plane(origin=(0.3... | 4 | 26 | 0.008744 |
train_210ff8a6eaf8fd02 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.053, -0.007, -0.381), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.69, 1.219).extrude(0.71)
result = result.union(cq.Workplane(cq.Plane(origin=(0.948, -0.05, -0.285), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.052).extrude(0.059))
result = result.... | 7 | 31 | 1.469823 |
train_73d3b1f48ba41c7f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0, -0.131), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.158, 0.046).threePointArc((0.146, 0), (0.158, -0.046)).lineTo(-0.113, -0.046).threePointArc((-0.158, 0), (-0.113, 0.046)).lineTo(0.158, 0.046).close().sweep(cq.Workplane('XZ').spline([(0... | 10 | 60 | 0.060927 |
train_deb4bab3e7df1d15 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.308, -0.009, -0.265), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.385, 0.842).extrude(0.936)
result = result.union(cq.Workplane(cq.Plane(origin=(0.01, -0.115, -0.672), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.125).extrude(0.428))
result = resu... | 12 | 81 | 0.839466 |
train_9565458e68f9acc9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.355, -0.548, 0.005), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.687, -0.645).lineTo(-0.687, 1.355).lineTo(0.534, 1.355).lineTo(0.687, -0.645).lineTo(-0.687, -0.645).close().extrude(1.096)
result = result.edges().fillet(0.116)
result = result.... | 12 | 143 | 2.67594 |
train_68006cc48f2a82c8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.18), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.173).extrude(0.36)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.18, -0.942), normal=(0, 1, 0), xDir=(1, 0, 0))).moveTo(0.012, -0.035).lineTo(0.012, 0.035).lineTo(-0.012, 0.035).l... | 12 | 60 | 0.356402 |
train_50c9aae65f602f09 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.241, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.642).workplane(offset=0.591).circle(0.689).workplane(offset=0.728).circle(0.444).workplane(offset=0.681).circle(0.241).loft()
result = result.union(cq.Workplane(cq.Plane(origin=(0.255, 0.... | 3 | 36 | 2.302691 |
train_528979d7108c413b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.395, 0.804, -0.203), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.067, 0.249).lineTo(-0.027, 0.099).lineTo(-0.073, 0.073).lineTo(-0.099, 0.027).lineTo(-0.099, -0.027).lineTo(-0.249, -0.067).lineTo(-0.182, -0.182).lineTo(-0.067, -0.249).lineTo(-... | 8 | 183 | 0.176116 |
train_13d7c06cffaa75a5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.371, -0.262, -0.356), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.371, -0.738).lineTo(-0.371, -0.711).lineTo(-0.344, -0.711).lineTo(-0.344, 0.738).lineTo(0.163, 0.738).lineTo(0.163, -0.711).lineTo(0.191, -0.711).lineTo(0.191, 0.738).lineTo(0.3... | 15 | 144 | 0.844908 |
train_a4a35252a873e70b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.001, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1.11, 0.167).threePointArc((0, 0.58), (1.11, 0.167)).lineTo(-1.11, 0.167).close().revolve(angleDegrees=360, axisStart=(0, 0), axisEnd=(0.359, 0))
result = result.edges().chamfer(0.139)
resu... | 8 | 43 | 0.46553 |
train_47073e17ae1bfe63 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.115, -0.146, 0.062), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.301, 0.338).lineTo(-0.266, 0.305).lineTo(-0.241, 0.281).lineTo(-0.099, 0.148).lineTo(-0.074, 0.124).lineTo(-0.05, 0.102).lineTo(0.332, -0.257).lineTo(0.251, -0.338).lineTo(-0.104,... | 5 | 33 | 0.165717 |
train_79b1599f858685c5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.184, 0, -0.557), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.414, 1.449).extrude(1.557)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.184, -0.367, -0.312), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.082, 0.752).extrude(1.067))
result = resu... | 15 | 184 | 2.506406 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.