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_15506b4379c29ff3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.748, -0.507), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.151, -0.041).lineTo(0.151, -0.252).lineTo(0.106, -0.252).lineTo(0.129, -0.234).lineTo(0.106, -0.216).lineTo(0.106, -0.041).lineTo(-0.115, -0.041).lineTo(-0.115, -0.014).lineTo(-0.151... | 15 | 329 | 0.228023 |
train_6cbcb53b1f8a8a19 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.5, 0.04, 0.5), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.5, 0.071).lineTo(-0.5, 0.008).lineTo(-0.249, 0.008).lineTo(-0.249, 0.037).lineTo(0.455, 0.037).lineTo(0.455, 0.009).lineTo(0.5, 0.009).lineTo(0.5, 0.071).lineTo(-0.202, 0.071).lineTo(-... | 9 | 85 | 0.050897 |
train_c7641b2fb7e18ab2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.313, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.497, 0.584).extrude(0.719)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.217, 0, -0.789), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.69, 0.322).extrude(0.296))
result = result.edges(... | 10 | 86 | 0.28103 |
train_7d797731d0021882 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.074, -0.106, -0.059), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.95, 1.049).extrude(0.118)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.074, -0.522, -0.033), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.059).extrude(0.066))
result = result.... | 18 | 202 | 0.088309 |
train_e910eaf4175d1ae6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.11, -0.019, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.084, 1.084).extrude(1.816)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.536, -0.12, -0.022), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.232, 0.197).extrude(0.321))
result = resu... | 16 | 228 | 1.564498 |
train_1f7ab31579a240f2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.042, 0.705, -0.199), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.09, -0.295).lineTo(0.09, -0.295).lineTo(0.09, 0.295).lineTo(-0.09, 0.173).lineTo(-0.09, -0.295).close().revolve(angleDegrees=90, axisStart=(-0.09, -0.295), axisEnd=(0.09, -0.295... | 6 | 71 | 0.154481 |
train_e593f2cd71fb2abc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.906, -0.185, 0.027), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.094, 0.094).lineTo(0.094, -0.094).lineTo(-0.094, -0.094).lineTo(-0.094, 0.094).lineTo(0.011, 0.094).lineTo(0.011, 0.087).lineTo(0.015, 0.086).lineTo(0.014, 0.081).lineTo(0.011, 0.... | 1 | 31 | 0.031842 |
train_dbad752956f0beba | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.775, -0.601, -0.015), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.05, 0.225).lineTo(0.05, -0.225).lineTo(-0.05, -0.225).lineTo(-0.022, -0.099).lineTo(0.05, 0.225).close().sweep(cq.Workplane('XY').spline([(-0.775, 0.066), (-0.032, 0.066), (0.08... | 4 | 20 | 0.037395 |
train_1c1298c9cb381a67 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.269, 0.171, -0.209), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.455, 1.041).extrude(0.934)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.851 + 0.1455, 0.171, 0.725), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.063, -0.002).lineTo(0.063,... | 11 | 74 | 1.385845 |
train_dceebc7a3752d88c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.441), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.148).extrude(0.883)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.509, -0.168, -0.273), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.291).extrude(0.415))
result = result.cut(cq.Workp... | 16 | 128 | 1.23872 |
train_e2985f900e55f98b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.071, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.303, 0.221).lineTo(-0.303, 0.17).lineTo(-0.076, 0.17).lineTo(-0.025, 0.12).lineTo(-0.025, -0.221).lineTo(0.303, -0.221).lineTo(0.303, -0.17).lineTo(0.025, -0.17).lineTo(0.025, 0.221).lin... | 2 | 14 | 0.112604 |
train_298fef343bead408 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.344, -0.005), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.256, 0.218).lineTo(-0.222, 0.159).threePointArc((-0.264, 0.151), (-0.303, 0.169)).lineTo(-0.131, 0.001).lineTo(-0.072, -0.232).threePointArc((-0.006, -0.283), (0.06, -0.232)).lineT... | 2 | 23 | 0.121258 |
train_513a0f8239a9e22f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.315, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.709, 0.833).lineTo(0, 1.242).lineTo(0.709, 0.833).lineTo(0.887, 0.73).lineTo(0.887, -0.306).lineTo(0.709, -0.204).lineTo(0, -0.613).lineTo(-0.709, -0.204).lineTo(-0.887, -0.306).lineTo(-0... | 31 | 72 | 4.164373 |
train_3e65c544d7365f49 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.345, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.289, 0.116).lineTo(-0.224, 0.051).lineTo(0.289, 0.564).lineTo(0.234, 0.64).lineTo(-0.289, 0.116).close().extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.045, 0.061, 0.499... | 3 | 12 | 0.112871 |
train_675fe3300e40a851 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.178, 0.515, -0.269), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.248, 0.272).threePointArc((-0.26, 0.299), (-0.233, 0.288)).lineTo(0.23, 0.288).threePointArc((0.235, 0.276), (0.247, 0.271)).lineTo(0.247, -0.268).threePointArc((0.26, -0.299), (... | 10 | 90 | 0.880712 |
train_b0056f720934fc85 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.376, 0, -0.115), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.535, -0.32).lineTo(0.172, -0.32).lineTo(-0.025, -0.268).lineTo(-0.56, -0.124).lineTo(-0.535, -0.033).lineTo(-0.511, 0.058).lineTo(0.025, -0.086).lineTo(0.469, -0.205).lineTo(0.258, 0.... | 1 | 14 | 0.177887 |
train_d670bc7ce4924f57 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.932), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(1.089).workplane(offset=0.365).circle(0.958).workplane(offset=0.473).circle(0.94).workplane(offset=0.356).circle(0.995).workplane(offset=0.335).circle(0.972).workplane(offset=0.336).circle(0... | 15 | 58 | 3.949255 |
train_70ed6de7e89c97fd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0, -0.308), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.159).sweep(cq.Workplane('XZ').spline([(-0.468, -0.469), (-0.291, -0.292), (-0.114, -0.186), (0.064, -0.15), (0.241, -0.186), (0.418, -0.292), (0.595, -0.469)]))
result = result.cut(cq.Wo... | 8 | 5 | 0.047346 |
train_e2661e6642878c37 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.03, -0.271), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.957, 1.117).extrude(0.04)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.049, 0.208, -0.232), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.102).extrude(0.014))
result = result.uni... | 17 | 120 | 0.155423 |
train_f1c9edcc75d90048 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.191, -0.359, -0.029), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.968, 0.797).extrude(0.5)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.368, -0.215, 0.081), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.144).extrude(0.137))
result = result.un... | 32 | 274 | 0.888481 |
train_40d29b574c683b1b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.48, 0, -0.239), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.04, 0.765).extrude(0.479)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.407, -0.034, 0.073), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.249, 0.114).extrude(0.052))
result = result.cu... | 8 | 41 | 0.601133 |
train_7a2d3d58b18009e4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.033, -0.549), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.414).extrude(0.462)
result = result.union(cq.Workplane(cq.Plane(origin=(0.428, 0.002, -0.11), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.134).extrude(0.64))
result = result.union(cq.... | 8 | 40 | 0.71465 |
train_9a0354c6b49f872e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.302, 0.286, -0.149), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 0.161).lineTo(0.057, 0.161).lineTo(0.143, 0.115).lineTo(0.143, 0.075).lineTo(0, -0.124).lineTo(-0.143, 0.075).lineTo(-0.143, 0.115).lineTo(-0.057, 0.161).lineTo(0, 0.161).close()... | 7 | 211 | 0.579377 |
train_8a895172e3449284 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.506, 0.011, -0.056), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.494, -0.271).lineTo(0.494, 0.271).lineTo(-0.494, 0.271).lineTo(-0.494, -0.271).lineTo(0.494, -0.271).close().extrude(0.077)
result = result.edges().chamfer(0.017)
result = result.... | 8 | 110 | 0.178894 |
train_6b13760ac29de458 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.181, -0.436), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.927).extrude(0.701)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.075, -0.246, -0.327), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.722, 1.112).extrude(0.183))
result = result.c... | 22 | 123 | 0.618972 |
train_d7814b98b1b2c010 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.419, 0.699, 0.149), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.082, -0.084).lineTo(0.176, -0.178).lineTo(0.082, -0.553).lineTo(0.302, -0.581).lineTo(0.308, -0.553).lineTo(0.348, -0.35).lineTo(0.387, -0.155).lineTo(0.259, 0.154).lineTo(0.082, 0.... | 6 | 34 | 0.070563 |
train_c7a22182d9444060 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.343, 0.023), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.207, 0.058).lineTo(0.262, 0.058).lineTo(0.262, 0.449).threePointArc((0.207, 0.472), (0.184, 0.527)).lineTo(-0.129, 0.527).threePointArc((-0.262, 0.582), (-0.207, 0.449)).lineTo(-0.20... | 2 | 41 | 1.067078 |
train_e24ab4e63644da1c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.27, -0.081), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.031, -0.034).lineTo(-0.002, 0.012).lineTo(0, 0.014).lineTo(0.012, 0.034).lineTo(-0.012, 0.034).lineTo(-0.014, 0.037).lineTo(0.014, 0.037).lineTo(0.016, 0.034).lineTo(0.002, 0.012).l... | 3 | 79 | 0.006482 |
train_09eae255aec49320 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.293, -0.239), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.663, 1.414).extrude(0.826)
result = result.cut(cq.Workplane(cq.Plane(origin=(0 + 0.166 * math.cos(0.494 + 2 * math.pi * 0 / 4), 0.706 + 0.166 * math.sin(0.494 + 2 * math.pi * 0 / 4), -1.... | 20 | 256 | 0.935137 |
train_71396be8613af93e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.5, 0.313, -0.057), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.037, 0.5).lineTo(0, 0.5).lineTo(-0.006, 0.436).lineTo(0.027, 0.436).lineTo(0.021, 0.5).lineTo(0.037, 0.5).lineTo(0.037, 0.394).lineTo(-0.016, 0.394).lineTo(-0.016, -0.5).lineTo(-0.... | 8 | 57 | 0.148344 |
train_5f8a16d157ec70b6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.42, -0.61), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.799).lineTo(1, 0.085).lineTo(-1, 0.085).lineTo(-1, 0.799).lineTo(1, 0.799).close().extrude(1.219)
result = result.edges().fillet(0.1)
result = result.union(cq.Workplane(cq.Plane(orig... | 4 | 34 | 1.831553 |
train_846e2da6bfe0a0d9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.149, -0.77), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.698, 1.702).extrude(1.539)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.387, 0.268, -0.025), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.361, 2.042).extrude(0.539))
result = result.c... | 11 | 62 | 3.000642 |
train_7e25312e207c9c48 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.019, -0.186, 0.086), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.37, -0.693).lineTo(-0.37, 1.065).lineTo(0.37, 1.065).lineTo(0.37, -0.693).lineTo(-0.37, -0.693).close().revolve(angleDegrees=180, axisStart=(-0.37, -0.693), axisEnd=(-0.37, 1.06... | 10 | 88 | 2.331535 |
train_4f92314624cc355e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.441, 0.295), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.32, 0.34).threePointArc((-0.294, 0.35), (-0.268, 0.359)).threePointArc((-0.178, 0.372), (-0.087, 0.364)).threePointArc((-0.061, 0.283), (0.023, 0.267)).threePointArc((-0.029, 0.291),... | 5 | 73 | 0.352383 |
train_da2c768a71724d40 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.295, -0.128, 0.295), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.295, 0.872).lineTo(-0.288, -0.871).lineTo(0.293, -0.872).lineTo(0.295, 0.872).lineTo(-0.295, 0.872).close().revolve(angleDegrees=180, axisStart=(-0.295, 0.872), axisEnd=(-0.288, ... | 14 | 50 | 0.918992 |
train_17af8c0af79fd09f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.335, 0.046, 0.227), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.197).transformed(offset=(0.283, 0, 0.058), rotate=(0, 45, 0)).circle(0.217).transformed(offset=(0.565, 0.148, 0.149), rotate=(0, 60, 0)).circle(0.206).loft()
result = result.edges... | 4 | 34 | 0.110047 |
train_30b13cc3b6d88cf8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.125, -0.422, -0.057), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.321, 0.21).lineTo(-0.321, -0.21).lineTo(-0.174, -0.21).lineTo(-0.174, 0).lineTo(0.321, 0).lineTo(0.321, 0.21).lineTo(-0.321, 0.21).close().sweep(cq.Workplane('YZ').spline([(-0.8... | 17 | 129 | 0.227241 |
train_9742632404cd2e8d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.166, 0, -0.178), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.236, 0.522).extrude(0.356)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.887, 0.051, -0.064), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.226, 0.198).extrude(0.09))
result = resu... | 12 | 53 | 0.210953 |
train_55095091085451be | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.793, -0.079), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.906, -0.046).lineTo(-0.921, 0.126).lineTo(0.155, 0.218).lineTo(0.168, 0.067).lineTo(0.919, 0.131).lineTo(0.921, 0.11).lineTo(0.17, 0.046).lineTo(0.171, 0.024).lineTo(0.184, -0.126).... | 1 | 12 | 0.507002 |
train_a1cbf28f663b9a8b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.718, -0.106, 0.271), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.729, 0.19).lineTo(0.712, 0.189).lineTo(0.712, -0.173).lineTo(0.125, -0.146).lineTo(0.109, -0.146).lineTo(-0.421, -0.122).lineTo(-0.421, 0.138).lineTo(-0.438, 0.138).lineTo(-0.438... | 2 | 18 | 0.05038 |
train_ffe6d090079d781d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.024, -0.421), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.316).extrude(0.745)
result = result.union(cq.Workplane(cq.Plane(origin=(0.1, 0.043, 0.321), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.592).extrude(0.073))
result = result.union(cq.... | 16 | 170 | 2.057299 |
train_e8186573b3239a62 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.062, -0.091, 0), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.264, -0.364).lineTo(0.264, -0.364).lineTo(0.264, 0.364).lineTo(-0.264, 0.364).lineTo(-0.264, -0.364).close().revolve(angleDegrees=360, axisStart=(-0.264, -0.364), axisEnd=(0.264, -0... | 3 | 12 | 0.994441 |
train_c684aa5455ca674e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0, -0.074), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.253, 0.253).lineTo(0.253, -0.05).lineTo(0.279, -0.045).lineTo(0.279, -0.279).lineTo(-0.045, -0.279).lineTo(-0.05, -0.253).lineTo(-0.253, -0.253).lineTo(-0.253, 0.05).lineTo(-0.279, 0.045... | 3 | 28 | 0.280835 |
train_4ba3396e51bdb7dc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.218, 0, 0.48), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.159).sweep(cq.Workplane('XZ').spline([(0.201, -0.089), (-0.01, -0.018), (-0.206, -0.139), (-0.293, -0.393), (-0.229, -0.659), (-0.045, -0.808)]))
result = result.edges().chamfer(0.121)... | 7 | 18 | 0.18271 |
train_dc65d55df6789ceb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.054, -0.065, 0.247), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.426).workplane(offset=0.293).circle(0.248).workplane(offset=0.307).circle(0.512).loft()
result = result.edges().chamfer(0.188)
result = result.union(cq.Workplane(cq.Plane(origin=... | 14 | 90 | 0.238482 |
train_57748907eecf9d48 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.977, 0.584, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.005, 0.023).lineTo(-0.005, -0.01).lineTo(-0.026, -0.01).lineTo(-0.026, -0.023).lineTo(0.026, -0.023).lineTo(0.026, -0.01).lineTo(0.007, -0.01).lineTo(0.007, 0.023).lineTo(-0.005, 0.023... | 1 | 10 | 0.00062 |
train_2cab90016c65f7a8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.171, 0, -0.113), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.087, 0.097).lineTo(-0.087, 0.073).lineTo(0.064, 0.073).lineTo(0.064, -0.097).lineTo(0.087, -0.097).lineTo(0.087, 0.097).lineTo(-0.087, 0.097).close().sweep(cq.Workplane('XZ').spline(... | 6 | 52 | 0.096917 |
train_19e4824db3679176 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.134, -0.094, 0.436), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.453, 0.906).lineTo(-0.453, -0.906).lineTo(0.453, -0.906).lineTo(0.453, 0.906).lineTo(-0.453, 0.906).close().extrude(0.882)
result = result.edges().fillet(0.139)
result = result.u... | 7 | 68 | 1.396952 |
train_04364c3a2875659c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.556, 0.074), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.316, -0.754).threePointArc((0.113, -0.98), (0.292, -0.531)).lineTo(-0.242, 0.557).threePointArc((-0.093, 0.927), (0.261, 0.741)).lineTo(0.316, 0.754).threePointArc((-0.113, 0.98), (-0.... | 1 | 10 | 0.223183 |
train_490964ea2e991237 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.023, -0.003), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.369, -1).lineTo(0.369, -1).lineTo(0.369, 0.985).threePointArc((0, 1), (-0.369, 0.985)).lineTo(-0.369, -1).close().sweep(cq.Workplane('YZ').spline([(-0.385, -0.497), (-0.144, -0.459),... | 10 | 117 | 1.330475 |
train_b2aa4fb6bb5d6ebc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.045, 0, -0.289), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.911, 1.645).extrude(0.223)
result = result.union(cq.Workplane(cq.Plane(origin=(0.045, 0.005, -0.068), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.633).extrude(0.036))
result = result.uni... | 10 | 126 | 0.803835 |
train_2d10e24f299e0588 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.209, -0.396, 0.333), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.333, -0.604).lineTo(-0.333, 1.396).lineTo(0.333, 1.396).lineTo(0.333, -0.604).lineTo(-0.333, -0.604).close().revolve(angleDegrees=360, axisStart=(-0.333, -0.604), axisEnd=(-0.333... | 15 | 125 | 2.676913 |
train_d7d1e25798057f44 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.235, -0.195, -0.382), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.9, 1.098).extrude(0.644)
result = result.union(cq.Workplane(cq.Plane(origin=(0.243, -0.138, 0.256), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.034).extrude(0.126))
result = result.... | 10 | 41 | 0.852361 |
train_81445f70c3d511c0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.045, -0.41, -0.036), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.458, -0.342).threePointArc((0, -0.799), (-0.458, -0.342)).lineTo(-0.458, 0.89).lineTo(0.458, 0.89).lineTo(0.458, -0.342).close().extrude(1.41)
result = result.edges().fillet(0.094... | 10 | 29 | 2.151157 |
train_94ebc56a8c793a79 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.027, 0.473, 0.101), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.05).sweep(cq.Workplane('YZ').spline([(0.282, 0.043), (0.277, -0.02), (0.352, -0.067), (0.447, -0.034), (0.472, 0.026), (0.386, 0.057)]))
result = result.union(cq.Workplane(cq.Plane... | 10 | 42 | 0.015342 |
train_170a8857eeafa408 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.005, -0.131, 0.039), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.015, -0.003).lineTo(0.015, -0.036).threePointArc((0.018, -0.039), (0.021, -0.036)).lineTo(0.021, -0.003).lineTo(0.021, 0).lineTo(0.021, 0.003).lineTo(0.021, 0.036).threePointArc((... | 9 | 47 | 0.027496 |
train_77d6c0588abe532f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, -0.828, -0.992), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1.368, 1.499).lineTo(0.375, 1.492).lineTo(1.368, 0.161).lineTo(-0.369, 0.161).lineTo(-1.368, 1.499).close().extrude(1.983)
result = result.edges().fillet(0.368)
result = result.cu... | 16 | 85 | 1.978243 |
train_4d532588dd81df68 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.573), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.311, 2).extrude(0.855)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.291, 0.308, -0.719), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.297, 0.353).extrude(1.025))
result = result.cut(cq.W... | 10 | 149 | 1.960958 |
train_1b5cb17e4b8dd437 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, 0, 0.075), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.494).workplane(offset=0.458).circle(0.52).workplane(offset=0.507).circle(0.486).workplane(offset=0.397).circle(0.519).workplane(offset=0.453).circle(0.498).loft()
result = result.edges().f... | 11 | 56 | 1.503239 |
train_b8ec01fa2c1bd4f9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.535, -0.289, 0.056), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.447, 0.41).lineTo(0.447, -0.126).lineTo(-0.085, -0.126).lineTo(-0.085, -0.153).lineTo(0.06, -0.153).lineTo(0.06, -0.294).lineTo(-0.209, -0.294).lineTo(-0.209, -0.153).lineTo(-0.19... | 35 | 218 | 0.415618 |
train_32405bf7eae46478 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.548, 0, -0.5), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.5, 0.811).lineTo(0.5, 0.285).lineTo(-0.5, 0.285).lineTo(-0.5, 0.811).lineTo(0.5, 0.811).close().revolve(angleDegrees=360, axisStart=(0.5, 0.811), axisEnd=(0.5, 0.285))
result = result.e... | 3 | 6 | 1.377609 |
train_0552c396a8f8f4df | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.086, -0.447, -0.429), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.876, 1.106).extrude(0.858)
result = result.union(cq.Workplane(cq.Plane(origin=(-1.021, -0.043, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.654, 0.284).lineTo(-0.654, 0.284).lin... | 6 | 49 | 0.946013 |
train_678358b9512dd0c0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.016, 0.001, 0.04), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1.016, 0.088).lineTo(1.016, -0.088).lineTo(1.016, 0.088).lineTo(-1.016, 0.088).close().extrude(0.08)
result = result.edges().chamfer(0.031)
result = result.cut(cq.Workplane(cq.Plane... | 28 | 66 | 0.010612 |
train_8fd5e67ed9135c22 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.28, 0, -0.633), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.44, 1.088).extrude(1.266)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.368, -0.136, -0.848), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.095).extrude(1.519))
result = result.cut(... | 19 | 65 | 1.648045 |
train_fbb9c8b17628893b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.119, -0.154, -0.672), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.558, 0.754).threePointArc((0.484, -0.49), (-0.558, 0.193)).threePointArc((-0.471, 0.499), (-0.261, 0.737)).threePointArc((-0.141, 0.808), (-0.008, 0.854)).threePointArc((0.285, 0.... | 15 | 55 | 1.417196 |
train_fa885695667261e7 | 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.703).workplane(offset=0.29).circle(0.856).workplane(offset=0.367).circle(0.875).workplane(offset=0.321).circle(0.76).workplane(offset=0.319).circle(0.821).workplane(offset=0.343).circle(0.898)... | 4 | 8 | 2.885985 |
train_90810c55ba2e6505 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.414).workplane(offset=0.562).circle(0.415).workplane(offset=0.532).circle(0.398).workplane(offset=0.437).circle(0.313).workplane(offset=0.47).circle(0.298).loft()
result = result.edges().... | 14 | 67 | 0.5647 |
train_7e0529d371b123b4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.565, 0.126, 0.207), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.365, 0.314).lineTo(-0.365, 0.023).lineTo(0.365, 0.023).lineTo(0.365, 0.314).lineTo(-0.365, 0.314).close().revolve(angleDegrees=90, axisStart=(0, 0), axisEnd=(0.119, 0))
result = ... | 14 | 101 | 0.368057 |
train_6791e9fb1c0f1b5d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.202, 0.178, -0.011), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.263, 0.09).lineTo(0.062, 0.198).lineTo(-0.381, 0.103).lineTo(-0.271, -0.102).lineTo(-0.085, -0.226).lineTo(-0.07, -0.25).lineTo(0.34, -0.087).close().moveTo(-0.074, 0).lineTo(-0.13... | 24 | 336 | 0.401307 |
train_e23e0112b85e965a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.001, 0.001, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.36, 0.107).lineTo(-0.374, -0.048).lineTo(-0.323, -0.196).lineTo(-0.216, -0.311).lineTo(-0.073, -0.372).lineTo(0.083, -0.37).lineTo(0.225, -0.304).lineTo(0.328, -0.186).lineTo(0.374, -0... | 1 | 17 | 0.293128 |
train_fea6103740667eb4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, 0, -0.091), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.424).workplane(offset=1.062).circle(0.561).workplane(offset=0.938).circle(0.527).loft()
result = result.edges().fillet(0.225)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.304, -... | 3 | 8 | 1.752704 |
train_90ce0564c013f324 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.808, -0.17, -0.456), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.301, 0.461).lineTo(-0.201, 0.461).lineTo(-0.208, 0.361).lineTo(-0.043, 0.361).lineTo(-0.05, 0.461).lineTo(0.051, 0.461).lineTo(0.058, 0.361).lineTo(0.072, 0.185).lineTo(0.079, 0.... | 14 | 230 | 0.859628 |
train_4a141b01ffa8e2eb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.482, 0.45, -0.584), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.036, 1.066).extrude(1.169)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.645, 0.525, 0.058), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.497, 0.135).lineTo(-0.497, 0.995).lin... | 11 | 156 | 1.598069 |
train_aaa919a95aef9191 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.112, 2.763, -0.649), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.332, 2.763).lineTo(-0.332, 2.763).lineTo(-0.332, 1.874).lineTo(0.332, 1.874).lineTo(0.332, -2.119).lineTo(0.332, 2.763).close().revolve(angleDegrees=180, axisStart=(0.332, 2.763), ... | 8 | 30 | 1.202534 |
train_d442c58e7be48d82 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.006, -0.021, 0.305), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.439, -0.011).lineTo(-0.439, 0.158).lineTo(0.439, 0.158).lineTo(0.439, -0.011).lineTo(-0.439, -0.011).close().extrude(0.432)
result = result.edges().fillet(0.045)
result = result... | 30 | 209 | 0.369336 |
train_0010e0b885b23328 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.458), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.812, 0.872).lineTo(-0.684, 1).lineTo(0.684, 1).lineTo(0.812, 0.872).lineTo(0.812, -1).lineTo(-0.812, -1).lineTo(-0.812, 0.872).close().extrude(0.916)
result = result.cut(cq.Workplane(cq.P... | 19 | 100 | 1.447096 |
train_bfb067608cab76c4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.029, 0.695, -0.214), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.786, 0.299).lineTo(0.786, 0.299).lineTo(0.393, -0.095).lineTo(-0.786, -0.095).lineTo(-0.786, 0.299).close().extrude(1.39)
result = result.edges().fillet(0.122)
result = result.un... | 19 | 169 | 0.664103 |
train_ba734901576dde9a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.203, -0.383, -0.796), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.479, 1.235).extrude(0.113)
result = result.union(cq.Workplane(cq.Plane(origin=(0.007, -0.524, -0.687), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.793, 0.69).extrude(0.042))
result = ... | 9 | 69 | 0.611657 |
train_a43376f66dc46b0f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.01, 0.087, 0.332), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1.01, 0.303).lineTo(-1.01, -0.101).lineTo(-0.808, -0.101).lineTo(-0.808, -0.177).lineTo(0.808, -0.177).lineTo(0.808, -0.303).lineTo(1.01, -0.101).lineTo(0.808, -0.101).lineTo(0.808, ... | 21 | 255 | 0.468126 |
train_9b45e3b43ecd632b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.464, -0.331, -0.231), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.709, 0.709).extrude(0.678)
result = result.faces('<X').shell(-0.042)
result = result.union(cq.Workplane(cq.Plane(origin=(0.504, -0.303, 0.438), normal=(0, 0, 1), xDir=(1, 0, 0))).re... | 13 | 76 | 0.710165 |
train_ffe5156af62ddf0c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.014, 0.396, 0.07), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.042, 0.041).lineTo(-0.042, -0.041).lineTo(0.042, -0.041).lineTo(0.042, 0.041).lineTo(-0.042, 0.041).close().sweep(cq.Workplane('YZ').spline([(-0.822, 0.015), (-0.423, 0.015), (-0.0... | 4 | 17 | 0.016505 |
train_8b248e95679c8160 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.844, 0, 0.35), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.35, 0.694).lineTo(-0.35, 0.994).lineTo(-0.61, 0.994).threePointArc((-0.5, 1.104), (-0.35, 1.144)).lineTo(0.35, 1.144).lineTo(0.35, 0.994).lineTo(0.61, 0.994).threePointArc((0.61, 0.694... | 4 | 23 | 0.766273 |
train_3b55b1b157c42b1a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.601, 0, -0.077), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.07, -0.14).lineTo(0.07, -0.006).threePointArc((0.087, 0.035), (0.128, 0.052)).lineTo(0.14, 0.052).lineTo(0.14, 0.035).lineTo(0.233, 0.035).lineTo(0.233, 0.052).lineTo(0.233, 0.122).li... | 3 | 45 | 0.091695 |
train_549b4c3fc34bfed4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.101, 0.4, 0.623), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.32, -0.6).lineTo(-0.32, 0.6).lineTo(0.32, 0.6).lineTo(0.32, -0.6).lineTo(-0.32, -0.6).close().extrude(1.222)
result = result.edges().chamfer(0.134)
result = result.union(cq.Workpla... | 15 | 76 | 0.796773 |
train_f19c20c4deb3fc76 | 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.263).workplane(offset=0.458).circle(0.185).workplane(offset=0.531).circle(0.174).workplane(offset=0.466).circle(0.076).workplane(offset=0.546).circle(0.048).loft()
result = result.cut(cq.Workp... | 2 | 5 | 0.143986 |
train_e65e51e9fad770b7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.659), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.485).workplane(offset=0.286).circle(0.429).workplane(offset=0.273).circle(0.458).workplane(offset=0.22).circle(0.403).workplane(offset=0.259).circle(0.537).workplane(offset=0.216).circle(0... | 24 | 91 | 0.662991 |
train_ae08ccb59dbef861 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.784, 0.324, -0.15), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.85, 1.668).threePointArc((0.683, 0.072), (-0.85, 0.547)).lineTo(-0.85, 1.33).lineTo(-0.85, 1.668).lineTo(-0.627, 1.668).lineTo(0.85, 1.668).close().extrude(0.593)
result = result.e... | 13 | 81 | 1.640127 |
train_a925aa884566dd9a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.114, 0.19, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.189, -0.111).lineTo(0.189, 1.128).threePointArc((0, -0.895), (-0.189, 1.128)).lineTo(-0.189, 0.425).lineTo(-0.189, -0.111).lineTo(0.189, -0.111).close().workplane(offset=0.071).moveTo(0... | 8 | 57 | 0.290428 |
train_f634cb4d904d18f9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.134, 0.178), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.435, 0.515).threePointArc((0.803, 0.447), (0.597, 0.134)).lineTo(0.389, 0.134).lineTo(-0.267, 0.134).lineTo(-0.803, 0.134).lineTo(-0.803, 0.411).lineTo(-0.285, 0.411).lineTo(-0.181, 0.5... | 5 | 25 | 0.634411 |
train_a7207ed6006d12ac | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.009, 0.375, -0.018), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.025, -0.053).lineTo(-0.029, -0.053).lineTo(-0.029, 0.022).lineTo(-0.025, 0.022).lineTo(-0.025, 0.052).lineTo(-0.013, 0.053).lineTo(0.003, 0.039).lineTo(-0.003, 0.039).lineTo(0.01... | 10 | 54 | 0.033973 |
train_849d3c2df20a6a27 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.463), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.931).extrude(0.768)
result = result.union(cq.Workplane(cq.Plane(origin=(0.1, 0.097, 0.302), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.869).extrude(0.056))
result = result.union(cq.Workp... | 4 | 25 | 3.102562 |
train_94cc9b5363fca942 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.268, 0.23, -0.297), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.463, 0.489).extrude(0.455)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.723, 0.236, -0.031), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.554, 0.187).extrude(0.131))
result = r... | 14 | 87 | 0.494303 |
train_aecc8d59f6a0fae6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.471, 0, -0.578), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.059, 0.903).extrude(0.906)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.457, -0.105, 0.312), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.614, 0.172).extrude(0.266))
result = res... | 11 | 102 | 0.625873 |
train_0f15b6996bdb1937 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.639, -0.936, -0.032), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.721, 1.639).lineTo(0.721, -0.361).lineTo(0.621, -0.361).lineTo(0.621, -0.261).lineTo(-0.721, -0.261).lineTo(-0.721, 0.272).lineTo(0.621, 0.272).lineTo(0.621, 0.906).lineTo(-0.721... | 4 | 25 | 1.800529 |
train_b04b2c08beb1e9a3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.038, 0.086, -0.465), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.111, -0.273).lineTo(0.111, -0.273).lineTo(0.111, -0.116).lineTo(0.029, -0.116).lineTo(0.029, 0.254).lineTo(-0.07, 0.254).lineTo(-0.07, 0.35).lineTo(-0.111, 0.35).lineTo(-0.111, -... | 3 | 38 | 0.15553 |
train_b6999b35966b6a85 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.012, 0.058), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.519).sweep(cq.Workplane('XY').spline([(-0.048, -0.012), (0.319, -0.012), (0.687, -0.012), (1.076, -0.145), (1.466, -0.278), (1.855, -0.411)]))
result = result.edges().fillet(0.256)
r... | 6 | 18 | 1.570624 |
train_77e142fed15c9f49 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.047, 0.173, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.126, 0.044).lineTo(0.085, 0.116).lineTo(0.07, 0.107).lineTo(0.027, 0.077).lineTo(-0.027, 0.034).lineTo(-0.079, -0.012).lineTo(-0.115, -0.05).lineTo(-0.126, -0.063).lineTo(-0.063, -0.1... | 3 | 70 | 0.02676 |
train_be37d5ad18e125e4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.533, -0.606, -0.321), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, 0.296).lineTo(0.654, 0.77).lineTo(0.404, 1.114).lineTo(0.404, 1.539).lineTo(-0.404, 1.539).lineTo(-0.654, 0.77).lineTo(0, 0.296).close().revolve(angleDegrees=180, axisStart=(0, ... | 8 | 37 | 1.757303 |
train_c63d8092f97e8042 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.004, 0.144, 0.197), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.021, 0.024).lineTo(-0.021, 0.014).lineTo(-0.012, 0.014).threePointArc((-0.006, 0.011), (-0.003, 0.005)).lineTo(-0.003, -0.005).threePointArc((-0.006, -0.011), (-0.012, -0.014)).lin... | 11 | 239 | 0.142067 |
train_1cdddb4aeb7d9c56 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.124, 0, 0.254), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.359, 0.49).threePointArc((0.739, 0), (-0.359, -0.49)).lineTo(-0.579, -0.49).threePointArc((-0.525, -0.325), (-0.69, -0.27)).lineTo(-0.739, -0.27).threePointArc((-0.708, -0.241), (-0.6... | 15 | 155 | 0.329922 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.