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_bd51bc248b036d2e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.675, -0.419, -0.146), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.854, 1.002).lineTo(-0.854, 1.002).lineTo(-0.854, 0.25).threePointArc((-0.848, 0.18), (-0.829, 0.11)).lineTo(0.854, 0.11).lineTo(0.854, 0.259).lineTo(0.854, 1.002).close().revolve... | 30 | 107 | 0.316336 |
train_1c29b8447195e323 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.446, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.221).workplane(offset=0.708).circle(0.216).workplane(offset=0.738).circle(0.307).loft()
result = result.union(cq.Workplane(cq.Plane(origin=(0.049, 0.716, -0.12), normal=(0, 0, 1), xDir=(1,... | 17 | 53 | 0.106645 |
train_ba945e5f0885cfa8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.269, -0.471, 0.121), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.594, 1.203).lineTo(-0.594, 1.099).lineTo(0.489, 1.099).lineTo(0.35, 0.96).threePointArc((0.414, 0.919), (0.489, 0.906)).lineTo(0.489, 0.016).lineTo(0.594, 0.016).lineTo(0.594, 0.0... | 5 | 34 | 0.423976 |
train_15fd8f2352b939ef | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.601), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.751).extrude(1.201)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.389, 0.106, -0.618), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.215).extrude(0.701))
result = result.cut(cq.Workpl... | 31 | 200 | 2.576687 |
train_c3b21f327262e5e8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.056, -0.011, 0.457), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.247, -0.051).lineTo(-0.247, 0.051).lineTo(0.247, 0.051).lineTo(0.247, -0.051).lineTo(-0.247, -0.051).close().sweep(cq.Workplane('XY').spline([(0.02, -0.037), (0.046, -0.036), (0... | 11 | 69 | 0.010831 |
train_c8936db7f3038206 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.469, -0.175, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(1, 0.302).lineTo(1, 0.858).lineTo(-1, 0.858).lineTo(-1, 0.636).lineTo(0.797, 0.636).lineTo(0.797, 0.302).lineTo(-1, 0.302).lineTo(-1, 0.08).lineTo(1, 0.08).lineTo(1, 0.302).close().extr... | 5 | 64 | 0.297442 |
train_5f350c424734617b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.378, 0.823, 0.038), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.087, 1.178).lineTo(-0.794, 1.373).threePointArc((-1.011, 1.278), (-0.985, 1.042)).threePointArc((-0.868, 0.98), (-0.738, 1.005)).lineTo(-0.375, 0.378).lineTo(-0.104, -0.482).threeP... | 8 | 70 | 2.835342 |
train_f2b68f3a9f65ae2b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.274, 0, -0.572), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.452, 1.089).extrude(0.927)
result = result.faces('>Y').shell(-0.095)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.079, -0.121, -0.583), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(... | 14 | 123 | 0.528531 |
train_a49986acede30511 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, 0.126, 0.285), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.183).sweep(cq.Workplane('XZ').spline([(0.588, 0.105), (0.401, 0.19), (0.158, 0.197), (-0.045, 0.124), (-0.128, -0.001), (-0.058, -0.129), (0.136, -0.208)]))
result = result.edges().cham... | 6 | 26 | 0.180974 |
train_bc45e99473786e4c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.632, -0.042, -0.626), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.28, 0.378).lineTo(0.093, 0.378).lineTo(0.093, 0.108).lineTo(-0.28, 0.108).lineTo(-0.28, -0.098).lineTo(-0.178, -0.098).lineTo(-0.178, -0.228).lineTo(0.019, -0.228).lineTo(0.019, ... | 10 | 139 | 0.616307 |
train_da411878e5cc842b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.409, 0).lineTo(0.612, 0.354).lineTo(-0.612, 0.354).lineTo(-0.409, 0).lineTo(-0.612, -0.354).lineTo(0.204, -0.354).lineTo(0.409, 0).close().sweep(cq.Workplane('XY').spline([(-0.695, -0.349), (-0... | 20 | 31 | 0.539223 |
train_1fe93d5391f93a7e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.445, -0.247, -0.401), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.006, -0.098).lineTo(0.103, 0.07).lineTo(0.356, 0.07).threePointArc((0.62, 0.263), (0.356, 0.456)).lineTo(0.103, 0.456).lineTo(0.006, 0.624).lineTo(-0.411, 0.624).lineTo(-0.62, 0.... | 13 | 141 | 0.487912 |
train_0f91273cbd207a98 | 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.898, 1.019).extrude(1.473)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.325, 0.105, -1.251), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.138).extrude(1.767))
result = result.edges().fille... | 5 | 39 | 2.673603 |
train_2bd63a860ab44918 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.3, -0.411, -0.013), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.322, 1.185).threePointArc((-0.342, 1.118), (-0.349, 1.048)).lineTo(-0.349, -0.798).lineTo(0.349, 0.912).threePointArc((0.15, 1.384), (-0.322, 1.185)).close().extrude(0.6)
result =... | 9 | 57 | 0.301359 |
train_22e0777461588542 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.009, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.073, -0.009).lineTo(-0.073, 0).lineTo(0.064, 0).lineTo(0.064, 0.018).lineTo(-0.073, 0.018).lineTo(-0.073, 0.027).lineTo(0.073, 0.027).lineTo(0.073, -0.009).lineTo(-0.073, -0.009).close()... | 4 | 61 | 0.000627 |
train_9c07367a711f9a9c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.013, 0.007, -0.163), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.704, -1.007).lineTo(0.73, -0.955).lineTo(0.721, 0.993).lineTo(-0.701, 0.964).close().moveTo(-0.367, -0.085).lineTo(-0.387, -0.036).lineTo(-0.299, 0).lineTo(-0.091, 0.085).lineTo(... | 15 | 85 | 0.444363 |
train_f22bf82eac11ec64 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.084, 0.014, 0.171), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.291, 1.014).threePointArc((-0.169, 0.682), (0, 0.14)).lineTo(0, -0.015).lineTo(-0.146, -0.015).lineTo(-0.243, 0.082).lineTo(-0.291, 0.082).lineTo(-0.291, -0.015).lineTo(-0.291, -0.... | 18 | 229 | 0.362821 |
train_7ae81c856b59fd93 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.581, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.84, 1.284).threePointArc((0, 0.973), (0.84, 1.284)).threePointArc((0, 0.023), (-0.84, 1.284)).close().extrude(2)
result = result.edges().fillet(0.22)
result = result.cut(cq.Workplane(cq.... | 17 | 182 | 1.889562 |
train_a0c9f5fcca58006c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.569), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.038, -0.033).threePointArc((-0.062, -0.058), (-0.062, -0.093)).threePointArc((-0.02, -0.121), (0.022, -0.093)).lineTo(0.097, 0.083).threePointArc((0.077, 0.095), (0.057, 0.105)).threePoin... | 3 | 13 | 0.006178 |
train_63970480f6d4b627 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.007, 0.008, -0.26), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.013, 0.994).threePointArc((0, 1.007), (-0.013, 0.994)).lineTo(-0.013, -0.98).threePointArc((0, -0.993), (0.013, -0.98)).lineTo(0.013, 0.994).close().extrude(0.018)
result = result.... | 10 | 159 | 0.171426 |
train_36828c40604e8690 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.46, -0.006, -0.43), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.079, 0.503).extrude(0.669)
result = result.union(cq.Workplane(cq.Plane(origin=(0.694, 0.056, 0.217), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.1).extrude(0.213))
result = result.uni... | 4 | 58 | 0.725134 |
train_4822ebe3a17f04a7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.066, -0.215, -0.288), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.847, -0.009).lineTo(0.259, 0.789).lineTo(-0.714, 0.485).lineTo(-0.681, -0.473).lineTo(0.277, -0.785).close().moveTo(-0.196, 0.058).lineTo(0.196, 0.06).lineTo(0.196, 0.413).lineTo... | 21 | 225 | 0.891646 |
train_fc64bb2f0017645c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.379, 0.77, 0.112), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.888, 0.735).lineTo(0.888, 0.735).lineTo(0.888, 0.024).lineTo(0.403, 0.024).lineTo(0.533, 0.379).lineTo(-0.533, 0.379).lineTo(-0.403, 0.024).lineTo(-0.888, 0.024).lineTo(-0.888, 0.7... | 11 | 122 | 1.349926 |
train_4948cbef9705ac9c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.215, -0.449), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.742, 1.569).extrude(0.898)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.264, -0.767, -0.142), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.262, 0.465).extrude(0.438))
result = res... | 16 | 231 | 2.07642 |
train_9d2735d4a78cafa1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.003), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1, -0.539).lineTo(-1, 0.322).lineTo(-0.423, 0.322).threePointArc((-0.052, 0.539), (0.319, 0.322)).lineTo(1, 0.322).lineTo(1, -0.132).lineTo(1, -0.539).lineTo(-1, -0.539).close().extrude(0.... | 19 | 203 | 0.234518 |
train_f2266cd0442a8e4d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.469, -0.707, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.018, 0.618).lineTo(0.332, 0.012).lineTo(0.332, 0.852).threePointArc((0.441, 0.959), (0.519, 1.09)).lineTo(0.964, 0.319).lineTo(1, 0.257).threePointArc((0.718, 0.045), (0.393, -0.094)... | 6 | 54 | 1.387423 |
train_6c56ddc757c3de9f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.039, -0.682, 0.185), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.052, -0.174).lineTo(-0.052, 0.107).lineTo(-0.29, 0.107).lineTo(-0.29, 0.174).lineTo(0.023, 0.174).lineTo(0.023, 0.107).lineTo(0.29, 0.107).lineTo(0.29, -0.174).lineTo(-0.052, -0... | 5 | 31 | 0.065121 |
train_82dfc07dad5505d3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.732, 0, -0.042), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.736, 0.162).lineTo(-0.736, 0.221).threePointArc((-0.958, 0), (-0.736, -0.221)).lineTo(-0.736, -0.162).lineTo(0.736, -0.162).lineTo(0.736, -0.221).threePointArc((0.958, 0), (0.736, 0... | 8 | 145 | 0.368143 |
train_5121af40c6d77dbf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.203, -0.743, -0.093), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.907, 1.348).lineTo(-0.907, 0.138).lineTo(-0.871, 0.138).lineTo(-0.871, 0.174).lineTo(0.825, 0.174).lineTo(0.825, 0.138).lineTo(0.907, 0.138).lineTo(0.907, 1.348).lineTo(-0.907, ... | 14 | 104 | 0.925793 |
train_b7106c1511b1a21c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.894, 0.571).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.156, 0.245, -0.11), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.038).extrude(0.185))
result = result.edges().fillet(0.... | 12 | 68 | 0.881029 |
train_bc141a26ad409a63 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.38, 0.626, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(1.01, 1.039).lineTo(-1.01, 1.039).lineTo(-0.768, 0.074).lineTo(0.768, 0.074).lineTo(1.01, 1.039).close().extrude(0.761)
result = result.edges().fillet(0.034)
result = result.cut(cq.Workpl... | 12 | 52 | 1.300903 |
train_bed9ff12f9c8634e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.862, -0.028, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.272).sweep(cq.Workplane('XY').spline([(-0.205, -0.104), (0.041, -0.261), (0.306, -0.261), (0.552, -0.104), (0.552, 0.066), (0.306, 0.223), (0.041, 0.223), (-0.205, 0.066)]))
result = r... | 3 | 30 | 0.316298 |
train_3df7aaed33743527 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.065, 0, 0.011), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.005, -0.848).lineTo(0.05, 0.962).lineTo(0.005, 0.963).lineTo(-0.05, -0.847).lineTo(-0.005, -0.848).close().extrude(0.086)
result = result.edges().fillet(0.004)
result = result.union(cq... | 9 | 134 | 0.087514 |
train_86574e710a641e56 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.4, 0.306, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.6, 0.705).lineTo(-0.048, 0.705).threePointArc((-0.16, 0.519), (-0.2, 0.305)).lineTo(-0.6, -0.694).lineTo(-0.6, 0.305).threePointArc((-0.579, 0.51), (-0.517, 0.705)).threePointArc((-0.06,... | 2 | 11 | 0.05039 |
train_cbb6b83845e62874 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.555, 0.537, -0.083), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.471).sweep(cq.Workplane('XY').spline([(0.555, 0.148), (0.828, 0.158), (1.1, 0.262), (1.373, 0.366), (1.646, 0.376)]))
result = result.edges().chamfer(0.032)
result = result.union(c... | 3 | 12 | 0.209955 |
train_4aa986772447f928 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, 0.435, 0.502), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.501, 0.735).lineTo(-0.501, 0.135).lineTo(0.334, 0.135).lineTo(0.334, 0.535).lineTo(0.501, 0.535).lineTo(0.501, 0.735).lineTo(-0.501, 0.735).close().revolve(angleDegrees=270, axisS... | 28 | 147 | 0.932265 |
train_07452d5aa98075a3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.204, 0, -0.019), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.591, 0.597).extrude(0.4)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.788, -0.064, 0.076), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.425, 0.242).extrude(0.103))
result = result... | 14 | 205 | 0.509357 |
train_9118850b4684cafd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.348, -0.318, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.58, 0.335).lineTo(0.194, 0.335).lineTo(0.386, 0).lineTo(0.58, -0.335).lineTo(0, -0.669).lineTo(0.194, -0.335).lineTo(-0.58, -0.335).lineTo(-0.58, 0.335).lineTo(-0.194, 0.335).lineTo(0,... | 5 | 32 | 0.57548 |
train_3e626bc413265fc0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.861, 0.019, -0.397), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.26, 0.564).extrude(0.106)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.744, 0.056, -0.287), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.177, 0.275).threePointArc((0.006, ... | 19 | 192 | 0.104869 |
train_11a604f5b7abd3cd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.22, 0.129, -0.123), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.624, 0.016).lineTo(0.183, 0.606).lineTo(-0.497, 0.379).lineTo(-0.516, -0.339).lineTo(0.184, -0.595).close().moveTo(-0.198, -0.109).lineTo(-0.164, -0.047).lineTo(-0.095, -0.033).lin... | 24 | 207 | 0.305979 |
train_a56f16bcdc2892b5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.264, 0.264, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.974, 0.527).lineTo(-0.987, 0.527).lineTo(-0.987, 0.525).lineTo(-1, 0.049).lineTo(-0.974, 0.049).lineTo(-0.974, 0.052).lineTo(-0.987, 0.24).lineTo(-0.987, 0.336).lineTo(-0.974, 0.336).... | 6 | 42 | 0.17317 |
train_d6d57e2aef0f8a35 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.241, 0, -0.776), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.218).workplane(offset=0.146).circle(0.201).workplane(offset=0.113).circle(0.224).workplane(offset=0.112).circle(0.196).workplane(offset=0.111).circle(0.209).loft()
result = result.edg... | 4 | 12 | 0.062056 |
train_edd50ce07280a26d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.002, -0.425, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.5).threePointArc((-1, 0.477), (-0.998, 0.455)).threePointArc((0, -0.5), (0.998, 0.455)).threePointArc((1, 0.477), (1, 0.5)).lineTo(-1, 0.5).close().sweep(cq.Workplane('XY').spline... | 1 | 6 | 3.091063 |
train_358095c1f7c42be3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, 0.008, -0.281), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.212, 0.982).lineTo(0.197, 0.992).lineTo(0.203, 0.222).lineTo(0.725, 0.197).lineTo(0.745, -0.17).lineTo(0.197, -0.201).lineTo(0.201, -1.004).lineTo(-0.196, -1.008).lineTo(-0.189, ... | 11 | 76 | 0.385265 |
train_a80428edb824480e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.766, 0, -0.189), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.044, 0.174).lineTo(0.109, 0.174).lineTo(0.109, -0.174).lineTo(-0.006, -0.174).lineTo(-0.005, -0.148).lineTo(-0.017, -0.148).lineTo(-0.018, -0.174).lineTo(-0.109, -0.174).lineTo(-0.10... | 21 | 106 | 0.164463 |
train_6994cda4d7c2228d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.048, 0.056, -0.269), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.013).lineTo(0.731, 0.013).lineTo(0.731, 0.15).lineTo(-0.731, 0.15).lineTo(-0.731, 0.013).lineTo(0, 0.013).close().extrude(0.152)
result = result.edges().chamfer(0.044)
result =... | 11 | 74 | 0.022607 |
train_63d85e3e56815150 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.98, 0.309, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.399).sweep(cq.Workplane('XY').spline([(-0.521, 0.309), (-0.291, 0.014), (-0.062, -0.084), (0.168, 0.014), (0.397, 0.309)]))
result = result.union(cq.Workplane(cq.Plane(origin=(-0.473, ... | 5 | 21 | 0.225383 |
train_2e10fd3944590857 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.224, 0, -0.118), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.452, -0.021).threePointArc((-0.291, 0.236), (-0.006, 0.34)).threePointArc((0.279, 0.236), (0.439, -0.021)).threePointArc((0.448, -0.074), (0.452, -0.127)).lineTo(0.452, -0.23).lineT... | 2 | 15 | 0.263625 |
train_74cf8eb32d05cc33 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.004, 0.394, -0.016), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.013, -0.075).threePointArc((0.048, -0.082), (0.055, -0.047)).lineTo(0.074, -0.001).lineTo(0.055, 0.045).threePointArc((0.044, 0.082), (0.009, 0.064)).threePointArc((-0.025, 0.082),... | 4 | 32 | 0.056382 |
train_739a6a7d6ec32684 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.035, -0.266), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.734, 0.19).threePointArc((0, -0.19), (-0.734, 0.19)).lineTo(0.734, 0.19).close().sweep(cq.Workplane('XY').spline([(-0.438, 0.035), (-0.219, 0.029), (0, 0.008), (0.219, -0.032), (0.438,... | 2 | 11 | 0.405393 |
train_7196bc0e4fff0900 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.01, 0.009, -0.016), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.101, 0.092).extrude(0.007)
result = result.union(cq.Workplane(cq.Plane(origin=(0.021, 0.003, -0.009), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.028, 0.018).extrude(0.003))
result = re... | 24 | 297 | 0.001834 |
train_35164d94535e4c1a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.422, -0.112, -0.17), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.072, 0.631).lineTo(0.535, 0.024).lineTo(-0.072, -0.439).lineTo(-0.535, 0.168).lineTo(0.072, 0.631).close().extrude(0.586)
result = result.edges().fillet(0.25)
result = result.cut(... | 26 | 109 | 0.215801 |
train_24dedb090a5592aa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.428, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.585, 1.008).lineTo(-0.585, 0.148).lineTo(0.585, 0.148).lineTo(0.585, 0.859).threePointArc((0.542, 0.964), (0.437, 1.008)).lineTo(-0.585, 1.008).close().revolve(angleDegrees=180, axisStart... | 10 | 60 | 1.366862 |
train_f6460d0fb6ccf7aa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.817, 0.134, -0.278), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.722, 0.604).lineTo(-0.722, -0.324).threePointArc((-0.485, -0.336), (-0.249, -0.317)).threePointArc((-0.078, -0.284), (0.089, -0.235)).threePointArc((0.254, -0.167), (0.412, -0.08... | 9 | 54 | 1.547296 |
train_1207165eef8344eb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.446, -0.069, -0.221), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.388, 0.428).extrude(0.441)
result = result.union(cq.Workplane(cq.Plane(origin=(0.804, -0.068, 0.083), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.392, 0.035).extrude(0.044))
result = ... | 6 | 64 | 0.126072 |
train_40ecd0fd05dbfa5f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.207, -0.114, -0.37), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.586, 0.861).extrude(0.548)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.207, -0.114, -0.453), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.025, 0.394).extrude(0.712))
result = ... | 3 | 17 | 0.574114 |
train_e6257f18dab8d710 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.667, 0.131), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.154, -0.333).lineTo(-0.212, 0.3).lineTo(-0.154, 0.333).lineTo(0.212, -0.3).lineTo(0.154, -0.333).close().sweep(cq.Workplane('YZ').spline([(0.667, -0.358), (0.823, -0.358), (0.979, -0.35... | 4 | 19 | 0.015744 |
train_4d4ea1405bb6c36f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.236, -0.063), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.027, 0.02).threePointArc((0.086, -0.018), (0.109, -0.085)).lineTo(-0.109, -0.085).lineTo(-0.163, -0.085).lineTo(-0.17, -0.085).threePointArc((0, 0.085), (0.17, -0.085)).lineTo(0.163... | 4 | 26 | 0.066066 |
train_122b465a5944b71b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.316, 0, -0.061), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.368, 1.388).extrude(0.122)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.36, -0.456, 0.026), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.084, 0.621).lineTo(0.106, 0.599).lineTo(-0... | 17 | 45 | 0.169158 |
train_03bda42b2418634b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0, -0.16), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.288, 0.1).lineTo(0.136, 0.117).lineTo(-0.288, -0.373).lineTo(-0.288, 0.373).lineTo(0.278, 0.373).lineTo(0.288, 0.1).close().sweep(cq.Workplane('XZ').spline([(-0.256, -0.51), (0.398, -0.51... | 3 | 12 | 0.355357 |
train_2b25cc32dad6e46e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.203, 0.155, 0.399), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.391, 0.244).threePointArc((-0.396, 0.242), (-0.399, 0.236)).lineTo(-0.399, 0.232).lineTo(-0.399, 0.065).lineTo(0.399, 0.065).lineTo(0.399, 0.232).lineTo(0.399, 0.236).threePointAr... | 4 | 16 | 0.322595 |
train_2ea57baf62d3e2d2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.26, 1.452, 0.281), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.58, 1.905).extrude(1.431)
result = result.faces('>Y').shell(-0.065)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.77, 1.809, 0.503), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(... | 6 | 10 | 0.065121 |
train_d9cacf35e07b60fc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.636, 0.4, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.041).lineTo(1, 0.041).lineTo(1, 0.542).lineTo(0.906, 0.445).threePointArc((0.615, 0.458), (0.377, 0.627)).threePointArc((0.245, 0.728), (0.081, 0.759)).threePointArc((-0.508, 0.601),... | 4 | 17 | 0.978825 |
train_a4b40c0c9e3b77c5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.523, -0.576, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.468, 1.324).threePointArc((0.748, 1.324), (0.748, 0.108)).lineTo(0.468, -0.172).threePointArc((-0.748, -0.172), (-0.748, 1.043)).lineTo(-0.468, 1.324).close().extrude(1.045)
result =... | 22 | 14 | 2.973346 |
train_9554fbb8c8cb6671 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.086, -0.061, 0.229), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.82, 0.632).extrude(0.771)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.086, -0.061, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.115).extrude(1.273))
result = result.u... | 8 | 33 | 0.355589 |
train_70ab35347c6722bc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.598, -0.434, -0.72), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.353, 0.201).lineTo(0.369, 0.201).lineTo(0.369, -0.201).lineTo(-0.369, -0.201).lineTo(-0.369, 0.201).lineTo(0.353, 0.201).close().transformed(offset=(0.337, 0.031, 0.303), rotate=(... | 5 | 54 | 0.511943 |
train_38d042985050a9fa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.096), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.496, 2).extrude(0.147)
result = result.union(cq.Workplane(cq.Plane(origin=(0.344, -0.498, 0.049), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.039).extrude(0.047))
result = result.cut(cq.Work... | 7 | 10 | 0.430747 |
train_a5ab2361b58e1373 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.438, 0, 0.403), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.436).sweep(cq.Workplane('XZ').spline([(-0.257, 0.05), (-0.096, -0.053), (0.079, -0.053), (0.24, 0.05), (0.24, 0.161), (0.079, 0.264), (-0.096, 0.264), (-0.257, 0.161)]))
result = result... | 3 | 15 | 1.127098 |
train_a24807dbe6a05927 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.271, 0.281, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.254, 1.258).lineTo(0.254, 0.614).lineTo(-0.267, -0.72).threePointArc((-0.263, -0.728), (-0.255, -0.724)).lineTo(0.254, 0.581).lineTo(0.262, 0.6).lineTo(0.266, 0.612).threePointArc((0.2... | 2 | 13 | 0.014752 |
train_9f4d980930b4fec5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.046, 0.571, -0.114), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, -0.033).lineTo(-0.115, -0.1).threePointArc((-0.127, -0.073), (-0.132, -0.044)).threePointArc((0, 0.1), (0.132, -0.044)).threePointArc((0.127, -0.073), (0.115, -0.1)).lineTo(0, -0... | 13 | 45 | 0.090733 |
train_4c1ee9472caf27ae | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.901, 0.4, -0.4), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.4, 1.324).lineTo(0.4, 1.204).lineTo(0.333, 1.204).lineTo(0.333, 0.554).lineTo(0.4, 0.554).lineTo(0.4, -0.099).lineTo(0.333, -0.099).lineTo(0.333, 0.435).lineTo(-0.311, 0.435).lineTo(-... | 16 | 102 | 0.572292 |
train_d50743c2d65dc9ca | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.09, -0.113), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.93, 0.003).lineTo(-0.93, 0.099).lineTo(0.93, 0.099).lineTo(0.93, 0.003).lineTo(-0.93, 0.003).close().extrude(0.069)
result = result.faces('<X').shell(-0.007)
result = result.union(cq.... | 11 | 147 | 0.165751 |
train_d3a4070c444503c7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.186, -0.053, -0.803), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.161, 0.73).threePointArc((0.041, -0.024), (-0.161, -0.777)).lineTo(-0.244, -0.925).threePointArc((-0.13, -0.944), (-0.031, -0.886)).threePointArc((0.323, -0.021), (0.119, 0.891))... | 12 | 53 | 0.666728 |
train_e765403d5f910a4a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.132, -0.165, -0.121), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.355, -0.2).lineTo(0.355, 0.753).lineTo(-0.355, 0.753).lineTo(-0.355, -0.2).lineTo(0.355, -0.2).close().extrude(0.835)
result = result.edges().fillet(0.091)
result = result.cut(cq... | 22 | 263 | 0.282424 |
train_620b2eb2ec7316a7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.607, -0.557, 0.345), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.437, 0.339).lineTo(-0.348, 0.792).lineTo(-0.352, 0.796).lineTo(0.09, 0.946).lineTo(0.089, 0.941).lineTo(0.437, 0.637).lineTo(0.348, 0.184).lineTo(0.352, 0.18).lineTo(-0.09, 0.029... | 17 | 64 | 0.662169 |
train_36cf1400caa6b70e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.055, 0, -0.061), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.177, 0.226).extrude(0.058)
result = result.union(cq.Workplane(cq.Plane(origin=(0.055, 0, -0.003), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.033, 0).lineTo(0.017, 0.026).lineTo(-0.015, ... | 17 | 74 | 0.060097 |
train_25951103062ed126 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.576, -0.436, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.604, 0.024).lineTo(-0.604, 0.674).lineTo(-1, 0.674).lineTo(-1, 0.761).lineTo(-0.604, 0.761).lineTo(-0.604, 0.848).lineTo(-0.517, 0.848).lineTo(-0.517, 0.761).lineTo(1, 0.761).lineTo(... | 2 | 22 | 0.338345 |
train_35fec43c6053a25c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.405), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.781, 2).extrude(0.653)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.712 + 0.2375, 0.1955, -1.705), normal=(0, 1, 0), xDir=(1, 0, 0))).moveTo(-0.053, 0.055).lineTo(-0.053, -0.055).lin... | 29 | 236 | 1.821797 |
train_59763bb6f4789b9a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.946, -0.73, -0.01), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.054, -0.054).lineTo(0.054, -0.035).lineTo(0.034, -0.022).lineTo(0.024, 0.024).lineTo(0.054, 0.054).lineTo(-0.054, 0.054).lineTo(-0.024, 0.024).lineTo(0.022, 0.034).lineTo(0, 0).li... | 4 | 32 | 0.005025 |
train_72de87194ddf9aa2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.042, 0.584, -0.049), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.549, 0.468).extrude(0.243)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.134, 0.604, 0.001), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.206, 0.287).extrude(0.047))
result = res... | 22 | 151 | 0.123418 |
train_71a218be7fd38ab9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.382).workplane(offset=0.311).circle(0.31).workplane(offset=0.379).circle(0.406).workplane(offset=0.287).circle(0.422).workplane(offset=0.319).circle(0.193).workplane(offset=0.331).circle(0.331... | 9 | 48 | 0.716309 |
train_aed8e6f56144c31e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.399, -0.006), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.281, -0.162).lineTo(0.187, 0).lineTo(0.094, 0.162).lineTo(-0.094, 0.162).lineTo(0, 0.325).lineTo(-0.281, 0.162).lineTo(-0.187, 0).lineTo(-0.094, -0.162).lineTo(0, -0.325).lineTo(0.281... | 10 | 57 | 0.108455 |
train_10be4f56b9562cf5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.595, -0.164), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.354, 0.405).lineTo(-0.354, -0.405).lineTo(-0.253, -0.303).lineTo(0.354, -0.303).lineTo(0.354, 0.303).lineTo(0.05, 0).lineTo(-0.354, 0.405).close().sweep(cq.Workplane('YZ').spline([(... | 3 | 16 | 0.194891 |
train_be53367860ddc5b8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.154, 0.174, 0.314), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, 0.043).lineTo(0.157, -0.034).lineTo(0.157, -0.043).lineTo(-0.157, -0.043).lineTo(-0.157, -0.034).lineTo(0, 0.043).close().transformed(offset=(0.317, 0, 0.053), rotate=(0, 90, 0))... | 13 | 71 | 0.545474 |
train_07b10bcab68de248 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.727, 0, -0.46), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.137, -0.301).threePointArc((0.233, -0.261), (0.273, -0.164)).lineTo(0.273, 0.164).threePointArc((0.233, 0.261), (0.137, 0.301)).lineTo(0, 0.301).lineTo(-0.137, 0.301).threePointArc((-0... | 7 | 35 | 0.509121 |
train_cdcce4bbf5a8e1c0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1, 0.317), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.034, 0.053).lineTo(0.035, -0.052).lineTo(-0.01, -0.053).threePointArc((-0.027, -0.046), (-0.034, -0.029)).lineTo(-0.035, 0.028).threePointArc((-0.029, 0.045), (-0.012, 0.052)).lineTo(0.03... | 1 | 8 | 0.010749 |
train_539c1018c8e6e30d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.169), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.452).extrude(0.337)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.168, -1.113), normal=(0, 1, 0), xDir=(1, 0, 0))).moveTo(0.006, -0.039).lineTo(0.006, -0.042).lineTo(-0.006, -0.0... | 14 | 54 | 0.680233 |
train_07e5fd925c6952b5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.005, -0.045, 0.044), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.205, 0.198).lineTo(0, 0.316).lineTo(-0.205, -0.039).lineTo(0.205, -0.039).lineTo(0.205, 0.198).close().extrude(0.596)
result = result.edges().chamfer(0.026)
result = result.cut(cq... | 24 | 185 | 0.144089 |
train_0ebc922674ecefc7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.585, -0.309, 0.103), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.575, 0.218).lineTo(-0.575, 0.011).lineTo(0.575, 0.011).lineTo(0.575, 0.218).lineTo(-0.575, 0.218).close().extrude(0.503)
result = result.edges().chamfer(0.086)
result = result.cu... | 30 | 161 | 0.096102 |
train_a58619e7e3bd9654 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.213, 0.163, 0.197), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.087).sweep(cq.Workplane('XZ').spline([(0.269, -0.138), (0.076, 0.245), (-0.26, 0.379), (-0.527, 0.062), (-0.531, -0.399), (-0.228, -0.683), (0.13, -0.544)]))
result = result.cut(cq... | 22 | 65 | 0.818159 |
train_10e2ceba4017c2b0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.006, -0.454, -0.505), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.955, 0.058).lineTo(-1.006, 0.057).lineTo(-1.006, 0.946).lineTo(-0.717, 0.724).lineTo(0.666, 0.724).lineTo(1.006, 0.946).lineTo(0.955, 0.058).close().extrude(1.01)
result = result.... | 14 | 85 | 1.034967 |
train_5c849279f5165e94 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.807), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.812, 2).extrude(1.614)
result = result.cut(cq.Workplane(cq.Plane(origin=(0 + 0.43 * math.cos(1.908 + 2 * math.pi * 0 / 6), 0.807 + 0.43 * math.sin(1.908 + 2 * math.pi * 0 / 6), -2.107), norm... | 16 | 25 | 5.529229 |
train_ceb472e2ecff10ae | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.082, -0.189, 0.433), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.011, 0.189).lineTo(-0.078, 0.189).lineTo(-0.078, -0.122).lineTo(0.078, -0.122).lineTo(0.078, -0.055).lineTo(0.011, -0.055).lineTo(0.011, 0.144).lineTo(-0.011, 0.144).lineTo(-0.01... | 7 | 73 | 0.192609 |
train_2663ad6d38c97de4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, -0.307, -0.411), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1.061, 0.475).lineTo(1.061, 0.475).lineTo(0.882, 0.043).lineTo(-0.882, 0.043).lineTo(-1.061, 0.475).close().extrude(0.822)
result = result.edges().fillet(0.124)
result = result.cu... | 11 | 117 | 0.548095 |
train_233c23a722cc1dce | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.109, -0.608, -0.459), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, -0.392).lineTo(0.307, -0.392).lineTo(0.307, 1.203).lineTo(-0.307, 1.203).lineTo(-0.307, -0.392).lineTo(0, -0.392).close().extrude(0.917)
result = result.edges().fillet(0.195)
re... | 13 | 88 | 0.693968 |
train_eea36bc312ee0285 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.911, 1.375).extrude(1.369)
result = result.union(cq.Workplane(cq.Plane(origin=(0.225, 0.159, 0.347), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.28, 0.616).extrude(0.653))
result = result.cut(cq.W... | 4 | 20 | 1.727257 |
train_78ab680f26bd3257 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.014, 0.301, 0.352), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.648, 0.189).lineTo(0.648, 0.006).lineTo(-0.648, 0.006).lineTo(-0.648, 0.189).lineTo(0.648, 0.189).close().revolve(angleDegrees=360, axisStart=(0, 0), axisEnd=(0.05, 0))
result = r... | 8 | 54 | 0.160855 |
train_c31b8a54d1233d93 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1, 0.077), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.133, -0.048).lineTo(0.142, -0.048).lineTo(0.142, 0.048).lineTo(-0.142, 0.048).lineTo(-0.142, -0.048).lineTo(-0.133, -0.048).close().sweep(cq.Workplane('YZ').spline([(-0.342, 0.016), (-0.... | 7 | 122 | 0.049446 |
train_336ce145d9a9e8e7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.331, 0.002, 0.503), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.501, 0.115).lineTo(-0.501, 0.546).lineTo(0.16, 0.546).threePointArc((0.187, 0.431), (0.149, 0.32)).lineTo(0.501, 0.32).lineTo(0.501, 0.115).lineTo(-0.501, 0.115).close().revolve(a... | 11 | 63 | 0.662891 |
train_62d17449a5e25605 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.316, 0.69, -0.297), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.178, 1.316).lineTo(0.178, 0.398).lineTo(0.344, 0.302).lineTo(0.049, -0.418).threePointArc((0.035, -0.436), (0.017, -0.45)).lineTo(-0.565, -0.684).lineTo(0.061, -0.527).threePointAr... | 7 | 36 | 0.91571 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.