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_a8e35e2a1b44dd97 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.311, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.048).lineTo(0.374, 0.422).lineTo(0.748, 0.422).lineTo(0.748, 0.796).lineTo(-0.374, 0.796).lineTo(-0.374, 0.422).lineTo(-0.748, 0.422).lineTo(-0.748, 0.048).lineTo(0, 0.048).close().ext... | 6 | 65 | 0.541637 |
train_993c6415efcf9731 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.803, 0, 0.584), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.035, 0.146).lineTo(-0.028, 0.133).lineTo(-0.081, 0.098).lineTo(-0.116, 0.045).lineTo(-0.197, 0.029).lineTo(-0.128, -0.017).lineTo(-0.116, -0.079).lineTo(-0.081, -0.132).lineTo(-0.028, -... | 1 | 20 | 0.15653 |
train_757bd90e4711b0d5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1.745, -0.535, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(2.367, 0.923).lineTo(-2.367, 0.923).lineTo(2.367, 0.081).lineTo(2.367, 0.923).close().extrude(2)
result = result.edges().fillet(0.337)
result = result.cut(cq.Workplane(cq.Plane(origin=... | 14 | 38 | 1.149877 |
train_2fd61e90a1d4db83 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.508, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.968, 0.778).extrude(0.847)
result = result.union(cq.Workplane(cq.Plane(origin=(0.334, 0.363, -0.555), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.083, 1.067).extrude(0.12))
result = result.ed... | 4 | 53 | 0.646781 |
train_720f35ce91b939bc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.463, -0.14, 0.029), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.055, -0.083).lineTo(0.055, 0.027).lineTo(0.11, 0.027).threePointArc((0.071, 0.044), (0.055, 0.083)).lineTo(-0.055, 0.083).threePointArc((-0.071, 0.044), (-0.11, 0.027)).lineTo(-0.... | 18 | 142 | 0.108681 |
train_321c5df7faf45668 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.247, -0.306, -0.09), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.229).lineTo(0.276, 0.229).lineTo(0.276, 0.021).lineTo(-0.276, 0.021).lineTo(-0.276, 0.229).lineTo(0, 0.229).close().extrude(0.142)
result = result.edges().fillet(0.018)
result ... | 17 | 101 | 0.033979 |
train_337111212ba38c3b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.453, -0.528, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.311, -0.247).threePointArc((0.311, -0.253), (0.31, -0.26)).lineTo(0.311, -0.26).threePointArc((0.286, -0.305), (0.237, -0.322)).lineTo(-0.257, -0.322).threePointArc((-0.31, -0.3), (-0... | 3 | 53 | 0.667751 |
train_073b580df77595ac | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.219, 0.242, -0.008), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.279, -0.536).threePointArc((0.148, -0.761), (0.328, -0.312)).lineTo(-0.206, 0.776).threePointArc((-0.057, 1.146), (0.297, 0.96)).lineTo(0.351, 0.974).threePointArc((-0.076, 1.199... | 4 | 53 | 0.098667 |
train_2643f492691386b0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.113), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.303, 0.576).lineTo(-0.303, -1).lineTo(0.303, -1).lineTo(0.303, 1).lineTo(-0.303, 1).lineTo(-0.303, 0.576).close().extrude(0.214)
result = result.edges().chamfer(0.037)
result = result.cut... | 43 | 111 | 0.251749 |
train_3bed00fcd56dd74c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0, -0.186), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.044, 0.108).lineTo(0.044, -0.108).lineTo(-0.044, -0.108).lineTo(-0.044, 0.108).lineTo(0.044, 0.108).close().sweep(cq.Workplane('XZ').spline([(-0.032, -0.244), (0.58, -0.244), (1.192, -0.... | 2 | 12 | 0.039381 |
train_084016eb07163c4b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.14, 0.68, 0.229), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.488, 0.482).lineTo(-0.42, 0.482).lineTo(0, 0.13).lineTo(0.42, 0.482).lineTo(0.488, 0.482).lineTo(0.488, -0.277).lineTo(0.067, 0.075).lineTo(0, 0.018).lineTo(-0.067, 0.075).lineTo(-0... | 18 | 196 | 0.839389 |
train_c72f609307aa9cab | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.171, -0.089, -0.752), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.599, 1.139).extrude(1.371)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.171 + 0.168 * math.cos(0.619 + 2 * math.pi * 0 / 5), -0.089 + 0.168 * math.sin(0.619 + 2 * math.pi... | 17 | 111 | 1.20154 |
train_a4f15660ce8d9e23 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.872), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.853, 1.758).extrude(1.588)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.13, 0.024, 0.354), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2.224, 0.172).extrude(0.153))
result = result.cut(c... | 12 | 53 | 4.964686 |
train_b5bf6b0470416334 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.796), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.349, 0.138).extrude(0.273)
result = result.union(cq.Workplane(cq.Plane(origin=(0.095, -0.013, -0.544), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.015).extrude(0.419))
result = result.union(... | 9 | 29 | 0.015824 |
train_695ca6fc0bae63bd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.122, -0.263, -0.627), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.321, 1.42).extrude(1.627)
result = result.union(cq.Workplane(cq.Plane(origin=(0.189, 0.684, 0.221), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.76, 0.579).extrude(0.538))
result = res... | 8 | 53 | 1.101658 |
train_8dd75678495b4ab7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.194), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, 0.533).lineTo(-0.584, -0.051).lineTo(-0.584, -0.401).lineTo(-0.934, -0.401).lineTo(-0.934, -0.533).lineTo(-0.35, -0.533).lineTo(-0.35, -0.401).lineTo(0.934, -0.401).lineTo(0.584, -0.051).... | 11 | 84 | 0.291562 |
train_32cd7e3ad7fe364e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.39, -0.054, -0.086), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.275, 0.129).threePointArc((0.175, 0.086), (0.069, 0.063)).threePointArc((-0.023, 0.059), (-0.115, 0.07)).threePointArc((-0.197, 0.093), (-0.275, 0.129)).lineTo(-0.239, 0.129).three... | 8 | 91 | 0.061705 |
train_7183f554aa74d466 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.232, 0, 0.055), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.922, 0.132).lineTo(-0.922, -0.132).lineTo(0.922, -0.132).lineTo(0.922, 0.132).lineTo(-0.922, 0.132).close().workplane(offset=0.057).moveTo(-0.802, 0.115).lineTo(-0.802, -0.115).lineT... | 13 | 134 | 0.045829 |
train_c46ab57a7481ed67 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.074, -1, -0.091), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.248, -0.303).lineTo(-0.299, -0.303).lineTo(-0.299, -0.187).lineTo(-0.311, -0.166).lineTo(-0.286, -0.122).lineTo(-0.255, -0.067).lineTo(-0.355, -0.009).lineTo(-0.198, 0.263).lineTo(-... | 4 | 41 | 0.457461 |
train_1c98d1bad6582d91 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.034, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.375, 0.432).threePointArc((-0.294, 0.375), (-0.205, 0.418)).threePointArc((-0.27, 0.405), (-0.314, 0.455)).threePointArc((-0.208, 0.47), (-0.102, 0.46)).threePointArc((-0.071, 0.365), (0.... | 1 | 23 | 1.644959 |
train_2ac092bb3c12a546 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.078, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.804, -0.056).threePointArc((0.522, -0.059), (0.239, -0.07)).lineTo(0.239, -0.054).threePointArc((0.236, -0.043), (0.229, -0.033)).threePointArc((0.219, -0.026), (0.207, -0.025)).threePoint... | 14 | 39 | 0.135665 |
train_8ecd525433e789ea | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.4, -1, 0.018), normal=(0, -1, 0), xDir=(0, 0, 1))).lineTo(-0.036, 0.048).lineTo(-0.021, 0.06).close().sweep(cq.Workplane('XY').spline([(0.4, -0.434), (0.689, -0.634), (0.978, -0.734), (1.266, -0.734), (1.555, -0.634), (1.844, -0.434)]))
| 1 | 5 | 0.000625 |
train_9151256e7edd5ff3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.062, 1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.275).sweep(cq.Workplane('XY').spline([(-0.062, 0.441), (0.167, 0.691), (0.396, 0.691), (0.625, 0.441)]))
result = result.edges().chamfer(0.018)
result = result.union(cq.Workplane(cq.Plane(... | 4 | 14 | 0.26155 |
train_8189d0d6352dffa5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.086, -0.109, -0.295), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.592, 1.15).extrude(0.591)
result = result.faces('>Z').shell(-0.025)
result = result.union(cq.Workplane(cq.Plane(origin=(0.421, -0.091, 0.006), normal=(0, 0, 1), xDir=(1, 0, 0))).cir... | 8 | 44 | 0.132933 |
train_e5e0d403e6cd864e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.249, -0.186, -0.257), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.286, -0.364).lineTo(-0.286, 0.127).lineTo(-0.286, 0.364).lineTo(0.286, -0.364).close().sweep(cq.Workplane('YZ').spline([(-2.021, -0.596), (-1.483, -1.484), (-0.946, -2.017), (-0.... | 4 | 18 | 0.23703 |
train_03bbc44ead6c0caa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.07, -0.085), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.852, 1.86).extrude(1.083)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.008, -0.06, 0.282), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.148, 2.232).extrude(0.153))
result = result.edg... | 10 | 103 | 1.451149 |
train_a3cb025a88a81d0f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.137, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.601, 0.601).extrude(0.601)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.426, 0.073, -0.61), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.006, 0.04).lineTo(0.015, 0.016).lineTo(0.02... | 16 | 75 | 0.236865 |
train_7dc792a3a8ab768d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.167, 0.052, 0.031), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.551).sweep(cq.Workplane('XZ').spline([(-0.673, -0.54), (-0.326, -0.54), (0.02, -0.54), (0.349, -0.725), (0.678, -0.91), (1.007, -1.095)]))
result = result.edges().fillet(0.13)
resul... | 18 | 54 | 1.492179 |
train_348aaf16b7b95011 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.665), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.333, 0.307).extrude(0.465)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, -0.219), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.081).extrude(0.186))
result = result.union(cq.Workpl... | 17 | 175 | 0.078365 |
train_5e259d4a92b92015 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.02, 0, -0.509), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.418, 0.619).extrude(0.435)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.02, 0, -0.093), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.263, 0.33).extrude(0.22))
result = result.unio... | 14 | 103 | 0.206126 |
train_0341eed9de3d018a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.281, 0.051, 0.489), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.22, 0.239).lineTo(-0.146, 0.239).lineTo(-0.152, 0.165).lineTo(-0.172, -0.092).lineTo(-0.011, -0.092).lineTo(-0.031, 0.165).lineTo(-0.037, 0.239).lineTo(0.037, 0.239).lineTo(0.043... | 5 | 43 | 0.260732 |
train_193d802f2a9969bd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.033, 0.027, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.987, 0.006).lineTo(0.987, 0.061).lineTo(-0.987, 0.061).lineTo(-0.987, 0.006).lineTo(0.987, 0.006).close().workplane(offset=0.02).moveTo(0.977, 0.006).lineTo(0.977, 0.061).lineTo(-0.977... | 1 | 6 | 0.005931 |
train_99133cc7c6e5591e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.506, -0.135, -0.3), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.989, 0.388).extrude(0.254)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.2, -0.195, -0.135), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.8, 0.103).lineTo(-0.8, 0.083).lineTo... | 4 | 29 | 0.145999 |
train_e67d1b7e3553dfe6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.081, 0.185, -0.048), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.413, -0.454).lineTo(0.395, -0.453).lineTo(0.414, 0.458).lineTo(-0.399, 0.469).close().moveTo(-0.074, 0.204).lineTo(0.072, 0.204).lineTo(0.073, 0.166).lineTo(0.019, 0.166).lineTo(0... | 17 | 371 | 0.984153 |
train_08efa172bb198543 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.219, 0.273), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.188).sweep(cq.Workplane('YZ').spline([(-0.685, -0.068), (-0.536, -0.193), (-0.375, -0.193), (-0.226, -0.068), (-0.226, 0.067), (-0.375, 0.193), (-0.536, 0.193), (-0.685, 0.067)]))
resu... | 5 | 57 | 0.160465 |
train_8695f16545e50043 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.027, -0.068, 0.275), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.03, 0.026).threePointArc((-0.046, 0.005), (-0.049, -0.02)).threePointArc((-0.024, -0.024), (0, -0.014)).threePointArc((0.026, -0.017), (0.049, -0.007)).threePointArc((0.039, 0.01... | 6 | 133 | 0.046078 |
train_2a630cb1d396808d | 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.594, 0.828).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.068, -0.089, 0.026), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.125).extrude(1))
result = result.cut(cq.Workplane(cq.P... | 7 | 34 | 2.312186 |
train_b5fadaf84b349df8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.499, -0.744, -0.021), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.023).lineTo(0, -0.002).lineTo(0.025, -0.002).lineTo(-0.025, -0.002).lineTo(-0.025, 0.047).lineTo(0.025, 0.047).lineTo(0.025, 0.023).lineTo(0, 0.023).close().extrude(0.075)
re... | 12 | 237 | 0.026272 |
train_d9c9bd4419f5247b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.197, 0.113, -0.437), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.593, 1.182).extrude(0.679)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.011, 0.113, -0.124), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.116).extrude(0.053))
result = result.e... | 28 | 234 | 0.355875 |
train_c450926a1aaa7310 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.562), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.398).extrude(0.94)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.417, 0.156, -0.136), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.766, 0.091).extrude(0.42))
result = result.cut(cq.Wor... | 13 | 123 | 0.547247 |
train_e430f04ddba74a36 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.227, 0, -0.76), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.491, 0.959).extrude(0.744)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.163, -0.273, -0.069), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.029).extrude(0.988))
result = result.u... | 10 | 79 | 0.364414 |
train_bc279f4415a0a45d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.546, -0.599), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.707, 1.513).threePointArc((0, -0.195), (-0.707, 1.513)).lineTo(0, 0.805).lineTo(0.707, 1.513).close().extrude(1.439)
result = result.edges().chamfer(0.319)
result = result.union(cq.Wo... | 12 | 45 | 2.272212 |
train_1b0299da446f2418 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.502, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.166, 0.318).lineTo(-0.166, 1.003).lineTo(0.166, 1.003).lineTo(0.166, 0.318).lineTo(-0.166, 0.318).close().revolve(angleDegrees=180, axisStart=(0, 0), axisEnd=(0.118, 0))
result = result.e... | 10 | 98 | 0.395035 |
train_b7570dc86f5a13ed | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.561, 0.873, -0.315), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.731, 0.108).threePointArc((-0.655, 0.561), (-0.731, 1.013)).threePointArc((0.731, 0.561), (-0.731, 0.108)).close().extrude(1.307)
result = result.edges().chamfer(0.175)
result = ... | 8 | 41 | 0.536511 |
train_8c3c0f01d32326c1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.109), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.381, 2).extrude(0.129)
result = result.union(cq.Workplane(cq.Plane(origin=(0.069, 0.1, 0.019), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.621).extrude(0.019))
result = result.union(cq.Workp... | 16 | 51 | 0.326775 |
train_9ef1f075780be141 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(2.084, 0.232, -0.01), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.279, 3.084).lineTo(0.279, -2.671).lineTo(-0.279, 3.084).lineTo(0.279, 3.084).close().extrude(0.464)
result = result.edges().fillet(0.19)
result = result.cut(cq.Workplane(cq.Plane(o... | 6 | 34 | 0.260202 |
train_fb00fea131ebe439 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.132, 0.025), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.351, 0.206).lineTo(-0.487, 0.362).threePointArc((-0.619, 0.741), (-0.218, 0.71)).lineTo(-0.157, 0.672).lineTo(0.619, 0.672).lineTo(0.619, 0.478).lineTo(0.231, 0.478).lineTo(0.231, 0.... | 5 | 44 | 0.982114 |
train_af7d82546b00d83d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.084, 0.249, 0.282), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.586, 0.254).lineTo(0.586, -0.762).lineTo(-0.293, -0.254).lineTo(-0.586, 0.254).lineTo(-0.293, 0.762).lineTo(0.293, 0.762).lineTo(0.586, 0.254).close().extrude(0.712)
result = resu... | 12 | 106 | 0.800394 |
train_613e197268b37ed0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.042, -0.452, -0.193), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.099, 0).lineTo(-0.097, -0.196).threePointArc((-0.099, -0.193), (-0.099, -0.189)).lineTo(-0.099, -0.043).lineTo(-0.069, -0.043).lineTo(-0.069, -0.082).lineTo(0.004, -0.082).lineT... | 29 | 160 | 0.506325 |
train_49f9a1171c93c0e0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.069, 0.037, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.947, 0.131).lineTo(-1, 0.131).lineTo(-1, 0.007).lineTo(1, 0.007).lineTo(1, 0.131).lineTo(0.947, 0.131).close().extrude(0.074)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.018, 0... | 14 | 110 | 0.015467 |
train_b19f037d2a15e869 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.547, -0.062), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.276, 0.088).lineTo(-0.276, 0.088).lineTo(-0.276, -0.088).lineTo(0.276, -0.088).lineTo(0.276, 0.088).close().sweep(cq.Workplane('XY').spline([(-0.182, -0.547), (0.227, -0.254), (0.63... | 4 | 23 | 0.158012 |
train_51e91ec506cabaeb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.397, -0.484, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.078, 0.135).lineTo(0.465, 0.135).lineTo(0.62, 0.289).lineTo(0.233, 0.678).lineTo(0.155, 0.755).lineTo(0.078, 0.832).lineTo(0.078, 0.678).lineTo(-0.026, 0.574).lineTo(-0.387, 0.212).li... | 8 | 121 | 0.315017 |
train_9e649a3299b613d4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1.625, 0.281, 0.362), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1.558, 0.801).lineTo(-1.871, 0.073).lineTo(1.871, -0.801).lineTo(-1.558, 0.801).close().revolve(angleDegrees=90, axisStart=(-1.558, 0.801), axisEnd=(-1.871, 0.073))
result = result.... | 7 | 55 | 0.637708 |
train_df2f63cc95e0df60 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.514, -0.386, 0.306), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.619, 0.974).lineTo(-0.619, 0.601).threePointArc((-0.694, 0.527), (-0.619, 0.452)).lineTo(-0.619, 0.079).lineTo(0.694, 0.079).lineTo(0.694, 0.452).lineTo(0.694, 0.601).lineTo(0.69... | 18 | 121 | 0.776926 |
train_7e9d29475e154aee | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.202, -0.733, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, -0.267).lineTo(0.323, -0.267).lineTo(0.323, -0.181).lineTo(0, -0.181).lineTo(0, 0.336).lineTo(0.323, 0.336).lineTo(0.323, 0.422).lineTo(0.065, 0.422).lineTo(0.065, 0.81).lineTo(0, 0.... | 9 | 183 | 0.231171 |
train_b41f87d8d9b3dd18 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.279, 0.118, -0.427), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.577, 0.686).extrude(0.641)
result = result.union(cq.Workplane(cq.Plane(origin=(0.204, 0.121, 0.195), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.073).extrude(0.233))
result = result.... | 19 | 63 | 0.295481 |
train_565c01fa4eb48f94 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.699, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.689, 1.191).lineTo(-0.689, 1.289).lineTo(0.689, 1.289).lineTo(0.689, 0.108).lineTo(-0.689, 0.108).lineTo(-0.689, 0.207).lineTo(0.59, 0.207).lineTo(0.59, 1.191).lineTo(-0.689, 1.191).clos... | 1 | 10 | 0.390769 |
train_278d200c69e52f4f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.188), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.207).extrude(0.304)
result = result.union(cq.Workplane(cq.Plane(origin=(0, -0.083 + 0.0165, 0.116), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.006, -0.001).lineTo(-0.006, 0.002).lineTo(... | 8 | 67 | 0.124612 |
train_6b9059a95149af7a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.305, -0.023), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.139, 0.278).lineTo(0.139, 0.278).lineTo(0.139, -0.278).lineTo(-0.139, -0.278).lineTo(-0.139, 0.278).close().sweep(cq.Workplane('XY').spline([(-0.378, -0.305), (-0.171, -0.167), (0.... | 6 | 35 | 0.13273 |
train_1af839a6166d72ee | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.122, 0, -0.265), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.756, 1.348).extrude(0.531)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.085, 0.306, 0.238), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.037, 0.528).lineTo(0.045, 0.429).lineTo(-0... | 9 | 66 | 1.255413 |
train_5fe3d4237a67fb63 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.363, -0.483), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.708, 0.655).lineTo(-0.708, 0.07).lineTo(-0.121, 0.07).lineTo(0.708, -0.759).lineTo(0.708, 0.655).lineTo(0.121, 0.655).lineTo(-0.708, 1.484).lineTo(-0.708, 0.655).close().extrude(0.96... | 2 | 38 | 1.281362 |
train_47d85afc3463ea07 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.665, 0.018, 0.176), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.11, 0.335).lineTo(-0.11, -0.335).lineTo(0.11, 0.335).lineTo(-0.11, 0.335).close().sweep(cq.Workplane('YZ').spline([(-0.122, 0.038), (-0.039, 0.087), (0.043, 0.107), (0.125, 0.098)]... | 3 | 16 | 0.025486 |
train_73f3f22bc0b79c88 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.208, -0.112, -0.226), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.584, 1.069).extrude(0.765)
result = result.faces('>Y').shell(-0.037)
result = result.union(cq.Workplane(cq.Plane(origin=(0.776, -0.226, -0.125), normal=(0, 0, 1), xDir=(1, 0, 0))).... | 9 | 124 | 0.465367 |
train_aab5d90b0f82d9ef | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.014, -0.318, -0.229), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, -0.535).lineTo(0.106, -0.535).lineTo(0.287, 0.282).threePointArc((0.309, 0.348), (0.317, 0.416)).threePointArc((0, 0.733), (-0.317, 0.416)).lineTo(-0.287, 0.282).lineTo(-0.106, ... | 6 | 126 | 1.045342 |
train_66feb829a89dd197 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.085, 0, 0.472), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.915, 0).lineTo(0.915, 0.262).lineTo(-0.915, 0.262).lineTo(-0.915, 0).lineTo(-0.37, 0).threePointArc((0, -0.262), (0.37, 0)).lineTo(0.915, 0).close().extrude(0.775)
result = result.edge... | 25 | 283 | 0.340499 |
train_98e5771fcce8f12a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.938), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.69, 2).extrude(1.877)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.519, -0.489, -0.636), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.687, 0.581).extrude(1.07))
result = result.edges().... | 16 | 271 | 4.236504 |
train_8eb3417080a4762e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.662, -0.164, 0.063), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.057, -0.796).lineTo(0.024, -0.796).lineTo(0.024, 0.098).threePointArc((-0.131, 0.067), (-0.164, 0.222)).threePointArc((-0.329, 0.273), (-0.248, 0.427)).threePointArc((-0.329, 0.5... | 7 | 51 | 0.67011 |
train_862490f4617f34cb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.043, 0.106, 0.507), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.018, 0.031).extrude(0.004)
result = result.union(cq.Workplane(cq.Plane(origin=(0.053, 0.106, 0.507), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.003, 0.022).extrude(0.004))
result = res... | 17 | 228 | 0.365923 |
train_9de971a66675db4e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.037, 0.156), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.372).sweep(cq.Workplane('YZ').spline([(-0.743, -0.099), (-0.242, -0.074), (0.258, -0.199), (0.759, -0.475)]))
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.278, 0.079, -0.226), ... | 10 | 73 | 0.578166 |
train_a30c03b3d9ccab82 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.452, -0.356, -0.044), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.647, 1.557).lineTo(0.647, -0.691).lineTo(-0.647, -0.691).lineTo(0.647, 1.557).close().workplane(offset=0.492).moveTo(0.558, 1.401).lineTo(0.558, -0.536).lineTo(-0.558, -0.536).li... | 11 | 44 | 0.697675 |
train_eb867af9524909dd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.008, 0.283, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.207, 0.311).extrude(0.725)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.008, 0.283, -0.296), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.102, 0.158).extrude(0.545))
result = res... | 4 | 42 | 0.077344 |
train_73adb3ed0bdacac4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.08, 0.5, -0.5), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.5, 0.253).lineTo(0.5, -0.104).lineTo(0.238, -0.104).lineTo(0.238, 0.074).lineTo(0, 0.074).lineTo(0, -0.104).lineTo(-0.5, -0.104).lineTo(-0.5, 0.253).lineTo(0.5, 0.253).close().revolve(... | 12 | 69 | 0.456814 |
train_fc00f754ca76cd42 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.608, -0.557, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.547, -0.493).lineTo(0.632, -0.493).lineTo(0.632, 1.096).lineTo(-0.632, 1.096).lineTo(-0.632, -0.493).lineTo(0.547, -0.493).close().workplane(offset=0.523).moveTo(0.446, -0.346).lineTo... | 14 | 67 | 1.222031 |
train_6092aa5d4f5610c4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.803, 0, 0.289), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.217).sweep(cq.Workplane('XZ').spline([(0.381, 0.001), (0.347, 0.242), (0.138, 0.443), (-0.167, 0.393), (-0.366, 0.156), (-0.366, -0.154), (-0.167, -0.391), (0.138, -0.441), (0.347, -0... | 3 | 6 | 0.365639 |
train_1a9d106ba627ec7c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.114, -0.305, -0.33), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.324, 1.39).extrude(0.661)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.307, -0.813, -0.008), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.674, 0.394).extrude(0.121))
result = res... | 11 | 59 | 1.110909 |
train_f67c627926752735 | 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.085).workplane(offset=0.381).circle(0.094).workplane(offset=0.446).circle(0.147).workplane(offset=0.436).circle(0.134).workplane(offset=0.364).circle(0.092).workplane(offset=0.373).circle(0.08... | 15 | 64 | 0.047712 |
train_e861d692eb150f42 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.005, 0.288, -0.244), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.289, 0.545).threePointArc((0, 0.835), (0.289, 0.545)).lineTo(0.289, 0.032).threePointArc((0, -0.258), (-0.289, 0.032)).lineTo(-0.289, 0.545).close().extrude(0.547)
result = result... | 19 | 80 | 0.334868 |
train_455d17c29c404e7f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.401, 0.655, 0.031), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.047, -0.087).threePointArc((-0.052, -0.006), (-0.179, -0.005)).lineTo(-0.047, 0.36).lineTo(0.179, 0.279).lineTo(0.047, -0.087).close().revolve(angleDegrees=360, axisStart=(-0.179, -... | 10 | 64 | 0.330059 |
train_b982d6586eb2f6c6 | 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.609, 0.482).extrude(0.756)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, -0.263), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.174).extrude(0.237))
result = result.union(cq.Workplane(... | 12 | 73 | 0.293848 |
train_71de91a5269c9f6d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.002, -0.009), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.17, -0.411).threePointArc((0.008, -0.316), (0.069, -0.123)).threePointArc((0.279, 0.002), (0.138, 0.203)).threePointArc((-0.126, 0.411), (-0.279, 0.112)).threePointArc((-0.266, 0.0... | 5 | 38 | 0.322559 |
train_63ff0fd948f86327 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.096, 0.348, -0.273), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.557).sweep(cq.Workplane('XZ').spline([(-0.711, -0.925), (-0.523, -0.925), (-0.335, -0.925), (-0.05, -0.69), (0.235, -0.455), (0.52, -0.221)]))
result = result.edges().fillet(0.13)... | 13 | 49 | 0.870785 |
train_69c723f7ed72c0fc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 1, -0.273), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.637, -0.166).lineTo(-0.637, 0.126).lineTo(-0.607, 0.126).lineTo(-0.607, 0.166).lineTo(0.637, 0.166).lineTo(0.637, -0.136).lineTo(-0.567, -0.136).lineTo(-0.567, -0.166).lineTo(-0.637, -0.1... | 13 | 43 | 0.525429 |
train_149bbac634c92e2b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.04, -0.596), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.31, 0.891).extrude(1.247)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.027, 0.518, -0.359), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.137).extrude(0.743))
result = result.uni... | 3 | 28 | 1.63566 |
train_ddba17a20eb1dc67 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.058, 0.184, 0.151), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.151, 0.304).lineTo(0.151, 0.607).lineTo(-0.151, 0.607).lineTo(-0.151, -0.301).lineTo(0.151, -0.301).lineTo(0.151, 0.304).close().extrude(0.358)
result = result.edges().fillet(0.025)... | 24 | 142 | 0.749389 |
train_d21213af4fa7ce71 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1.015, 0.693, 0.054), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.946, 0.256).threePointArc((0, 0.114), (0.946, 0.256)).lineTo(0.946, 0.969).threePointArc((0, 1.916), (-0.946, 0.969)).lineTo(-0.946, 0.256).close().extrude(1.386)
result = result.... | 13 | 65 | 3.562081 |
train_ae9e78c93d4db9d8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.025, -1, -0.18), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.78, -0.272).lineTo(0.78, -0.272).lineTo(0.78, 0.437).lineTo(-0.78, 0.437).lineTo(-0.78, -0.272).close().extrude(2)
result = result.edges().fillet(0.147)
result = result.union(cq.Workp... | 17 | 69 | 1.77338 |
train_a771ae5db8807890 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.004, -0.243, 0.011), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.062).workplane(offset=0.045).circle(0.043).workplane(offset=0.045).circle(0.057).workplane(offset=0.035).circle(0.036).workplane(offset=0.052).circle(0.026).workplane(offset=0.04... | 8 | 54 | 0.012581 |
train_e9b18e3f662ecb34 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.164, -1.437, -0.008), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.167, 1.3).threePointArc((0, 1.133), (0.167, 1.3)).lineTo(0.418, 1.3).lineTo(0.418, 0.464).lineTo(-0.418, 0.464).lineTo(-0.418, 1.3).lineTo(-0.167, 1.3).close().revolve(angleDeg... | 28 | 168 | 1.358873 |
train_28971e75725b954f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.067, -0.534, 0.03), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.105, -0.466).lineTo(0.105, 0.613).lineTo(-0.105, 0.613).lineTo(-0.105, -0.466).lineTo(0.105, -0.466).close().revolve(angleDegrees=90, axisStart=(0.105, -0.466), axisEnd=(0.105, 0.6... | 13 | 58 | 0.06073 |
train_52e24087cc335e0f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.438, 0.751, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.002, 0.416).lineTo(0.002, 0.386).lineTo(-0.142, 0.658).lineTo(-0.41, 0.794).lineTo(0.002, 0.083).lineTo(0.41, 0.793).lineTo(0.153, 0.66).lineTo(0.13, 0.648).lineTo(0.002, 0.416).close(... | 3 | 24 | 0.187307 |
train_70440b4e11042921 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.681, -0.487, -0.084), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.335, -0.208).lineTo(-0.335, 1.128).lineTo(0.335, 1.128).lineTo(0.335, -0.208).lineTo(-0.335, -0.208).close().workplane(offset=0.117).moveTo(-0.252, -0.042).lineTo(-0.252, 0.963)... | 10 | 134 | 0.523364 |
train_c8c6991be0f725f3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.253, 0.177, 0.461), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.539, 0.399).threePointArc((0, 0.28), (0.539, 0.399)).lineTo(0.539, 0.011).lineTo(-0.539, 0.011).lineTo(-0.539, 0.399).close().extrude(0.507)
result = result.edges().fillet(0.125)
... | 4 | 55 | 0.253164 |
train_72341a841a21899a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.031, -0.103), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.531, 0.213).lineTo(-0.531, 0.071).threePointArc((-0.581, 0.05), (-0.602, 0)).lineTo(-0.743, 0).lineTo(-0.743, -0.213).lineTo(0.531, -0.213).lineTo(0.531, -0.071).threePointArc((0.481,... | 13 | 133 | 0.460126 |
train_d0a10ea87d054aec | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.403, -0.014, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.271).workplane(offset=0.338).circle(0.216).workplane(offset=0.347).circle(0.085).workplane(offset=0.479).circle(0.067).loft()
result = result.union(cq.Workplane(cq.Plane(origin=(-0.87... | 11 | 32 | 0.094663 |
train_066f81e6960b5e9d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.008, 0, -0.576), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.195, -0.083).lineTo(-0.195, 0.083).lineTo(0.195, 0.083).lineTo(0.195, -0.068).lineTo(0.18, -0.068).lineTo(0.18, -0.083).lineTo(-0.195, -0.083).close().sweep(cq.Workplane('XZ').spline(... | 5 | 30 | 0.07479 |
train_18caf8fa5493ce94 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.398, -0.222, 0.096), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.109, -0.04).lineTo(-0.058, -0.04).lineTo(-0.058, -0.111).lineTo(-0.038, -0.111).lineTo(-0.038, -0.152).lineTo(-0.058, -0.172).lineTo(-0.058, -0.202).lineTo(-0.109, -0.202).lineTo(... | 20 | 153 | 0.412109 |
train_212cbdf0e51a9ab5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.023), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.41, 1).lineTo(-0.41, 0.647).lineTo(-0.176, 0.413).lineTo(0.41, 1).lineTo(-0.41, 1).close().revolve(angleDegrees=360, axisStart=(0, 0), axisEnd=(0.577, 0))
result = result.cut(cq.Workplane(... | 3 | 15 | 1.334934 |
train_04b0b238e204fdd8 | 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.012, 1.402).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.097, -0.029, -0.316), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.46, 0.834).extrude(1.35))
result = result.cut(cq.Workp... | 5 | 29 | 2.167119 |
train_8dcd7660194f72cf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.13, 0, -0.741), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.739, 1.709).extrude(1.482)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.861, -0.185, -0.403), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.279, 0.466).extrude(0.745))
| 2 | 11 | 4.495043 |
train_41f32ef6be824c77 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.001, 0.165, -0.082), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.554, 0.006).lineTo(0.391, 0.404).lineTo(0.011, 0.543).lineTo(-0.394, 0.379).lineTo(-0.555, -0.009).lineTo(-0.384, -0.405).lineTo(0.021, -0.547).lineTo(0.383, -0.379).close().moveTo... | 15 | 56 | 0.175614 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.