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_d2b4cf3a61711687 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.212, 0.384, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.125, -0.788).lineTo(-0.125, -0.038).lineTo(-0.375, -0.038).lineTo(-0.375, 0.462).lineTo(-0.125, 0.462).lineTo(-0.125, 1.212).lineTo(0.375, 1.212).lineTo(0.375, -0.788).lineTo(-0.125, ... | 11 | 132 | 0.741863 |
train_f4735cd286509735 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1.218, 0.409, -0.091), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.859, 0.904).threePointArc((0.277, 2.201), (0.859, 0.578)).threePointArc((-0.095, 0.236), (-0.859, 0.904)).close().extrude(0.736)
result = result.edges().fillet(0.146)
result = re... | 11 | 67 | 2.050562 |
train_bc5b0cc832e6d2fd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.826, 0, 0.16), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.148, -0.034).threePointArc((-0.063, 0.052), (0.022, -0.034)).lineTo(0.041, -0.034).threePointArc((0.085, 0.011), (0.13, -0.034)).lineTo(0.148, -0.034).lineTo(0.22, -0.034).lineTo(0.22... | 4 | 53 | 0.026347 |
train_7bff1a57317d5528 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.101, 0.052, 0.194), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.304, -0.108).threePointArc((-0.077, 0.119), (-0.304, 0.346)).lineTo(0.304, 0.346).lineTo(0.304, -0.108).lineTo(-0.304, -0.108).close().workplane(offset=0.091).moveTo(-0.257, -0.0... | 14 | 87 | 0.189036 |
train_de258a98be553a6c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.01, -0.005, -0.285), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1.005, -0.851).lineTo(0.99, -0.839).lineTo(0.99, 0.826).lineTo(-1.01, 0.86).close().center(-0.323, 0).rect(0.423, 0.323).moveTo(0.668, 0.19).lineTo(0.655, -0.001).lineTo(0.623, -0.1... | 11 | 68 | 1.443987 |
train_99412c7d5cc14c1b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.221, 0.006, -0.755), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.245, 0.148).lineTo(0.082, 0.148).lineTo(0.163, 0.006).lineTo(0.245, -0.135).lineTo(0, -0.277).lineTo(0.082, -0.135).lineTo(-0.245, -0.135).lineTo(-0.245, 0.148).lineTo(-0.163, 0.0... | 11 | 120 | 0.060083 |
train_e05cbc345ecf9d0b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.813, -0.133), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.092, 0.187).lineTo(-0.015, 0.186).lineTo(-0.123, 0.186).lineTo(-0.176, 0.092).threePointArc((-0.201, -0.001), (-0.175, -0.094)).lineTo(-0.121, -0.187).lineTo(-0.013, -0.186).lineTo(0... | 11 | 52 | 0.089584 |
train_c8a4f925818b0b10 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.074, -1, -0.325), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.046, -0.034).threePointArc((0.06, -0.037), (0.074, -0.034)).threePointArc((0.089, 0), (0.06, 0.022)).lineTo(0.06, 0.037).lineTo(-0.089, 0.037).lineTo(0.046, -0.034).close().sweep(cq.... | 2 | 16 | 0.16757 |
train_b109be89d4288274 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.462, -0.649, -0.151), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.864, 0.809).lineTo(0.864, 0.809).threePointArc((0, -0.06), (-0.864, 0.809)).close().extrude(1.061)
result = result.edges().fillet(0.152)
result = result.union(cq.Workplane(cq.Pl... | 11 | 56 | 0.887076 |
train_22c5dea738862c3c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.968, 0.287, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.043, -0.086).lineTo(0, -0.086).lineTo(-0.002, -0.07).threePointArc((0.017, -0.065), (0.036, -0.071)).threePointArc((0.042, -0.078), (0.046, -0.086)).lineTo(0.04, -0.047).lineTo(0.099, ... | 1 | 24 | 0.020045 |
train_b6b8fd2d4a5a317b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.449, 0, -0.019), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.011, 0.012).threePointArc((0.015, 0.005), (0.016, -0.003)).lineTo(0.005, -0.015).lineTo(-0.011, -0.012).threePointArc((-0.015, -0.005), (-0.016, 0.003)).lineTo(-0.005, 0.015).lineTo(0... | 9 | 116 | 0.0495 |
train_cd57bc97619da0af | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.559, -0.262), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.877, 1.039).threePointArc((-1, 0.559), (0.877, 0.079)).threePointArc((1, 0.559), (0.877, 1.039)).close().extrude(0.524)
result = result.edges().fillet(0.129)
result = result.cut(cq.Wo... | 6 | 50 | 1.459969 |
train_8ceba3425c983a78 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.905, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.609, 0.143).lineTo(0.609, 1.666).lineTo(-0.609, 1.666).lineTo(-0.609, 0.143).lineTo(0.609, 0.143).close().extrude(2)
result = result.edges().chamfer(0.1)
result = result.cut(cq.Workplane(c... | 21 | 124 | 2.666908 |
train_354397a94f408688 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.021, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.737, 0.487).lineTo(-0.737, -0.446).lineTo(0.737, -0.446).lineTo(0.737, 0.487).lineTo(-0.737, 0.487).close().extrude(2)
result = result.edges().chamfer(0.096)
result = result.cut(cq.Workpl... | 10 | 106 | 2.637559 |
train_91ae832029b594e9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.245, 0.192, -0.121), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.157, 0.997).extrude(0.183)
result = result.union(cq.Workplane(cq.Plane(origin=(0.245, 0.223, 0.062), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.345).extrude(0.022))
result = result.... | 29 | 180 | 0.235167 |
train_1ca2559ad5aecd89 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.066), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.709, 2).extrude(0.101)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.115, -0.631, 0.034), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.04).extrude(0.032))
result = result.cut(cq.Work... | 9 | 66 | 0.314171 |
train_f10242324c0c74a8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.384, 0.063, -0.361), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.244, 0).threePointArc((-0.173, 0.173), (0, 0.244)).threePointArc((0.173, 0.173), (0.244, 0)).threePointArc((0.173, -0.173), (0, -0.244)).lineTo(0, 0).lineTo(-0.244, 0).close().s... | 14 | 196 | 0.219511 |
train_3f5961101b788d70 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.065, 0.566, -0.095), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.17).workplane(offset=0.204).circle(0.151).workplane(offset=0.155).circle(0.177).workplane(offset=0.177).circle(0.203).workplane(offset=0.22).circle(0.194).workplane(offset=0.185)... | 12 | 57 | 0.076978 |
train_6bd0581a869a47fb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.077, -0.002, -0.001), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.34, 0.469).extrude(0.134)
result = result.union(cq.Workplane(cq.Plane(origin=(0.106, -0.002, 0.022), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.028, 0.248).extrude(0.088))
result = ... | 23 | 94 | 0.077428 |
train_21cd6750bac5cfbc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.94, 0.82, 0.017), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(1.017, 0.629).threePointArc((0.083, 1.253), (-1.017, 1.472)).lineTo(-1.017, 0.774).threePointArc((-0.183, 0.609), (0.523, 0.136)).lineTo(1.017, 0.629).close().extrude(1.88)
result = re... | 2 | 26 | 2.578188 |
train_412e9e4d541263de | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.676, -0.033, -0.197), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.261, 0.23).extrude(0.191)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.632, 0.006, -0.011), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.024).extrude(0.208))
result = resu... | 10 | 55 | 0.030909 |
train_8001498dbca9b226 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.289), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.086, 0.071).extrude(0.096)
result = result.union(cq.Workplane(cq.Plane(origin=(0.016, -0.001, 0.38), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.004, 0.008).extrude(0.216))
result = result.unio... | 4 | 22 | 0.00073 |
train_da53bd0210735282 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.569, -0.131, -0.542), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.861, 0.92).extrude(0.742)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.569, -0.131, 0.197), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.558, 0.596).extrude(0.089))
result =... | 12 | 70 | 0.812195 |
train_67b941a3138206db | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.004, -0.004, 0.764), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1.001, -1.004).threePointArc((0.415, 0.413), (-1.001, 1.004)).lineTo(-1.001, 0.538).threePointArc((0.089, 0.085), (0.542, -1.004)).lineTo(1.001, -1.004).close().extrude(1.528)
resul... | 2 | 26 | 1.692477 |
train_aa4627eae22c842a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.832), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.948).extrude(1.207)
result = result.union(cq.Workplane(cq.Plane(origin=(0.288, -0.626, -0.041), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.619, 0.484).lineTo(-0.619, 0.747).lineTo(-0.49... | 2 | 21 | 2.307997 |
train_f206319f3ce09fe6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.716, 0.642, -0.077), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.743, 0.402).lineTo(-0.763, 0.402).lineTo(-0.763, 0.037).lineTo(0.763, 0.256).lineTo(0.763, 0.402).lineTo(-0.743, 0.402).close().revolve(angleDegrees=270, axisStart=(-0.743, 0.402... | 15 | 141 | 0.40642 |
train_9ffcce3504226328 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.302, -0.019, -0.6), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.333, 0.406).threePointArc((0.095, 0.52), (-0.168, 0.501)).lineTo(-0.501, 0.114).lineTo(-0.333, -0.368).threePointArc((-0.095, -0.482), (0.168, -0.463)).threePointArc((0.387, -0.314... | 26 | 239 | 0.638231 |
train_c167bf4276d78b9b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.329, 0.311, -0.087), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.281, -0.215).threePointArc((-0.287, -0.2), (-0.292, -0.185)).threePointArc((-0.307, -0.091), (-0.292, 0.002)).threePointArc((0, 0.215), (0.292, 0.002)).threePointArc((0.307, -0.... | 7 | 81 | 0.262432 |
train_ba6c41d1867913d3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.878, -0.686, -0.055), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.333, -0.122).lineTo(-0.262, 0.057).lineTo(0.333, 0.057).lineTo(0.251, 0.074).lineTo(0.034, 0.074).lineTo(0.034, 0.12).lineTo(0.026, 0.122).lineTo(0.018, 0.12).lineTo(0.018, 0.0... | 13 | 94 | 0.23332 |
train_bf03a6c624c2deaf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.242, -0.505, -0.841), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.485, -0.168).lineTo(0.273, 0.044).lineTo(0, 0.317).lineTo(-0.383, 0.565).lineTo(-0.273, 0.044).lineTo(-0.485, -0.168).lineTo(-0.485, 0.801).lineTo(0.485, 0.801).lineTo(0.273, 0.5... | 22 | 156 | 0.770509 |
train_86f3fffe7acd3f75 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.67, -0.506, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.67, 1.021).threePointArc((0.089, 0.622), (0.67, -0.009)).lineTo(0.67, 1.021).lineTo(-0.67, 1.021).close().revolve(angleDegrees=360, axisStart=(0.67, -0.009), axisEnd=(0.67, 1.021))
re... | 5 | 23 | 0.871817 |
train_12731fdf84c94ce9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.182, 0.323, -0.032), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.766, -0.018).lineTo(0.368, 0.648).lineTo(-0.38, 0.677).lineTo(-0.76, -0.006).lineTo(-0.396, -0.664).lineTo(0.392, -0.682).close().moveTo(-0.328, 0.162).lineTo(-0.102, 0.161).lineT... | 8 | 79 | 0.17502 |
train_872016e13433c6f6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.767, 0.299), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.202, 0.116).lineTo(-0.067, 0.116).lineTo(0, 0.233).lineTo(-0.202, 0.116).lineTo(-0.202, -0.116).lineTo(0, -0.233).lineTo(0.202, -0.116).lineTo(0.202, 0.116).close().sweep(cq.Workplane(... | 4 | 25 | 0.099331 |
train_8233e9153bdf630f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.134, 0.225, 0.133), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.047, -0.218).threePointArc((-0.119, -0.248), (-0.089, -0.176)).lineTo(-0.089, 0.206).lineTo(-0.089, 0.248).lineTo(-0.047, 0.248).lineTo(0.077, 0.248).threePointArc((0.089, 0.218),... | 40 | 324 | 0.133352 |
train_d3858efe29fd69de | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.439, -0.086), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.91, 0.248).lineTo(0.91, -0.248).lineTo(-0.91, -0.248).lineTo(0.91, 0.248).close().sweep(cq.Workplane('YZ').spline([(-0.636, -0.48), (-0.376, -0.473), (-0.116, -0.396), (0.144, -0.32),... | 2 | 6 | 0.445182 |
train_3ae30491e8797fb7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.189, 0.078), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.746, -0.811).lineTo(0.711, -0.484).lineTo(0.574, 0.811).lineTo(-0.746, -0.147).lineTo(0.428, -0.67).lineTo(0.746, -0.811).close().sweep(cq.Workplane('YZ').spline([(0.189, 0.078), (-0.0... | 2 | 15 | 0.631515 |
train_cd23a0435c635cf8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, 0.033, -0.151), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.212, 0.202).threePointArc((0.167, 0.157), (0.135, 0.101)).lineTo(-0.223, 0.101).threePointArc((-0.319, 0.145), (-0.42, 0.114)).lineTo(-0.521, 0.114).threePointArc((-0.635, 0), (-0... | 5 | 29 | 0.244508 |
train_7827b5023b8f9669 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.739, -0.047, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.513, -0.161).lineTo(-0.513, -0.366).lineTo(0.513, -0.366).lineTo(0.513, 0.366).lineTo(0.128, 0.366).lineTo(-0.513, -0.161).close().sweep(cq.Workplane('XY').moveTo(-0.561, 0.051).spl... | 9 | 33 | 0.896428 |
train_18dbd9792790db44 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.056), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.062, -0.08).lineTo(-0.062, -0.917).lineTo(0.062, -0.917).lineTo(0.062, 0.917).lineTo(-0.062, 0.917).lineTo(-0.062, -0.08).close().workplane(offset=0.057).moveTo(-0.065, -0.084).lineTo(-0.... | 9 | 30 | 0.024403 |
train_cad063b5403b79d2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.193, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, -0.34).lineTo(0.706, -0.34).threePointArc((0.185, 0.34), (-0.609, 0.017)).threePointArc((-0.682, -0.156), (-0.706, -0.34)).lineTo(-0.571, -0.34).threePointArc((-0.538, -0.151), (-0.445,... | 8 | 48 | 0.554567 |
train_24e4f67484718e48 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.594, -0.082), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.613, 0.767).lineTo(0.507, 0.05).lineTo(-0.613, 0.767).lineTo(0.613, 0.767).close().extrude(2)
result = result.edges().chamfer(0.235)
result = result.union(cq.Workplane(cq.Plane(origin... | 10 | 59 | 0.394491 |
train_faec179c8157f7af | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.211, 0.909), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.372, -0.349).lineTo(-0.216, -0.349).lineTo(-0.37, -0.349).lineTo(-0.372, 0.285).lineTo(-0.216, 0.295).lineTo(0.37, 0.349).lineTo(0.372, -0.349).close().sweep(cq.Workplane('YZ').moveTo(0... | 31 | 11 | 0.668856 |
train_2e4dd24a53211a54 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, 0.07, -0.171), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.303, -0.303).lineTo(0.096, 0.303).lineTo(-0.096, 0.303).lineTo(-0.303, -0.303).lineTo(-0.157, -0.303).lineTo(-0.084, -0.087).lineTo(0.084, -0.087).lineTo(0.157, -0.303).lineTo(0.303, -0... | 8 | 74 | 0.21556 |
train_c8a4f079a9c22388 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.963, 0.237, -0.013), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 0.908).lineTo(0.726, 0.908).lineTo(0.659, 0.829).lineTo(0.205, 0.829).lineTo(0.162, 0.821).lineTo(0.14, 0.81).lineTo(0.129, 0.796).lineTo(0.061, 0.104).lineTo(-0.012, 0.104).line... | 2 | 26 | 0.055968 |
train_518b962697310abc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.007, 0.148, -0.056), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.332, 0.067).threePointArc((-0.362, 0.036), (-0.332, 0.006)).lineTo(-0.183, 0.006).lineTo(-0.076, 0.006).threePointArc((0.016, 0.03), (0.108, 0.006)).lineTo(0.362, 0.006).lineTo(... | 24 | 301 | 0.023639 |
train_02fd18099e3beac4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.576, 0.128, 0.738), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.286, 0.636).lineTo(-0.286, -0.031).lineTo(0.214, -0.239).lineTo(0.214, -0.872).lineTo(0.286, -0.842).lineTo(0.286, -0.191).lineTo(0.214, -0.161).lineTo(-0.214, 0.017).lineTo(-0.214... | 5 | 26 | 0.025586 |
train_906ab83e993e8799 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.23), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.362, 2).extrude(0.356)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.145 + 0.029, 0, 0.126), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.016).extrude(0.105))
result = result.union(cq... | 9 | 50 | 0.240841 |
train_fdcbf66945e4560d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.021, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.44, -0.025).threePointArc((0.507, 0.042), (0.44, 0.109)).lineTo(-0.44, 0.109).threePointArc((-0.507, 0.042), (-0.44, -0.025)).lineTo(0.44, -0.025).close().extrude(1.64)
result = result.ed... | 17 | 144 | 0.209666 |
train_4515a1cf613070de | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.129, -0.079, 0.251), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.656, 0.39).extrude(0.166)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.212, -0.019, 0.415), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.066).extrude(0.062))
result = resul... | 27 | 287 | 0.210625 |
train_719685e602c5754e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.319, 0, -0.294), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.362, 0.899).extrude(0.589)
result = result.faces('>Z').shell(-0.033)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.667, -0.192, -0.07), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0... | 3 | 16 | 0.148892 |
train_0c9a2221522be422 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.02, 0, -0.376), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.168).workplane(offset=0.323).circle(0.082).workplane(offset=0.301).circle(0.169).loft()
result = result.edges().chamfer(0.117)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.0... | 8 | 55 | 0.021348 |
train_e92c774b155ecdb6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.592, -0.107), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.451, 0.817).extrude(0.229)
result = result.cut(cq.Workplane(cq.Plane(origin=(0 + 0.153 * math.cos(0.026 + 2 * math.pi * 0 / 5), -0.592 + 0.153 * math.sin(0.026 + 2 * math.pi * 0 / 5), -... | 30 | 196 | 0.643105 |
train_10857a53ce5e9a89 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.09, 0.181, 0.677), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.09, 0.347).lineTo(-0.353, 0.779).lineTo(-0.693, 0.337).lineTo(-0.91, -0.074).lineTo(-0.757, -0.444).lineTo(-0.522, -0.857).lineTo(0.81, -0.15).close().moveTo(-0.122, 0.005).lineTo(-... | 9 | 86 | 0.866509 |
train_745e18f87a0c85f6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.091, -0.048, 0.002), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 0.585).lineTo(-0.187, 0.909).lineTo(-0.563, 0.909).lineTo(-0.375, 0.585).lineTo(-0.563, 0.259).lineTo(-0.187, 0.259).lineTo(0, -0.066).lineTo(0.187, 0.259).lineTo(0.563, 0.259).... | 23 | 228 | 0.471555 |
train_c3f4fb151e6cfc27 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.604, 0.009, -0.028), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.179, 0.495).threePointArc((-0.368, 0.149), (-0.394, -0.497)).lineTo(0.076, -0.226).threePointArc((0.095, -0.279), (0.131, -0.323)).threePointArc((0.235, -0.36), (0.338, -0.323)).t... | 5 | 55 | 0.1127 |
train_d376221850c93b3c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.471, 0.455, 0.161), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.502, -0.529).lineTo(-0.502, 1.471).lineTo(0.502, 0.471).lineTo(-0.502, -0.529).close().extrude(0.68)
result = result.faces('>Z').shell(-0.028)
result = result.union(cq.Workplane(c... | 4 | 18 | 0.197583 |
train_a3a1d217c9036464 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.07, -0.038, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-1, 0.131).lineTo(-1, 0.009).lineTo(1, 0.009).lineTo(1, 0.131).lineTo(0.088, 0.131).lineTo(0.088, 0.091).lineTo(-0.045, 0.091).lineTo(-0.045, 0.131).lineTo(-1, 0.131).close().extrude(0.0... | 14 | 116 | 0.016445 |
train_bce48c2b57b09b4d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.249, 0.267, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).lineTo(1, 0.523).lineTo(1, 0.643).lineTo(1, 0.727).lineTo(-1, 0.643).lineTo(-1, 0.523).close().revolve(angleDegrees=90, axisStart=(-1, 0.523), axisEnd=(1, 0.523))
result = result.union(cq.Workp... | 9 | 39 | 0.07811 |
train_1f65a25a49175f03 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.143, 0, -0.294), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.714, 1.709).extrude(0.587)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.263, -0.463, 0.146), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.053).extrude(0.065))
result = result.cut... | 11 | 110 | 1.627972 |
train_b6a935fb37c06247 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.883, 0, -0.237), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.752).workplane(offset=0.184).circle(0.729).workplane(offset=0.189).circle(0.738).workplane(offset=0.19).circle(0.687).workplane(offset=0.235).circle(0.695).workplane(offset=0.171).cir... | 6 | 27 | 2.012019 |
train_d984774b19eb03ba | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.008, 0.011, -0.133), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.008, 0.019).lineTo(0.529, 0.846).lineTo(-0.476, 0.887).lineTo(-0.992, -0.013).lineTo(-0.5, -0.903).lineTo(0.532, -0.909).close().center(0, 0.331).rect(0.413, 0.35).moveTo(-0.463, ... | 13 | 91 | 0.366182 |
train_0342f7b1eb403a48 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.117, 0.281, 0.187), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.037, 0.489).threePointArc((-0.158, 0.473), (-0.271, 0.427)).threePointArc((-0.31, 0.418), (-0.349, 0.432)).threePointArc((-0.813, 0.198), (-0.349, -0.035)).threePointArc((-0.31, -... | 4 | 25 | 0.45923 |
train_3449cf634f076c04 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.32), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.233).extrude(0.53)
result = result.union(cq.Workplane(cq.Plane(origin=(0, -0.093 + 0.0185, 0.21), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.007, -0.013).lineTo(-0.007, -0.01).lineTo(-0.... | 8 | 93 | 0.247159 |
train_af5353b815af3f01 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.507, 0.941, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.458, -0.044).threePointArc((-0.776, 0.139), (-0.776, 0.507)).lineTo(-0.318, 1.3).threePointArc((0, 1.482), (0.318, 1.3)).lineTo(0.776, 0.507).threePointArc((0.776, 0.139), (0.458, -0.... | 3 | 19 | 3.19185 |
train_018fd1917811cb26 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.264, -0.115, -0.027), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.736, 0.02).lineTo(0.387, 0.648).lineTo(-0.387, 0.681).lineTo(-0.769, 0.021).lineTo(-0.361, -0.654).lineTo(0.383, -0.661).close().moveTo(-0.24, -0.156).lineTo(-0.21, -0.052).lineTo... | 23 | 274 | 0.379976 |
train_8083f0159462b2ac | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.68, -0.418), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.534, 0.641).extrude(0.519)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.136, 0.641, -0.302), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.276, 0.148).extrude(0.222))
result = result.c... | 33 | 157 | 0.131788 |
train_40f1ccbaaa605db7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, -0.029, 0.053), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.354, -0.352).lineTo(-0.421, -0.352).lineTo(-0.421, 0.352).lineTo(0.201, 0.352).lineTo(0.201, -0.286).lineTo(0.421, -0.286).lineTo(0.421, -0.352).lineTo(0.135, -0.352).lineTo(0.13... | 2 | 17 | 0.251493 |
train_ba234251b14510fa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.321, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.06, 0.118).threePointArc((-0.042, 0.087), (-0.018, 0.06)).threePointArc((0.036, 0.03), (0.098, 0.023)).threePointArc((0.132, 0.03), (0.165, 0.045)).threePointArc((0.21, 0.087), (0.236, 0.... | 18 | 114 | 0.207268 |
train_dd08ad78dae0d5b4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.216, -0.012, -0.378), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.347, 1.18).extrude(0.656)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.248, 0.077, -0.096), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.944, 0.647).threePointArc((-0.69, ... | 16 | 258 | 1.045978 |
train_c94f7be2964855b5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1.011, 0.004, 0.002), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.138, 0.192).lineTo(-0.217, 0.192).lineTo(-0.217, 0.011).lineTo(0.217, 0.011).lineTo(0.138, 0.192).lineTo(-0.138, 0.192).close().extrude(0.125)
result = result.edges().fillet(0.009... | 8 | 75 | 0.035888 |
train_94391d7727843eef | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.715), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.977).extrude(1.571)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.704, 0.138, -0.545), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.193, 2.372).extrude(0.17))
result = result.cut(cq.Wo... | 11 | 41 | 6.037574 |
train_b2844ff08c512436 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.085, -0.033, 0.225), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.414, 0.509).threePointArc((-0.547, -0.509), (0.547, 0.366)).threePointArc((0.485, 0.442), (0.414, 0.509)).close().sweep(cq.Workplane('XZ').spline([(-0.684, -0.48), (-0.284, -0.103... | 9 | 6 | 2.121656 |
train_76c5ef1f13dfedbe | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.19, 0.171, -0.182), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.133, 0.009).lineTo(0.818, 0.009).lineTo(0.818, 0.274).lineTo(-0.818, 0.274).lineTo(-0.818, 0.009).lineTo(0.133, 0.009).close().extrude(0.265)
result = result.union(cq.Workplane(cq.... | 20 | 251 | 0.118682 |
train_fa40cb7719595433 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.766, 1, -0.321), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.307, 1.766).lineTo(-0.307, 1.766).lineTo(-0.307, -0.234).lineTo(0.307, -0.234).lineTo(0.307, 1.766).close().revolve(angleDegrees=90, axisStart=(0.307, 1.766), axisEnd=(-0.307, 1.766))... | 4 | 18 | 2.512909 |
train_268d4213c439d76b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, 0, -0.173), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.697, 0.413).lineTo(-0.697, -0.413).lineTo(-0.001, -0.413).threePointArc((0.499, -0.128), (0.697, 0.413)).lineTo(-0.638, 0.413).lineTo(-0.697, 0.413).close().sweep(cq.Workplane('XZ').splin... | 3 | 11 | 1.189277 |
train_bb97481791c410a5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.203, -1.273, -0.964), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1.129, 1.726).lineTo(-1.129, 0.085).lineTo(1.129, 1.726).lineTo(-1.129, 1.726).close().extrude(1.928)
result = result.edges().fillet(0.195)
result = result.union(cq.Workplane(cq.Pl... | 12 | 60 | 2.725823 |
train_d53fa119ea563d27 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.195, 0.837, 0.134), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.228, 0.287).threePointArc((0.172, 0.328), (0.11, 0.359)).lineTo(-0.215, 0.359).threePointArc((-0.276, 0.328), (-0.332, 0.287)).threePointArc((-0.354, 0.266), (-0.375, 0.243)).lineTo... | 23 | 28 | 0.468154 |
train_3d05a423e6750c70 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.089, -0.334, -0.105), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.186, 0.029).lineTo(0.186, 0.029).lineTo(0.186, -0.029).lineTo(-0.186, -0.029).lineTo(-0.186, 0.029).close().transformed(offset=(0.252, 0.015, 0.065), rotate=(0, 0, 90)).moveTo(-... | 7 | 30 | 0.035679 |
train_16fdb85a1024db26 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.128, 0.119), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.29, 0.355).lineTo(0.29, -0.355).lineTo(0.119, -0.355).lineTo(-0.29, 0.355).lineTo(0.29, 0.355).close().sweep(cq.Workplane('YZ').spline([(0.56, -0.269), (0.43, -0.135), (0.173, -0.078),... | 4 | 22 | 0.882387 |
train_855e08f3f00f0bd7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.663, -1.116, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(1, 0.501).lineTo(1, 2.094).lineTo(0.849, 2.094).threePointArc((0.917, 1.477), (0.587, 0.952)).threePointArc((0, 1.375), (-0.587, 0.952)).threePointArc((-0.917, 1.477), (-0.849, 2.094)).... | 4 | 37 | 1.807919 |
train_5e9347d2dbd48046 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.011, -0.104, -0.005), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.928, 0.008).lineTo(0.672, 0.668).lineTo(0.024, 0.941).lineTo(-0.643, 0.669).lineTo(-0.929, 0.019).lineTo(-0.648, -0.62).lineTo(0, -0.896).lineTo(0.62, -0.657).close().moveTo(-0.03... | 7 | 97 | 0.739583 |
train_a1b380ee62f58f5d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.062, -0.198, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.47).workplane(offset=0.512).circle(0.473).workplane(offset=0.55).circle(0.492).loft()
result = result.edges().fillet(0.471)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.685,... | 4 | 14 | 1.116412 |
train_032c2d50516a9bd6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.075, 0, 0.5), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.5, 0.575).lineTo(-0.5, -0.425).lineTo(0.373, -0.425).threePointArc((0.463, -0.387), (0.5, -0.298)).lineTo(0.5, 0.575).lineTo(-0.5, 0.575).close().revolve(angleDegrees=270, axisStart=(-0... | 8 | 66 | 1.944916 |
train_9c8ae10bc4d5cf14 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.045, 0.706, 0.687), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.271, -0.294).threePointArc((-0.271, -0.248), (-0.225, 0.294)).lineTo(0.271, -0.294).close().sweep(cq.Workplane('YZ').spline([(0.706, 0.016), (0.459, 0.197), (0.086, 0.223), (-0.218,... | 3 | 8 | 0.154563 |
train_0b15582f1998bf71 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.299, -0.345, -0.448), normal=(-1, 0, 0), xDir=(0, 0, 1))).lineTo(-0.197, 0.016).lineTo(-0.332, 0.016).lineTo(-0.336, 0.016).lineTo(-0.336, -0.016).lineTo(-0.332, -0.016).lineTo(-0.197, -0.016).lineTo(0.341, -0.016).lineTo(0.341, -0.081).lineTo(... | 5 | 257 | 0.166156 |
train_c9cfb817434f8180 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.316, -0.588), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.027, 1.369).extrude(1.175)
result = result.union(cq.Workplane(cq.Plane(origin=(0.192, 0.658, 0.003), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.437, 0.684).extrude(0.285))
result = resul... | 10 | 56 | 1.522233 |
train_d27fae279cc93929 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.174), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.562).extrude(0.349)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.8 + 0.2665, -0.625 + 0.3125, -0.227), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.154, -0.154).lineTo(0.086, -0.08... | 7 | 78 | 0.990805 |
train_c789d93cfe0811f2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.499, -0.223, 0.237), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.27, 0.057).lineTo(0.81, 0.596).lineTo(-0.81, 0.596).lineTo(-0.81, 0.057).lineTo(0.27, 0.057).close().extrude(0.453)
result = result.edges().chamfer(0.066)
result = result.faces('>... | 7 | 65 | 0.436355 |
train_9e75d693c7b3c256 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.336, 0.198, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.693, 0.362).lineTo(-0.693, 0.183).lineTo(0.693, 0.183).lineTo(0.693, 0.362).lineTo(0.197, 0.362).threePointArc((0, 0.488), (-0.197, 0.362)).lineTo(-0.28, 0.362).lineTo(-0.693, 0.362).... | 1 | 9 | 0.075277 |
train_add342625927a224 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.686, 0, 0.215), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.104, 0.941).lineTo(-0.104, 0.941).lineTo(-0.104, 0).lineTo(-0.256, -0.679).lineTo(-0.314, -0.679).lineTo(-0.314, -0.941).lineTo(0.314, -0.941).lineTo(0.314, -0.679).lineTo(0.104, -0.67... | 2 | 21 | 0.270563 |
train_66757a0760bc178c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.713, -0.629), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.899, 1.341).lineTo(-1, 1.341).lineTo(-1, 0.084).lineTo(1, 0.084).lineTo(1, 0.597).lineTo(0.949, 0.597).lineTo(0.949, 0.86).lineTo(0.899, 0.86).lineTo(0.899, 0.185).lineTo(0.706, 0.18... | 2 | 19 | 1.895969 |
train_72d0870ac83ff4af | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.349, -0.312, 0.171), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.253, 1.155).lineTo(-0.253, -0.531).threePointArc((0, -0.278), (0.253, -0.531)).lineTo(0.253, 1.155).lineTo(-0.253, 1.155).close().workplane(offset=0.257).moveTo(-0.212, 1.02).lin... | 8 | 48 | 0.48307 |
train_9f15fe99fab00a6e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.501), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.919, 1.767).extrude(1.501)
result = result.union(cq.Workplane(cq.Plane(origin=(0 + 0.246 * math.cos(4.075 + 2 * math.pi * 0 / 4), 0 + 0.246 * math.sin(4.075 + 2 * math.pi * 0 / 4), -1), norm... | 27 | 124 | 2.16299 |
train_93d27b236cbccd68 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.364, 0.475, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(1, 0.055).lineTo(1, 0.723).lineTo(-1, 0.723).lineTo(-1, 0.055).lineTo(-0.91, 0.055).lineTo(-0.91, 0.664).lineTo(0.047, 0.664).lineTo(0.047, 0.114).lineTo(0.887, 0.114).lineTo(0.887, 0.05... | 8 | 45 | 0.511272 |
train_98a679bdbb4e2d7d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.177, -0.486), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.428, 1.646).extrude(0.699)
result = result.union(cq.Workplane(cq.Plane(origin=(0.071, -0.095, 0.211), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.285, 1.481).extrude(0.048))
result = resu... | 16 | 93 | 1.454252 |
train_65ced3edd58956c2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.121, -0.248, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.051, 0.006).lineTo(-0.087, 0.121).lineTo(-0.071, 0.144).lineTo(-0.032, 0.197).lineTo(-0.027, 0.205).lineTo(0.012, 0.099).lineTo(0.001, 0.086).lineTo(0.087, 0.084).lineTo(0.07, 0.059).... | 12 | 150 | 0.03071 |
train_fee3a46429bc9d64 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.023, 0.587), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.214).workplane(offset=0.03).circle(0.204).workplane(offset=0.042).circle(0.195).workplane(offset=0.039).circle(0.186).workplane(offset=0.032).circle(0.176).workplane(offset=0.043).circ... | 7 | 64 | 0.046422 |
train_ffab7c5ee72ff5c1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.877, -0.06, -0.264), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.501, -0.466).lineTo(-0.501, 0.586).lineTo(0.501, 0.586).lineTo(0.501, -0.466).lineTo(-0.501, -0.466).close().workplane(offset=0.528).moveTo(-0.734, -0.71).lineTo(-0.734, 0.83).li... | 11 | 136 | 2.979564 |
train_f1a9cfc2731edbc8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.592, -0.408), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.816, 0.816).extrude(0.816)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.111, 0.138, 0.077), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.051).extrude(0.219))
result = result.uni... | 14 | 37 | 0.435602 |
train_0b078b99433cce98 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.35), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.759, 0.532).lineTo(0.6, 0.32).lineTo(-1, 0.32).lineTo(-0.759, 0).lineTo(-0.6, -0.212).lineTo(0.2, -0.212).lineTo(0.2, -0.532).lineTo(0.6, 0).lineTo(1, 0.532).lineTo(0.759, 0.532).close().ex... | 13 | 50 | 0.517175 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.