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_d3b72567225bf2ab | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.508, -1, -0.167), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.273, 0.61).lineTo(0.273, 0.61).lineTo(0.273, 0.574).lineTo(0.237, 0.574).lineTo(0.237, -0.264).lineTo(0.273, -0.264).lineTo(0.273, -0.3).lineTo(-0.273, -0.3).lineTo(-0.273, -0.264).... | 13 | 211 | 0.977362 |
train_67644139904f4da0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.101, -0.178, -0.103), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.088, 0.174).lineTo(-0.088, -0.076).lineTo(0.088, -0.076).lineTo(0.088, 0.174).lineTo(-0.088, 0.174).close().extrude(0.137)
result = result.edges().chamfer(0.031)
result = resul... | 26 | 220 | 0.241796 |
train_26c4bc0266dad498 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.322), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.921).extrude(1.165)
result = result.union(cq.Workplane(cq.Plane(origin=(0.054, -0.096, -0.842), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.253).extrude(0.568))
result = result.cut(cq.Wor... | 3 | 12 | 2.184789 |
train_81070526aa0c7b6b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.48, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.062, -0.48).lineTo(0.039, -0.48).lineTo(0.039, -0.118).lineTo(0.106, -0.118).lineTo(0.106, -0.085).lineTo(0.015, -0.085).lineTo(0.015, 0.346).lineTo(0.146, 0.52).lineTo(0.08, 0.52).lineTo(... | 3 | 34 | 0.262984 |
train_9e9e227fee36ee17 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.254, -0.102, 0.124), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.746, 0.218).lineTo(0.746, 0.218).lineTo(0.746, -0.218).threePointArc((0.595, -0.187), (0.444, -0.218)).lineTo(0.349, -0.218).threePointArc((0.198, -0.187), (0.048, -0.218)).line... | 32 | 243 | 0.168079 |
train_160cee4327ee38d3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.371, -0.267, -0.389), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.323, 0.482).threePointArc((-0.457, 0.347), (-0.323, 0.213)).lineTo(-0.263, 0.213).threePointArc((0, 0.051), (0.263, 0.213)).lineTo(0.323, 0.213).threePointArc((0.457, 0.347), (0... | 18 | 238 | 0.326561 |
train_f5e88866480375a9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.299, -0.012, -0.114), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.677, -0.787).lineTo(0.69, -0.785).lineTo(0.681, 0.786).lineTo(-0.701, 0.811).close().moveTo(0.168, 0.002).lineTo(0.117, 0.122).lineTo(0.001, 0.171).lineTo(-0.117, 0.121).lineTo(... | 9 | 54 | 0.430249 |
train_747a240ed2ff2a62 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.648, 0, 0.214), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.352, 0.291).lineTo(0.352, -0.291).lineTo(0.182, -0.291).lineTo(0.271, -0.202).lineTo(0.219, -0.202).lineTo(0.155, -0.263).lineTo(0.162, -0.291).lineTo(-0.352, -0.291).lineTo(-0.352, 0... | 5 | 60 | 0.216251 |
train_7c59cf7a76eacfbc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.386, -0.227, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.038, 0.461).lineTo(0.05, 0.482).lineTo(0.164, 0.482).lineTo(0.164, 0.596).lineTo(0.05, 0.596).lineTo(0.038, 0.617).lineTo(0.137, 0.674).lineTo(0.08, 0.773).lineTo(-0.019, 0.716).lineT... | 2 | 28 | 0.11948 |
train_c9c8ce9a80ff5b87 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.296, -0.181, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.894, 0.883).extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(0.362, 0.405, -0.016), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.145).extrude(0.677))
result = result.union(... | 27 | 122 | 1.598035 |
train_c10e55cc9e51d9e4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.33, 0, 0.029), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.095, 0.666).threePointArc((0, -0.666), (0.095, 0.666)).lineTo(0.095, 0.592).threePointArc((0, -0.592), (-0.095, 0.592)).lineTo(-0.095, 0.666).close().sweep(cq.Workplane('XZ').spline([... | 4 | 21 | 0.15871 |
train_5de4141a8bdb61ac | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.588, 0, -0.339), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.494, 0.298).extrude(0.285)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.058, 0, -0.245), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.616, 0.188).extrude(0.097))
result = result.... | 6 | 62 | 0.082051 |
train_6791a54266e2b62c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.703, -0.437), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.283, -0.225).lineTo(-1, -0.225).lineTo(-0.465, 0.225).lineTo(-0.358, 0.225).lineTo(-0.358, -0.203).lineTo(0.358, -0.203).lineTo(0.358, 0.225).lineTo(0.465, 0.225).lineTo(1, -0.225).... | 4 | 28 | 0.583198 |
train_bedfb5a1527bc30a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.004, -0.188, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.113, 0.808).lineTo(-0.653, -0.5).lineTo(0.653, 0.042).lineTo(-0.113, 0.808).close().revolve(angleDegrees=90, axisStart=(-0.113, 0.808), axisEnd=(-0.653, -0.5))
result = result.edges... | 13 | 140 | 0.508897 |
train_b8aeec5eb1b49d68 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.111, 0.441), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.934, 0.889).lineTo(-0.401, -0.889).lineTo(-0.934, -0.889).lineTo(0.401, 0.889).lineTo(0.934, 0.889).close().extrude(0.882)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.747 + 0.... | 11 | 36 | 0.823189 |
train_78c1fa2bd5b268ad | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.213), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.3).extrude(0.339)
result = result.union(cq.Workplane(cq.Plane(origin=(0, -0.12 + 0.02, 0.126), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.013, 0.028).lineTo(-0.008, 0.033).lineTo(-0.003... | 11 | 56 | 0.197712 |
train_89034bbcd69f4692 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.02, -0.297, -0.017), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.143, -0.001).threePointArc((0.018, -0.041), (-0.045, -0.155)).threePointArc((-0.143, 0.155), (0.143, -0.001)).close().sweep(cq.Workplane('YZ').spline([(-1.06, -0.526), (-0.717, -0... | 2 | 7 | 0.104834 |
train_4eea358525f336aa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.59, 0.029), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.417, 1.111).lineTo(-0.243, 1.211).threePointArc((-0.521, 1.007), (-0.659, 0.691)).threePointArc((-0.621, 0.347), (-0.417, 0.069)).lineTo(0.243, -0.032).threePointArc((0.521, 0.173), (0... | 4 | 70 | 1.878534 |
train_7660dad4bf73ff28 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.05, -0.197, 0.168), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.206, 0.232).extrude(0.316)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.226, -0.197, 0.258), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.178, 0.155).extrude(0.136))
result = ... | 13 | 85 | 0.087885 |
train_95601174258083a7 | 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.717, 1.07).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.156, 0.407, -0.373), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.448, 0.04).lineTo(-0.448, 0.191).lineTo(-0.598, 0.19... | 12 | 34 | 2.434463 |
train_614d904459f948df | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.315, -0.118, -0.246), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.369, 1.613).extrude(0.833)
result = result.faces('<Z').shell(-0.058)
result = result.union(cq.Workplane(cq.Plane(origin=(0.668, -0.081, -0.008), normal=(0, 0, 1), xDir=(1, 0, 0))).... | 13 | 120 | 0.582472 |
train_d5cf69482b5ee52a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.464, 0.001), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, 0.514).lineTo(0.62, 0.514).lineTo(0, -0.514).lineTo(-0.62, 0.514).lineTo(0, 0.514).close().revolve(angleDegrees=270, axisStart=(0, 0.514), axisEnd=(0.62, 0.514))
result = result.edges... | 17 | 110 | 0.688169 |
train_da39ca990bd84323 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.054, 0.408, -0.166), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.429, -0.489).lineTo(0.445, -0.476).lineTo(0.424, 0.472).lineTo(-0.422, 0.493).close().moveTo(-0.035, -0.001).lineTo(-0.064, 0.073).lineTo(-0.14, 0.103).lineTo(-0.214, 0.074).lineT... | 11 | 221 | 0.232215 |
train_b7b28b5cca2b664b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.982, -1.166, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.018).sweep(cq.Workplane('XY').spline([(0.982, -1.84), (1.623, -1.84), (2.063, -1.688), (2.503, -1.537), (2.942, -1.386)]))
result = result.union(cq.Workplane(cq.Plane(origin=(-0.751, -... | 3 | 17 | 0.005859 |
train_1643be59a5c473aa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 1, -0.014), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.314).workplane(offset=0.665).circle(0.401).workplane(offset=0.661).circle(0.285).workplane(offset=0.674).circle(0.433).loft()
result = result.edges().chamfer(0.147)
result = result.cut(cq... | 6 | 23 | 0.585465 |
train_797ba57477dba712 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.603, -1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.047, -0.038).threePointArc((-0.37, 0.074), (-0.595, 0.333)).threePointArc((-0.66, 0.668), (-0.547, 0.992)).lineTo(0.047, 1.281).lineTo(0.595, 0.91).threePointArc((0.66, 0.575), (0.547, 0... | 15 | 83 | 1.427657 |
train_0b1f134582876fbe | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.045, 0.174, -0.105), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.927, -0.63).lineTo(0.928, -0.637).lineTo(0.897, 0.613).lineTo(-0.948, 0.615).close().moveTo(-0.146, 0.299).lineTo(0.148, 0.296).lineTo(0.146, 0.253).lineTo(0.023, 0.252).lineTo(0... | 11 | 114 | 0.819709 |
train_64f5419a6177a70c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.815, -0.064, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.252, -0.185).lineTo(-0.252, 0.751).lineTo(0.252, 0.751).lineTo(0.252, -0.185).lineTo(-0.252, -0.185).close().extrude(0.458)
result = result.edges().fillet(0.061)
result = result.unio... | 9 | 57 | 0.282772 |
train_75207bd3b559d837 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.166, -0.232), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.616, 0.979).extrude(0.764)
result = result.union(cq.Workplane(cq.Plane(origin=(0.303, -0.076, -0.531), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.287).extrude(0.307))
result = result.u... | 18 | 60 | 0.851122 |
train_8a1223977f44c651 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.004, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.379, 0.55).extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.206, 0.025, -0.542), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.012).extrude(0.303))
result = result.edges().fi... | 11 | 75 | 0.399561 |
train_f0847b22c46f4509 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.175, -0.013, -0.713), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.287, 0.024).lineTo(0.287, 0.024).lineTo(0.253, 0.001).lineTo(-0.287, 0.001).lineTo(-0.287, 0.024).close().extrude(0.35)
result = result.union(cq.Workplane(cq.Plane(origin=(0.053... | 3 | 15 | 0.004494 |
train_4e1b9a623c3862aa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.392, 0.215, 0.762), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.426, -0.106).lineTo(0.426, -0.106).lineTo(0.426, 0).lineTo(0.237, 0).lineTo(0.298, 0.106).lineTo(-0.298, 0.106).lineTo(-0.237, 0).lineTo(-0.426, 0).lineTo(-0.426, -0.106).close()... | 4 | 33 | 0.323484 |
train_35b537dff79333e3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.331), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, -1).lineTo(0.196, -0.339).lineTo(0.866, -0.5).lineTo(0.392, 0).lineTo(0.866, 0.5).lineTo(0.196, 0.339).lineTo(0, 1).lineTo(-0.196, 0.339).lineTo(-0.866, 0.5).lineTo(-0.392, 0).lineTo(-0.8... | 14 | 92 | 0.595589 |
train_3227b89e4bb2f354 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.078, -0.792, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.302, 0.817).lineTo(0, -0.817).lineTo(-0.302, 0.817).lineTo(0.302, 0.817).close().sweep(cq.Workplane('XY').spline([(0.078, -0.502), (0.242, -0.637), (0.407, -0.682), (0.572, -0.637), (... | 9 | 58 | 0.244687 |
train_38e6eea7397bc309 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.029, 0.227, -0.008), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, 0.12).lineTo(-0.12, 0.12).lineTo(-0.12, -0.07).lineTo(-0.06, -0.07).lineTo(-0.06, -0.12).lineTo(0.06, -0.12).lineTo(0.06, 0.07).lineTo(0.12, 0.07).lineTo(0.12, 0.12).lineTo(0, 0... | 12 | 142 | 0.069135 |
train_7c280c8304ec5527 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.022, -0.005, -0.768), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.978, 0.012).lineTo(0.469, 0.846).lineTo(-0.48, 0.89).lineTo(-1.022, -0.023).lineTo(-0.472, -0.88).lineTo(0.503, -0.858).close().moveTo(0.154, 0.049).lineTo(0.187, 0.079).lineTo(0.... | 11 | 59 | 1.710887 |
train_6da1f111d6d33e4b | 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.634).workplane(offset=0.302).circle(0.532).workplane(offset=0.379).circle(0.807).workplane(offset=0.341).circle(0.764).workplane(offset=0.339).circle(0.68).workplane(offset=0.269).circle(0.511... | 7 | 30 | 1.510315 |
train_0e4e2fe7fb31839b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.025, 0.28, 1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.327, -0.034).threePointArc((-0.265, 0.035), (-0.327, 0.104)).threePointArc((-0.248, 0.244), (-0.108, 0.322)).threePointArc((-0.039, 0.331), (0.03, 0.322)).threePointArc((0.17, 0.244), ... | 4 | 22 | 0.17119 |
train_aea1d5ed3526d488 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.342, 0, -0.282), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.745, 0.55).extrude(0.314)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.128, 0.053, -0.155), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.335, 0.257).extrude(0.126))
result = result... | 24 | 167 | 0.270508 |
train_ef3fc4ac6df224ca | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.321, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.18, -0.009).lineTo(-0.166, 0.025).lineTo(-0.132, 0.01).lineTo(-0.111, 0.06).lineTo(0.793, 0.06).lineTo(0.793, 0.128).lineTo(-0.123, 0.128).lineTo(-0.137, 0.094).lineTo(-0.152, 0.06).line... | 2 | 22 | 0.219222 |
train_ab3276f9d860c654 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.079, 0.122, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.023, 0.796).lineTo(-0.023, 0.613).lineTo(-0.161, 0.613).lineTo(-0.023, -0.484).lineTo(-0.023, -0.638).lineTo(0.023, -0.638).lineTo(0.023, 0.613).lineTo(0.161, 0.613).lineTo(0.161, 0.7... | 13 | 62 | 0.056687 |
train_7c588d11b683aa24 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.221, 0, -0.283), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.557, 1.164).extrude(0.567)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.772, 0.053, -0.138), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.457, 0.272).extrude(0.332))
result = resu... | 3 | 15 | 0.988258 |
train_733e890ff3e6a882 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.662, -0.074, -0.143), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.857, 0.266).lineTo(-0.857, 0.803).lineTo(-0.857, -0.698).lineTo(0.857, 0.266).close().extrude(1.324)
result = result.edges().chamfer(0.221)
result = result.union(cq.Workplane(cq.... | 10 | 48 | 1.186556 |
train_a43c5b188b3092be | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.515, -0.784, -0.154), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.775, 1.817).lineTo(-0.775, -0.25).lineTo(0.775, -0.25).lineTo(0.775, 1.817).lineTo(-0.775, 1.817).close().workplane(offset=0.246).moveTo(-0.638, 1.634).lineTo(-0.638, -0.067).li... | 17 | 75 | 0.962506 |
train_76de88e58abf283c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.135, 0.163, -0.356), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.926, 1).extrude(0.864)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.097, 0.347, -0.544), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.456, -0.284).lineTo(0.184, -0.284).li... | 10 | 96 | 0.545107 |
train_f5147802292b180c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.144, 0.157, 0.974), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.326, -0.483).threePointArc((0, 0.583), (-0.326, -0.483)).threePointArc((-0.272, -0.516), (-0.214, -0.542)).threePointArc((0, -0.583), (0.214, -0.542)).threePointArc((0.272, -0.516),... | 15 | 55 | 1.23249 |
train_11b7ed1cdae3b17f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.044, -0.04, 0.465), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.271, 0.387).lineTo(-0.271, 1.04).lineTo(0.005, 1.04).lineTo(0.271, 0.762).lineTo(0.271, -0.553).lineTo(-0.271, -0.553).lineTo(-0.271, 0.387).close().revolve(angleDegrees=270, axi... | 17 | 84 | 0.85124 |
train_bb754cea63eb0db2 | 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.826).workplane(offset=0.334).circle(0.723).workplane(offset=0.326).circle(0.545).workplane(offset=0.341).circle(0.404).workplane(offset=0.304).circle(0.351).workplane(offset=0.306).circle(0.19... | 1 | 3 | 1.535895 |
train_19b5d97c5fd4f045 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.764, -0.152, 0.654), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.229, 0).lineTo(-0.229, 0.265).lineTo(0, 0.265).lineTo(0, 0.049).threePointArc((0.076, 0.069), (0.151, 0.049)).threePointArc((0.229, -0.085), (0.151, -0.219)).threePointArc((0.07... | 1 | 12 | 0.091744 |
train_94afa74bcaef3a68 | 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.75).workplane(offset=0.535).circle(0.655).workplane(offset=0.457).circle(0.56).workplane(offset=0.478).circle(0.465).workplane(offset=0.529).circle(0.37).loft()
result = result.edges().fillet(... | 11 | 27 | 1.076028 |
train_e74022e91e29b840 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.05, -0.303, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.121, 1.168).lineTo(-0.121, -0.563).lineTo(0.121, -0.563).lineTo(0.121, 1.168).lineTo(-0.121, 1.168).close().extrude(1.422)
result = result.edges().fillet(0.073)
result = result.union(... | 13 | 102 | 0.491239 |
train_fa2fb6ddca53c23b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.262, -0.201), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.39, 0.627).threePointArc((-0.646, 0.359), (-0.739, 0)).threePointArc((-0.646, -0.359), (-0.39, -0.627)).threePointArc((0.739, 0), (-0.39, 0.627)).close().sweep(cq.Workplane('YZ').sp... | 8 | 106 | 1.598087 |
train_4c63486f4aec0c5f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.43), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.544).extrude(0.891)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.618 + 0.206, 0.178, -1.731), normal=(1, 0, 0), xDir=(0, 1, 0))).moveTo(0, -0.049).lineTo(0.101, -0.049).lineTo(0.02... | 15 | 13 | 2.75676 |
train_aaa7a67f286147b8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.753, 0.192).lineTo(-0.673, 1).lineTo(0.673, 1).lineTo(0.753, 0.192).lineTo(-0.753, 0.192).close().revolve(angleDegrees=360, axisStart=(0, 0), axisEnd=(1.124, 0))
result = result.edges().fille... | 7 | 27 | 2.928001 |
train_5e51a44277bb56fb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.478, 0.334, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.003, 0.817).extrude(1.054)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.428, 0.375, 0.051), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.902, 0.735).extrude(0.072))
result = resu... | 13 | 81 | 1.142041 |
train_e444cca7013fe66e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.584, 0.376, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.471, 0.122).threePointArc((0.016, 0.06), (0.471, -0.122)).threePointArc((0.408, 0.001), (0.34, 0.122)).lineTo(-0.471, 0.122).close().sweep(cq.Workplane('XY').spline([(0, 0.127), (0.1... | 3 | 22 | 0.131093 |
train_10edd6c15b9ce2f4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.372, -0.054), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.171, 0.219).threePointArc((-0.22, 0.24), (-0.269, 0.219)).threePointArc((-0.245, 0.145), (-0.318, 0.12)).lineTo(-0.318, 0.09).threePointArc((-0.316, 0.075), (-0.318, 0.06)).lineTo(-0.... | 26 | 66 | 0.361413 |
train_8be6e6900c580193 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.522, -0.125, -0.022), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.34, 0.636).extrude(0.115)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.516, 0.249, 0.007), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.076, 0.132).extrude(0.062))
result = ... | 10 | 129 | 0.524355 |
train_88540fdbd4e2c2bb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.002, 0.245, 0.068), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.052, 0.028).threePointArc((0.056, 0.027), (0.059, 0.026)).threePointArc((0.157, 0.019), (0.251, 0.049)).threePointArc((0.266, 0.026), (0.272, -0.002)).threePointArc((0.266, -0.03)... | 5 | 61 | 0.585878 |
train_8986fd116be4c948 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.137, -0.472, -0.472), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1.079, 0.454).threePointArc((0, 0.957), (1.079, 0.454)).lineTo(0.438, 0.454).lineTo(-0.438, 0.454).lineTo(-1.079, 0.454).close().revolve(angleDegrees=90, axisStart=(0, 0), axisEnd=... | 3 | 20 | 0.766634 |
train_46329e989cc0f5b5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.8, 0.943).extrude(0.674)
result = result.union(cq.Workplane(cq.Plane(origin=(0.094, 0.29, -0.391), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.063, 0.088).extrude(1.391))
result = result.union(cq.... | 4 | 21 | 0.504893 |
train_74a6802fc92e1136 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.643, 0, -0.5), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.5, 1.143).lineTo(0.5, 0.142).lineTo(0.1, 0.543).lineTo(-0.5, 1.143).lineTo(0.5, 1.143).close().revolve(angleDegrees=270, axisStart=(0.5, 1.143), axisEnd=(0.5, 0.142))
result = result.cu... | 2 | 9 | 0.724977 |
train_5fbfdf592ecc4b15 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.077, -0.105, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.124, -0.923).threePointArc((-0.055, 0.084), (0.124, 1.077)).lineTo(-0.124, -0.923).close().extrude(0.211)
result = result.cut(cq.Workplane(cq.Plane(origin=(0 + 0.058 * math.cos(5.384... | 6 | 6 | 0.015717 |
train_bdc36e3ea27d9738 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.787, 0.181, -0.383), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, -0.178).lineTo(-0.213, -0.178).lineTo(-0.213, -0.231).lineTo(0.213, -0.231).lineTo(0.213, 0.231).lineTo(-0.195, 0.231).lineTo(-0.195, -0.16).lineTo(0, -0.16).lineTo(0, -0.178).cl... | 14 | 101 | 0.270334 |
train_4ea417ea3de58987 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.955), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.742).extrude(1.49)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.508, 0.059, -0.269), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.036, 0.197).extrude(0.655))
result = result.edges().... | 22 | 229 | 1.172314 |
train_fe03356516650395 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.377), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.471, 0.463).extrude(0.466)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.005, 0.038, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.055, 0.054).extrude(0.68))
result = result.edges(... | 8 | 197 | 0.096485 |
train_941261e3b849b87c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.273, -0.181, -0.273), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.009, -0.089).lineTo(-0.882, -0.089).lineTo(-0.009, 0.089).lineTo(0.882, 0.089).lineTo(0.882, -0.089).lineTo(-0.009, -0.089).close().extrude(0.252)
result = result.edges().fille... | 13 | 210 | 0.555157 |
train_3529130ef0e9222c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.007, -0.589, -0.665), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.178, 0.059).threePointArc((-0.993, 0.463), (-0.423, 1.174)).lineTo(0.526, 1.174).lineTo(0.526, 0.987).lineTo(0.993, 0.987).lineTo(0.993, 0.589).lineTo(-0.178, 0.059).close().extr... | 11 | 65 | 1.13602 |
train_c3bdc739d4388a54 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.173, 0, -0.348), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.654, 0.606).extrude(0.505)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.826, 0.069, -0.237), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.174).extrude(0.261))
result = result.cu... | 10 | 42 | 0.444421 |
train_d136adb0ea268236 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.031, -0.055, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.344, 1.03).threePointArc((0.452, 0.911), (0.526, 0.768)).threePointArc((0.564, 0.554), (0.526, 0.341)).threePointArc((0.452, 0.198), (0.344, 0.079)).lineTo(-0.063, 0.053).threePointAr... | 2 | 6 | 2.909643 |
train_0d14b2ef06463993 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.241, -0.742), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.938, 1.519).extrude(1.484)
result = result.union(cq.Workplane(cq.Plane(origin=(0.134, 0.758, 0.139), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.242).extrude(0.304))
result = result.cut... | 6 | 49 | 2.122084 |
train_930a01970daebc20 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.061, -0.25), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.779, 1.017).extrude(0.852)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.307, -0.214, -0.127), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.078).extrude(0.259))
result = result.edg... | 20 | 188 | 0.543327 |
train_cdaaf42e4ac50466 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.394, 1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 1.394).lineTo(1, 0.9).lineTo(-0.506, 0.9).lineTo(-0.506, -0.606).lineTo(-1, -0.606).lineTo(-1, 1.394).lineTo(1, 1.394).close().revolve(angleDegrees=90, axisStart=(1, 1.394), axisEnd=(1, 0... | 5 | 23 | 3.44802 |
train_73f60e08a71ed699 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.534, 0, 0.151), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.033, 0.188).lineTo(-0.059, 0.188).lineTo(-0.059, 0.193).lineTo(-0.466, -0.104).lineTo(-0.463, -0.108).lineTo(-0.461, -0.112).lineTo(-0.457, -0.117).lineTo(-0.455, -0.121).lineTo(-0.452... | 1 | 115 | 0.011836 |
train_2e7dd70f9b644b86 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.317, 0.457, 0.096), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.823, 1.118).lineTo(0.823, -0.601).lineTo(0.179, -0.601).lineTo(0.179, 0.33).lineTo(0.036, 0.33).lineTo(0.036, -0.502).lineTo(-0.068, -0.601).lineTo(-0.748, -0.601).threePointArc((-... | 34 | 25 | 2.44045 |
train_aa53088c22a964ec | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.016, 0.273, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.471).workplane(offset=0.195).circle(0.574).workplane(offset=0.186).circle(0.619).workplane(offset=0.166).circle(0.583).loft()
result = result.edges().chamfer(0.184)
result = result.uni... | 4 | 17 | 0.588585 |
train_d9a0690532025080 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.102, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.813).lineTo(0, 0.273).lineTo(0.291, 0.273).lineTo(0, 0.104).lineTo(-0.146, 0.02).lineTo(-0.291, 0.273).lineTo(-0.307, 0.281).lineTo(-0.614, -0.25).lineTo(0, -0.25).lineTo(0, -0.232).lin... | 9 | 78 | 0.542185 |
train_c6e3aa2604865e2f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.29, -0.718), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.76, -0.073).lineTo(0.76, 0.366).lineTo(0, 0.804).lineTo(-0.76, 0.366).lineTo(-0.76, -0.073).lineTo(0.76, -0.073).close().extrude(1.718)
result = result.edges().fillet(0.156)
result = r... | 21 | 165 | 1.054144 |
train_560bcc42570eab12 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.087, 0, 0.707), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.783).workplane(offset=0.448).circle(0.906).workplane(offset=0.477).circle(0.879).workplane(offset=0.419).circle(0.707).loft()
result = result.edges().fillet(0.085)
result = result.uni... | 5 | 15 | 3.13039 |
train_c9c990355242f14e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.041, -0.802), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.583).extrude(1.604)
result = result.edges().chamfer(0.069)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.928, 0.398, -0.233), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.151, 0.1... | 16 | 55 | 5.000962 |
train_9b74a2242f733acf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.219), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.222, 2).extrude(0.051)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.182, 0.115, -0.171), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.298).extrude(0.042))
result = result.union(cq.W... | 12 | 45 | 0.266694 |
train_eb9dabae72023730 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.079, 0, 0.017), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.496, 2).extrude(0.172)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.199, -0.104, 0.188), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.049).extrude(0.041))
result = result.union(c... | 8 | 37 | 0.391963 |
train_c24d50f367f6648e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.353, -0.125, -0.378), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.056, 0.127).extrude(0.016)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.373, -0.116, -0.362), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.051, -0.417).lineTo(0.005, 0.24... | 21 | 341 | 0.649513 |
train_3ab2e5ab814bfef7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.033, -0.544), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.16).extrude(0.246)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.209, -0.028, -0.322), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.058).extrude(0.323))
result = result.union... | 7 | 33 | 0.227087 |
train_903336c98f8e93c9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.127, -0.132, 0.385), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1.029, 1.132).threePointArc((0.246, -0.223), (-1.029, -1.132)).lineTo(1.029, -1.132).lineTo(1.029, 1.132).close().extrude(1.091)
result = result.edges().chamfer(0.276)
result = res... | 11 | 140 | 1.27958 |
train_82a9346dfb22e11b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1.183, 4.765, -0.48), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, 0.903).threePointArc((-0.377, 0.808), (-0.666, 0.547)).threePointArc((-0.767, 0.334), (-0.801, 0.101)).threePointArc((-0.77, -0.123), (-0.676, -0.329)).lineTo(-0.312, -0.903).lineT... | 9 | 23 | 0.075633 |
train_873ff362c5cdc84f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.493), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.708, 0.488).lineTo(-0.886, 0.488).lineTo(-0.886, 0.533).lineTo(-0.172, 0.533).lineTo(-0.172, 0.488).lineTo(-0.35, 0.488).lineTo(-0.35, 0.131).lineTo(0.863, -0.139).lineTo(0.785, -0.487).l... | 1 | 19 | 0.809178 |
train_5c730b32d42e4221 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.409), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.176).sweep(cq.Workplane('XZ').spline([(-1.407, -0.305), (-0.844, 0.507), (-0.281, 0.912), (0.282, 0.912), (0.844, 0.507), (1.407, -0.305)]))
result = result.edges().chamfer(0.174)
result = ... | 7 | 45 | 0.221182 |
train_25e8a185b654cc02 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.817), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.78, 2).extrude(1.634)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.64, 0, -0.08), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.527, 1.241).extrude(0.159))
result = result.edges().fillet(... | 3 | 51 | 5.710299 |
train_dbe09984b3ac279d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.373, -0.365, -0.408), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.314, 0.073).lineTo(-0.524, -0.29).lineTo(0.314, -0.29).lineTo(0.524, 0.073).lineTo(0.314, 0.436).lineTo(-0.105, 0.436).lineTo(-0.314, 0.073).close().extrude(0.924)
result = resul... | 10 | 120 | 1.381353 |
train_dd4d3fec041be31b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.052, -0.546), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.575, 1.309).extrude(1.546)
result = result.union(cq.Workplane(cq.Plane(origin=(0, -0.052, 0.976), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.695, 0.753).extrude(0.468))
result = result.u... | 13 | 129 | 2.766579 |
train_32b95b5776d49a0a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.034, 0, 0.087), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.432, 0.292).extrude(0.025)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.099, 0, 0.105), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.019).extrude(0.093))
result = result.union(c... | 5 | 34 | 0.009738 |
train_0b50257faaeb7d38 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.834, 0, -0.419), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.166, -0.198).lineTo(0.166, -0.198).lineTo(0.166, 0.198).lineTo(-0.166, 0.198).lineTo(-0.166, -0.198).close().sweep(cq.Workplane('XZ').spline([(-0.834, -0.419), (-0.276, 0.251), (0.2... | 14 | 41 | 0.292483 |
train_3c8b5db292fcdee2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.611), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.147, 0.25).extrude(0.309)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, -0.316), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.075, 0.129).extrude(0.193))
result = result.union(cq.Wo... | 11 | 75 | 0.022054 |
train_b0664b95202d03c3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.29, 0.174, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.913, 0.018).lineTo(0.913, 0.018).lineTo(0, 0.224).lineTo(-0.913, 0.018).close().workplane(offset=0.07).moveTo(-0.681, 0.044).lineTo(0.681, 0.044).lineTo(0, 0.198).lineTo(-0.681, 0.044)... | 3 | 19 | 0.071518 |
train_1d41c1a43cd93cd0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.11, 0.281, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.13, 0.154).lineTo(-0.13, 0.284).lineTo(0, 0.284).threePointArc((0.092, 0.246), (0.13, 0.154)).threePointArc((0.092, 0.063), (0, 0.025)).lineTo(-0.13, 0.025).lineTo(-0.13, 0.154).close(... | 4 | 36 | 0.005515 |
train_0f00450840632972 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.85), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.66, 1.054).extrude(0.081)
result = result.union(cq.Workplane(cq.Plane(origin=(0.322, 0, -0.645), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.355, 0.028).lineTo(-0.355, 0.117).lineTo(-0.059,... | 3 | 37 | 0.315373 |
train_7ed08fce2aa628fa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.632, -0.162, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.609, -0.193).threePointArc((0.537, -0.276), (0.467, -0.362)).lineTo(-0.609, 0.473).threePointArc((-0.507, 0.599), (-0.401, 0.721)).lineTo(0.609, -0.193).close().revolve(angleDegrees=9... | 7 | 51 | 0.098533 |
train_c64b2c0a95fc8a6a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.092, 0.285, -0.212), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.01, 0.821).extrude(0.181)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.092, 0.532, -0.129), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.172).extrude(0.016))
result = result.cu... | 18 | 127 | 0.589272 |
train_544652f2d15aa8d6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.517, -0.663, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.26).sweep(cq.Workplane('XY').spline([(0.517, 0.328), (0.246, 0.593), (-0.093, 0.558), (-0.328, 0.241), (-0.341, -0.198), (-0.125, -0.537), (0.211, -0.605)]))
result = result.edges().c... | 4 | 12 | 0.370892 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.