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_cee493d4904ca70a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.049, -0.046, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.064, -0.954).lineTo(0.064, 1.046).lineTo(-0.064, 1.046).lineTo(-0.064, -0.954).lineTo(0.064, -0.954).close().extrude(0.098)
result = result.edges().fillet(0.046)
result = result.cut(c... | 9 | 91 | 0.020116 |
train_9479e220104fb6f0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.308), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.892).extrude(0.616)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.433, -0.063, -0.039), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.236, 1.071).extrude(0.186))
result = result.cut(cq.... | 4 | 55 | 1.054597 |
train_e958798ff7d3d5de | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.723, 0.442, -0.174), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.346, 0.139).lineTo(-0.346, -0.277).lineTo(0.346, -0.277).lineTo(0.346, 0.139).lineTo(0.139, 0.139).threePointArc((0, 0.277), (-0.139, 0.139)).lineTo(-0.346, 0.139).close().sweep(... | 5 | 29 | 0.214142 |
train_13b8104a47aae65f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.029, 0.054, -0.035), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.016, 0.472).lineTo(0.016, -0.472).lineTo(-0.016, -0.472).lineTo(-0.016, 0.472).lineTo(0.016, 0.472).close().sweep(cq.Workplane('XZ').spline([(-0.1, -0.054), (-0.052, -0.021), (-0.... | 38 | 236 | 0.059536 |
train_4c26964b27054873 | 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.406, 1.145).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.03, 0.233, 0.025), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.288).extrude(0.363))
result = result.cut(cq.Workplane(c... | 3 | 14 | 3.088071 |
train_ae558cf7cd800298 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.814, -0.587, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, -0.186).lineTo(0.206, -0.186).lineTo(0.247, -0.144).lineTo(0.288, -0.103).lineTo(0.082, 0.103).lineTo(0.041, 0.144).lineTo(0, 0.186).lineTo(-0.041, 0.144).lineTo(-0.082, 0.103).line... | 1 | 14 | 0.023713 |
train_a63ec5e951b09661 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.144, 0.28, 0.212), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.174).workplane(offset=0.047).circle(0.184).workplane(offset=0.044).circle(0.168).workplane(offset=0.042).circle(0.159).workplane(offset=0.05).circle(0.186).workplane(offset=0.059).... | 24 | 541 | 0.362979 |
train_c08c39a19b2b4ece | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.014, 0, -0.02), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.018, 0.027).lineTo(-0.006, 0.016).lineTo(-0.021, 0.012).lineTo(-0.026, 0.006).lineTo(-0.011, -0.025).lineTo(-0.006, -0.018).lineTo(0.009, -0.025).lineTo(0.022, -0.003).close().moveTo(-... | 7 | 129 | 0.00919 |
train_eaa84dae15e4fbaf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.197, 0, 0), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.399, 0).lineTo(-0.399, 0.92).lineTo(0.399, 0.92).lineTo(0.399, 0.171).threePointArc((0.199, -0.025), (0.126, -0.295)).threePointArc((0.199, -0.565), (0.399, -0.761)).lineTo(0.399, -0.92).... | 10 | 53 | 2.061954 |
train_aaf3932b7f937a52 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.501, 0.501), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.2, 0.501).lineTo(-0.642, 0.501).lineTo(-0.642, 0.14).lineTo(-0.24, 0.14).lineTo(-0.24, -0.501).lineTo(0.642, -0.501).lineTo(0.642, 0.501).lineTo(0.2, 0.501).close().revolve(angleDegree... | 11 | 80 | 0.920978 |
train_a034d964a0781718 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.301, -0.098, -0.351), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.723, -0.007).lineTo(0.506, 0.535).lineTo(0.005, 0.714).lineTo(-0.536, 0.526).lineTo(-0.723, 0.02).lineTo(-0.497, -0.523).lineTo(0.023, -0.741).lineTo(0.515, -0.536).close().moveT... | 15 | 125 | 1.464322 |
train_cc011d9de73c0e9d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.657, 0.887), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.317, -0.172).lineTo(-0.275, -0.075).lineTo(-0.204, -0.075).lineTo(-0.226, 0.039).lineTo(-0.134, 0.252).lineTo(0.134, 0.252).lineTo(0.221, 0.051).lineTo(0.192, -0.075).lineTo(0.275, -0.... | 4 | 29 | 0.114995 |
train_3e5d583378b81683 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.132, 0, -0.145), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.736, 1.629).extrude(0.152)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.543, 0.083, -0.108), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.963, 0.701).extrude(0.094))
result = resul... | 10 | 48 | 0.45215 |
train_6f98aeb97166fc46 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.124, 0.007), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1, -0.117).lineTo(1, -0.117).lineTo(1, 0.117).lineTo(-1, 0.117).lineTo(-1, -0.117).close().revolve(angleDegrees=270, axisStart=(-1, -0.117), axisEnd=(-0.767, -0.117))
result = result.e... | 4 | 84 | 0.245192 |
train_d54f16a59b75cae6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1, -0.421), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.174, 0.302).lineTo(-0.261, 0.151).lineTo(-0.348, 0).lineTo(-0.261, -0.151).lineTo(-0.174, -0.302).lineTo(0, -0.302).threePointArc((0.151, -0.261), (0.261, -0.151)).lineTo(0.348, 0).line... | 3 | 16 | 0.291566 |
train_df343e09fb79db83 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.528, 0.781, 0.13), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.051, -0.217).lineTo(-0.051, -0.088).lineTo(0.358, 0.219).lineTo(0.197, 0.219).lineTo(-0.358, 0.045).lineTo(-0.358, -0.219).lineTo(-0.223, -0.217).lineTo(-0.184, -0.187).lineTo(-0.... | 1 | 11 | 0.085182 |
train_d779857b6389f369 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.264, 0.046), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.666, 0.911).lineTo(-0.133, 0.911).lineTo(-0.133, 0.151).lineTo(0.666, 0.151).lineTo(0.666, -0.382).lineTo(-0.666, -0.382).lineTo(-0.666, 0.911).close().extrude(1.894)
result = result... | 41 | 48 | 2.100796 |
train_20d7de52745be293 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.043, -0.253, -0.239), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.914, 1.479).extrude(0.524)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.334, -0.261, -0.321), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.146).extrude(0.085))
result = re... | 8 | 38 | 1.531368 |
train_cafd208f4861f136 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.328, 0.453, -0.043), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.667, 1.453).lineTo(-0.667, 1.453).lineTo(-0.667, -0.368).lineTo(0.667, -0.368).lineTo(0.667, 1.453).close().extrude(0.698)
result = result.edges().fillet(0.224)
result = result.un... | 7 | 45 | 1.548503 |
train_9d9a346c063c3205 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.903, 0, 0.246), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.075, 0.079).extrude(0.084)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.908, 0.027, 0.208), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.145, -0.076).lineTo(0.145, 0).lineTo(0.0... | 7 | 66 | 0.068577 |
train_909e38257737fb1c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.463, -0.227), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.253, 0.209).extrude(0.225)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.001, 0.776, -0.059), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.023, 0.449).extrude(0.011))
result = resu... | 4 | 22 | 0.015236 |
train_e869f76b1521c841 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.267, 0.172, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.949, 0.076).lineTo(-0.979, 0.158).lineTo(0, 0.517).lineTo(0.979, 0.158).lineTo(0.949, 0.076).lineTo(1, 0.058).lineTo(0.985, 0.017).lineTo(0, 0.378).lineTo(-0.985, 0.017).lineTo(-1, 0.... | 10 | 316 | 0.055805 |
train_f807a1afc07664bd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.341, -0.004, 0.336), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.122, -0.22).lineTo(0.122, -0.22).lineTo(0.122, 0.22).lineTo(0.091, 0.164).lineTo(-0.122, 0.164).lineTo(-0.016, -0.027).lineTo(-0.122, -0.22).close().sweep(cq.Workplane('XZ').move... | 13 | 246 | 0.468555 |
train_7a6378225fdfc9c6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.024, 0, -0.247), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.068, 2).extrude(0.516)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.024, 0, -0.252), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.063).extrude(0.168))
result = result.cut(cq.Work... | 14 | 32 | 1.094321 |
train_865c82448d89fab6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.449, 0.027, -0.567), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.101, 1.721).extrude(0.403)
result = result.union(cq.Workplane(cq.Plane(origin=(0.101, 0.114, -0.15), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.644, 1.001).lineTo(-0.644, -0.167).... | 3 | 41 | 2.271041 |
train_ecde0b21f5d8bb65 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.115, 0.439, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.926, 0.833).lineTo(0.463, 1.101).lineTo(0, 1.368).lineTo(-0.463, 1.101).threePointArc((-0.802, 0.761), (-0.926, 0.299)).lineTo(-0.926, -0.236).lineTo(-0.463, -0.503).threePointArc((0, ... | 21 | 99 | 1.146644 |
train_bda4073997592b6c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.074, -0.097, -0.705), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.213, 0.049).lineTo(0.164, 0.049).threePointArc((0.213, 0), (0.164, -0.049)).lineTo(-0.213, -0.049).lineTo(-0.213, 0).lineTo(-0.213, 0.049).close().sweep(cq.Workplane('XY').spli... | 21 | 225 | 0.028956 |
train_ba688fffbb033ab2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.473, 0.333, 0.011), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.055, 0.379).lineTo(0.055, 0.379).lineTo(0.055, -0.35).lineTo(-0.055, -0.35).lineTo(-0.055, 0.379).close().extrude(0.162)
result = result.edges().chamfer(0.009)
result = result.uni... | 20 | 219 | 0.485299 |
train_1fe7a1af2c91eb97 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.464, 0.088, 0.396), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.262, 0.203).lineTo(-0.321, 0.169).lineTo(-0.262, 0.067).lineTo(-0.262, -0.203).lineTo(0.145, -0.203).lineTo(0.321, 0.102).lineTo(0.203, 0.169).lineTo(0.145, 0.203).lineTo(-0.262, 0... | 3 | 24 | 0.117963 |
train_5382fc8304ca08f4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.41, -1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.289, -0.09).threePointArc((0, -0.168), (0.289, -0.09)).lineTo(0.578, 0.077).lineTo(0.578, 0.41).threePointArc((0.501, 0.699), (0.289, 0.911)).threePointArc((0, 0.988), (-0.289, 0.911)).li... | 6 | 32 | 2.084886 |
train_a423c205f3dadaa1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.033, -0.539, 1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.264, 1.504).lineTo(-0.255, 1.507).lineTo(-0.068, 0.811).threePointArc((-0.071, 0.806), (-0.066, 0.803)).lineTo(-0.042, 0.714).lineTo(-0.04, 0.706).lineTo(-0.015, 0.617).lineTo(-0.014,... | 1 | 25 | 0.029334 |
train_00e1c6a1faeef72c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.065, 0.064), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.253, 0.674).lineTo(-0.253, -0.674).lineTo(0.253, -0.674).lineTo(0.253, 0.674).lineTo(-0.253, 0.674).close().workplane(offset=0.138).moveTo(-0.187, 0.5).lineTo(-0.187, -0.5).lineTo(0.... | 12 | 114 | 0.058306 |
train_80e8b86bd9406033 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.28, 0.206, 0.007), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.197, 0.217).threePointArc((0.182, 0.469), (0.136, 0.716)).lineTo(-0.197, 0.633).threePointArc((-0.159, 0.427), (-0.146, 0.217)).lineTo(0.197, 0.217).close().revolve(angleDegrees=360... | 10 | 122 | 1.161806 |
train_27f41e16381174b1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.465), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.197).extrude(0.93)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.368, -0.251, 0.242), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.863, 0.457).extrude(0.228))
result = result.cut(cq.Wo... | 21 | 208 | 0.92156 |
train_817d4223fb1a6828 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.713, -0.035, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.265, -0.287).lineTo(0.265, 0.229).lineTo(0.294, 0.229).lineTo(0.294, 0.287).lineTo(-0.294, 0.287).lineTo(-0.294, 0.229).lineTo(-0.265, 0.229).lineTo(-0.265, 0.258).lineTo(-0.014, 0.2... | 5 | 25 | 0.177629 |
train_29042446f1929598 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.077, -0.172), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.646).extrude(0.134)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.667, -0.301, -0.132), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.701, 0.869).extrude(0.04))
result = result.cu... | 7 | 47 | 0.473144 |
train_c609716fbb61e0a5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.607, 0, 0.38), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.403, 0.845).lineTo(-0.403, -0.845).lineTo(-0.283, -0.845).lineTo(-0.283, -0.721).threePointArc((0.403, -0.022), (-0.283, 0.678)).lineTo(-0.283, 0.845).lineTo(-0.403, 0.845).close().sw... | 2 | 38 | 1.793907 |
train_f490f553ae7ca7d3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.304, 0, 0.235), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.48, 0.6).lineTo(-0.48, -1).lineTo(0.27, -1).lineTo(0.438, 0.6).lineTo(0.48, 1).lineTo(0.186, 0.87).lineTo(0.179, 0.79).lineTo(0.113, 0.837).lineTo(0.089, 0.6).lineTo(-0.48, 0.6).clos... | 1 | 11 | 0.609337 |
train_827b2bb51507f132 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.216, -0.157, -0.271), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.569, 0.821).extrude(0.542)
result = result.faces('>Z').shell(-0.03)
result = result.union(cq.Workplane(cq.Plane(origin=(0.765, -0.248, -0.192), normal=(0, 0, 1), xDir=(1, 0, 0))).r... | 4 | 27 | 0.175167 |
train_0eacbc63279d5b45 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.332, 0.004, -0.051), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.668, -0.02).lineTo(0.327, 0.591).lineTo(-0.316, 0.603).lineTo(-0.681, 0.015).lineTo(-0.333, -0.605).lineTo(0.357, -0.612).close().moveTo(0.033, 0.27).lineTo(-0.013, 0.253).lineTo(-... | 11 | 86 | 0.072729 |
train_3f382039eaaa9d14 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.149), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.82).extrude(0.224)
result = result.union(cq.Workplane(cq.Plane(origin=(0.639, 0.058, 0.073), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.047).extrude(0.076))
result = result.cut(cq.Workpl... | 7 | 20 | 0.765486 |
train_c790e14871d5fb87 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.092, -0.157, -0.859), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.198, 1.128).threePointArc((-0.601, 0.809), (-0.676, 0.3)).threePointArc((-0.601, 0.114), (-0.478, -0.042)).lineTo(-0.167, 0.137).threePointArc((0, 0.182), (0.167, 0.137)).lineTo... | 11 | 60 | 2.409845 |
train_ee8925171221aec7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.39, 0.211, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.217, -0.019).lineTo(-0.217, 0.538).lineTo(-1, 0.538).lineTo(-1, 0.799).lineTo(1, 0.799).lineTo(1, -0.019).lineTo(-0.217, -0.019).close().workplane(offset=0.241).moveTo(-0.141, 0.125).l... | 15 | 93 | 0.254847 |
train_c618964eb75f9126 | 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.421).workplane(offset=0.59).circle(0.421).workplane(offset=0.721).circle(0.438).workplane(offset=0.689).circle(0.373).loft()
result = result.edges().chamfer(0.2)
result = result.cut(cq.Workpla... | 12 | 53 | 0.987715 |
train_41eb459537526f14 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.005, 0, -0.432), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.868, 1.494).extrude(0.618)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.509, 0.109, -0.163), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.094).extrude(0.143))
result = result.un... | 6 | 35 | 0.909656 |
train_fce0205e5a323cee | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.059, -0.327, -0.255), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.375, -0.221).lineTo(0.375, 0.023).lineTo(0.232, 0.221).lineTo(-0.375, -0.221).close().sweep(cq.Workplane('YZ').spline([(-0.916, -0.565), (-0.523, -0.565), (-0.129, -0.565), (0.4... | 3 | 13 | 0.139285 |
train_3dfcac01994ff0a0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.965), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.216).extrude(1.931)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.274, -0.028, 0.442), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.359).extrude(0.536))
result = result.cut(cq.Workp... | 6 | 41 | 3.626346 |
train_cceb8da49745407f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.627, -0.649, -0.32), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.734, 0.702).extrude(0.641)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.595, 0.323, 0.119), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.084, 1.354).extrude(0.056))
result = ... | 4 | 20 | 0.332978 |
train_1b851ce3c79e75ad | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.666), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.324, 2).extrude(1.332)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.191, 0.225, -0.364), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.473, 0.447).threePointArc((0.225, 0.695), (-0.023,... | 23 | 110 | 2.170827 |
train_a92bfc32442142c4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.443, 0.245, 0.12), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.319, 0).lineTo(-0.319, 0.218).lineTo(-0.513, 0.218).threePointArc((0, 0.557), (0.513, 0.218)).threePointArc((0.546, 0.111), (0.557, 0)).lineTo(0.319, 0).lineTo(0.319, -0.218).lineT... | 9 | 62 | 0.456585 |
train_15d9686816055336 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.471, 0.214, 0.323), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.328, 1.227).threePointArc((-0.469, 1.161), (-0.619, 1.122)).lineTo(-0.29, -0.744).threePointArc((0.179, -0.618), (0.619, -0.413)).lineTo(-0.328, 1.227).close().revolve(angleDegree... | 5 | 46 | 0.689595 |
train_d2ff8c90ff7317e8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.612, 0.359, 0.098), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.53).sweep(cq.Workplane('XZ').spline([(-0.612, 0.098), (-0.309, -0.075), (-0.006, -0.162), (0.296, -0.162), (0.599, -0.075), (0.902, 0.098)]))
result = result.edges().chamfer(0.204... | 11 | 44 | 0.330503 |
train_9f22e66942eca9cb | 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.272).workplane(offset=0.532).circle(0.344).workplane(offset=0.394).circle(0.237).workplane(offset=0.512).circle(0.169).workplane(offset=0.561).circle(0.313).loft()
result = result.edges().cham... | 6 | 20 | 0.360031 |
train_c21dbe6dddaa2269 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.003), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.766).extrude(0.115)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.227, -0.01, -0.022), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.287).extrude(0.138))
result = result.cut(cq.Workp... | 17 | 64 | 0.371041 |
train_a0569e938409cf26 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.22, -0.235, 0.677), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.323, 0.427).lineTo(-0.323, 0.013).lineTo(0.323, 0.013).lineTo(0.323, 0.427).lineTo(-0.323, 0.427).close().extrude(0.47)
result = result.edges().chamfer(0.104)
result = result.unio... | 3 | 31 | 0.100307 |
train_007df45da922fea6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.32, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1, 0.35).lineTo(-1, 0.19).lineTo(1, 0.19).lineTo(1, 0.35).lineTo(0.9, 0.45).lineTo(0.8, 0.35).lineTo(0.7, 0.45).lineTo(0.6, 0.35).lineTo(0.2, 0.35).lineTo(0.1, 0.45).lineTo(0, 0.35).lineTo(-... | 2 | 21 | 0.579581 |
train_c342cf90d03ba3fb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.006, 0.604, -0.471), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.529, -0.061).lineTo(-0.529, 0.103).lineTo(-0.097, 0.103).lineTo(-0.097, 0.963).lineTo(-0.032, 0.963).lineTo(-0.032, 0.103).lineTo(0.529, 0.103).lineTo(0.529, -0.061).lineTo(0.097... | 10 | 172 | 0.656812 |
train_9055e5716feabfb2 | 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.017, 0.281).threePointArc((0.175, 0.251), (0.208, 0.408)).threePointArc((0.376, 0.46), (0.294, 0.616)).lineTo(0.208, 0.824).threePointArc((0.155, 0.991), (0, 0.91)).lineTo(-0.208, 0.824).three... | 4 | 14 | 1.32293 |
train_652c74604b174520 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.417, -1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.366, 0.068).lineTo(-0.366, 0.16).lineTo(-0.183, 0.16).lineTo(-0.059, 0.391).threePointArc((0, 0.672), (0.059, 0.391)).lineTo(0.183, 0.16).lineTo(0.366, 0.16).lineTo(0.366, 0.068).lineTo(... | 9 | 80 | 0.330433 |
train_4d20c503211909c7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.023, -0.013, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.016, 1.013).lineTo(-0.016, -0.987).lineTo(0.016, -0.987).lineTo(0.016, 1.013).lineTo(-0.016, 1.013).close().extrude(0.045)
result = result.edges().chamfer(0.004)
| 2 | 26 | 0.002814 |
train_39b88fc19348c4ca | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.085, 0.27, -0.03), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.075, 0.047).threePointArc((-0.066, 0.069), (-0.044, 0.078)).lineTo(0.063, 0.078).lineTo(0.075, 0.066).lineTo(0.119, 0.066).lineTo(0.132, 0.078).lineTo(0.132, 0.101).lineTo(0.132, 0... | 8 | 115 | 0.185695 |
train_a99e5d183972be26 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.5, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.404, 0.094).lineTo(-0.504, 0.194).lineTo(-0.034, 0.665).threePointArc((0.028, 0.706), (0.101, 0.72)).lineTo(0.101, 0.598).lineTo(0.605, 0.094).lineTo(0.705, 0.194).lineTo(0.806, 0.294).line... | 3 | 41 | 0.511783 |
train_9d6ecc06b60f54a1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.442, 0.181, 0.073), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.076, -0.388).threePointArc((0.282, -0.43), (0.324, -0.223)).lineTo(0.436, 0.047).lineTo(0.324, 0.318).lineTo(0.053, 0.43).lineTo(-0.217, 0.318).lineTo(-0.329, 0.047).threePointArc(... | 4 | 27 | 0.739305 |
train_03be8c6a80ed027d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.65, 0.003, -0.504), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.501, 0.808).lineTo(0.501, 0.337).lineTo(0.157, 0.337).lineTo(0.157, 0.572).lineTo(-0.501, 0.572).lineTo(-0.501, 0.808).lineTo(0.501, 0.808).close().revolve(angleDegrees=270, axisSt... | 3 | 35 | 0.577656 |
train_01a1b370b7dda34c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.491, 0, -0.301), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.018, 0.979).extrude(0.592)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.435, 0.129, -0.401), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.046, 0.075).extrude(0.71))
result = result... | 7 | 32 | 0.572515 |
train_248824449befdcbe | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.053, 0.289, -0.282), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.63, 1.422).extrude(0.565)
result = result.union(cq.Workplane(cq.Plane(origin=(0.194, -0.691, -0.099), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.19, 0.618).extrude(0.168))
result = re... | 17 | 173 | 0.47619 |
train_1fdc7b92e813b4fc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.565, 0, 1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.001, 0.215).lineTo(-0.167, 0.119).threePointArc((-0.276, 0.117), (-0.334, 0.21)).threePointArc((-0.288, 0.046), (-0.167, -0.074)).threePointArc((-0.222, -0.17), (-0.332, -0.17)).threePointA... | 11 | 52 | 0.028043 |
train_15e3f5746a44c848 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.3, -0.934), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.982, 1.4).extrude(1.869)
result = result.union(cq.Workplane(cq.Plane(origin=(0.636, -0.223, -0.266), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.405, 0.632).lineTo(0.405, 0.644).lineTo(0.... | 7 | 39 | 2.032358 |
train_2ef0fc75f0efb252 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.664, -0.833, -0.213), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.217, -0.017).lineTo(-0.117, -0.017).lineTo(-0.117, -0.15).threePointArc((-0.112, -0.162), (-0.1, -0.167)).lineTo(-0.05, -0.167).lineTo(0, -0.167).lineTo(0, -0.134).lineTo(-0.067... | 2 | 29 | 0.014827 |
train_5e451df63baa0c01 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.146, 0.417, -0.417), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.971, 0.65).extrude(0.238)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.05, 0.676, -0.28), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.249, 0.138).extrude(0.043))
result = result... | 24 | 172 | 0.455976 |
train_06e2f3fb73881a4a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.167, 0.116, -0.361), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.031, -0.095).lineTo(-0.031, -0.005).threePointArc((-0.051, 0.042), (-0.098, 0.062)).lineTo(-0.115, 0.062).lineTo(-0.042, 0.112).lineTo(0.115, 0.004).lineTo(-0.031, -0.095).close(... | 12 | 136 | 0.174119 |
train_f40583dccfcb63a7 | 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.102, 0.499).extrude(1.511)
result = result.union(cq.Workplane(cq.Plane(origin=(0.058, 0.045, 0.482), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.167, 0.197).extrude(0.518))
result = result.faces('... | 3 | 25 | 0.166662 |
train_91bf73d214786e34 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.643, -0.108, -0.134), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.714, 0.545).extrude(0.1)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.643, -0.092, -0.035), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.398, 0.467).extrude(0.013))
result =... | 22 | 116 | 0.052859 |
train_d05b4d3e3d7d6e37 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.077, -0.059), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.008).lineTo(0, 0.077).lineTo(-0.995, 0.077).lineTo(-1.004, 0.147).lineTo(1.004, 0.147).lineTo(0.995, 0.077).lineTo(0.986, 0.008).lineTo(0, 0.008).close().extrude(0.104)
result = re... | 3 | 43 | 0.019863 |
train_2518dffe8b6a69f9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.083, 0.025, 0.2), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.297, -0.674).lineTo(0.297, -0.684).lineTo(-0.297, -0.684).lineTo(-0.297, 1.025).lineTo(0.297, 1.025).lineTo(0.297, 0.744).lineTo(0.003, 0.744).lineTo(0.003, -0.19).lineTo(0.297, -0.1... | 10 | 96 | 0.353265 |
train_2936f8beac4f5eed | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.684), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.634, 2).extrude(1.367)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.201, 0.038, 0.936), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-3.118, 0.26).threePointArc((-3.378, 0), (-3.118,... | 3 | 38 | 3.901349 |
train_a1c7a1fc7cc46766 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.427), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.495).extrude(0.787)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.8 + 0.4, 0.184, -1.399), normal=(0, 1, 0), xDir=(1, 0, 0))).moveTo(0.06, -0.071).lineTo(0.071, -0.07).lineTo(0.081... | 8 | 11 | 2.354098 |
train_2c1c59ee50b6ec78 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.294, 0.528, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 1.02).lineTo(-1, 0.036).threePointArc((-0.109, 0.75), (1, 1.02)).lineTo(-1, 1.02).close().extrude(0.587)
| 1 | 5 | 0.359773 |
train_f5f936666977f358 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.221, -0.01, -0.509), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.558, 1.586).extrude(1.018)
result = result.union(cq.Workplane(cq.Plane(origin=(0.23, 0.755, -0.008), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.066, 0).lineTo(-0.066, -0.131).line... | 19 | 35 | 2.102872 |
train_096263ffc53ac460 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.181, -0.051, -0.061), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.367, -0.395).lineTo(0.195, 0.578).lineTo(0.29, 0.039).lineTo(0.303, -0.033).lineTo(0.367, -0.395).lineTo(-0.367, -0.395).close().extrude(0.819)
result = result.edges().fillet(0... | 24 | 80 | 0.317676 |
train_05adb353597e791d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.002, 0.053), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.299, 0.139).lineTo(0.448, 0.224).lineTo(0.448, 0.742).lineTo(0.299, 0.827).lineTo(0, 1).lineTo(-0.299, 0.827).lineTo(-0.448, 0.827).lineTo(-0.448, 0.139).lineTo(0.299, 0.139).close().r... | 24 | 267 | 1.466106 |
train_789cbffc10fa1f8b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.478, 0, -0.292), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.044, 0.615).extrude(0.743)
result = result.faces('>Z').shell(-0.031)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.432, -0.096, -0.451), normal=(0, 0, 1), xDir=(1, 0, 0))).circ... | 5 | 37 | 0.169323 |
train_80c49c920e31087f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-3.928, -4.503, 2.302), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(3.662, 6.601).lineTo(3.662, 8.276).lineTo(-3.662, -4.397).lineTo(-2.932, -4.816).lineTo(-2.204, -5.235).lineTo(3.662, 4.918).lineTo(3.662, 6.601).close().extrude(4.928)
result = res... | 19 | 23 | 0.301207 |
train_706787473571f29a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.738, 0, -0.248), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.262, 0).threePointArc((0, 0.262), (-0.262, 0)).lineTo(-0.262, -0.262).threePointArc((-0.253, -0.194), (-0.227, -0.131)).threePointArc((0, 0), (0.227, -0.131)).threePointArc((0.253, -... | 4 | 13 | 0.05566 |
train_b131f6bfe26bd715 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.361, -0.057, -0.303), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.315, 0.182).extrude(0.249)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.31, -0.041, -0.096), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.026).extrude(0.491))
result = res... | 15 | 142 | 0.232699 |
train_6c46d05134bb74e2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.1, -0.78), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.367, 0.306).lineTo(0.489, 0.306).lineTo(0.489, -0.306).lineTo(-0.489, -0.306).lineTo(-0.489, 0.306).lineTo(0.367, 0.306).close().revolve(angleDegrees=90, axisStart=(0.367, 0.306), axisE... | 12 | 58 | 0.282723 |
train_17b487edb20050e9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.177, 0.078), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.228, -0.324).threePointArc((-0.071, -0.089), (-0.36, 0.159)).lineTo(-0.213, 0.324).threePointArc((0.069, 0.082), (0.36, -0.147)).lineTo(0.228, -0.324).close().sweep(cq.Workplane('XY').... | 4 | 22 | 0.405799 |
train_8652b8256ce546d0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.428), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.804).extrude(1.02)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.114, 0.134, -0.593), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.377).extrude(0.171))
result = result.cut(cq.Work... | 14 | 102 | 3.027534 |
train_6f7fa0ba2122a19b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.301, 0.08, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1.257, -0.009).lineTo(-1.257, 0.192).lineTo(1.257, 0.192).lineTo(1.257, -0.009).lineTo(-1.257, -0.009).close().workplane(offset=0.046).moveTo(-0.955, 0.015).lineTo(-0.955, 0.168).lineTo... | 15 | 139 | 0.084549 |
train_0987b630f94f1327 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.007, 0.006, -1), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.849, -0.478).lineTo(0.221, -1.028).lineTo(-0.849, 0.698).lineTo(-0.472, 1.028).lineTo(0.849, -0.478).close().revolve(angleDegrees=90, axisStart=(0.849, -0.478), axisEnd=(0.221, -1.028... | 22 | 74 | 0.804523 |
train_85cd2bf8d27a19cb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.317), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.953, -0.627).lineTo(0.953, -0.527).lineTo(0.929, -0.527).lineTo(0.929, -0.326).lineTo(0.953, -0.326).lineTo(0.953, 0.627).lineTo(-0.953, 0.627).lineTo(-0.953, 0.1).lineTo(-0.929, 0.1).line... | 18 | 130 | 1.395829 |
train_40710fa01cc036d6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.777, -0.119, -0.285), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.447, 0.372).extrude(0.072)
result = result.union(cq.Workplane(cq.Plane(origin=(0.509, -0.093, -0.249), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.095, 0.104).extrude(0.015))
result =... | 14 | 198 | 0.440538 |
train_b0a93be21478c749 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.025, -0.023, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.697, 0.701).extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(0.023, 0.35, -0.198), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.116, 0.047).extrude(0.199))
result = result.un... | 14 | 234 | 0.884483 |
train_e648a186c19f6381 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.391, 0.277, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.277, 0.187).lineTo(0.092, -0.136).lineTo(-0.277, -0.138).lineTo(-0.091, 0.187).lineTo(0.091, 0.504).lineTo(0.277, 0.187).close().extrude(0.396)
result = result.edges().chamfer(0.044)
re... | 18 | 218 | 0.145852 |
train_1722312f68545a8e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.331, 0.033, 0.15), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.204, 0.005).lineTo(-0.204, 0.175).lineTo(0.204, 0.175).lineTo(0.204, 0.005).lineTo(-0.204, 0.005).close().extrude(0.508)
result = result.edges().fillet(0.017)
result = result.cut(c... | 15 | 191 | 0.046879 |
train_0e6fc5c450ff16ac | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.061, -0.873, 0.002), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.417).sweep(cq.Workplane('XY').spline([(0.452, 0.012), (0.306, 0.448), (-0.216, 0.479), (-0.486, 0.012), (-0.216, -0.455), (0.306, -0.425)]))
result = result.union(cq.Workplane(cq.... | 10 | 79 | 0.1885 |
train_0f169f8dfc25950b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.194, -0.124, -0.143), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.095, 0.853).extrude(1.143)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.27, -0.317, 0.385), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.144).extrude(0.338))
result = result... | 15 | 103 | 1.109889 |
train_8a04b51979f348a9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.096, -0.176, -0.007), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.102, -0.904).lineTo(0.289, -0.904).lineTo(0.289, 1.096).lineTo(-0.289, 1.096).lineTo(-0.289, -0.904).lineTo(0.102, -0.904).close().extrude(0.352)
result = result.edges().fillet(0... | 11 | 112 | 0.397233 |
train_7022f11a8d594d39 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.391, -0.057, -0.067), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.355, 0.236).lineTo(0.355, -0.131).lineTo(0.037, -0.155).lineTo(0.25, -0.604).lineTo(-0.355, -0.264).lineTo(-0.171, -0.08).lineTo(-0.276, 0.05).lineTo(0.355, 0.604).lineTo(0.355, 0... | 16 | 93 | 1.653096 |
train_c0c2a0d10f0cf542 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.449, 0.924, 0.039), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.133, 1.737).threePointArc((-0.774, 0.19), (0.774, 0.83)).threePointArc((0.774, 1.737), (-0.133, 1.737)).close().extrude(0.898)
result = result.edges().fillet(0.245)
result = resul... | 5 | 25 | 2.163221 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.