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_d61b2c2f7fe3e5cf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.495, 0.252), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.51, -0.269).threePointArc((-0.701, -0.19), (-0.779, 0)).threePointArc((-0.701, 0.19), (-0.51, 0.269)).lineTo(-0.091, 0.269).threePointArc((-0.059, 0.273), (-0.031, 0.286)).threePointA... | 7 | 174 | 0.986468 |
train_d14016552ccb3f8a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.814, -0.403, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.943, 1.403).lineTo(-0.943, 1.365).lineTo(-0.904, 1.365).lineTo(-0.904, -0.597).lineTo(0.904, -0.597).lineTo(0.904, 1.365).lineTo(0.943, 1.365).lineTo(0.943, 1.403).lineTo(-0.943, 1.4... | 10 | 49 | 5.320272 |
train_4f0969b6244486e8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.416, 0, 0.823), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.151, -0.804).threePointArc((0.112, -0.788), (0.075, -0.77)).lineTo(0.075, -0.914).lineTo(0.075, -1).lineTo(-0.082, -1).lineTo(-0.108, -1).lineTo(-0.108, -0.809).threePointArc((-0.474,... | 2 | 41 | 2.402328 |
train_d84a1a33008ff45e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.023, -0.014, -0.108), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.194, 0.267).extrude(0.101)
result = result.union(cq.Workplane(cq.Plane(origin=(0.023, 0.08, -0.001), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.078, 0.185).lineTo(0.078, 0.029).lin... | 15 | 210 | 0.076121 |
train_be9a44b41948074b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.142, 0.147, 0.82), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.353, -0.383).lineTo(0.352, -0.38).lineTo(0.356, 0.379).lineTo(-0.357, 0.386).close().moveTo(-0.093, 0.131).lineTo(-0.11, 0.134).lineTo(-0.142, 0.1).lineTo(-0.15, 0.099).lineTo(-0.10... | 26 | 200 | 0.46114 |
train_2c2daf880c83a4b8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.927, -0.018, 0.342), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.073, -0.084).lineTo(-0.053, -0.044).lineTo(0.012, 0.084).lineTo(0.045, 0.019).lineTo(0.073, -0.035).lineTo(-0.004, -0.066).lineTo(-0.048, -0.084).lineTo(-0.073, -0.084).close().... | 16 | 252 | 0.075672 |
train_bbe6b6e5b07f9d4d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.152, 0, -0.079), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.205, 2).extrude(0.8)
result = result.union(cq.Workplane(cq.Plane(origin=(0.213, 0.1, 0.719), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.542).extrude(0.059))
result = result.union(cq.Wor... | 15 | 125 | 1.870319 |
train_4318c027154d7e8b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.793), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.377).workplane(offset=0.262).circle(0.351).workplane(offset=0.232).circle(0.751).workplane(offset=0.291).circle(0.955).workplane(offset=0.255).circle(0.942).workplane(offset=0.295).circle(... | 3 | 7 | 2.217213 |
train_ad99e5bd2b56ad18 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.607, -0.353, 0.488), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.078, -0.154).lineTo(0, -0.154).lineTo(-0.003, -0.126).threePointArc((0.031, -0.116), (0.064, -0.128)).threePointArc((0.076, -0.14), (0.083, -0.154)).lineTo(0.072, -0.085).lineTo... | 2 | 27 | 0.011486 |
train_929b090051502291 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.138, 0.409, 0.286), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.512, -0.015).lineTo(0.149, 0.476).lineTo(-0.406, 0.302).lineTo(-0.423, -0.3).lineTo(0.153, -0.478).close().moveTo(-0.28, -0.133).lineTo(-0.084, -0.131).lineTo(-0.086, -0.091).lineT... | 8 | 58 | 0.30627 |
train_42c565023f8c1dc0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.411, -1, -0.063), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.766, 0.709).lineTo(-0.766, 0.709).threePointArc((-0.067, 0.226), (0.766, 0.058)).lineTo(0.766, 0.709).close().extrude(2)
result = result.edges().chamfer(0.086)
result = result.cut(cq... | 11 | 42 | 1.334893 |
train_c658317ddbbb158d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.188, -0.094, 0.627), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.123, -0.318).lineTo(-0.296, -0.318).lineTo(-0.296, 0.012).lineTo(-0.299, 0.012).lineTo(-0.299, 0.318).lineTo(0.126, 0.318).lineTo(0.126, 0.012).lineTo(0.299, 0.012).lineTo(0.299,... | 15 | 120 | 0.575978 |
train_bd0fdd5618109124 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.057, 0, 0.336), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.196, -0.943).lineTo(-0.196, 1.057).lineTo(0.196, 1.057).lineTo(0.196, -0.943).lineTo(-0.196, -0.943).close().revolve(angleDegrees=360, axisStart=(-0.196, -0.943), axisEnd=(-0.196, -0.... | 22 | 222 | 0.676329 |
train_1a8f22706939947b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.587, -1.211, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.651, 0.254).lineTo(0.163, 1.519).lineTo(0.21, 1.592).lineTo(0.556, 2.131).lineTo(-0.232, 2.131).lineTo(-0.188, 2.211).lineTo(0.608, 2.211).lineTo(0.651, 2.131).lineTo(0.257, 1.519).l... | 2 | 59 | 0.28676 |
train_e32c655303b916fd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.014, -0.015, -0.181), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.195).sweep(cq.Workplane('XY').spline([(0.793, -0.002), (0.754, 0.195), (0.58, 0.344), (0.343, 0.304), (0.188, 0.119), (0.188, -0.123), (0.343, -0.308), (0.58, -0.347), (0.754, -0... | 3 | 24 | 0.057997 |
train_46f1ecbe4b6670cf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.3, 0.077), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.292, 0.292).lineTo(-0.292, 0.04).lineTo(-0.261, 0.04).lineTo(-0.261, -0.055).lineTo(-0.292, -0.055).lineTo(-0.292, -0.261).lineTo(-0.063, -0.261).lineTo(-0.063, -0.292).lineTo(0.032, -... | 7 | 41 | 0.272659 |
train_98c0c59565c071cd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.638, 0.634), normal=(0, 0, -1), xDir=(1, 0, 0))).lineTo(0.984, -0.927).lineTo(-0.984, -0.873).close().workplane(offset=0.323).lineTo(0.838, -0.79).lineTo(-0.838, -0.743).close().workplane(offset=0.281).lineTo(0.978, -0.921).lineTo(-0.978, -0... | 4 | 14 | 0.766908 |
train_089c74c03147351e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.526, 0.04, 0.235), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.501, -0.962).threePointArc((0.501, 0.04), (-0.501, 1.042)).lineTo(-0.501, 0.786).lineTo(-0.501, -0.735).lineTo(-0.501, -0.962).close().extrude(1.052)
result = result.edges().chamfe... | 17 | 226 | 1.076236 |
train_ac87a700b8925e95 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.9), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.807).extrude(1.428)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.066, -0.036, -0.286), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.441, 0.614).threePointArc((-0.391, 0.243), (-0.24... | 3 | 17 | 5.241461 |
train_a15dc94fb5e4e34a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.09, -0.114, -0.062), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.326, 0.178).lineTo(0.267, 0.178).lineTo(0.326, 0.119).lineTo(0.326, -0.178).lineTo(-0.326, -0.178).lineTo(-0.326, 0.178).close().sweep(cq.Workplane('XY').spline([(-0.817, -0.114),... | 5 | 24 | 0.486278 |
train_1711b7b355475334 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1.13, -0.927, 0.247), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.618, 1.396).threePointArc((0, 1.913), (0.618, 1.396)).lineTo(0.926, -0.326).threePointArc((0, 0.449), (-0.926, -0.326)).lineTo(-0.618, 1.396).close().extrude(1.854)
result = resul... | 8 | 49 | 2.886687 |
train_5d6dcc525dba0aae | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.957, 0.189, -0.081), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.011, 0.043).lineTo(-0.005, 0.019).lineTo(-0.014, 0.014).lineTo(-0.019, 0.005).lineTo(-0.043, 0.011).lineTo(-0.043, -0.011).lineTo(-0.019, -0.005).lineTo(-0.014, -0.014).lineTo(-0.... | 10 | 202 | 0.065936 |
train_937a73b36ed8623b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.006, 0.003, 0.152), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.988, 0.233).extrude(0.149)
result = result.union(cq.Workplane(cq.Plane(origin=(0.4, -0.002, 0.03), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.066).extrude(0.129))
result = result.un... | 11 | 87 | 0.186722 |
train_7939f7335805325a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.402, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.379, 0.715).lineTo(-0.379, 0.09).lineTo(0.379, 0.09).lineTo(0.379, 0.715).lineTo(-0.379, 0.715).close().workplane(offset=0.537).moveTo(-0.522, 0.833).lineTo(-0.522, -0.029).lineTo(0.522, ... | 9 | 53 | 1.071601 |
train_ba3e91233285306e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.061, -0.847, 0.044), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.077, 0.117).lineTo(-0.051, 0.153).lineTo(-0.028, 0.153).lineTo(-0.028, 0.142).lineTo(-0.039, 0.142).lineTo(-0.039, 0.117).lineTo(0.039, 0.117).lineTo(0.039, 0.142).lineTo(0.028, ... | 3 | 66 | 0.097875 |
train_cdd6e452ded6faac | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.088, -0.452, 0.026), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.422, 0.672).threePointArc((-0.589, 0.389), (-0.585, 0.06)).lineTo(-0.375, 0.06).lineTo(0.378, 0.06).lineTo(0.589, 0.06).lineTo(0.425, 0.672).threePointArc((0.002, 0.843), (-0.42... | 19 | 202 | 0.240386 |
train_93bfe84729c85afc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.632, -1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.579, 0.966).threePointArc((-0.668, 0.631), (-0.579, 0.297)).lineTo(-0.386, -0.037).lineTo(0, -0.037).lineTo(0.386, -0.037).lineTo(0.579, 0.297).threePointArc((0.668, 0.631), (0.579, 0.96... | 3 | 37 | 1.763057 |
train_78c6485bffc11def | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.301, -0.086), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.21, 1.037).extrude(0.081)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.174, -0.472, -0.008), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.497, 0.209).extrude(0.031))
result = res... | 16 | 140 | 0.152734 |
train_c55e38ad32728e0b | 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.174, 1.679).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.344, -0.132, -0.8), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.513, 1.079).extrude(0.958))
result = result.edges().fille... | 15 | 132 | 2.806029 |
train_c78c68800bd073a7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.071, -0.949), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.849, 1.858).extrude(1.899)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.341, 0.102, 0.572), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.258).extrude(0.387))
result = result.edges(... | 14 | 41 | 6.272148 |
train_e16d99bf31591b01 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.624, 0.206), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.35, -0.341).lineTo(0.35, -0.376).lineTo(-0.314, -0.376).lineTo(-0.314, 0.305).lineTo(-0.35, 0.305).lineTo(-0.35, 0.376).lineTo(-0.314, 0.376).lineTo(-0.314, 0.341).lineTo(0, 0.341).li... | 13 | 96 | 0.259676 |
train_17cbc0041b646852 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.011, 0.469, -0.077), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.307, 0.379).extrude(0.08)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.015, 0.443, -0.05), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.037, 0.454).extrude(0.023))
result = resu... | 17 | 182 | 0.060361 |
train_533f2bcb9bdfcb39 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.821, 0.109, -0.22), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.78, 0.796).threePointArc((0.209, 0.692), (0.765, -0.133)).threePointArc((0.78, -0.317), (0.765, -0.501)).threePointArc((0.589, -0.629), (0.37, -0.618)).threePointArc((0.171, -0.29... | 5 | 51 | 1.027532 |
train_4d78454015b2741d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.427), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.907).workplane(offset=0.384).circle(0.998).workplane(offset=0.47).circle(0.839).loft()
result = result.edges().fillet(0.27)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.271, -0.374,... | 7 | 24 | 2.06429 |
train_89406431344e30c4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.027, -0.348, -0.497), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.436, 0.635).extrude(0.043)
result = result.union(cq.Workplane(cq.Plane(origin=(0.191, -0.316, -0.451), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.296, 0.17).lineTo(-0.233, 0.17).l... | 6 | 77 | 0.50781 |
train_3c3c8450e27786ab | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.511, -0.003, -0.53), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.515, 1.386).extrude(0.88)
result = result.union(cq.Workplane(cq.Plane(origin=(1.331, -0.264, -0.319), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.141, 0.145).extrude(0.114))
result = r... | 15 | 69 | 0.022241 |
train_2870ef5dccdf2d76 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.082, -0.081, -0.043), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.472, 0.001).lineTo(0.24, 0.432).lineTo(-0.235, 0.424).lineTo(-0.47, 0.008).lineTo(-0.247, -0.426).lineTo(0.256, -0.415).close().moveTo(-0.167, -0.039).lineTo(-0.14, -0.04).lineTo... | 13 | 169 | 0.058414 |
train_f16405088b2bea89 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.167, 0.058, -0.061), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.942).lineTo(0.116, 0.942).lineTo(0.116, -0.913).lineTo(0, -0.913).lineTo(0, -0.101).lineTo(-0.116, -0.101).lineTo(-0.116, 0.014).lineTo(0, 0.014).lineTo(0, 0.942).close().extru... | 21 | 375 | 0.106953 |
train_568d7af53821072c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.39), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.523, 2).extrude(0.781)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.136, -0.322, -0.029), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.14).extrude(0.43))
result = result.cut(cq.Workpla... | 6 | 23 | 2.15046 |
train_e96608b49e8bba2c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.01, -0.299), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.997, 0.011).lineTo(0.729, 0.685).lineTo(0.013, 0.99).lineTo(-0.705, 0.685).lineTo(-0.996, 0.015).lineTo(-0.729, -0.742).lineTo(0.012, -1.01).lineTo(0.721, -0.674).close().moveTo(0.127, ... | 16 | 139 | 1.008899 |
train_2be807a271292a81 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.007, -0.01, -0.118), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.608, 0.967).lineTo(0.624, 1.01).lineTo(0.61, 0.722).lineTo(0.127, 0.698).lineTo(0.119, -0.98).lineTo(-0.141, -0.99).lineTo(-0.147, 0.738).lineTo(-0.61, 0.734).close().center(-0.2... | 10 | 74 | 0.159062 |
train_3131749a2b62c448 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.11, -0.579), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.289).extrude(1.159)
result = result.faces('>Z').shell(-0.099)
result = result.union(cq.Workplane(cq.Plane(origin=(0.303, -0.637, -0.149), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.654,... | 4 | 76 | 0.928152 |
train_7d8674c2aea449ae | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.108), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.081, 2).extrude(0.216)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0.055), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.198, 0).lineTo(0.198, -0.148).lineTo(-0.198, -0.148).lineTo... | 9 | 41 | 0.148854 |
train_db190e4fa4415459 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.766, -0.042), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.496).sweep(cq.Workplane('YZ').spline([(-1.243, -0.986), (-0.903, -0.969), (-0.564, -0.794), (-0.224, -0.618), (0.116, -0.601)]))
result = result.cut(cq.Workplane(cq.Plane(origin=(0.11... | 6 | 27 | 0.320684 |
train_501a821ca59ec6b5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.175, 0, -0.076), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.08, -0.893).lineTo(0.018, -0.893).lineTo(0.027, -1).lineTo(-0.027, -1).lineTo(-0.018, -0.893).lineTo(-0.08, -0.893).lineTo(-0.08, 0.714).lineTo(-0.045, 0.714).lineTo(-0.045, 0.893).l... | 7 | 161 | 0.09162 |
train_0068662e0beac9f5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.783, 0.183, 0.08), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.176, 0.085).lineTo(-0.087, -0.069).lineTo(0.176, 0.186).lineTo(-0.176, 0.085).close().extrude(0.697)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.684, -0.033, -0.061), n... | 18 | 109 | 0.12249 |
train_004c25ec8cc7d2b9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.264, -0.162), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.918, 1.473).extrude(0.456)
result = result.union(cq.Workplane(cq.Plane(origin=(0.046, 0.337, 0.29), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.413).extrude(0.076))
result = result.union... | 14 | 85 | 0.447376 |
train_dbd989c496769a88 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.066, -0.408, 0.611), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.247).sweep(cq.Workplane('YZ').spline([(0.256, 0.015), (0.227, 0.177), (0.085, 0.303), (-0.114, 0.27), (-0.244, 0.116), (-0.244, -0.087), (-0.114, -0.241), (0.085, -0.274), (0.227... | 3 | 12 | 0.781047 |
train_7a67840ca4ab35d0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.056, -0.479, -0.422), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.087, 1.042).extrude(0.258)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.001, 0.042, -0.149), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.138, 0.601).lineTo(-0.232, 0.436... | 4 | 49 | 0.610389 |
train_311259ac524397ad | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.147, -0.373, 0.311), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.083, 0.101).lineTo(-0.083, 0.504).lineTo(0.144, 0.504).lineTo(0.144, 0.111).lineTo(0.073, 0.111).lineTo(0.073, -0.111).lineTo(0.144, -0.111).lineTo(0.144, -0.504).lineTo(-0.083, ... | 9 | 174 | 0.436174 |
train_4003044adc4d1034 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.072, -0.155, -0.024), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.073, -0.452).lineTo(-0.073, 0.467).lineTo(0.073, 0.467).lineTo(0.073, -0.452).lineTo(-0.073, -0.452).close().extrude(0.192)
result = result.edges().fillet(0.028)
result = result... | 7 | 90 | 0.102443 |
train_44d7af94afffc383 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.91), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.873).extrude(1.82)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.293, 0.252, -0.226), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.194).extrude(0.954))
result = result.cut(cq.Workplan... | 11 | 45 | 2.272886 |
train_b0a0658bdaf4eb27 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.009, 0.694, 0.52), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.425).workplane(offset=0.749).circle(0.472).workplane(offset=0.731).circle(0.304).loft()
result = result.edges().fillet(0.276)
result = result.faces('<X').shell(-0.17)
result = resu... | 20 | 159 | 1.418434 |
train_5ed1bb873f8507e0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.221, 0, 0.064), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.085, 0.023).lineTo(0.138, 0.344).threePointArc((0.154, 0.538), (0.141, 0.731)).threePointArc((0.14, 0.737), (0.138, 0.742)).threePointArc((0.129, 0.753), (0.116, 0.76)).threePointArc(... | 19 | 122 | 0.409328 |
train_a4d91c17b2c5d646 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.688, -0.658, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.905, 0.556).threePointArc((-0.91, 0.644), (-0.905, 0.732)).threePointArc((-0.643, 1.287), (-0.088, 1.549)).threePointArc((0, 1.642), (0.088, 1.549)).threePointArc((0.643, 1.287), (0.... | 19 | 75 | 3.145865 |
train_c6732bfca357a6d3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.1, -0.219, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.985, 1.328).extrude(1.478)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.095, 0.046, 0.44), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.181).extrude(0.56))
result = result.union... | 5 | 70 | 2.052912 |
train_7679569762899a45 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.43, 0, 0.16), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.094, -0.047).threePointArc((0, 0.047), (0.094, -0.047)).lineTo(0.016, -0.047).lineTo(-0.016, -0.047).lineTo(-0.094, -0.047).close().sweep(cq.Workplane('XZ').spline([(1.228, 0.106), (0.... | 4 | 21 | 0.01802 |
train_66a2707328f471c7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.052, 0.237, 0.996), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.284, 0.114).threePointArc((0, -0.454), (0.284, 0.114)).lineTo(0.047, 0.431).threePointArc((0, 0.454), (-0.047, 0.431)).lineTo(-0.284, 0.114).close().sweep(cq.Workplane('YZ').splin... | 6 | 25 | 0.313462 |
train_bf245f4f9aa7597d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.266, -0.241, -0.168), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.179, 0.025).lineTo(-0.179, 0.384).lineTo(-0.06, 0.384).lineTo(0.179, 0.025).lineTo(-0.179, 0.025).close().workplane(offset=0.134).moveTo(-0.163, 0.042).lineTo(-0.163, 0.367).lin... | 5 | 58 | 0.050301 |
train_a32bbe2bc6f53010 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.821, -1.259, 0.003), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.824, 0.259).lineTo(-0.824, 2.259).lineTo(0.824, 2.259).lineTo(0.824, 0.259).lineTo(-0.824, 0.259).close().revolve(angleDegrees=90, axisStart=(-0.824, 0.259), axisEnd=(-0.824, 2.... | 4 | 25 | 3.957154 |
train_6b65d0d10742bf3d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.29, 0.038), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.49, 1.42).extrude(0.367)
result = result.union(cq.Workplane(cq.Plane(origin=(0.075, 0.361, 0.403), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.34, 1.278).extrude(0.041))
result = result.unio... | 18 | 92 | 1.137524 |
train_fb8185b57b327123 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.832, -0.119, -0.273), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.052, 0.446).lineTo(-0.052, 0.271).lineTo(-0.087, 0.271).lineTo(-0.087, -0.708).lineTo(0.087, -0.708).lineTo(0.087, 0.446).lineTo(0.052, 0.446).lineTo(0.052, 0.656).threePointArc... | 1 | 11 | 0.05824 |
train_628bc8ee65dbe05a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.097), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.949, 2).extrude(0.038)
result = result.union(cq.Workplane(cq.Plane(origin=(0.033, 0.068, -0.06), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.378).extrude(0.015))
result = result.union(cq.Wor... | 11 | 59 | 0.146608 |
train_8fce9c671b667255 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.071, -0.087), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.078, 1.071).lineTo(-0.078, -0.864).lineTo(0.078, -0.954).lineTo(0.078, 1.071).lineTo(-0.078, 1.071).close().extrude(0.174)
result = result.edges().fillet(0.034)
result = result.cut(c... | 8 | 51 | 0.045444 |
train_4fc9119d587e364b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.463, 0.522, 0.444), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.556, -0.081).threePointArc((-0.513, 0.222), (-0.39, 0.502)).threePointArc((-0.177, 0.754), (0.1, 0.932)).threePointArc((0.323, 1.005), (0.556, 1.03)).lineTo(0.556, -0.081).lineTo(... | 4 | 182 | 1.616969 |
train_7413c6de2da97e43 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.959, -0.015, -0.237), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.041, 0.027).lineTo(0.021, 0.039).threePointArc((0, 0.044), (-0.021, 0.039)).lineTo(-0.041, 0.027).lineTo(-0.041, 0.003).lineTo(-0.041, -0.021).lineTo(-0.021, -0.032).lineTo(0, -0.... | 4 | 62 | 0.103781 |
train_910d7824adc3bab0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.057, 0.129, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.996, 0.072).threePointArc((-1, 0.079), (-0.998, 0.087)).lineTo(0.98, 0.186).threePointArc((0.991, 0.168), (0.999, 0.148)).lineTo(0.952, 0.146).threePointArc((0.956, 0.128), (0.953, 0.1... | 5 | 31 | 0.005176 |
train_4bff985f1c230951 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.218, 0.021), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.313, -0.248).threePointArc((-0.336, -0.226), (-0.358, -0.202)).threePointArc((-0.405, -0.135), (-0.44, -0.06)).lineTo(-0.318, 0.01).lineTo(-0.276, 0.035).lineTo(-0.19, 0.085).lineTo(-... | 11 | 55 | 0.077293 |
train_0be34d46476454ad | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.197, 0, 0.943), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.42, -0.417).lineTo(0.401, -0.435).lineTo(-0.005, -0.029).lineTo(-0.023, -0.011).lineTo(-0.423, -0.411).lineTo(-0.441, -0.393).lineTo(-0.041, 0.007).lineTo(-0.44, 0.407).lineTo(-0.423, 0... | 1 | 18 | 0.131056 |
train_cf351eab9dd86de6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.598, 0.362, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.046, 0.4).threePointArc((0, 0.402), (0.046, 0.4)).threePointArc((0.285, 0.285), (0.4, 0.046)).threePointArc((0.402, 0), (0.4, -0.046)).threePointArc((0.285, -0.285), (0.046, -0.4)).thr... | 1 | 11 | 0.381718 |
train_19178bbda15f0fc5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.237, 0, -0.491), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.526, 1.944).extrude(1.265)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.237, -0.426, -0.315), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.086).extrude(0.913))
result = result.un... | 15 | 104 | 3.369694 |
train_4b7711a8ecc98c24 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.825, -0.12, -0.22), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.902).threePointArc((-0.554, 0.672), (-0.784, 0.118)).lineTo(0, -0.666).threePointArc((0.554, -0.436), (0.784, 0.118)).threePointArc((0.554, 0.672), (0, 0.902)).close().extrude(1... | 6 | 39 | 3.307315 |
train_18fdb239148a8c1c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.289, -0.276, -0.099), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.06).workplane(offset=0.034).circle(0.066).workplane(offset=0.038).circle(0.064).workplane(offset=0.039).circle(0.059).workplane(offset=0.046).circle(0.033).workplane(offset=0.04... | 9 | 39 | 0.07183 |
train_a5c00076d8770174 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.444, 1, 0.001), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-1.001, 0.659).lineTo(-1.001, 0.802).lineTo(1.001, 0.802).lineTo(1.001, 0.087).lineTo(-1.001, 0.087).lineTo(-1.001, 0.659).close().revolve(angleDegrees=90, axisStart=(-1.001, 0.659), axi... | 8 | 59 | 1.686498 |
train_bb7b632e2e75f4b0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.358, 0, 0.741), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.115, 0).lineTo(0.06, -0.071).lineTo(0.207, -0.12).lineTo(-0.032, -0.087).lineTo(0, -0.239).lineTo(-0.092, -0.016).lineTo(-0.207, -0.12).lineTo(-0.115, 0).lineTo(-0.06, 0.071).lineTo(-... | 5 | 32 | 0.129679 |
train_527c278ff14bfa64 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.63, 0.167, -0.306), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.115, 0.05).lineTo(-0.346, -0.151).lineTo(0.346, 0.475).lineTo(0.344, -0.475).lineTo(-0.115, 0.05).close().sweep(cq.Workplane('XZ').spline([(0.542, -0.696), (0.741, -0.102), (0.62... | 6 | 19 | 0.170693 |
train_dfd006057612a004 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.376, -0.239, -0.21), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.198, 0.469).extrude(0.113)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.376 + 0.03 * math.cos(0.216 + 2 * math.pi * 0 / 3), -0.239 + 0.03 * math.sin(0.216 + 2 * math.pi * 0 / ... | 30 | 206 | 0.272078 |
train_13879c467ec694f6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.246, -0.506, -0.501), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.754, 1.321).lineTo(0.754, 0.057).lineTo(-0.754, 0.057).lineTo(-0.754, 1.321).lineTo(0.754, 1.321).close().extrude(1.198)
result = result.edges().chamfer(0.145)
result = result.fac... | 11 | 92 | 0.920463 |
train_80d275e2e3cba1e9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.16, -0.148, -0.042), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.234, 0.77).lineTo(-0.234, -0.636).lineTo(-0.324, -0.636).lineTo(-0.324, -0.852).lineTo(0, -0.852).lineTo(0, -0.636).lineTo(0.234, -0.636).lineTo(0.234, 0.77).lineTo(0.324, 0.77).... | 12 | 142 | 0.140127 |
train_787580f81ee69473 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.072, -0.61, -0.274), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, -0.39).lineTo(-0.226, 0.39).lineTo(-0.186, 0.39).lineTo(0, -0.251).lineTo(0.186, 0.39).lineTo(0.226, 0.39).lineTo(0, -0.39).close().sweep(cq.Workplane('YZ').spline([(-0.61, -0.27... | 1 | 8 | 0.035292 |
train_131d75deca3b7215 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.029, 0.249, -0.271), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.991, 0.744).extrude(0.104)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.263, 0.307, -0.317), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.084).extrude(0.051))
result = resu... | 21 | 94 | 0.345925 |
train_fd97df03d2ed84b9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.254, 0.821, -0.427), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.425, 0.359).extrude(0.104)
result = result.union(cq.Workplane(cq.Plane(origin=(0.27, 0.821, -0.324), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.118).extrude(0.025))
result = result.... | 18 | 392 | 0.446028 |
train_46d279ce098109d8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.451, -0.034, -0.2), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.099, 0.21).extrude(0.262)
result = result.union(cq.Workplane(cq.Plane(origin=(0.518, -0.027, -0.071), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.965, 0.081).extrude(0.095))
result = r... | 7 | 29 | 0.072756 |
train_2e93729013c4a157 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.493, -0.389), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.611, 0.912).threePointArc((-0.111, 1.112), (0.389, 0.912)).threePointArc((0.434, 0.864), (0.476, 0.813)).threePointArc((0.611, 0.321), (0.389, -0.138)).lineTo(0.389, -0.126).lineTo(-0... | 23 | 85 | 2.464945 |
train_4f88cf5842f3cee0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.166, -0.162, -0.122), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.507, 0.352).extrude(0.261)
result = result.union(cq.Workplane(cq.Plane(origin=(0.175, 0.105, -0.078), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.205, 0.197).extrude(0.189))
result = ... | 17 | 88 | 0.085999 |
train_e0561bd5c6cd3189 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.488, -0.738, 0.146), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.325, 1.142).threePointArc((-0.453, 0.924), (-0.451, 0.673)).threePointArc((-0.328, 0.467), (-0.12, 0.349)).threePointArc((0, 0.334), (0.12, 0.349)).threePointArc((0.328, 0.467), ... | 15 | 100 | 0.503937 |
train_588ab22d7835a14c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.409, 0.029), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.21, 0.42).lineTo(0.21, 0.42).lineTo(0.196, 0.42).lineTo(0.196, -0.406).lineTo(-0.21, -0.406).lineTo(-0.21, -0.42).lineTo(-0.21, 0.406).lineTo(-0.196, 0.406).lineTo(-0.196, 0.42).line... | 26 | 214 | 0.336601 |
train_b9285c373ea98388 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.405, 0.106, 0.216), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.185, 0.203).lineTo(0.188, 0.272).lineTo(-0.098, 0.272).lineTo(-0.098, 0.23).lineTo(-0.123, 0.203).lineTo(-0.188, 0.203).lineTo(-0.181, -0.09).lineTo(-0.098, -0.09).lineTo(-0.098, ... | 20 | 138 | 0.119857 |
train_a23fc0433363fe13 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.261, 0.08, -0.204), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.794, 0.632).extrude(0.303)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.211, 0.098, 0.097), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.736, 0.543).extrude(0.04))
result = re... | 20 | 100 | 0.244452 |
train_4167a3729ced36cd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.27, -0.556), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.536, 1.459).extrude(1.303)
result = result.union(cq.Workplane(cq.Plane(origin=(0.112, 0.44, -0.747), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.31).extrude(0.199))
result = result.union(... | 9 | 35 | 1.923831 |
train_73a1e39aa529176e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.37, 0.024, -0.729), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.26, 1.156).extrude(1.458)
result = result.union(cq.Workplane(cq.Plane(origin=(0.445, 0.359, 0.199), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, -0.555).lineTo(0.326, -0.032).threePo... | 2 | 11 | 2.386895 |
train_5469e03e8961991d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.065, 0.531, -0.178), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.62, 0.937).extrude(0.451)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.026, 0.426, -0.272), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.108).extrude(0.102))
result = resul... | 14 | 90 | 0.321772 |
train_16571efd1b61260e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.418, 0.692, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.578, 0.996).lineTo(0.578, -0.161).lineTo(-0.578, -0.161).lineTo(-0.578, 0.503).lineTo(-0.085, 0.503).lineTo(-0.085, 0.996).lineTo(0.578, 0.996).close().workplane(offset=0.212).moveTo(0... | 10 | 73 | 0.497155 |
train_91c8c8ad5a44bc00 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.154, 0.038), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.602, 0.09).lineTo(-0.602, 0.083).threePointArc((-0.8, 0.056), (-0.935, -0.09)).lineTo(-0.795, -0.09).lineTo(-0.602, -0.09).lineTo(0.935, -0.09).lineTo(0.935, 0.09).lineTo(-0.602, 0.09... | 7 | 32 | 0.15049 |
train_222176370f3fb9ea | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.067, -0.003, -0.617), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.512, 0.427).extrude(0.801)
result = result.union(cq.Workplane(cq.Plane(origin=(0.004, -0.313, -0.102), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.52, -0.164).lineTo(-0.52, -0.143... | 14 | 85 | 0.134897 |
train_3df7aaa1b012c7fd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.035, -0.233, 0.815), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.49, 0.336).lineTo(-0.49, 0.364).lineTo(-0.644, 0.364).lineTo(-0.644, -0.364).lineTo(0.364, -0.364).lineTo(0.364, -0.231).lineTo(0.644, -0.231).lineTo(0.644, -0.056).lineTo(0.336, ... | 3 | 23 | 0.841064 |
train_77b101d85a3ba344 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.725, -0.337, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.246, -0.279).threePointArc((0, -0.274), (0.246, -0.279)).lineTo(0.201, 0.753).lineTo(-0.201, 0.753).lineTo(-0.246, -0.279).close().extrude(0.674)
result = result.edges().fillet(0.141... | 5 | 58 | 0.534792 |
train_b1dc38eef2f19c5d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.47, 0, -0.476), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.061, 0.727).extrude(0.8)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.564, 0.087, 0.31), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.13).extrude(0.166))
result = result.union(r... | 4 | 12 | 1.176524 |
train_d792d76ba695af87 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.004, 0.161, 0.063), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.052, 0.287).lineTo(-0.052, -0.183).lineTo(-0.522, -0.183).lineTo(-0.522, -0.287).lineTo(0.522, -0.287).lineTo(0.522, -0.183).lineTo(0.052, -0.183).lineTo(0.052, 0.287).lineTo(-0.... | 4 | 83 | 0.229671 |
train_c10f1aea1fb9be8a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.17), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.37).extrude(0.339)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.17, -1.06), normal=(0, 1, 0), xDir=(1, 0, 0))).moveTo(-0.191, 0.014).lineTo(-0.191, -0.014).lineTo(0.191, -0.014).... | 17 | 94 | 0.716779 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.