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_0f949a44c897a6d2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.273, -0.008, -0.058), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.454, 0.705).extrude(0.64)
result = result.faces('>Z').shell(-0.035)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.481, 0.427, 0.006), normal=(0, 0, 1), xDir=(1, 0, 0))).re... | 6 | 48 | 0.375211 |
train_2bc963dafcbffb3d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.232, -1.762, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.464, 1.628).threePointArc((-0.268, 1.825), (0, 1.896)).lineTo(0.464, 1.628).lineTo(0.464, 1.092).lineTo(0, 0.824).threePointArc((-0.268, 0.896), (-0.464, 1.092)).lineTo(-0.464, 1.628... | 4 | 38 | 2.219859 |
train_34aac93c3c861fd7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.261, -0.574), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.548, -0.155).lineTo(0.548, -0.267).threePointArc((0.46, -0.481), (0.247, -0.57)).lineTo(0.16, -0.57).lineTo(0.035, -0.57).lineTo(0.035, -0.739).lineTo(-0.231, -0.739).lineTo(-0.548, -... | 37 | 180 | 1.223581 |
train_b4478d1f96e8ab5f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.495), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.834, 2).extrude(1.212)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.734 + 0.1835, 0, 0.717), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.07, -0.023).lineTo(-0.07, -0.263).lineTo(-... | 26 | 392 | 3.120603 |
train_08cd1d69b15872e6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.462, -0.039), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.814, 1.076).moveTo(0.078, 0.001).lineTo(0.055, 0.055).lineTo(0.001, 0.079).lineTo(-0.054, 0.056).lineTo(-0.078, 0.001).lineTo(-0.056, -0.054).lineTo(0, -0.078).lineTo(0.054, -0.054).clos... | 9 | 139 | 0.189251 |
train_3fc03e3e3ce4329b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.655, 0.289, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.229, 1.393).threePointArc((0, 1.599), (0.229, 1.393)).lineTo(0.366, 0.12).threePointArc((0, -0.289), (-0.366, 0.12)).lineTo(-0.229, 1.393).close().workplane(offset=0.195).moveTo(-0.23... | 2 | 9 | 0.867372 |
train_c143fac00bd5edbf | 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.782, 1.702).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.075, 0.493, -0.678), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.181).extrude(0.852))
result = result.cut(cq.Workplane(... | 11 | 122 | 5.549465 |
train_76259d29535779aa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.88, 0.94, -0.054), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 1.88).lineTo(0.105, 1.88).lineTo(0.252, 1.828).lineTo(0.304, 1.675).lineTo(0.241, 1.327).lineTo(0.332, 0.992).lineTo(0.332, 0.627).lineTo(-0.332, 0.627).lineTo(-0.332, 0.992).lineT... | 12 | 48 | 1.47058 |
train_f04ad01bdd77156f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.299), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.502, 1.006).lineTo(-0.502, -1.006).threePointArc((0.502, 0), (-0.502, 1.006)).close().extrude(0.599)
result = result.edges().fillet(0.103)
result = result.cut(cq.Workplane(cq.Plane(origin... | 22 | 98 | 0.600809 |
train_a452639d2e28cd8c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.329, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.453, 0.559).lineTo(0.453, 0.098).lineTo(0.453, 0.559).lineTo(-0.453, 0.559).close().workplane(offset=0.389).moveTo(-0.451, 0.559).lineTo(0.451, 0.098).lineTo(0.451, 0.559).lineTo(-0.451, ... | 9 | 35 | 0.310165 |
train_642c6658905a6352 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.055, -0.791), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.506, 1.591).extrude(0.934)
result = result.union(cq.Workplane(cq.Plane(origin=(0.061, 0.92, -0.087), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.08).extrude(0.072))
result = result.union... | 10 | 40 | 2.216053 |
train_a4eaeb0170a1e0d9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.355, 0.057, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.507, 0.132).threePointArc((-0.508, 0.092), (-0.507, 0.052)).threePointArc((0.508, 0.092), (-0.507, 0.132)).close().workplane(offset=0.056).moveTo(-0.536, 0.135).threePointArc((-0.537... | 7 | 25 | 0.110239 |
train_626e6bc997816a67 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.415, -0.432, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.075, -0.509).lineTo(0.374, -0.509).lineTo(0.374, -0.21).lineTo(-0.075, -0.21).lineTo(-0.075, 0.988).lineTo(-0.374, 0.988).lineTo(-0.374, -0.509).lineTo(-0.075, -0.509).close().workpl... | 8 | 50 | 0.301352 |
train_a0f596bc836bc60e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.428, -0.082, 0.117), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1.472, -0.184).threePointArc((1.092, -0.231), (0.736, -0.368)).lineTo(-1.472, 0).lineTo(0.736, 0.368).threePointArc((1.092, 0.231), (1.472, 0.184)).lineTo(1.472, -0.184).close().ex... | 10 | 68 | 0.177353 |
train_417a7c848d2c52de | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.149, 0, 0.858), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.213).sweep(cq.Workplane('XZ').spline([(1.194, 0.281), (-0.288, 0.563), (-1.201, 0.153), (-0.573, -0.225), (1.077, -0.089)]))
result = result.edges().chamfer(0.094)
| 2 | 5 | 0.210696 |
train_b2df291c04e0cf09 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.813, 0.626, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 1.204).threePointArc((-0.339, 1.093), (-0.549, 0.804)).threePointArc((-0.549, 0.448), (-0.339, 0.159)).threePointArc((0, 0.049), (0.339, 0.159)).threePointArc((0.549, 0.448), (0.549, ... | 3 | 23 | 1.69535 |
train_68a7a1000107fa6f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.029, -1.096, -0.755), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.224, 2.066).lineTo(-0.971, 2.066).lineTo(-0.971, 0.125).lineTo(0.971, 0.125).lineTo(0.971, 2.066).lineTo(-0.224, 2.066).close().extrude(1.336)
result = result.edges().fillet(0.5... | 11 | 61 | 4.084216 |
train_4ddaa48c54204b5c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.612), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.869).extrude(1.224)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.042, -0.141, 0.35), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.718, 1.214).extrude(0.268))
result = result.edges().c... | 10 | 59 | 3.858686 |
train_c27baa46bbc57f6f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.002, -0.021, -0.223), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.992, -0.027).lineTo(0.728, 0.676).lineTo(-0.012, 1.021).lineTo(-0.728, 0.713).lineTo(-0.996, -0.007).lineTo(-0.731, -0.73).lineTo(-0.018, -0.979).lineTo(0.709, -0.677).close().mov... | 11 | 103 | 0.999425 |
train_8493ad8cd8272fbf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.496, 0.037, -0.197), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.796, 0.035).lineTo(-0.796, 0.035).lineTo(-0.796, 0.496).lineTo(0, 0.496).lineTo(0, 0.957).lineTo(0.796, 0.957).lineTo(0.796, 0.035).close().extrude(1.037)
result = result.edges().... | 7 | 93 | 1.951518 |
train_d9381fc4f3f4889b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.244, 0, 0.533), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.533, 0.257).lineTo(-0.533, 0.057).lineTo(0.533, 0.257).lineTo(-0.533, 0.257).close().revolve(angleDegrees=360, axisStart=(-0.533, 0.257), axisEnd=(-0.533, 0.057))
result = result.edge... | 11 | 18 | 0.385135 |
train_9426c669df425411 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.365, 0.44, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.712, -0.016).threePointArc((-0.799, 0.363), (-0.712, 0.743)).threePointArc((-0.361, 1.12), (0.141, 1.235)).lineTo(0.113, 0.847).threePointArc((0.318, 0.783), (0.476, 0.636)).threePoint... | 4 | 25 | 1.062169 |
train_834ae1cd35d94344 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.208, 0, -0.639), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.584, 1.727).extrude(1.277)
result = result.union(cq.Workplane(cq.Plane(origin=(0.776, -0.193, 0.147), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.448, 0.292).extrude(0.308))
result = resu... | 5 | 57 | 3.381183 |
train_f45b8cd81323e1a7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.647, 0, -0.043), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.707, 0.587).moveTo(0.034, 0.031).lineTo(-0.034, 0.038).lineTo(-0.037, 0.034).lineTo(-0.064, -0.014).lineTo(-0.042, -0.035).close().extrude(0.128)
result = result.cut(cq.Workplane(cq.Pla... | 13 | 113 | 0.085946 |
train_d73f15b9c4d826d8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.462, -0.602, -0.465), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.521).transformed(offset=(0.263, 0.217, 0.174), rotate=(0, 0, 20)).circle(0.419).transformed(offset=(0.527, 0.339, 0.13), rotate=(0, 0, 10)).circle(0.296).transformed(offset=(0.79... | 4 | 10 | 0.220673 |
train_6821f5d3a0008408 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.709, 0.726).threePointArc((0, -0.726), (0.709, 0.726)).threePointArc((0, 0.467), (-0.709, 0.726)).close().workplane(offset=0.55).moveTo(-0.634, 0.649).threePointArc((0, -0.649), (0.634, 0.649... | 3 | 10 | 1.195351 |
train_9dff9eb6debff121 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.307, 0.028, 0.006), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.508, 0.33).lineTo(-0.508, -0.178).lineTo(-0.152, -0.178).threePointArc((0, -0.33), (0.152, -0.178)).lineTo(0.508, -0.178).lineTo(0.508, 0.33).lineTo(-0.508, 0.33).close().extrude... | 5 | 68 | 0.387745 |
train_226291826ad3681b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.502, -0.751, -0.064), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.515, 0.589).lineTo(-0.515, 0.589).lineTo(-0.515, 1.385).lineTo(-0.632, 1.385).lineTo(-0.632, 1.502).lineTo(-0.515, 1.502).lineTo(-0.515, 1.443).lineTo(0.515, 1.502).lineTo(0.515,... | 10 | 178 | 1.10153 |
train_93bacf40fabacef3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1.018, 0.066, -0.73), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.061, 0.149).threePointArc((0, 0.163), (-0.061, 0.149)).threePointArc((-0.13, 0.087), (-0.149, -0.004)).lineTo(-0.242, -0.057).lineTo(-0.181, -0.163).lineTo(-0.089, -0.11).lineTo(0, ... | 6 | 32 | 0.108349 |
train_cabc6b08942a97d0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.029, 0, 0.734), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.556, -0.003).threePointArc((0.592, -0.244), (0.505, -0.471)).lineTo(0.121, -1).lineTo(-0.592, -1).lineTo(-0.592, 1).lineTo(0.121, 1).lineTo(0.556, -0.003).close().extrude(1.185)
resul... | 18 | 130 | 1.820982 |
train_406af732719fbd17 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.875, -0.203, -0.409), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, -0.535).threePointArc((0.206, -0.174), (0.533, 0.081)).threePointArc((0.211, 0.341), (0, 0.697)).threePointArc((-0.191, 0.323), (-0.533, 0.081)).threePointArc((-0.187, -0.158), ... | 8 | 117 | 0.85289 |
train_cc9c29e910e6de2d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.31, 0.835, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1, -0.309).lineTo(-1, 0.368).lineTo(-0.746, 0.368).lineTo(-0.746, 0.622).threePointArc((0, 0.929), (0.746, 0.622)).lineTo(0.746, 0.368).lineTo(1, 0.368).lineTo(1, -0.309).lineTo(-1, -0.3... | 13 | 116 | 2.606357 |
train_4a193de1f21a5227 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.282, 0.344, 0.129), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.871, 0.507).lineTo(-0.871, 0.056).lineTo(0.871, 0.056).lineTo(0.871, 0.507).lineTo(-0.871, 0.507).close().extrude(0.688)
result = result.edges().chamfer(0.052)
result = result.cut... | 14 | 169 | 0.419278 |
train_1745b1e95f7132d6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.141, 0.021, 0.236), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.859, -0.564).lineTo(0.859, 0.175).lineTo(0.218, 0.255).lineTo(0.218, 0.564).lineTo(-0.859, 0.564).lineTo(-0.859, -0.052).lineTo(0.859, -0.564).close().extrude(0.471)
result = resu... | 7 | 89 | 0.138507 |
train_450ef72df978254d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.406, -0.035), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.029, -0.029).lineTo(0.029, -0.018).lineTo(0.018, -0.011).lineTo(-0.018, 0.011).lineTo(-0.013, 0.013).lineTo(0.011, 0.018).lineTo(0.013, 0.013).lineTo(0.029, 0.029).lineTo(-0.029, 0.... | 9 | 76 | 0.025046 |
train_959d52956c9d5590 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.004, 0, -0.17), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.888, 0.041).lineTo(0.472, 0.772).lineTo(-0.473, 0.815).lineTo(-0.896, -0.009).lineTo(-0.472, -0.805).lineTo(0.449, -0.791).close().moveTo(0.152, 0.001).lineTo(0.075, 0.134).lineTo(-0.07... | 9 | 58 | 0.616446 |
train_bd727e089ae7c658 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.087, 0.145, 0.656), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.368).workplane(offset=0.269).circle(0.473).workplane(offset=0.309).circle(0.488).workplane(offset=0.257).circle(0.306).workplane(offset=0.339).circle(0.286).loft()
result = result.... | 4 | 14 | 0.990921 |
train_f2436340110ba0bd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.146, 0.1, -0.346), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.159, 1.004).extrude(0.692)
result = result.faces('>Z').shell(-0.069)
result = result.union(cq.Workplane(cq.Plane(origin=(0.347, 0.679, -0.277), normal=(0, 0, 1), xDir=(1, 0, 0))).circl... | 11 | 59 | 0.493805 |
train_c159b41380197d14 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.104, 0, 0.029), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.222, 1).lineTo(0.222, -1).lineTo(-0.222, -1).lineTo(-0.222, 1).lineTo(0.222, 1).close().extrude(0.279)
result = result.edges().chamfer(0.034)
result = result.faces('>Z').shell(-0.02)
r... | 8 | 295 | 0.074378 |
train_8a74cd1afefd2dde | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.195, -0.034), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.015, 0.012).threePointArc((-0.017, 0.007), (-0.017, 0.002)).lineTo(0, -0.033).threePointArc((0.004, -0.036), (0.009, -0.033)).threePointArc((0.017, -0.001), (0.016, 0.032)).threePoin... | 1 | 8 | 0.001622 |
train_483cb90a82e5f6ba | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.933, -0.612, -0.325), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.378, 1.181).lineTo(0.378, 0.308).threePointArc((0.268, 0.041), (0, -0.07)).lineTo(0, 0.308).lineTo(-0.378, 0.308).lineTo(-0.378, 1.181).lineTo(0, 1.181).lineTo(0.378, 1.181).clos... | 10 | 129 | 0.783148 |
train_99be475666326796 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.833), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.243).extrude(1.665)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.817, 0.139, -0.342), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.384, 0.717).extrude(0.746))
result = result.edges().... | 11 | 61 | 3.377202 |
train_32d81c5e1c6b0253 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.43, -0.503, -0.057), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-1.082, 0.761).lineTo(0.962, 0.049).lineTo(1.082, 0.761).lineTo(-1.082, 0.761).close().extrude(1.006)
result = result.edges().chamfer(0.145)
result = result.cut(cq.Workplane(cq.Plan... | 11 | 111 | 0.649005 |
train_55bbb36f68afe540 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.28, -0.129, -0.288), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.078, 0.174).lineTo(-0.078, -0.029).threePointArc((-0.077, -0.042), (-0.073, -0.055)).threePointArc((-0.068, -0.108), (-0.089, -0.156)).threePointArc((-0.086, -0.174), (-0.069, -0... | 1 | 16 | 0.030477 |
train_67273af9847a3e1e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.01, -0.146, 0.08), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, 0.183).lineTo(0.211, 0.305).lineTo(0.211, -0.183).lineTo(0.105, -0.243).lineTo(0, -0.305).lineTo(-0.105, -0.243).lineTo(-0.211, -0.183).lineTo(-0.211, 0.305).lineTo(0, 0.183).close(... | 3 | 27 | 0.320532 |
train_59894cfbac108448 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.594, 0.173, 0.27), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.137, -0.095).lineTo(0.137, 0.095).lineTo(-0.137, 0.095).lineTo(-0.137, -0.095).lineTo(0.137, -0.095).close().sweep(cq.Workplane('XZ').spline([(0.203, -0.081), (0.431, -0.076), (0.6... | 13 | 94 | 0.21761 |
train_e373fa7aded2d58c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.193, 0.564, 0.083), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.062, -0.088).threePointArc((0.088, 0.088), (-0.088, 0.06)).threePointArc((0.01, 0.01), (0.062, -0.088)).close().sweep(cq.Workplane('YZ').spline([(0.297, -0.023), (0.084, 0.014), (-0... | 10 | 83 | 0.45971 |
train_14d4fb4f18ef5bc3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.556, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.597, -0.355).threePointArc((0, -0.162), (-0.597, -0.355)).lineTo(-0.597, 1.279).lineTo(0.597, 1.279).lineTo(0.597, -0.355).close().extrude(2)
result = result.edges().chamfer(0.532)
result... | 6 | 82 | 1.748949 |
train_7c9d5034fed3b723 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.301, -1, -0.04), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.503, 0.024).lineTo(-0.503, 0.101).lineTo(0.686, 0.101).lineTo(0.686, 0.579).lineTo(-0.686, 0.579).lineTo(-0.686, 0.024).lineTo(-0.503, 0.024).close().extrude(2)
result = result.cut(c... | 10 | 14 | 1.223975 |
train_d3913d055fe95c05 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.003, -0.003, -0.886), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.864, -0.984).threePointArc((-0.869, -0.97), (-0.883, -0.964)).lineTo(-0.883, 0.978).lineTo(-0.883, 0.997).lineTo(-0.864, 0.997).lineTo(0.85, 0.997).lineTo(0.869, 0.997).lineTo(... | 3 | 16 | 4.232181 |
train_b65545e065d05287 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.815, 0.01, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.074).sweep(cq.Workplane('XY').spline([(0.432, 0.03), (0.293, 0.252), (-0.111, 0.275), (-0.403, 0.094), (-0.389, -0.143), (-0.128, -0.253), (0.258, -0.21)]))
| 1 | 3 | 0.011807 |
train_2dda448bd869513b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.393, 0.299, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.817).lineTo(-0.518, 0.299).lineTo(-0.518, 0.138).lineTo(-0.161, -0.22).lineTo(0, -0.22).lineTo(0.259, 0.04).lineTo(0.518, 0.299).lineTo(0.518, 0.46).lineTo(0.161, 0.817).lineTo(0, 0... | 15 | 127 | 0.52717 |
train_15b31015fc705bbb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.012, -0.163, -0.043), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.764, 1.673).extrude(0.088)
result = result.union(cq.Workplane(cq.Plane(origin=(0.372, -0.147, 0.044), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.289).extrude(0.023))
result = resu... | 25 | 359 | 0.293548 |
train_c9f972ab4463d93a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.61, 0.539, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.644, -0.258).lineTo(-0.368, -0.417).lineTo(0.644, 1.335).lineTo(0.368, 1.495).lineTo(-0.644, -0.258).close().extrude(1.61)
result = result.faces('>Z').shell(-0.125)
result = result.uni... | 8 | 19 | 1.092507 |
train_8cd9e03da7562b63 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.333, 0.06), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.017, 0.26).lineTo(0.242, 0.109).lineTo(0.121, -0.167).lineTo(0.057, -0.46).lineTo(-0.242, -0.43).lineTo(-0.242, 0.46).lineTo(-0.017, 0.26).close().sweep(cq.Workplane('YZ').spline([(-0... | 4 | 22 | 0.43054 |
train_82dd849c6bce122f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.225, -0.016, -0.23), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.669, 0.669).extrude(0.625)
result = result.union(cq.Workplane(cq.Plane(origin=(0.204, -0.433, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.083).extrude(0.118))
result = result.edg... | 12 | 133 | 0.403331 |
train_0abb9908552b1c6a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.285), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.219, 2).extrude(0.57)
result = result.cut(cq.Workplane(cq.Plane(origin=(0 + 0.193 * math.cos(0.912 + 2 * math.pi * 0 / 4), 0 + 0.193 * math.sin(0.912 + 2 * math.pi * 0 / 4), -0.371), normal=... | 13 | 65 | 1.377146 |
train_9fbed1669c1ea253 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.01, 0.123), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.513, -0.338).lineTo(-0.254, -0.111).lineTo(0.317, 0.386).lineTo(0.513, 0.004).lineTo(-0.027, -0.213).lineTo(-0.338, -0.338).lineTo(-0.458, -0.386).lineTo(-0.513, -0.338).close().sweep(... | 6 | 24 | 0.693603 |
train_341f65ffd4161d8e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.217, -0.269, -0.458), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.31).sweep(cq.Workplane('XZ').spline([(-0.217, -0.458), (0.004, -0.184), (0.225, -0.047), (0.446, -0.047), (0.667, -0.184), (0.888, -0.458)]))
result = result.edges().fillet(0.08... | 11 | 63 | 0.649601 |
train_a9acf6e8a5592ab3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.137, -0.27, -0.066), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.05, 1.46).extrude(0.083)
result = result.union(cq.Workplane(cq.Plane(origin=(0.137, -0.27, 0.016), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.63, 0.877).extrude(0.015))
result = resul... | 19 | 123 | 0.144303 |
train_15219ca3809f7468 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.509), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.205).extrude(0.773)
result = result.union(cq.Workplane(cq.Plane(origin=(0 + 0.328 * math.cos(4.955 + 2 * math.pi * 0 / 6), 0 + 0.328 * math.sin(4.955 + 2 * math.pi * 0 / 6), 0.264), norma... | 16 | 81 | 1.969269 |
train_3c26c90ac26936ba | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.152, 0.01, 0.791), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.137, 0.133).lineTo(1.105, -0.837).lineTo(-1.053, -1.01).lineTo(-1.105, 1.01).lineTo(1.015, 1.01).lineTo(0.137, 0.133).close().extrude(1.582)
result = result.edges().fillet(0.251)
re... | 15 | 169 | 3.230468 |
train_292455cfeb472e87 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.4, -0.945, 0.01), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.456, 1.751).lineTo(-0.152, 1.751).lineTo(-1.083, 0.139).lineTo(0.779, 0.139).lineTo(1.083, 0.665).lineTo(-0.684, 0.369).lineTo(0.456, 1.751).close().extrude(0.801)
result = result.ed... | 7 | 78 | 0.955862 |
train_59c5cf2f2c158de2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.599, -0.709, 0.14), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.019, 0.046).threePointArc((0, 0.02), (0.019, 0.046)).lineTo(0.053, -0.062).lineTo(0.053, 0.054).lineTo(0.051, 0.062).lineTo(-0.053, 0.062).lineTo(-0.053, 0.007).lineTo(-0.053, -0... | 2 | 10 | 0.024758 |
train_27a8cabc52a43b4f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.23, -0.094), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.123, 1.23).lineTo(-0.123, 1.23).lineTo(-0.123, -0.77).lineTo(0.123, -0.77).lineTo(0.123, 1.23).close().extrude(0.188)
result = result.edges().chamfer(0.032)
result = result.cut(cq.Work... | 6 | 41 | 0.084369 |
train_7ca8a65573981ff2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.684, 0.698, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.616, -0.302).lineTo(-0.616, -0.24).lineTo(0.554, -0.24).lineTo(0.554, 1.698).lineTo(0.616, 1.698).lineTo(0.616, -0.302).lineTo(-0.616, -0.302).close().extrude(1.368)
| 1 | 8 | 0.268867 |
train_0ae3ea5f2a2d268a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.007, 0.05), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.577, 0.249).threePointArc((0.575, -0.037), (0.45, -0.294)).threePointArc((0.404, -0.336), (0.346, -0.361)).threePointArc((0.054, -0.397), (-0.238, -0.362)).threePointArc((-0.405, -0.276)... | 7 | 43 | 0.533404 |
train_34678d60a29cdb9c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.152, -1, 0.137), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.434, 0.67).lineTo(0.09, 0.932).lineTo(-0.434, 0.242).lineTo(-0.09, -0.02).lineTo(0.434, 0.67).close().extrude(1.729)
result = result.edges().chamfer(0.179)
result = result.union(cq.Wo... | 13 | 103 | 0.810683 |
train_d56dcccef0f6b59b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.758, -0.696, 0.148), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.507, 0.034).lineTo(-0.044, 0.034).lineTo(-0.044, 0.226).threePointArc((-0.017, 0.298), (0.051, 0.335)).threePointArc((0.167, 0.359), (0.278, 0.403)).threePointArc((0.507, 0.769),... | 14 | 90 | 0.760923 |
train_a00d984b45c6f860 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.784, -0.131, -0.23), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.116, 0.105).lineTo(-0.116, 0.068).lineTo(-0.153, 0.068).lineTo(-0.153, -0.075).lineTo(-0.091, -0.075).lineTo(-0.091, -0.136).lineTo(0.101, -0.136).lineTo(0.101, -0.096).lineTo(0... | 17 | 127 | 0.260922 |
train_4671e325a739ee50 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.107, -0.861, -0.771), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.822, 0.113).lineTo(-0.822, 0.835).lineTo(-0.893, 0.835).lineTo(-0.893, 1.721).lineTo(0.482, 1.721).lineTo(0.482, 1.653).lineTo(0.525, 1.653).lineTo(0.525, 1.621).lineTo(-0.786, 1... | 9 | 95 | 3.652927 |
train_083ad733e574d554 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.362, -0.041, -0.722), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.045, 0.029).lineTo(-0.072, 0.057).lineTo(-0.072, 0.135).lineTo(-0.045, 0.163).lineTo(0.014, 0.224).lineTo(0.072, 0.163).lineTo(0.072, -0.219).lineTo(-0.045, -0.219).lineTo(-0.04... | 7 | 195 | 0.454886 |
train_f5551cb89120dd36 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.71), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.337, 2).extrude(1.419)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.122, -0.671, -0.335), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.346).extrude(0.342))
result = result.cut(cq.Workp... | 14 | 72 | 2.650747 |
train_46964aa9b1010cde | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.852).workplane(offset=0.307).circle(0.57).workplane(offset=0.388).circle(0.492).workplane(offset=0.402).circle(0.764).workplane(offset=0.323).circle(0.867).workplane(offset=0.283).circle(0.549... | 4 | 16 | 1.952269 |
train_20f1c4538cb762f5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.034, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.25, 0.222).lineTo(0.25, -0.737).lineTo(-0.25, -0.737).lineTo(-0.25, 0.805).lineTo(0.25, 0.805).lineTo(0.25, 0.222).close().extrude(1.744)
result = result.edges().fillet(0.129)
result = res... | 17 | 84 | 0.757203 |
train_4a7e06b33c199d38 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.117, -0.043, -0.786), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.696, 1.914).extrude(1.41)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.068, 0.091, -0.076), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.606, 1.187).threePointArc((0.394, ... | 13 | 107 | 3.243611 |
train_9f3a59e357916662 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.498), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.487).extrude(0.996)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.178, 0.104, 0.006), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.083).extrude(0.103))
result = result.cut(cq.Workpl... | 17 | 183 | 2.370392 |
train_05bcd866b07ee7ac | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.095, -0.074, -0.857), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.04, 0.019).lineTo(0.04, 0.07).lineTo(0.143, 0.099).lineTo(0.04, 0.126).lineTo(0.04, 0.174).lineTo(-0.003, 0.138).lineTo(-0.143, 0.174).lineTo(-0.143, 0.019).lineTo(0.04, 0.019).c... | 5 | 64 | 0.005015 |
train_049a41b84ad28bd2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.31, -0.09, 0.812), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.563, 0.764).lineTo(-0.563, -0.764).lineTo(0.563, -0.764).lineTo(0.563, 0.764).lineTo(-0.563, 0.764).close().extrude(1.812)
result = result.edges().fillet(0.276)
result = result.un... | 15 | 102 | 2.69017 |
train_39d6e995751df518 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.855, -0.231, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.134, -0.145).threePointArc((0.137, -0.137), (0.145, -0.134)).lineTo(0.145, 0.134).threePointArc((0.137, 0.137), (0.134, 0.145)).lineTo(-0.134, 0.145).threePointArc((-0.137, 0.137), (... | 1 | 14 | 0.092097 |
train_843f1940d980e911 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.089, 0.398, 0.326), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.163).workplane(offset=0.107).circle(0.141).workplane(offset=0.114).circle(0.178).workplane(offset=0.123).circle(0.124).workplane(offset=0.119).circle(0.178).workplane(offset=0.123... | 4 | 32 | 0.262165 |
train_acd5b2a358af1d5a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.205, 0.279, 0.01), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.752, 0.069).lineTo(0.482, 0.34).lineTo(-0.752, 0.34).lineTo(-0.752, 0.069).lineTo(0.752, 0.069).close().workplane(offset=0.324).moveTo(1.008, 0.024).lineTo(0.645, 0.386).lineTo(-1.0... | 11 | 53 | 0.368891 |
train_012b1ee303fa970a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.427, -1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, 0.799).lineTo(0.804, 0.799).lineTo(0.804, 0.054).lineTo(-0.804, 0.054).lineTo(-0.804, 0.427).lineTo(0, 0.427).lineTo(0, 0.799).close().extrude(2)
result = result.edges().fillet(0.067)
re... | 11 | 90 | 1.268319 |
train_09561ef3ee60c9ab | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.017, 0.652, -0.444), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, 0.868).lineTo(-0.36, 0.66).lineTo(-0.36, -0.031).lineTo(-0.286, -0.031).lineTo(-0.286, -0.142).lineTo(-0.36, -0.185).lineTo(-0.36, -0.314).lineTo(-0.286, -0.272).lineTo(-0.286, -0... | 4 | 31 | 0.999034 |
train_d1645962627ea3ca | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.044, 0.2, -0.331), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.14, 1.194).extrude(0.472)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.187, 0.398, -0.373), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.226, -0.142).lineTo(0.255, -0.093).li... | 25 | 161 | 0.379455 |
train_93e0564bf6f0829e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.457), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.676, 2).extrude(0.915)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.401, -0.001, -0.612), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.511, 0.241).extrude(1.098))
result = result.cut(cq.... | 4 | 53 | 2.914123 |
train_772548fb1a206991 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.338, 0, -0.477), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.554, 0.471).extrude(0.78)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.276, -0.065, 0.273), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.024).extrude(0.727))
result = result.un... | 9 | 36 | 0.229455 |
train_3cfbb411edf3798b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.667, 0.518, -0.449), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.441, 0.606).threePointArc((0, 0.303), (0.441, 0.606)).lineTo(0.551, 0.899).lineTo(0.459, 0.878).threePointArc((0.441, 0.943), (0.412, 1.005)).threePointArc((0.3, 1.137), (0.147, ... | 1 | 14 | 1.260054 |
train_578a6195c14ef24b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.217, 0.474), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, -0.783).lineTo(0.356, -0.783).threePointArc((0.234, 0.251), (0.512, 1.254)).threePointArc((0.22, 1.004), (0, 0.689)).threePointArc((-0.22, 1.004), (-0.512, 1.254)).threePointArc((-0.2... | 9 | 60 | 1.215769 |
train_856000643c1a2eba | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.002, -0.01, -0.549), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.857, 1.01).lineTo(0.876, 0.987).lineTo(0.886, 0.604).lineTo(0.19, 0.657).lineTo(0.181, -0.99).lineTo(-0.208, -0.986).lineTo(-0.194, 0.632).lineTo(-0.89, 0.617).close().moveTo(-0.0... | 18 | 141 | 0.622361 |
train_16a2b998f0737240 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.344, -0.014, 0.123), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.007, 0.404).lineTo(-0.004, 0.393).lineTo(-0.007, -0.39).lineTo(0.007, -0.384).lineTo(0.007, 0.404).close().workplane(offset=0.005).moveTo(0.007, 0.39).lineTo(-0.004, 0.379).lineTo... | 6 | 166 | 0.203395 |
train_7c413867c07f4d54 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.156, -0.072, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.158, -0.453).lineTo(0.158, 0.928).lineTo(0.043, 0.928).lineTo(0.043, 0.526).lineTo(-0.158, 0.526).lineTo(-0.158, -0.051).lineTo(0.043, -0.051).lineTo(0.043, -0.453).lineTo(0.158, -0.4... | 3 | 57 | 0.091682 |
train_3c3edc8a85ef5565 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.417, 0.585), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.756, 0.081).lineTo(-0.861, 0.081).lineTo(-0.861, -0.081).lineTo(-0.756, -0.081).lineTo(-0.756, -0.194).lineTo(0.861, -0.194).lineTo(0.861, 0.194).lineTo(-0.756, 0.194).lineTo(-0.756, 0... | 3 | 26 | 1.184767 |
train_3c15a3f06b52d44d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.352, -0.146, -0.185), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.815, 0.015).lineTo(-0.815, 0.276).lineTo(-0.276, 0.276).threePointArc((-0.151, 0.15), (-0.024, 0.276)).lineTo(0.325, 0.276).threePointArc((0.451, 0.15), (0.577, 0.276)).lineTo(0... | 4 | 91 | 0.121131 |
train_8e98c4b03db5f929 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.002, 0.718), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.935, -1.002).lineTo(-0.967, -1.002).lineTo(-0.935, 1.002).lineTo(0.967, 0.971).lineTo(0.935, -1.002).close().extrude(1.436)
result = result.edges().chamfer(0.27)
result = result.cut(c... | 8 | 46 | 4.096952 |
train_a94193c235121c98 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.467, 0.022, -0.533), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.511, 0.774).lineTo(0.511, 0.16).lineTo(-0.511, 0.16).lineTo(-0.511, 0.774).lineTo(0.511, 0.774).close().revolve(angleDegrees=270, axisStart=(0.511, 0.774), axisEnd=(0.511, 0.731))... | 22 | 30 | 1.26658 |
train_801750be27f45e34 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.021, -0.027, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.078, 0.209).threePointArc((0, 0.226), (0.078, 0.209)).threePointArc((0.165, 0.131), (0.19, 0.017)).lineTo(0.451, -0.134).threePointArc((0.417, -0.206), (0.372, -0.27)).threePointArc(... | 7 | 72 | 0.613789 |
train_8f9bcf4aab967ceb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.301), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.463).extrude(0.654)
result = result.union(cq.Workplane(cq.Plane(origin=(0 + 0.262 * math.cos(0.189 + 2 * math.pi * 0 / 4), 0 + 0.262 * math.sin(0.189 + 2 * math.pi * 0 / 4), -0.463), norm... | 14 | 69 | 1.513942 |
train_b78c5219690367d2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.468, -0.92, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.472, 0.132).lineTo(-0.076, 0.132).lineTo(-0.076, -0.169).lineTo(0.048, -0.169).lineTo(0.048, -0.009).lineTo(0.361, -0.009).lineTo(0.361, -0.169).threePointArc((-0.002, -0.533), (-0.365... | 22 | 57 | 2.578882 |
train_bee2f6712bd35321 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.669, 0.146), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.627, 1.291).threePointArc((-0.104, 0.769), (-0.627, 0.038)).lineTo(-0.627, 0.928).lineTo(-0.627, 1.291).lineTo(-0.264, 1.291).lineTo(0.627, 1.291).close().extrude(2)
result = result.un... | 9 | 67 | 1.070126 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.