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_92503f49d03fae75 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.539, -0.194, -0.022), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.158, -0.045).threePointArc((-0.06, 0.225), (0.158, 0.413)).lineTo(0.158, -0.045).lineTo(-0.158, -0.045).close().extrude(0.533)
result = result.edges().fillet(0.051)
result = res... | 9 | 69 | 0.185884 |
train_5e41fb07b8bf6e70 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.818), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.52, 2).extrude(1.636)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.372, 0.342, -0.32), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.818, 0.52).extrude(0.587))
result = result.cut(cq.Work... | 5 | 22 | 4.180378 |
train_49c6cba1b6924424 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.338, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.257, 0.04).threePointArc((-0.345, 0.251), (-0.555, 0.338)).lineTo(-0.743, 0.338).lineTo(-0.743, 0.852).lineTo(-0.555, 0.852).threePointArc((-0.345, 0.94), (-0.257, 1.15)).lineTo(-0.257, 1... | 3 | 22 | 1.611214 |
train_1b131f654c32edde | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.876, -1.069, 0.018), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.351, 0.135).lineTo(0.424, 0.666).lineTo(-0.424, 1.071).lineTo(-0.351, 0.135).close().workplane(offset=0.199).moveTo(-0.369, 0.111).lineTo(0.445, 0.669).lineTo(-0.445, 1.095).line... | 21 | 50 | 0.211532 |
train_25deb00e9c024817 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.393, 0.487), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.198, -0.373).lineTo(-0.198, 0.373).lineTo(0.186, 0.373).lineTo(0.186, 0.145).lineTo(0.125, 0.18).lineTo(-0.065, 0.073).lineTo(-0.065, -0.141).lineTo(0.046, -0.206).lineTo(0.198, -0.3... | 15 | 132 | 0.157685 |
train_6ee05198700b3dc7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.697, -0.5), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.724, 0.697).lineTo(-0.517, 0.697).lineTo(0.724, 1.382).lineTo(0.724, 1.697).lineTo(-0.724, 1.697).lineTo(-0.724, 0.697).close().revolve(angleDegrees=180, axisStart=(-0.724, 0.697), axi... | 4 | 15 | 1.632244 |
train_5a951d57a8cda0d3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.007, -0.562, -0.626), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.374, 0.007).lineTo(-0.374, 0.807).lineTo(0.374, 0.807).lineTo(0.374, -0.793).lineTo(-0.374, -0.793).lineTo(-0.374, 0.007).close().extrude(1.124)
result = result.edges().fillet(0... | 10 | 70 | 1.373306 |
train_0b5ac22732a321d2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.488, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.875, 1.288).lineTo(0.843, 1.288).lineTo(0.875, 1.319).lineTo(0.875, -0.343).lineTo(0.843, -0.343).lineTo(0.843, 0.099).lineTo(-0.875, 0.099).lineTo(-0.875, 1.288).close().workplane(offset... | 6 | 30 | 2.381263 |
train_05f1652a63bcf515 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.043, 0.082, 0.127), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.269).workplane(offset=0.122).circle(0.198).workplane(offset=0.12).circle(0.106).workplane(offset=0.095).circle(0.072).loft()
result = result.edges().fillet(0.062)
result = result.... | 18 | 84 | 0.06809 |
train_43301b2ed86d50fe | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.824, 0.278, -0.327), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.141, 0.176).threePointArc((-0.145, 0.145), (-0.176, 0.141)).lineTo(-0.176, -0.141).threePointArc((-0.145, -0.145), (-0.141, -0.176)).lineTo(0.141, -0.176).threePointArc((0.166, -... | 6 | 47 | 0.071707 |
train_2d17c4eb8bb71db0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.659, 0.346), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.682, -0.341).threePointArc((0, 0.341), (0.682, -0.341)).lineTo(0.136, -0.341).lineTo(0.136, -0.273).lineTo(0.61, -0.273).threePointArc((0, 0.273), (-0.61, -0.273)).lineTo(-0.136, -0.2... | 2 | 13 | 0.170221 |
train_431c3dad90447f82 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.4), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.265).extrude(0.652)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.944, 0.053, -0.21), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.05, -0.321).lineTo(0.05, 0.321).lineTo(-0.05, 0.32... | 8 | 39 | 1.175838 |
train_c0cd49d01d78ae6e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.494, -0.031, -0.446), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.548, 0.551).threePointArc((-0.54, 0.604), (-0.487, 0.606)).lineTo(0.531, -0.163).threePointArc((0.548, -0.191), (0.538, -0.223)).threePointArc((0.371, -0.396), (0.184, -0.546)).... | 15 | 72 | 0.711967 |
train_25bf63074487511c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.124, -0.346), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.068, -0.312).lineTo(0.068, -0.121).threePointArc((0.119, 0.002), (0.242, 0.052)).lineTo(0.278, 0.052).lineTo(0.555, 0.052).lineTo(0.555, 0).lineTo(0.831, 0).lineTo(0.831, 0.312).lineTo... | 22 | 30 | 0.382495 |
train_4f0f3fa85f5a4748 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.042, 0, 0.376), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1, 0).lineTo(-0.5, -0.867).threePointArc((0, -1), (0.5, -0.867)).threePointArc((0.867, -0.5), (1, 0)).lineTo(0.5, 0.867).threePointArc((0, 1), (-0.5, 0.867)).lineTo(-1, 0).close().extr... | 3 | 38 | 1.633315 |
train_d2ebd31a95df6eea | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.011, 0.271, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 0.035).lineTo(1, 0.035).lineTo(1, 0.098).lineTo(0.44, 0.098).lineTo(0.372, 0.165).lineTo(0.325, 0.124).lineTo(0.352, 0.098).lineTo(-0.352, 0.098).lineTo(-0.325, 0.124).lineTo(-0.372,... | 4 | 82 | 0.069514 |
train_0370a85b4006d87d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.013, 0, 0.091), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.061, 0.984).threePointArc((0, 1), (-0.061, 0.984)).lineTo(-0.061, -1).lineTo(0.061, -1).lineTo(0.061, 0.984).close().sweep(cq.Workplane('XZ').spline([(0.063, 0.021), (0.033, 0.053), (... | 5 | 35 | 0.0856 |
train_23cc00305af878cc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.16, 0.034), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.256).sweep(cq.Workplane('XY').spline([(-1.369, -0.16), (-0.684, -0.673), (0, -0.845), (0.684, -0.673), (1.369, -0.16)]))
result = result.edges().chamfer(0.07)
result = result.cut(cq.Wor... | 8 | 18 | 0.423467 |
train_558c955e9ff73b7b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.811), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.778).workplane(offset=0.277).circle(0.854).workplane(offset=0.349).circle(0.994).workplane(offset=0.261).circle(0.861).workplane(offset=0.38).circle(0.968).workplane(offset=0.355).circle(0... | 11 | 53 | 3.69283 |
train_33b892a19b751664 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.356, -0.003, 0.18), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.54).workplane(offset=0.372).circle(0.485).workplane(offset=0.471).circle(0.429).loft()
result = result.edges().fillet(0.351)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.36... | 16 | 82 | 0.470038 |
train_9494dc1a940eb2dc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.559, -0.61, 0.122), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.75, -0.441).lineTo(-0.75, 0.988).lineTo(-0.393, 0.988).threePointArc((0.179, 1.559), (0.75, 0.988)).lineTo(0.179, 0.988).lineTo(0.179, 0.416).lineTo(0.179, -0.441).lineTo(-0.75, -... | 10 | 62 | 1.071804 |
train_c3d9aac733a50c71 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.945, 0.627, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.161, 0.58).threePointArc((-0.068, 0.35), (-0.299, 0.58)).lineTo(-0.299, 0.711).lineTo(-0.641, 0.711).lineTo(-0.641, -0.055).lineTo(0.641, -0.055).lineTo(0.641, 0.711).lineTo(0.161, 0.7... | 6 | 72 | 0.398106 |
train_0aab1c0f2fc7fab5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.205, -0.573, -0.771), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.281, 1.573).lineTo(0.281, -0.427).lineTo(-0.281, -0.427).lineTo(-0.281, 1.573).lineTo(0.281, 1.573).close().extrude(1.261)
result = result.edges().fillet(0.144)
result = result.un... | 5 | 41 | 1.54731 |
train_0d69ef833641bb1f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.54), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.777, 2).extrude(1.08)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.443, 0.866, 0.179), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.072, 0.281).extrude(0.145))
result = result.cut(cq.Wor... | 9 | 41 | 3.316352 |
train_d980e9321322f64e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.576, -0.129, -0.95), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.849, 0.849).extrude(0.744)
result = result.union(cq.Workplane(cq.Plane(origin=(0.576, -0.405, -0.183), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.167, 1.513).lineTo(-0.167, 0.021)... | 16 | 277 | 1.266423 |
train_508ea3d6f9fe4b1e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.219, 0, -0.356), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.561, 1.265).extrude(0.712)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.219, 0, -0.463), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.81, 0.578).extrude(0.926))
result = result.union... | 4 | 75 | 1.12884 |
train_d00532de5915be3b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.764, 0, 0.166), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.55, 0.182).lineTo(-0.55, -0.564).lineTo(-0.525, -0.537).lineTo(0.168, -0.537).lineTo(0.55, 0.564).lineTo(-0.55, 0.182).close().sweep(cq.Workplane('XZ').spline([(-0.048, -0.496), (-0.... | 9 | 60 | 0.46068 |
train_15dc754e8a54084b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.095, 0, -0.138), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.272).sweep(cq.Workplane('XZ').spline([(-0.324, -0.379), (-0.204, -0.247), (-0.084, -0.389), (0.035, -0.524), (0.155, -0.549), (0.275, -0.447), (0.394, -0.293), (0.514, -0.379)]))
resul... | 4 | 31 | 0.459674 |
train_5126cb7783f32f88 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1.06, 0.731, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).lineTo(0.891, 0.063).lineTo(0.891, 2.057).lineTo(0.891, 2.06).close().extrude(1.462)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.181, 0.285, -1.194), normal=(0, 0, 1), xDir=(1, 0, 0))).... | 3 | 7 | 1.242657 |
train_75635d1b295b668d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.082, -0.099, -0.13), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.13, 0.191).lineTo(0.13, -0.022).lineTo(-0.129, -0.022).lineTo(-0.129, 0.066).lineTo(-0.13, 0.067).lineTo(-0.129, 0.068).lineTo(-0.129, 0.191).lineTo(0.13, 0.191).close().revolve(a... | 5 | 68 | 0.036404 |
train_ba422804c954f86c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.796, 1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-1, 0.117).lineTo(-1, 1.475).lineTo(1, 1.475).lineTo(1, 0.249).lineTo(0.893, 0.249).lineTo(0.893, 0.117).lineTo(-1, 0.117).close().revolve(angleDegrees=90, axisStart=(-1, 0.117), axisEnd=(-1... | 8 | 68 | 3.834836 |
train_3872f283ac82cf4c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.114, 0.072), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.18).sweep(cq.Workplane('XZ').spline([(-0.918, -0.304), (-0.306, -0.151), (0.306, -0.125), (0.918, -0.227)]))
result = result.edges().fillet(0.122)
result = result.union(cq.Workplane(cq.... | 11 | 37 | 0.190454 |
train_2d5d9981b5aed4f0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.169, 0.287, -0.487), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.308, 0.022).threePointArc((-0.513, 0.227), (-0.308, 0.432)).lineTo(0.308, 0.432).threePointArc((0.513, 0.227), (0.308, 0.022)).lineTo(-0.308, 0.022).close().extrude(0.574)
result... | 4 | 58 | 0.430511 |
train_52d34eff4e595cbd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.66, -0.465, -0.035), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.394).sweep(cq.Workplane('XZ').spline([(0.66, -1.181), (1.031, -1.181), (1.401, -1.181), (1.652, -0.858), (1.903, -0.536)]))
result = result.edges().chamfer(0.081)
result = result.u... | 9 | 12 | 0.012944 |
train_8528500b0dd47a94 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.156, -0.246, 0.429), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.374, 0.481).lineTo(-0.267, 0.481).lineTo(-0.267, -0.267).lineTo(0.481, -0.267).lineTo(0.481, -0.481).lineTo(-0.267, -0.481).lineTo(-0.267, -0.374).lineTo(-0.481, -0.374).lineTo(... | 13 | 49 | 0.70434 |
train_b0f75c1f5177a0f1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.23, -0.011, -0.305), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.023, 0.872).lineTo(-0.023, 0.917).lineTo(0.023, 0.917).lineTo(0.023, -0.888).lineTo(-0.023, -0.888).lineTo(-0.023, 0.872).close().extrude(0.035)
result = result.edges().chamfer(0.... | 5 | 212 | 0.250424 |
train_39bcaf89f941b463 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.569), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.398, 2).extrude(1.139)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.089, 0.396, -0.585), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.379).extrude(0.637))
result = result.edges().fille... | 8 | 73 | 2.417191 |
train_02b8bfa82d9fda56 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.171, -0.068, -0.06), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.5, -0.932).lineTo(0.5, 1.068).lineTo(0.1, 1.068).lineTo(-0.5, 0.468).lineTo(-0.5, -0.932).lineTo(0.5, -0.932).close().extrude(0.708)
result = result.edges().chamfer(0.039)
result =... | 19 | 216 | 1.782576 |
train_4919bb0ed7dc4e69 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.367, -0.573, -0.017), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.777, -0.633).lineTo(-0.777, 1.367).lineTo(0.25, 1.367).threePointArc((0.622, 1.213), (0.777, 0.84)).lineTo(0.777, -0.633).lineTo(-0.777, -0.633).close().extrude(1.146)
result = ... | 16 | 94 | 1.9504 |
train_8ef74ea40f693806 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.263, -0.329, -0.213), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.426, 0.343).extrude(0.426)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.709, -0.347, -0.032), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.582, 0.05).extrude(0.045))
result ... | 6 | 118 | 0.072644 |
train_3138d6256ab0461b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.528, -0.025), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.102, -0.102).lineTo(0.052, -0.052).lineTo(-0.047, -0.073).lineTo(0, 0).lineTo(-0.102, 0.102).lineTo(0.102, 0.102).lineTo(0.052, 0.052).lineTo(0.073, -0.047).lineTo(0.102, -0.066).line... | 7 | 48 | 0.01009 |
train_fbb005678dea4a81 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.064, -0.478, -0.924), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.936, -0.334).lineTo(-0.936, -0.334).lineTo(-0.936, 1.29).lineTo(-0.733, 1.29).lineTo(-0.178, 0.18).lineTo(0.936, 0.18).lineTo(0.936, -0.334).close().extrude(1.848)
result = result... | 11 | 47 | 2.664284 |
train_7902e87e7339760a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.038, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.965, -0.918).lineTo(-0.965, 0.369).lineTo(-0.321, 1.012).lineTo(-0.321, 0.369).lineTo(0.965, 0.369).lineTo(0.965, -0.274).lineTo(0.321, -0.918).lineTo(-0.965, -0.918).close().extrude(2)
... | 13 | 109 | 2.759609 |
train_b918eebea066149d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.064, 0, -0.101), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.467, -0.247).threePointArc((0.533, 0), (0.467, 0.247)).threePointArc((0.039, 0.495), (-0.39, 0.247)).lineTo(-0.533, 0).lineTo(-0.39, -0.247).threePointArc((-0.209, -0.429), (0.039, -... | 6 | 45 | 0.43138 |
train_c33a8ce7aa747a38 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.753, -0.399, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(1, 0.124).lineTo(1, 1.382).lineTo(-1, 1.382).lineTo(-1, 0.124).lineTo(1, 0.124).close().extrude(0.717)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.225, 0.357, 0.008), normal=... | 10 | 45 | 1.313652 |
train_7ab32fe36374a44c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.081, -0.162), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.146, 0.608).lineTo(0.162, 0.609).lineTo(0.16, 0.137).lineTo(0.554, 0.136).lineTo(0.562, -0.139).lineTo(0.159, -0.158).lineTo(0.16, -0.588).lineTo(-0.137, -0.596).lineTo(-0.142, -0.14... | 24 | 190 | 0.087406 |
train_caa9343a23878672 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.22, 0.301, 0.301), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.455, 0.35).extrude(0.057)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.22, 0.304, 0.357), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.143).extrude(0.01))
result = result.cut... | 22 | 168 | 0.781134 |
train_4d1434608874ec09 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.331, -0.033, -0.136), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.166, 0.224).extrude(0.144)
result = result.faces('<X').shell(-0.007)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.355, -0.182, -0.083), normal=(0, 0, 1), xDir=(1, 0, 0)))... | 9 | 214 | 0.023236 |
train_15b3e5639fecf855 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.018, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.483, 0.401).extrude(1.75)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.064, -0.2, 0.166), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.018).extrude(0.136))
result = result.cut(cq.Wo... | 10 | 43 | 0.311449 |
train_0cbe8d46e124552c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, 0.111, -0.254), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.734, 0.136).lineTo(0.291, 0.728).lineTo(-0.442, 0.642).lineTo(-0.734, -0.037).lineTo(-0.291, -0.629).lineTo(0.442, -0.543).lineTo(0.734, 0.136).close().extrude(2)
result = result.edge... | 19 | 373 | 2.186828 |
train_14fcbebf0884634a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.562, 0.219, 0.019), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.187, 0.032).lineTo(1.09, 0.935).lineTo(0.649, 1.117).lineTo(0.004, 0.472).lineTo(-0.907, 0.472).lineTo(-1.09, 0.032).lineTo(0.187, 0.032).close().extrude(0.521)
result = result.edg... | 13 | 64 | 0.433187 |
train_6dfed187eac44d7a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.202, -0.252, -0.463), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.322, 0.322).lineTo(0.322, 0.302).lineTo(0.295, 0.302).threePointArc((0.152, 0.264), (0.045, 0.162)).lineTo(-0.537, -0.322).lineTo(0.161, -0.322).lineTo(0.161, -0.161).lineTo(0.1... | 3 | 30 | 0.202748 |
train_8cb7c3b0bafc1687 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.625, 0.352, 0.408), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.389, 0.363).lineTo(-0.389, 0.013).lineTo(0.389, 0.013).lineTo(0.389, 0.363).lineTo(-0.389, 0.363).close().revolve(angleDegrees=180, axisStart=(-0.389, 0.363), axisEnd=(-0.389, 0.0... | 29 | 469 | 1.260113 |
train_0dc86deb24eb3820 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.94, -0.512, -0.071), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.018, -0.026).threePointArc((0.06, -0.095), (-0.009, -0.016)).lineTo(-0.009, 0.016).threePointArc((0.06, 0.095), (-0.018, 0.026)).lineTo(-0.05, 0.026).lineTo(-0.06, 0.026).lineTo(... | 1 | 12 | 0.021408 |
train_be5b0bdf09212d2f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.156, -0.749, -0.258), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.254, 1.082).threePointArc((-0.433, 1.007), (-0.507, 0.828)).lineTo(-0.507, 0.068).lineTo(0.507, 0.068).lineTo(0.507, 1.082).lineTo(-0.254, 1.082).close().extrude(0.516)
result =... | 17 | 80 | 0.538932 |
train_8d96694dd28a196c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.957, 0.767, 0.043), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.118).sweep(cq.Workplane('XY').spline([(0.957, 0.053), (1.245, 0.064), (1.533, 0.159), (1.821, 0.409), (2.109, 0.504), (2.397, 0.515)]))
result = result.edges().chamfer(0.107)
result... | 5 | 31 | 0.019277 |
train_69ca19b279537775 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.288, -0.166), normal=(-1, 0, 0), xDir=(0, 0, 1))).lineTo(-0.536, 0.53).lineTo(-0.536, -0.535).lineTo(-0.444, -0.535).lineTo(-0.444, -0.215).lineTo(0.867, 0.218).close().sweep(cq.Workplane('XY').spline([(-0.137, -0.288), (0.726, -0.055), (1.... | 2 | 12 | 0.414294 |
train_d85586c54472c58d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.013, -0.175, -0.229), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.64, 0.548).extrude(0.156)
result = result.union(cq.Workplane(cq.Plane(origin=(0.014, -0.142, -0.074), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.252).extrude(0.031))
result = resu... | 40 | 348 | 0.418433 |
train_b52d1d0d74dbb17b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.206, 0, -0.267), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.589, 1.09).extrude(0.534)
result = result.union(cq.Workplane(cq.Plane(origin=(0.786, -0.029, -0.045), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.427, 0.43).extrude(0.1))
result = result.... | 5 | 26 | 0.775306 |
train_c2f59b7985cc7f57 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.003, -0.003, -0.394), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.985, 0.025).lineTo(0.721, 0.683).lineTo(0.004, 1.003).lineTo(-0.679, 0.68).lineTo(-0.99, 0.006).lineTo(-0.692, -0.692).lineTo(0.011, -0.997).lineTo(0.693, -0.706).close().moveTo(-... | 14 | 122 | 1.145732 |
train_ebe4900526fe1995 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.519, 0, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.721, 0.076).lineTo(0.721, 1.039).lineTo(-0.24, 1.039).threePointArc((-0.581, 0.897), (-0.721, 0.557)).lineTo(-0.721, 0.076).lineTo(0.721, 0.076).close().revolve(angleDegrees=180, axisStart... | 11 | 60 | 1.94451 |
train_d276c42660dc72e6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.158, 0, -1), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.115, -0.006).lineTo(-0.115, -0.012).lineTo(0.11, -0.012).lineTo(0.11, -0.006).lineTo(0.115, -0.006).lineTo(0.11, 0.004).lineTo(0.11, 0.012).lineTo(-0.115, 0.012).lineTo(-0.115, -0.006).c... | 2 | 12 | 0.00269 |
train_a64006d844630ad9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.16, -0.022, 0.325), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.146, -0.048).lineTo(-0.042, -0.048).lineTo(-0.042, -0.041).threePointArc((-0.046, -0.037), (-0.05, -0.032)).lineTo(-0.058, -0.032).lineTo(-0.068, -0.032).threePointArc((-0.071, -0.... | 34 | 409 | 0.015411 |
train_bedcdebb38e6c628 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.001, -0.056, -0.048), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.001, -0.009).lineTo(0.001, 0.001).lineTo(0.011, -0.009).lineTo(0.012, -0.007).lineTo(0.004, 0.002).threePointArc((0.002, 0.003), (0.001, 0.003)).threePointArc((0, 0.003), (-0.002,... | 8 | 83 | 0.00062 |
train_e8b0bba8b646fb6e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.249, 0, -0.163), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.897, 1.161).extrude(0.326)
result = result.faces('>Z').shell(-0.036)
result = result.union(cq.Workplane(cq.Plane(origin=(0.84, -0.116, -0.016), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.... | 5 | 22 | 0.123501 |
train_d2b59305452227a2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.577, -0.743), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.718, 0.95).lineTo(0.24, 0.95).lineTo(0.479, 0.535).lineTo(0.718, 0.12).lineTo(0, -0.295).lineTo(-0.718, 0.12).lineTo(-0.479, 0.535).lineTo(-0.718, 0.95).lineTo(0, 1.364).lineTo(0.718,... | 3 | 22 | 2.600811 |
train_accb1112c7efd14f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.479, 0.17, -0.156), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.042, 1.284).extrude(0.071)
result = result.union(cq.Workplane(cq.Plane(origin=(0.627, 0.064, -0.086), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.388, 0.215).extrude(0.032))
result = re... | 18 | 75 | 0.433408 |
train_c5f5adcaf48a735b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.159, 0.078, -0.156), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.469, -0.327).lineTo(0.469, -0.327).lineTo(0.469, 0.61).threePointArc((0, 1.079), (-0.469, 0.61)).lineTo(-0.469, -0.327).close().extrude(0.803)
result = result.edges().fillet(0.18... | 19 | 114 | 0.708146 |
train_3d463bdc959d2d19 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.047, 0, 0.321), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.311, -1).lineTo(0.311, 1).lineTo(-0.311, 1).lineTo(-0.311, -1).lineTo(0.311, -1).close().extrude(0.641)
result = result.edges().fillet(0.195)
result = result.union(cq.Workplane(cq.Pla... | 4 | 38 | 0.702637 |
train_21f0c7fcffcc2b2f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.083, 1), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.229).sweep(cq.Workplane('YZ').spline([(-0.083, -0.057), (0.026, 0.161), (-0.117, 0.37), (-0.434, 0.458), (-0.757, 0.379)]))
result = result.edges().chamfer(0.074)
result = result.cut(cq.Wo... | 3 | 8 | 0.230842 |
train_47c6327c94e97a08 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.069, 0.114, -0.323), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.121, 0.11).lineTo(-0.121, 0.027).lineTo(-0.01, 0.027).threePointArc((-0.027, 0.037), (-0.037, 0.054)).threePointArc((-0.037, 0.075), (-0.027, 0.093)).threePointArc((0, 0.103), (0... | 4 | 25 | 0.002084 |
train_741952056ce97c34 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.533, -0.308, 0.022), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.511, 0.341).lineTo(-0.511, -0.341).lineTo(0.511, -0.341).lineTo(0.511, 0.341).lineTo(-0.511, 0.341).close().revolve(angleDegrees=270, axisStart=(-0.511, 0.341), axisEnd=(-0.511, ... | 5 | 48 | 2.100736 |
train_f5a4b2af6b3fd874 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.061, -1, 0.104), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.146, -0.137).lineTo(-0.146, -0.283).lineTo(0.146, -0.283).lineTo(0.146, 0.283).lineTo(-0.146, 0.283).lineTo(-0.146, -0.137).close().sweep(cq.Workplane('YZ').spline([(-0.633, -0.088)... | 5 | 39 | 0.346402 |
train_014247a201569cb4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.072, -0.074, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.245).lineTo(-0.006, 0.234).lineTo(-0.288, -0.254).lineTo(0.288, -0.254).lineTo(0.006, 0.234).lineTo(0.019, 0.234).lineTo(0.019, 0.462).lineTo(-0.021, 0.462).lineTo(-0.021, 0.234).... | 2 | 14 | 0.113425 |
train_e306e572fa40d0e6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.001, -0.014, -0.402), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.213, -0.427).lineTo(-0.128, -0.427).lineTo(-0.192, -0.251).lineTo(-0.192, 0.501).lineTo(-0.149, 0.618).lineTo(-0.132, 0.638).lineTo(-0.107, 0.639).lineTo(0.107, 0.639).lineTo(0.1... | 13 | 104 | 0.204869 |
train_cfd40fba95623446 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.617, -0.507), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1, 1.14).lineTo(-1, 0.949).lineTo(-0.263, 0.949).lineTo(-0.263, 0.094).lineTo(0.024, 0.094).lineTo(0.024, 0.949).lineTo(1, 0.949).lineTo(1, 1.14).lineTo(-1, 1.14).close().extrude(1.015... | 3 | 54 | 0.605966 |
train_fd9fd83387dc6b61 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.017, 0.126, -0.089), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.084, 0.039).lineTo(-0.084, 0.303).lineTo(0.084, 0.303).lineTo(0.084, -0.303).lineTo(-0.084, -0.303).lineTo(-0.084, 0.039).close().extrude(0.031)
result = result.edges().chamfer(... | 8 | 164 | 0.121684 |
train_cdfd622dfa98324e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.144, -0.168, -0.689), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.259, 0.195).lineTo(-0.117, 0.455).lineTo(-0.259, 0.382).lineTo(-0.076, 0.022).lineTo(0.259, 0.195).close().extrude(0.576)
result = result.edges().fillet(0.058)
result = result.un... | 11 | 86 | 0.118853 |
train_6d9bb6981fa4ed47 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.36, -0.643), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.04).lineTo(-1, 0.04).lineTo(-1, 0.491).lineTo(-0.625, 0.679).lineTo(1, 0.679).lineTo(1, 0.04).close().extrude(1.286)
result = result.edges().chamfer(0.152)
result = result.cut(cq.Wo... | 13 | 70 | 1.247212 |
train_a6af2207320037b6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.256, 0.305, -0.265), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.735, 0.016).threePointArc((-0.715, -0.034), (-0.731, -0.086)).lineTo(-0.765, -0.086).lineTo(-0.722, -0.086).lineTo(0.674, -0.086).threePointArc((0.765, 0), (0.674, 0.086)).lineTo(... | 6 | 30 | 0.061789 |
train_2ea0483f71aec07f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.171, -0.39), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.015).extrude(1.234)
result = result.faces('>Z').shell(-0.043)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.644, 0.414, -0.844), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.313,... | 5 | 21 | 0.465648 |
train_bfe8dd54d0baf6c2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.783, -0.059, -0.259), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.434, 0.533).extrude(0.361)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.681, 0.004, -0.251), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.004, -0.082).lineTo(-0.022, -0.0... | 9 | 58 | 0.261567 |
train_3d6779c5120569bd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.693, -0.008, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.992).sweep(cq.Workplane('XY').spline([(0.645, -0.008), (0.303, 0.398), (-0.161, 0.632), (-0.678, 0.655)]))
result = result.union(cq.Workplane(cq.Plane(origin=(-1.333, -0.266, -0.743)... | 5 | 3 | 2.194651 |
train_c1312f48067bd795 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 1, 0.214), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.382).workplane(offset=0.96).circle(0.38).workplane(offset=1.04).circle(0.377).loft()
result = result.edges().fillet(0.176)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.104, -0.14, ... | 14 | 166 | 0.662488 |
train_9364ce27866513b5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.207, -0.647, -0.749), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.793, 1.255).lineTo(-0.793, 0.039).lineTo(0.793, 0.039).lineTo(0.793, 1.255).lineTo(-0.793, 1.255).close().extrude(1.497)
result = result.edges().fillet(0.244)
result = result.cut... | 20 | 186 | 1.992388 |
train_a9d2fbb4bbf26f3e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.26, 0.216, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.577, 0.436).lineTo(-0.666, 0.443).lineTo(-0.91, 0.465).lineTo(-1, 0.337).lineTo(-0.947, 0.224).lineTo(-0.703, 0.202).lineTo(-0.613, 0.33).lineTo(-0.562, 0.221).lineTo(-0.583, 0.192).li... | 2 | 18 | 0.13156 |
train_ef0baf4f7bde5483 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.745, -0.178, -0.065), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.231, 0).threePointArc((0.182, 0.15), (0.055, 0.243)).threePointArc((-0.103, 0.243), (-0.231, 0.15)).lineTo(-0.231, -0.15).lineTo(0.055, -0.243).threePointArc((0.182, -0.15), (0.... | 22 | 12 | 0.012756 |
train_c17364ce4ac11e19 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.534), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.692, -0.708).lineTo(-0.692, 0.592).lineTo(-0.908, 0.592).lineTo(-0.908, 0.892).lineTo(-1, 0.892).lineTo(-1, -0.892).lineTo(1, -0.892).lineTo(1, 0.892).lineTo(0.692, 0.892).lineTo(0.692, -... | 4 | 30 | 1.36674 |
train_8a3bfe2cfb6c981a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-3.3, -1, -0.161), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.656, 3.976).threePointArc((-0.129, 4.335), (-0.656, 5.016)).lineTo(0.656, -0.148).lineTo(0.656, 3.976).close().extrude(2)
result = result.edges().fillet(0.368)
result = result.cut(cq.W... | 11 | 97 | 2.194501 |
train_8caa3555f3eaac6a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.302, 0.174, -0.037), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.689, -0.461).lineTo(0.682, -0.461).lineTo(0.719, 0.448).lineTo(-0.698, 0.465).close().moveTo(-0.145, -0.092).lineTo(-0.158, -0.062).lineTo(-0.187, -0.05).lineTo(-0.218, -0.062).l... | 12 | 119 | 0.122401 |
train_e7b1ee898e8c05c5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.004, -0.071, 0.309), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.117, 0.011).threePointArc((0, 0.13), (0.117, 0.011)).lineTo(-0.117, 0.011).close().extrude(0.182)
result = result.edges().fillet(0.039)
result = result.union(cq.Workplane(cq.Plan... | 9 | 51 | 0.003918 |
train_ee925d7baf30dc20 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.008, -0.008, -0.448), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.008, 0.028).lineTo(0.543, 0.886).lineTo(-0.459, 0.848).lineTo(-0.992, -0.008).lineTo(-0.531, -0.844).lineTo(0.499, -0.87).close().moveTo(0.26, 0.253).lineTo(0.26, 0.381).lineTo(-... | 12 | 95 | 1.297485 |
train_2e90a46aa5f9c9df | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.237, -0.022, -0.132), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.525, 0.666).extrude(0.212)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.138, -0.022, 0.079), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.19).extrude(0.032))
result = resu... | 22 | 214 | 0.218766 |
train_29969839474508d1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.152, 0.735, 0.357), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.22, 0.358).lineTo(0.22, -0.156).lineTo(-0.22, -0.156).lineTo(-0.22, 0.358).lineTo(0.22, 0.358).close().revolve(angleDegrees=180, axisStart=(0.22, 0.358), axisEnd=(0.22, -0.156))
res... | 23 | 412 | 1.073716 |
train_1c955006bc437aea | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.347, 0.956, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.658, 0.053).lineTo(-0.658, 1.956).lineTo(0, 1.956).lineTo(0, 1.783).lineTo(0.658, 1.783).lineTo(0.658, 1.645).lineTo(-0.518, 1.645).lineTo(-0.518, 0.191).lineTo(0, 0.191).lineTo(0, 0.... | 6 | 78 | 0.381093 |
train_e95b8a8b18eb0d90 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.021, -0.043, -0.16), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.207, 0.379).extrude(0.269)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.011, 0.2, -0.134), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.011, 0.296).lineTo(0.958, 0.296).th... | 10 | 117 | 0.070079 |
train_8c34cc8b7eb67409 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.29), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1, -0.371).lineTo(1, -0.379).lineTo(-1, -0.379).lineTo(-1, 0.379).lineTo(1, 0.379).lineTo(1, -0.371).close().extrude(0.581)
result = result.edges().fillet(0.038)
result = result.cut(cq.Workpl... | 11 | 54 | 0.835099 |
train_52079e6163a5661c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.279), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.988).extrude(0.624)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.8 + 0.2, 0.187, -1.571), normal=(0, 1, 0), xDir=(1, 0, 0))).circle(0.09).extrude(2.584))
result = result.cut(cq.Wo... | 16 | 36 | 2.253234 |
train_44be1d2fc4febba8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.946, 0.595, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.986, 0.176).lineTo(-0.621, 0.176).lineTo(-0.621, 1.353).lineTo(0.294, 1.353).lineTo(0.294, 0.843).lineTo(0.986, 0.843).lineTo(0.986, 1.715).lineTo(-0.986, 1.715).lineTo(-0.986, 0.176)... | 3 | 21 | 1.219994 |
train_56d9e802801515d3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.727, -0.136, -0.339), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.329, 0.236).lineTo(0.164, 0.331).threePointArc((0, 0.375), (-0.164, 0.331)).threePointArc((-0.285, 0.211), (-0.329, 0.047)).threePointArc((-0.285, -0.118), (-0.164, -0.238)).thre... | 13 | 60 | 0.669605 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.