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_ec2f24ff8f925881 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.46, -0.119, -0.261), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.081, 0.529).extrude(0.522)
result = result.faces('>Z').shell(-0.025)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.462, 0.254, -0.164), normal=(0, 0, 1), xDir=(1, 0, 0))).c... | 5 | 47 | 0.105508 |
train_1d9ad8ad8c00f28b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.009, 0.228, -0.737), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.035, 0.003).threePointArc((-0.022, 0.035), (0.01, 0.048)).lineTo(0.164, 0.048).lineTo(0.182, 0.03).lineTo(0.245, 0.03).lineTo(0.263, 0.048).lineTo(0.263, 0.082).lineTo(0.263, 0.1... | 2 | 33 | 0.067004 |
train_bb86bb23a168dd42 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.926, -0.195, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.159, 0.072).threePointArc((0, -0.037), (0.159, 0.072)).lineTo(0.2, 0.178).lineTo(0.214, 0.216).lineTo(0.187, 0.216).lineTo(0.149, 0.216).threePointArc((0.108, 0.265), (0.053, 0.295))... | 19 | 100 | 0.053335 |
train_e79dd2ebee22875c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.048, 0), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.714, 0.048).lineTo(0.714, 0.048).lineTo(0.714, 0.429).lineTo(1, 0.048).lineTo(1, -0.429).lineTo(-1, -0.429).lineTo(-1, 0.048).lineTo(-0.714, 0.048).close().revolve(angleDegrees=360, axisS... | 11 | 43 | 1.045705 |
train_dde561805d8dc40a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.63), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.821).extrude(0.937)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.22, -0.19, -0.123), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.817, 0.252).extrude(0.441))
result = result.cut(cq.Wor... | 10 | 84 | 1.327913 |
train_2e4acd0748da9bee | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.847, -0.09, -0.37), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.042, 0.07).lineTo(-0.042, -0.064).lineTo(0.036, -0.064).lineTo(0.036, -0.07).lineTo(0.042, -0.07).lineTo(0.042, 0.07).lineTo(0.042, 0.064).lineTo(0.036, 0.064).lineTo(0.036, 0.07... | 3 | 59 | 0.055864 |
train_27e24650df678941 | 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.714, 1.955).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.322, 0.183, 0.423), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.722, 1.2).extrude(0.591))
result = result.edges().chamfer... | 3 | 51 | 6.147681 |
train_4ee6e8869f37ff69 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.042, 0.116, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1.028, 0.681).lineTo(-0.243, -0.961).lineTo(-1.028, 0.961).lineTo(1.028, 0.681).close().extrude(2)
result = result.edges().chamfer(0.354)
result = result.cut(cq.Workplane(cq.Plane(origin... | 15 | 105 | 1.536155 |
train_4a78243e87267a49 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.62, 0.689, 0.214), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.55, 0.883).threePointArc((-0.094, 0.615), (-0.786, 0.524)).lineTo(-0.786, 0.053).threePointArc((0.028, 0.161), (0.786, 0.474)).lineTo(0.55, 0.883).close().extrude(1.067)
result = re... | 4 | 44 | 1.070697 |
train_a15d4ce448734621 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.082, -0.456, -0.16), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.375, -0.543).threePointArc((0, -0.918), (0.375, -0.543)).lineTo(0.375, 0.707).threePointArc((0, 1.082), (-0.375, 0.707)).lineTo(-0.375, -0.543).close().extrude(0.716)
result = re... | 20 | 99 | 0.962566 |
train_05b236de499ca986 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.48, -0.151), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.519, 1.039).extrude(0.234)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.48, 0.004), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.08).extrude(0.082))
result = result.cut(cq.Workpl... | 13 | 99 | 0.316367 |
train_3082f659af2c2398 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.048, 0.126, -0.139), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.609, 1.747).extrude(0.06)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.523, 0.197, -0.071), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.337, 0.313).lineTo(-0.337, -0.176)... | 5 | 61 | 0.218799 |
train_ee4a367e8bbb050c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.177, -0.119, 0.112), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.047, 0.424).lineTo(-0.043, -0.388).lineTo(0.047, -0.16).lineTo(-0.047, 0.424).close().extrude(0.074)
result = result.edges().fillet(0.011)
result = result.union(cq.Workplane(cq.P... | 20 | 247 | 0.025144 |
train_92c17f0965b568a7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.199), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.619, 1).threePointArc((-0.336, 0.045), (0.619, -0.91)).lineTo(0.619, -1).lineTo(-0.619, -1).lineTo(-0.619, 1).lineTo(0.619, 1).close().extrude(0.398)
result = result.cut(cq.Workplane(cq.Pl... | 6 | 57 | 0.404225 |
train_39a97b8271ef3fdb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.115, -0.339, -0.039), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.076, 0.154).lineTo(-0.076, -0.019).lineTo(0.076, -0.019).lineTo(0.076, 0.154).lineTo(-0.076, 0.154).close().extrude(0.864)
result = result.edges().fillet(0.035)
result = result.... | 7 | 53 | 0.163933 |
train_f19dad3dce8089eb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.066, -0.08, -0.262), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.078, 0.159).lineTo(0.078, 0.002).lineTo(-0.078, -0.155).lineTo(-0.078, 0.159).close().extrude(0.122)
result = result.edges().chamfer(0.003)
result = result.union(cq.Workplane(cq.... | 6 | 79 | 0.019297 |
train_52de5d15bb23b8d8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.754, -0.744, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, -0.204).threePointArc((-0.462, -0.013), (-0.654, 0.45)).threePointArc((-0.462, 0.913), (0, 1.105)).threePointArc((0.462, 0.913), (0.654, 0.45)).threePointArc((0.462, -0.013), (0, -0.... | 8 | 40 | 1.318416 |
train_c919d43a65526c03 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.316, -0.226, 1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.348, -0.695).lineTo(-0.348, -0.673).lineTo(0.324, -0.673).lineTo(0.324, -0.695).lineTo(0.348, -0.695).lineTo(0.348, 0.695).lineTo(0.348, 0.673).lineTo(-0.348, 0.673).lineTo(-0.348, -... | 3 | 16 | 1.622972 |
train_6f21bf09df2eedcf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.06, -0.256), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.903, 1.879).extrude(0.598)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.175, 0.192, 0.174), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.022).extrude(0.062))
result = result.cut(cq... | 13 | 115 | 0.93073 |
train_208f9e126cfd4c59 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.089, 0, -0.349), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.822, 1.03).extrude(0.755)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.323 + 0.103, 0.226, -1.533), normal=(1, 0, 0), xDir=(0, 1, 0))).moveTo(0.048, -0.006).lineTo(0.053, 0).line... | 26 | 16 | 1.419411 |
train_c197189db71919e0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.235, -0.045), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.25, 1.091).threePointArc((0.655, 0.915), (0.605, 0.476)).lineTo(-0.031, -0.202).lineTo(-0.236, 0.152).lineTo(-0.451, 0.525).lineTo(-0.655, 0.88).lineTo(0.207, 1.081).lineTo(0.25, 1.09... | 6 | 63 | 1.723596 |
train_22af1afee5ce8424 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.02, -0.001, -0.004), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.024, 0.014).threePointArc((0, -0.028), (-0.024, 0.014)).threePointArc((-0.014, 0.024), (0, 0.028)).threePointArc((0.014, 0.024), (0.024, 0.014)).close().extrude(0.01)
result = res... | 12 | 88 | 0.003582 |
train_7774c00e1d1f3b82 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.472, -0.784), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.131, 1.056).extrude(1.19)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.125, 0.607, 0.367), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.288).extrude(0.417))
result = result.unio... | 4 | 15 | 2.761458 |
train_a53c5bb7b7558593 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.803, -1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.538, 0.265).lineTo(0.538, 0.424).lineTo(0.698, 0.424).lineTo(0.698, 1.501).lineTo(0.379, 1.501).lineTo(0.379, 0.424).lineTo(-0.698, 0.424).lineTo(-0.698, 0.106).lineTo(0.538, 0.106).lineT... | 4 | 81 | 0.979071 |
train_680eef7cd9bd5a72 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.627), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.302).workplane(offset=0.574).circle(0.224).workplane(offset=0.497).circle(0.145).workplane(offset=0.555).circle(0.067).loft()
result = result.edges().fillet(0.052)
result = result.cut(cq.W... | 8 | 21 | 0.184691 |
train_ab2ad4c780dbd6f2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.017, 0, 0.249), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1.017, -0.143).lineTo(1.017, -0.143).lineTo(0.868, 0.143).lineTo(-1.017, 0.143).lineTo(-1.017, -0.143).close().extrude(0.498)
result = result.edges().fillet(0.052)
| 2 | 26 | 0.272553 |
train_52447b7b956c0835 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.123, -0.215, -0.754), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.231, 1.099).extrude(0.877)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.346, -0.87, -0.666), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.384, 0.26).extrude(0.459))
result =... | 16 | 57 | 1.399335 |
train_eabf80a7f996471b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.336, -1, -0.125), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.425, 0.656).lineTo(0.425, 0.018).lineTo(-0.106, 0.018).threePointArc((-0.425, 0.336), (-0.106, 0.656)).lineTo(0.425, 0.656).close().extrude(2)
result = result.edges().chamfer(0.207)
... | 11 | 67 | 0.617563 |
train_26ab6e4b565b2beb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.287, -0.468, 0.287), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.287, 0.532).lineTo(-0.287, -0.461).lineTo(0.117, -0.532).lineTo(0.123, -0.495).lineTo(0.287, 0.43).lineTo(0.287, 0.431).lineTo(-0.287, 0.532).close().revolve(angleDegrees=180, ax... | 4 | 26 | 0.236118 |
train_6e15d0d3179937bd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.034, 0.017, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.355).workplane(offset=0.567).circle(0.416).workplane(offset=0.433).circle(0.486).workplane(offset=0.455).circle(0.377).workplane(offset=0.546).circle(0.412).loft()
result = result.edg... | 10 | 66 | 0.469212 |
train_1b9e398ac20fb066 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.386, -0.234), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.07).extrude(0.386)
result = result.union(cq.Workplane(cq.Plane(origin=(0.098, 0.435, 0.151), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.477).extrude(0.043))
result = result.union(cq.... | 13 | 57 | 0.837088 |
train_826d7e6b4393ee4c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.643, 0.102), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.165).sweep(cq.Workplane('YZ').spline([(-0.119, -0.5), (0.508, -0.5), (0.677, -0.665), (0.846, -0.829), (1.015, -0.994)]))
result = result.cut(cq.Workplane(cq.Plane(origin=(0.001, -0.342... | 5 | 15 | 0.148768 |
train_87fcc541de5daf68 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.087, -0.013, -0.137), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, -0.042).lineTo(0, -0.047).lineTo(0.005, -0.047).lineTo(0.005, 0.048).lineTo(0, 0.048).lineTo(0, 0.042).lineTo(-0.005, 0.042).lineTo(-0.005, -0.042).lineTo(0, -0.042).close().wo... | 3 | 19 | 0.001156 |
train_b3283dee6b1225ae | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.973), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(1.052).workplane(offset=0.578).circle(0.937).workplane(offset=0.688).circle(1.1).workplane(offset=0.676).circle(1.146).loft()
result = result.edges().fillet(0.945)
result = result.cut(cq.Wor... | 10 | 67 | 3.241426 |
train_ac4bfa5277a8d815 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.115, -0.552, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.428, 0.07).lineTo(-0.428, 0.794).lineTo(0.428, 0.794).lineTo(0.428, 0.07).lineTo(-0.428, 0.07).close().extrude(1.05)
result = result.edges().fillet(0.093)
result = result.union(cq.W... | 18 | 150 | 1.155288 |
train_6912959ef4faafde | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.003, -0.194), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1, -0.781).lineTo(1, -0.755).lineTo(0.994, 0.775).lineTo(-0.976, 0.762).close().center(0, 0.213).circle(0.137).center(-0.279, -0.364).circle(0.123).center(0.557, 0).rect(0.279, 0.296).e... | 16 | 91 | 0.822542 |
train_2d1c8baf56549533 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.174, 0.184), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.307, 0.273).lineTo(-0.307, 0.018).lineTo(0.307, 0.018).lineTo(0.307, 0.273).lineTo(-0.307, 0.273).close().extrude(1.181)
result = result.edges().chamfer(0.067)
result = result.cut(cq.... | 35 | 158 | 0.39466 |
train_c475472de552701c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.157), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.73, 2).extrude(0.313)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0.079), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.008, 0.358).lineTo(0.008, 0.435).lineTo(-0.008, 0.435).lineT... | 12 | 75 | 0.745305 |
train_4738eb267e31d789 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.304), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.032).extrude(0.858)
result = result.union(cq.Workplane(cq.Plane(origin=(0.246, -0.023, -0.554), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.223).extrude(0.268))
result = result.cut(cq.Wor... | 10 | 58 | 1.403228 |
train_39ee6aa65d7825aa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.084, 0.282, -0.991), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.953, 0.953).extrude(0.953)
result = result.union(cq.Workplane(cq.Plane(origin=(0.048, 0.357, -0.046), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.301, 0.208).extrude(0.161))
result = r... | 13 | 138 | 1.48799 |
train_262204971c6d6a48 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.579, -0.607, -0.217), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.376, 0.376).extrude(0.344)
result = result.union(cq.Workplane(cq.Plane(origin=(0.026, -0.607, -0.108), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.978, 0.143).extrude(0.125))
result ... | 17 | 188 | 0.332958 |
train_d8b75d89e50d469b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.265, 0.128, -0.624), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.196, 1.744).extrude(1.247)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.265 + 0.344 * math.cos(2.679 + 2 * math.pi * 0 / 5), 0.751 + 0.344 * math.sin(2.679 + 2 * math.pi * 0 /... | 9 | 20 | 2.455022 |
train_5e33fe2163f6b8e8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.653).workplane(offset=0.465).circle(0.615).workplane(offset=0.541).circle(0.61).workplane(offset=0.457).circle(0.594).workplane(offset=0.537).circle(0.604).loft()
result = result.edges().chamf... | 11 | 27 | 2.042986 |
train_eb541fec542ec48e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.2, 0.128, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.172, 1.2).threePointArc((0.172, 0.2), (-0.172, -0.8)).lineTo(-0.172, 1.2).close().extrude(0.256)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.185, 0.064, -0.042), normal=(0, 0, ... | 2 | 9 | 0.107711 |
train_ec769e078f577f13 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.074, 0.036, -0.249), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.64, 0.851).extrude(0.113)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.278, 0.127, -0.221), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.122).extrude(0.058))
result = result.... | 14 | 98 | 0.135085 |
train_e95a89e49af626fe | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.862, -1, -1), normal=(0, 0, -1), xDir=(1, 0, 0))).threePointArc((-1.051, -1.92), (-1.058, -1.924)).threePointArc((-1.444, -1.981), (-1.735, -1.72)).lineTo(-1.735, -1.353).threePointArc((-1.633, -1.202), (-1.482, -1.108)).threePointArc((-1.319, -... | 1 | 9 | 2.505501 |
train_f08ecef6a7a0df2e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.004, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.508, 0.682).extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(0.012, -0.367, 0.165), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.074, 0.062).extrude(0.218))
result = result.union(... | 10 | 85 | 0.686146 |
train_fa037d31ab2f5b20 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.469), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.683).workplane(offset=0.142).circle(0.458).workplane(offset=0.136).circle(0.441).workplane(offset=0.148).circle(0.908).workplane(offset=0.177).circle(0.471).workplane(offset=0.125).circle(... | 5 | 18 | 1.2494 |
train_d7711fb98dbdea67 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.244, -0.972, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.267).sweep(cq.Workplane('XY').spline([(0.244, -0.452), (0.43, -0.637), (0.617, -0.749), (0.803, -0.785), (0.989, -0.749), (1.176, -0.637), (1.362, -0.452)]))
result = result.cut(cq.Wo... | 4 | 12 | 0.179178 |
train_b13440c0e37620b6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.264, 0, 0.443), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.748, 0.039).lineTo(-0.441, -0.359).lineTo(0.748, -0.027).lineTo(0.449, 0.359).lineTo(-0.748, 0.039).close().extrude(0.461)
result = result.edges().chamfer(0.019)
result = result.union... | 4 | 40 | 0.307616 |
train_f6cb06006ffbca78 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.109, -0.02, -0.188), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.08, 0.031).lineTo(0.306, 1.02).lineTo(-0.863, 0.634).lineTo(-0.854, -0.595).lineTo(0.315, -0.98).close().center(0, 0.296).circle(0.168).moveTo(-0.54, -0.359).lineTo(-0.54, -0.366)... | 13 | 102 | 0.670873 |
train_ebc7eebe28bc7603 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.459, -0.121, -0.454), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.082, 1.131).extrude(0.907)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.253, 0.561, -0.269), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.193, 0.252).extrude(0.433))
result ... | 3 | 16 | 2.092165 |
train_65dcec9ec17bd4f7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.449, 0.33, -0.013), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.195).sweep(cq.Workplane('XY').spline([(-0.599, 0.202), (-0.304, -0.09), (0.013, -0.09), (0.308, 0.202), (0.308, 0.517), (0.013, 0.809), (-0.304, 0.809), (-0.599, 0.517)]))
result = ... | 9 | 73 | 0.264571 |
train_dbbff336eca2d16c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.519, 0.786, 0.214), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.787, 1.104).lineTo(-0.787, 0.955).lineTo(-0.076, 0.955).lineTo(-0.076, 0.241).lineTo(0.076, 0.241).lineTo(0.076, 0.483).lineTo(0.075, 0.955).lineTo(0.546, 0.956).lineTo(0.787, 0.9... | 22 | 92 | 0.459731 |
train_04ce54b20ee081c2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.667, 1.026, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.199, 0.11).lineTo(-0.199, 0.494).lineTo(-0.668, 0.026).lineTo(-0.682, 0.036).lineTo(0.202, 0.92).lineTo(0.202, 1.42).lineTo(0.237, 1.42).lineTo(0.237, 0.955).lineTo(0.682, 1.401).line... | 4 | 39 | 0.494526 |
train_bcbba970331a34cd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.515, -0.604, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.069, 1.141).lineTo(1.021, 1.141).lineTo(1.021, 0.067).lineTo(-1.021, 0.067).lineTo(-1.021, 1.141).lineTo(0.069, 1.141).close().workplane(offset=0.299).moveTo(0.061, 1.084).lineTo(0.91... | 17 | 90 | 0.829553 |
train_a7bf96a0f137627d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.293, -0.002, -0.129), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.695, -0.008).lineTo(0.479, 0.467).lineTo(-0.018, 0.676).lineTo(-0.476, 0.485).lineTo(-0.707, -0.002).lineTo(-0.487, -0.502).lineTo(-0.017, -0.672).lineTo(0.482, -0.48).close().mo... | 24 | 256 | 0.194933 |
train_cafccc425f10472d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.33, 0, -0.203), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.057, 2).extrude(0.349)
result = result.union(cq.Workplane(cq.Plane(origin=(0.33, 0, 0.146), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.263, 0.465).lineTo(0.263, 0.463).lineTo(0.253, 0.3... | 14 | 137 | 0.708697 |
train_8a990a6814f0dd85 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.851, -0.357, 0.366), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.058, 0.082).threePointArc((0.055, 0.122), (0.132, 0.031)).lineTo(0.149, -0.122).lineTo(-0.149, -0.042).lineTo(-0.058, 0.082).close().transformed(offset=(0.267, -0.293, 0.136), r... | 4 | 20 | 0.067895 |
train_c1d5bca911315146 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.803, 0.277, -4.182), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(3.008, 3.43).extrude(5.679)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.651, 0.778, 1.428), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.698).extrude(2.298))
result = result... | 16 | 7 | 0.45949 |
train_e6a8624e166debbc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, 0, -0.429), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.333, 0.395).lineTo(-0.333, 0.395).lineTo(-0.333, -0.187).lineTo(-0.125, -0.187).lineTo(-0.102, -0.31).threePointArc((0, -0.395), (0.102, -0.31)).lineTo(0.125, -0.187).lineTo(0.333, -0.187)... | 8 | 55 | 0.426655 |
train_ca8b3fc18089e80c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.031, -0.317, -0.377), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, 0.142).lineTo(0.074, 0.014).threePointArc((0.119, 0.035), (0.159, 0.064)).threePointArc((0.238, 0.24), (0.159, 0.417)).threePointArc((0.119, 0.446), (0.074, 0.466)).lineTo(0, 0.... | 13 | 143 | 0.34104 |
train_4f3c6bbfac933457 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.37, 0.17), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.107, 0.938).lineTo(0.2, 0.659).lineTo(0.275, 0.43).lineTo(0.372, 0.138).lineTo(0, 0.015).lineTo(0.011, -0.021).lineTo(-0.061, -0.045).lineTo(-0.107, -0.021).lineTo(-0.121, 0.02).lineTo(-... | 4 | 28 | 0.950982 |
train_b79524a97e761018 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.978), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.491).extrude(1.956)
result = result.edges().fillet(0.129)
| 2 | 26 | 5.757858 |
train_b7a1153322fb8eb8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.169, 0.292, -0.561), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.439, 0.428).lineTo(-0.439, -0.012).lineTo(0.439, -0.012).lineTo(0.439, 0.428).lineTo(-0.439, 0.428).close().extrude(0.577)
result = result.edges().fillet(0.119)
result = result.u... | 10 | 58 | 0.297623 |
train_82aed876ce6af018 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.999, -0.043, 0.356), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.028, 0.031).lineTo(-0.028, 0.082).threePointArc((-0.226, 0.165), (-0.377, 0.317)).lineTo(-0.412, 0.265).lineTo(0.215, -0.158).lineTo(0.203, -0.176).lineTo(0.412, -0.317).lineTo(... | 4 | 41 | 0.402357 |
train_adc4f5b01ab362f4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.208), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.457, 2).extrude(0.416)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, -0.271), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.687, 0.814).extrude(0.541))
result = result.edges().fillet(0... | 13 | 87 | 0.961031 |
train_808075ca58141aff | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.34), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.865, 2).extrude(0.68)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.214, -0.24, -0.456), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.133).extrude(0.816))
result = result.cut(cq.Workpla... | 3 | 8 | 2.466815 |
train_df32b5ac1f84053a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.05, -0.038, 0.11), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.38, 0.613).lineTo(-0.126, 0.615).lineTo(-0.126, 0.233).threePointArc((-0.089, 0.144), (0, 0.107)).lineTo(0.38, 0.107).lineTo(0.38, -0.146).lineTo(-0.38, -0.146).lineTo(-0.38, 0.61... | 18 | 148 | 0.50367 |
train_1c9f5fa0de084d7c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.082, -1.121, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.637, 0.092).lineTo(-0.637, 0.686).lineTo(-0.051, 1.394).lineTo(-0.051, 1.739).lineTo(0.637, 1.739).lineTo(0.637, 1.145).lineTo(0.051, 0.437).lineTo(0.051, 0.092).lineTo(-0.637, 0.092... | 4 | 110 | 2.3014 |
train_4dfcef465d4fdea0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.19, 0.489, -0.215), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.281, 0.749).lineTo(0.129, 0.598).lineTo(0.129, 0.341).lineTo(-0.129, 0.341).lineTo(-0.281, 0.19).lineTo(-0.13, 0.039).lineTo(0.13, -0.217).lineTo(0.281, -0.368).lineTo(0.281, 0.749... | 5 | 45 | 0.269052 |
train_31334a71ba268095 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.118), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.504).extrude(0.186)
result = result.union(cq.Workplane(cq.Plane(origin=(0.63, -0.155, 0.067), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.12, 0.063).extrude(0.051))
result = result.cut(cq.W... | 10 | 33 | 0.450346 |
train_35e98d8da1380c85 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, 0.266, -0.5), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.5, 0.158).lineTo(0.5, 0.373).lineTo(0.071, 0.373).lineTo(0.071, 0.469).lineTo(-0.143, 0.469).lineTo(-0.143, 0.373).lineTo(-0.5, 0.373).lineTo(-0.5, 0.158).lineTo(-0.143, 0.158).line... | 6 | 73 | 0.5487 |
train_9739e1968f3a536c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.257, 0.324, 0.391), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.609, 0.038).lineTo(-0.609, 0.038).lineTo(-0.609, 0.458).lineTo(0.537, 0.458).lineTo(0.537, 0.443).lineTo(0.609, 0.443).lineTo(0.609, 0.038).close().extrude(0.474)
result = result.u... | 31 | 324 | 0.440247 |
train_1a0c37734249e227 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.003, -0.56, -0.139), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.803, 0.88).extrude(0.396)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.097, 0.016, -0.037), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.159).extrude(0.151))
result = resul... | 20 | 115 | 0.219538 |
train_f7dd4ceee237a864 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.022, -0.415, -0.708), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.292, -0.16).lineTo(0.292, 0.123).lineTo(-0.111, 0.123).lineTo(-0.111, 0.203).lineTo(-0.128, 0.203).lineTo(-0.128, 0.176).lineTo(-0.292, 0.176).lineTo(-0.292, -0.025).lineTo(-0.12... | 4 | 90 | 0.13726 |
train_bbf089445b4e5e07 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.092, -0.073, 0.596), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.066, 0.725).lineTo(-0.007, 0.762).lineTo(-0.935, 1.229).lineTo(0.49, -1.229).lineTo(0.49, -0.077).lineTo(0.935, 0.725).lineTo(0.066, 0.725).close().extrude(0.846)
result = result... | 13 | 66 | 0.803678 |
train_6e7601884b722ed1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.537, -0.504), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.828).extrude(1.008)
result = result.faces('>Z').shell(-0.055)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.099, 0.029, -0.237), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.1... | 5 | 138 | 0.776796 |
train_b19a3bd8d06b6c34 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.746, 0, -0.093), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.234).sweep(cq.Workplane('XZ').spline([(0.746, -0.093), (0.768, 0.062), (0.573, 0.189), (0.245, 0.236), (-0.078, 0.181), (-0.256, 0.048), (-0.215, -0.105), (0.029, -0.215)]))
result = ... | 4 | 12 | 0.280909 |
train_b5163f096e285d49 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.589, 0, 0.33), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.373).sweep(cq.Workplane('XZ').spline([(0.474, 0.143), (0.116, 0.151), (-0.038, -0.045), (0.145, -0.215), (0.452, -0.105)]))
result = result.union(cq.Workplane(cq.Plane(origin=(-0.778, 0.... | 3 | 13 | 0.837413 |
train_aaa8935b7e26bd3c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.167, 0.366, -0.196), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.45, 0.569).lineTo(-0.911, 1.104).lineTo(-0.287, -0.191).lineTo(0.911, -0.789).lineTo(0.45, 0.569).close().extrude(1.174)
result = result.edges().chamfer(0.247)
result = result.uni... | 12 | 83 | 1.821041 |
train_3af9c6d1a37de264 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.166, -0.516, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(1, 0.363).lineTo(1, 0.021).lineTo(-0.004, 0.021).threePointArc((-1, 0.192), (-0.004, 0.363)).lineTo(0.368, 0.363).lineTo(1, 0.363).close().extrude(0.646)
result = result.edges().fillet(... | 14 | 137 | 0.472647 |
train_5c4a5da2ec9d1aa9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.26, -0.15, 0.289), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.221, 0.101).lineTo(0.469, 0.53).lineTo(0.538, 0.49).lineTo(0.268, 0.021).lineTo(-0.538, 0.021).lineTo(-0.538, 0.101).lineTo(0.221, 0.101).close().extrude(0.74)
result = result.unio... | 5 | 46 | 0.135531 |
train_bf8e6a8e6d97da5f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.541, 0, -0.5), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.5, 0.433).lineTo(0.5, 0.265).lineTo(-0.174, 0.265).threePointArc((-0.235, 0.314), (-0.281, 0.376)).lineTo(-0.39, 0.376).threePointArc((-0.5, 0.536), (-0.39, 0.695)).lineTo(-0.281, 0.695... | 3 | 13 | 1.325948 |
train_c9d356a43348809a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.128, -0.145, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).lineTo(-0.23, 0.01).lineTo(-1, 0.01).lineTo(-1, 0.25).lineTo(-0.23, 0.25).lineTo(1, 0.25).close().extrude(0.061)
result = result.edges().chamfer(0.023)
result = result.union(cq.Workplane(cq.Pl... | 6 | 53 | 0.021283 |
train_7c66e7aef49ea960 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.96, 0.619, 0.082), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.04, -0.132).lineTo(0.04, 0.119).threePointArc((0.036, 0.128), (0.027, 0.132)).lineTo(0, 0.132).lineTo(-0.027, 0.132).threePointArc((-0.036, 0.128), (-0.04, 0.119)).lineTo(-0.04, -0.... | 1 | 16 | 0.002988 |
train_ba1d4847baaa028e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.124), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.981, 0.49).threePointArc((0, -0.49), (-0.981, 0.49)).lineTo(-0.634, 0.49).threePointArc((0, -0.144), (0.634, 0.49)).lineTo(0.981, 0.49).close().workplane(offset=0.054).moveTo(0.789, 0.394)... | 11 | 120 | 0.177996 |
train_3d090ecc9d41646e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.004, -0.171, 0.145), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.284, 1.053).threePointArc((-0.284, 0.103), (0.051, -0.951)).threePointArc((0.17, -0.998), (0.284, -1.053)).lineTo(0.284, 1.053).close().workplane(offset=0.15).moveTo(0.265, 0.983)... | 13 | 83 | 0.142616 |
train_0a35c90a59a215b1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.806, -0.352), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1, 1.402).lineTo(-1, 0.068).lineTo(-0.96, 0.068).lineTo(-0.96, 1.362).lineTo(0.96, 1.362).lineTo(0.96, 0.108).lineTo(0.95, 0.108).lineTo(0.95, 1.352).lineTo(-0.95, 1.352).lineTo(-0.95,... | 5 | 42 | 0.253868 |
train_082b1d856b84fc8b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.046, 0, 0.113), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.688).sweep(cq.Workplane('XZ').spline([(-0.951, -0.165), (-0.725, -0.344), (-0.499, -0.281), (-0.272, 0.014), (-0.046, -0.049), (0.179, -0.344), (0.405, -0.281), (0.632, 0.014), (0.858,... | 3 | 9 | 2.345295 |
train_a09c8d75894c8e9a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.353, 0.374), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.169).sweep(cq.Workplane('YZ').spline([(-0.622, -0.665), (-0.372, -0.647), (-0.122, -0.532), (0.128, -0.101), (0.378, 0.331), (0.628, 0.446), (0.878, 0.464)]))
result = result.edges().fi... | 9 | 27 | 0.16762 |
train_3b6111a23596151b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.331, 0, -0.456), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.338, 1.566).extrude(0.734)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.958 + 0.1565, 0.367, -1.325), normal=(1, 0, 0), xDir=(0, 1, 0))).moveTo(-0.09, -0.074).lineTo(-0.09, 0.07... | 32 | 186 | 1.550438 |
train_e8c144a8fadc8c22 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.313, -0.257), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.228, 1.373).extrude(0.514)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.119, 0.674, -0.087), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.55, 0.651).extrude(0.177))
result = resu... | 5 | 132 | 0.809571 |
train_d9ac050f6410deca | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.021, 0.275, -0.699), normal=(1, 0, 0), xDir=(0, 0, 1))).lineTo(0.314, 0.495).lineTo(-0.24, 0.495).threePointArc((-0.267, 0.363), (-0.314, 0.236)).close().extrude(0.482)
result = result.edges().chamfer(0.033)
result = result.union(cq.Workplane(cq... | 8 | 60 | 0.121438 |
train_3d055787ff2acf36 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.007, 0, 0.035), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.634).sweep(cq.Workplane('XZ').spline([(-0.665, -0.327), (-0.007, -0.144), (0.65, -0.429)]))
result = result.edges().chamfer(0.215)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.... | 4 | 38 | 1.866321 |
train_56ec3b47b82ece80 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.001, 0.005, -0.115), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.116, 0.976).lineTo(0.1, 0.995).lineTo(0.123, 0.141).lineTo(0.628, 0.113).lineTo(0.607, -0.09).lineTo(0.117, -0.139).lineTo(0.099, -0.966).lineTo(-0.102, -1.005).lineTo(-0.13, -0.1... | 17 | 132 | 0.126832 |
train_010e9413ad13ffa3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.017, -0.149, 0.233), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.399, 0.399).extrude(0.583)
result = result.faces('>Z').shell(-0.032)
result = result.union(cq.Workplane(cq.Plane(origin=(0.02, -0.091, 0.137), normal=(0, 0, 1), xDir=(1, 0, 0))).cir... | 14 | 91 | 0.093571 |
train_a3d55a481fe7eb21 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.16, -0.925), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.161, 0.98).extrude(1.122)
result = result.faces('>X').shell(-0.098)
result = result.union(cq.Workplane(cq.Plane(origin=(0.151, -0.095, 0.171), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.3... | 11 | 54 | 0.656562 |
train_faa88134b1d55f33 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.018, -0.02, -0.144), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.019, 0.109).threePointArc((0, 0.111), (0.019, 0.109)).lineTo(0.019, 0.245).lineTo(0.019, 0.321).threePointArc((0, -0.279), (-0.019, 0.321)).lineTo(-0.019, 0.245).lineTo(-0.019, 0... | 14 | 62 | 0.01225 |
train_07ff3de0d86c5056 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.543, 0.401, -0.187), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.242, 0.157).lineTo(-0.242, 0.044).lineTo(-0.106, 0.044).lineTo(-0.106, 0.047).lineTo(-0.104, 0.047).lineTo(-0.104, 0.009).lineTo(0.242, 0.009).lineTo(0.242, 0.157).lineTo(-0.104,... | 8 | 50 | 1.007646 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.