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_4f8fc57eeec2a188 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.087, -0.156, -0.461), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.117, 1.688).extrude(0.923)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.634, -0.011, -0.053), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, -0.127).threePointArc((0.127, 0... | 11 | 62 | 1.303326 |
train_1522ec22fae8545c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.81, -0.905, 0.093), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.343, 1.653).threePointArc((-0.552, 1.173), (-0.343, 0.692)).threePointArc((0.105, 0.516), (0.552, 0.692)).lineTo(0.552, 1.653).threePointArc((0.105, 1.829), (-0.343, 1.653)).close... | 11 | 88 | 1.882083 |
train_b37c5d568135ba4b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.493, -0.691, -0.109), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.493, 0.309).threePointArc((0, -0.309), (0.493, 0.309)).lineTo(0.126, 0.309).threePointArc((0, 0.028), (-0.126, 0.309)).lineTo(-0.493, 0.309).close().sweep(cq.Workplane('YZ').sp... | 4 | 20 | 0.538659 |
train_23c12013f232ba42 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.169, 0.396), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1, 0.667).lineTo(-1, 0.385).threePointArc((-0.615, 0), (-1, -0.385)).lineTo(-1, -0.667).lineTo(0.481, -0.667).lineTo(0.481, -0.519).threePointArc((1, 0), (0.481, 0.519)).lineTo(0.481, ... | 10 | 153 | 1.074712 |
train_017040697db73e12 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.887), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.484, 2).extrude(1.774)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, -0.15), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.054).extrude(1.063))
result = result.edges().chamfer(0.035)... | 10 | 78 | 4.723209 |
train_99344bd3eaf3cb12 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.905, -0.641, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.783, -0.172).lineTo(-0.454, -0.172).lineTo(0, -0.376).lineTo(0.379, -0.172).lineTo(0.783, -0.172).lineTo(0.783, 1.485).lineTo(0.625, 1.641).lineTo(-0.625, 1.641).lineTo(-0.783, 1.485... | 10 | 88 | 4.950765 |
train_01afce57f4c505b8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.16, -0.451, 0.063), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.026, 0.549).lineTo(-0.026, 0.516).threePointArc((0, -0.549), (0.026, 0.516)).lineTo(0.026, 0.549).lineTo(-0.026, 0.549).close().extrude(0.025)
result = result.edges().chamfer(0.0... | 4 | 162 | 0.118579 |
train_2660b95d58755f5e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.091, 0, -0.467), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.446, 2).extrude(0.122)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.367, 0.3, -0.326), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.334, 0.161).threePointArc((0.421, 0.248), (0... | 5 | 96 | 0.65314 |
train_102d25b872f841b4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.504, 0.568, -0.217), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.06, -0.014).threePointArc((0.039, -0.022), (0.031, -0.044)).lineTo(-0.018, 0.005).lineTo(-0.06, -0.037).lineTo(-0.06, 0.076).lineTo(0.054, 0.076).lineTo(0.011, 0.034).lineTo(0.06,... | 29 | 285 | 0.367413 |
train_a8348e4fca4284f5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.88, 0.526, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.895, 1.275).threePointArc((-1, 0.828), (-0.895, 0.382)).lineTo(-0.895, 0.828).threePointArc((-0.007, -0.068), (0.898, 0.812)).lineTo(1, 0.812).threePointArc((0.238, 1.8), (-0.895, 1.27... | 4 | 17 | 2.642513 |
train_7020e572fc9a8327 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.359, 0.196, -0.296), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.483, 0.124).lineTo(-0.011, 0.804).lineTo(-0.15, 0.544).lineTo(-0.562, 0.453).lineTo(0.18, -0.646).close().circle(0.127).extrude(0.366)
result = result.cut(cq.Workplane(cq.Plane(ori... | 10 | 113 | 0.46665 |
train_40b8c2809d5fa8ff | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.164, 0.137, 0.041), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.589, -0.876).lineTo(0.593, -0.845).lineTo(0.602, 0.863).lineTo(-0.599, 0.862).close().moveTo(-0.216, 0.152).lineTo(-0.16, 0.154).lineTo(-0.16, 0.029).lineTo(-0.051, 0.027).lineTo(... | 15 | 163 | 0.920473 |
train_d2ac8c8ec6646e86 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1.042, -0.492, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(1, 0.204).lineTo(1, 1.879).lineTo(-1, 1.879).lineTo(-1, 0.204).lineTo(1, 0.204).close().extrude(0.985)
result = result.edges().chamfer(0.309)
result = result.cut(cq.Workplane(cq.Plane(o... | 7 | 51 | 1.806598 |
train_d4c204a700ed3afe | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.432, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.673, 0.162).lineTo(-0.673, 1.003).lineTo(0.673, 1.003).lineTo(0.673, 0.162).lineTo(-0.673, 0.162).close().revolve(angleDegrees=180, axisStart=(0, 0), axisEnd=(0.199, 0))
result = result.e... | 10 | 79 | 1.943359 |
train_a60d05d16539d5a4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.108, 0.126, 0.987), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.402, 0.132).lineTo(-0.35, 0.236).lineTo(-0.182, 0.57).lineTo(-0.095, 0.4).lineTo(-0.023, 0.259).lineTo(-0.223, 0.178).lineTo(-0.12, 0.132).lineTo(0.042, 0.132).lineTo(0.091, 0.038... | 3 | 27 | 0.146395 |
train_0c2b017298baf8a3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.422, 0, 0.453), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.441, 1.085).threePointArc((0.477, 0.849), (0.134, -0.033)).threePointArc((-0.184, -0.178), (-0.477, -0.366)).lineTo(-0.441, 1.085).close().revolve(angleDegrees=360, axisStart=(-0.477,... | 2 | 2 | 3.116453 |
train_cf72bcfa11da0147 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.047, -0.27, -0.747), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.223, -0.355).threePointArc((0.326, 0.292), (-0.326, 0.355)).threePointArc((-0.03, 0.017), (0.223, -0.355)).close().sweep(cq.Workplane('YZ').spline([(-0.27, -0.747), (0.001, -0.64... | 3 | 14 | 0.175092 |
train_0e3d270f995028f0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.228, 0.203, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.387, 1.203).lineTo(0.387, -0.797).lineTo(-0.387, -0.797).lineTo(-0.387, 1.203).lineTo(0.387, 1.203).close().extrude(0.598)
result = result.edges().chamfer(0.032)
result = result.cut(cq... | 6 | 148 | 0.91712 |
train_113f8c89f9c3828e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.009, 0.749, 0.338), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.477, 0.349).lineTo(-0.477, 1.15).lineTo(0.477, 1.15).threePointArc((0.32, 0.749), (0.477, 0.349)).lineTo(-0.477, 0.349).close().revolve(angleDegrees=270, axisStart=(-0.477, 0.349),... | 8 | 92 | 1.387437 |
train_4ca638f41fc245ed | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.378, 0, 1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.39, -0.08).threePointArc((0.278, -0.348), (0.012, -0.467)).threePointArc((-0.046, -0.374), (-0.124, -0.296)).threePointArc((-0.149, -0.281), (-0.172, -0.262)).threePointArc((-0.272, -0.217)... | 1 | 14 | 0.305975 |
train_cd4c40d63e9dcae2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.123, -0.31, -0.325), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.39, 1.379).extrude(0.372)
result = result.union(cq.Workplane(cq.Plane(origin=(0.123, -0.267, 0.044), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.022, 0.016).threePointArc((0.028, 0)... | 12 | 76 | 0.983791 |
train_6cdc513953e83e44 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.465, -0.171, -0.25), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.072, -0.063).lineTo(-0.072, 0.063).lineTo(0.077, 0.063).lineTo(0.077, 0.068).lineTo(-0.077, 0.068).lineTo(-0.077, -0.068).lineTo(0.077, -0.068).lineTo(0.077, -0.063).lineTo(-0.0... | 22 | 130 | 0.164277 |
train_9dda1588ad629818 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.635), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.913).workplane(offset=0.251).circle(0.859).workplane(offset=0.221).circle(0.805).workplane(offset=0.221).circle(0.75).workplane(offset=0.273).circle(0.696).workplane(offset=0.27).circle(0.... | 5 | 22 | 2.266118 |
train_5506321258e7ee33 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.132, 0, -0.211), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.735, 0.972).extrude(0.662)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.254, 0.076, -0.026), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2.082, 0.217).extrude(0.216))
result = resul... | 15 | 89 | 0.691322 |
train_732bdc30d173f51a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.138, 0, -0.367), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.862).moveTo(0.04, 0.351).lineTo(0.11, 0.257).lineTo(0.152, 0.148).lineTo(0.162, 0.056).lineTo(0.152, -0.037).lineTo(0.11, -0.146).lineTo(0.04, -0.239).lineTo(-0.053, -0.309).lineTo(-0.... | 10 | 43 | 1.449017 |
train_90e31a685c81da31 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.003, 0, -0.042), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.982, -0.738).lineTo(1.003, -0.768).lineTo(0.979, 0.769).lineTo(-0.997, 0.743).close().moveTo(0, -0.139).lineTo(0.036, -0.05).lineTo(0.132, -0.043).lineTo(0.059, 0.019).lineTo(0.082, ... | 5 | 72 | 0.544122 |
train_bdbf0ad210dedfc6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.253, 0.076, -0.373), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.442, 0.978).extrude(0.351)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.253, -0.286, 0.005), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.347, 0.254).threePointArc((-0.36... | 11 | 40 | 0.436648 |
train_d5b2ffec120b9c31 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.079, -0.369, 0.104), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.035, 0.338).lineTo(0.046, 0.333).lineTo(0.039, 0.035).lineTo(0.256, 0.045).lineTo(0.258, -0.033).lineTo(0.043, -0.045).lineTo(0.048, -0.324).lineTo(-0.037, -0.326).lineTo(-0.038,... | 14 | 169 | 0.309703 |
train_dbd61cafc0aff20f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.014, 0, -0.935), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.326, 2).extrude(1.644)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.336, 0.178, 0.698), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.055).extrude(0.237))
result = result.union(c... | 6 | 80 | 4.357543 |
train_e78f469ac4e6afec | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.455, -0.431, -0.148), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.569, 0.612).lineTo(-0.569, 0.423).threePointArc((-0.501, 0.261), (-0.663, 0.328)).lineTo(-0.852, 0.328).lineTo(-0.852, 0.044).lineTo(0.569, 0.044).lineTo(0.569, 0.234).threePoin... | 4 | 70 | 0.709303 |
train_bc9490724ee2b1dd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.01, 0.006, -0.32), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.001, 0.011).lineTo(0.681, 0.702).lineTo(-0.015, 0.994).lineTo(-0.735, 0.728).lineTo(-0.981, 0.01).lineTo(-0.694, -0.723).lineTo(-0.017, -1.006).lineTo(0.726, -0.695).close().moveTo(... | 16 | 85 | 1.334718 |
train_ef088ead38ad3273 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.462, -1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.463, 0.077).threePointArc((-0.736, 0.811), (0.651, 1.041)).threePointArc((0.736, 0.524), (0.463, 0.077)).close().extrude(1.629)
result = result.edges().fillet(0.263)
result = result.union... | 8 | 38 | 2.259506 |
train_7cc565aeb4e6775f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.438, -0.042, 0.021), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.33, -0.314).lineTo(0.347, -0.314).lineTo(0.341, 0.308).lineTo(-0.343, 0.3).close().moveTo(0.075, 0).lineTo(0.054, 0.054).lineTo(-0.001, 0.076).lineTo(-0.053, 0.054).lineTo(-0.074... | 11 | 98 | 0.094822 |
train_32faad1ff46e4cbe | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0, 0.483), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.028, 0.11).threePointArc((0.073, 0.156), (0.028, 0.202)).lineTo(0.028, 0.22).lineTo(-0.11, 0.22).lineTo(-0.11, -0.22).lineTo(0.028, -0.22).lineTo(0.028, -0.202).lineTo(0.028, -0.156).line... | 1 | 15 | 0.056674 |
train_4f3862df35075647 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.338, -0.687), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.721, 1.338).lineTo(0.721, -0.662).lineTo(-0.721, -0.662).lineTo(-0.721, 0.605).lineTo(0.621, 0.605).lineTo(0.621, 1.238).lineTo(-0.721, 1.238).lineTo(-0.721, 1.338).lineTo(0.721, 1.33... | 7 | 44 | 2.493688 |
train_7c06b325d298fd82 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.03, -0.11, -0.299), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.123, -0.89).lineTo(-0.123, -0.89).lineTo(-0.123, 1.11).lineTo(0.123, 1.11).lineTo(0.123, -0.89).close().extrude(0.381)
result = result.edges().chamfer(0.011)
result = result.union(... | 5 | 46 | 0.195274 |
train_3b68fb59e4abc27e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.138, 0.655, -0.21), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.518, 0.249).lineTo(-0.518, -0.096).lineTo(-0.172, -0.096).threePointArc((0.214, -0.005), (0.518, 0.249)).lineTo(-0.518, 0.249).close().extrude(1.655)
result = result.edges().fille... | 14 | 103 | 0.456046 |
train_8e8403ca1996bde2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.277, 0.036, -0.48), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.325, 0.677).threePointArc((0, -0.249), (0.325, 0.677)).threePointArc((0, 0.791), (-0.325, 0.677)).close().extrude(1.037)
result = result.edges().chamfer(0.145)
result = result.uni... | 13 | 58 | 0.740237 |
train_e83ed9f5cae2bafa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.037, -0.12, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.015, 0.018).lineTo(-0.011, -0.006).lineTo(-0.009, -0.014).lineTo(-0.015, -0.014).lineTo(-0.015, -0.016).lineTo(-0.009, -0.016).lineTo(-0.008, -0.018).lineTo(0.015, -0.018).lineTo(0.015... | 2 | 71 | 0.000306 |
train_21fe47290c390a13 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.094, 0, -0.603), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.138, 2).extrude(1.205)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.014, 0.201, 0.266), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.365, 0.219).extrude(0.054))
result = result.cut... | 7 | 33 | 2.665336 |
train_527945f8b8a2bbd0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.092, -0.536), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.621, 1.816).extrude(0.861)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.053, -0.245, 0.101), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.145, 1.146).extrude(0.231))
result = resul... | 7 | 512 | 0.309487 |
train_3de73a4f986aed03 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.295, -0.201, -0.088), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.705, 0.02).lineTo(0.369, 0.596).lineTo(-0.353, 0.599).lineTo(-0.721, -0.024).lineTo(-0.365, -0.604).lineTo(0.367, -0.607).close().moveTo(0.098, 0.227).lineTo(0.05, 0.314).lineTo(-... | 14 | 128 | 0.460618 |
train_3b87b03d57669893 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.042, -0.053, -0.686), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.135, 1.081).extrude(1.686)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.65, -0.238, 0.192), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.041).extrude(0.157))
result = resu... | 15 | 115 | 2.224692 |
train_6a6d2ce2a45b79ba | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.024, 0, -0.154), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.613, -0.466).threePointArc((0.666, -0.444), (0.688, -0.392)).lineTo(0.688, 0.392).threePointArc((0.666, 0.444), (0.613, 0.466)).lineTo(0.428, 0.466).lineTo(0.176, 0.466).threePointArc... | 13 | 188 | 0.7945 |
train_e86596ce75f129fd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.003, -0.014, -0.822), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.003, 0.029).lineTo(0.542, 0.908).lineTo(-0.508, 0.863).lineTo(-0.997, -0.002).lineTo(-0.531, -0.855).lineTo(0.544, -0.881).close().moveTo(0.267, 0.001).lineTo(0.129, 0.232).lineT... | 8 | 177 | 2.460211 |
train_8eb4cf7aa1529913 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.149), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.245).extrude(0.044)
result = result.union(cq.Workplane(cq.Plane(origin=(0.223, 0.022, -0.109), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.476).extrude(0.064))
result = result.union(cq.Wo... | 9 | 48 | 0.200604 |
train_c8ce872b08131218 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.027, -0.149), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.644).sweep(cq.Workplane('XY').spline([(-0.836, -0.027), (-0.418, -0.232), (0, -0.301), (0.418, -0.232), (0.836, -0.027)]))
result = result.edges().fillet(0.113)
result = result.cut(cq... | 32 | 134 | 1.320985 |
train_5534e69ac0802ace | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.115, -0.14, 0.403), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.033).workplane(offset=0.02).circle(0.03).workplane(offset=0.021).circle(0.027).workplane(offset=0.024).circle(0.024).workplane(offset=0.026).circle(0.021).workplane(offset=0.026).c... | 2 | 14 | 0.000233 |
train_87979a34f47bb646 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.679, 0.529), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.213, 0.192).lineTo(-0.244, 0.173).lineTo(-0.244, 0.106).lineTo(-0.146, 0.006).lineTo(-0.115, 0.021).lineTo(-0.126, 0.038).lineTo(-0.126, 0.067).lineTo(-0.052, -0.017).lineTo(-0.126, -0... | 8 | 145 | 0.143603 |
train_f3497c130aad8f79 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.397, 0.499, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(1, 0.753).lineTo(1, 0.04).lineTo(-1, 0.04).lineTo(-1, 0.397).lineTo(-0.476, 0.397).lineTo(-0.476, 0.753).lineTo(1, 0.753).close().extrude(1.258)
result = result.faces('>Z').shell(-0.08)
... | 6 | 22 | 0.687152 |
train_aa429c830c73bc40 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.025, -0.032, 0.284), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.372, 0.549).extrude(0.36)
result = result.union(cq.Workplane(cq.Plane(origin=(0.191, -0.032, 0.464), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.16, 0.178).lineTo(0.143, 0.253).line... | 7 | 47 | 0.080041 |
train_a7fafff7b52489c7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.034, 0, -0.308), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.107, 2).extrude(0.616)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.043, -0.278, -0.237), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.328, 0.13).extrude(0.035))
result = result.cut... | 10 | 41 | 1.337615 |
train_63221105f621bc46 | 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.504, 0.287).lineTo(0.504, -0.287).lineTo(-0.504, -0.287).lineTo(-0.504, 0.287).lineTo(0.504, 0.287).close().workplane(offset=0.44).moveTo(0.5, 0.285).lineTo(0.5, -0.285).lineTo(-0.5, -0.285).l... | 5 | 27 | 1.541239 |
train_e8d50c3b937cad58 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.698, 0.239), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.206, 0.166).threePointArc((-0.231, 0.176), (-0.255, 0.161)).threePointArc((-0.302, 0), (-0.255, -0.161)).threePointArc((-0.231, -0.176), (-0.206, -0.166)).threePointArc((-0.166, -0.1... | 2 | 20 | 0.141443 |
train_dd0283750ad7d2a1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.027, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.18, 1.047).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.134, -0.116, -1.34), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.225, 0.387).extrude(2.4))
result = result.cut(cq.Wo... | 11 | 80 | 1.883973 |
train_c71828b9c7481c62 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.344, -0.507), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.35, 1.344).lineTo(0.35, 1.344).lineTo(0.235, -0.566).lineTo(-0.235, -0.566).lineTo(-0.35, 1.344).close().extrude(1.041)
result = result.edges().chamfer(0.093)
result = result.union(c... | 5 | 36 | 1.106875 |
train_172211656154fe3f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.206), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.963, -0.524).lineTo(-0.963, -0.637).lineTo(-0.874, -0.601).lineTo(-0.683, -0.524).lineTo(-0.184, -0.324).lineTo(0.261, -0.524).lineTo(0.963, -0.524).lineTo(0.682, 0.024).lineTo(0.368, 0.6... | 13 | 86 | 0.619422 |
train_0cdef7e08f324e7c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.982), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.802, 2).extrude(1.964)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.056, 0.728, -0.786), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.858, 0.573).extrude(1.021))
result = result.cut(cq.W... | 12 | 80 | 5.0481 |
train_8c682d8f0c867ab9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.5, 0, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.291, 0.287).lineTo(0.291, 0.989).lineTo(0.356, 0.989).lineTo(0.356, 1).lineTo(-0.291, 1).lineTo(-0.291, 0.989).lineTo(-0.356, 0.989).lineTo(-0.356, 0.287).lineTo(0.291, 0.287).close().revolv... | 7 | 34 | 0.84947 |
train_acd15708c9ad77a6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.163, -1, 0.231), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.009, -0.087).lineTo(-0.012, 0.045).lineTo(-0.067, 0.047).lineTo(-0.013, 0.087).lineTo(0.026, 0.087).lineTo(0.008, -0.087).lineTo(-0.009, -0.087).close().sweep(cq.Workplane('YZ').spl... | 6 | 66 | 0.036578 |
train_f47acb44db3e58d1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.292, 0.326, -0.063), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.127).sweep(cq.Workplane('YZ').spline([(0.602, -0.228), (0.784, -0.228), (0.966, -0.228), (1.124, -0.144), (1.282, -0.06)]))
result = result.edges().fillet(0.065)
result = result.... | 11 | 182 | 0.238518 |
train_3892f2759adc365e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.54, -0.217, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-1, 0.927).lineTo(-1, 0.484).threePointArc((-0.479, 0.453), (-0.105, 0.089)).threePointArc((0.448, 0.374), (1, 0.087)).lineTo(1, 0.927).lineTo(-1, 0.927).close().extrude(0.384)
result = ... | 11 | 105 | 0.336327 |
train_069f9b924b0135a3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.051, -0.461, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.936, 0.444).lineTo(0.936, 0.143).lineTo(-0.936, 0.143).lineTo(-0.936, 0.444).lineTo(0.936, 0.444).close().revolve(angleDegrees=180, axisStart=(0, 0), axisEnd=(0.155, 0))
result = res... | 6 | 59 | 0.471578 |
train_b5a404155a677051 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.659, -0.056, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.072, 0.209).threePointArc((-0.083, 0.195), (-0.09, 0.179)).lineTo(-0.124, 0.179).threePointArc((0, 0.015), (0.124, 0.179)).lineTo(0.09, 0.179).threePointArc((0.083, 0.195), (0.072, 0... | 9 | 37 | 0.007267 |
train_16889f113ce81280 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.379), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.334, 2).extrude(0.758)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.359, -0.83, 0.171), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.11, 0.357).extrude(0.059))
result = result.cut(cq.Wo... | 11 | 92 | 1.790208 |
train_5bb418613f23e5e1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.193, 0.113, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.182, -0.173).threePointArc((-0.172, -0.187), (-0.156, -0.189)).lineTo(0.359, -0.072).threePointArc((0.293, 0.344), (0.172, 0.747)).lineTo(-0.343, 0.63).threePointArc((-0.357, 0.621), ... | 15 | 117 | 0.549621 |
train_c50b164d7cc11965 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.103, 0.04, 0.018), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.188, 0.239).threePointArc((-0.092, 0.01), (0.045, -0.197)).threePointArc((0.101, -0.07), (0.188, 0.04)).threePointArc((-0.011, 0.119), (-0.188, 0.239)).close().extrude(0.519)
result... | 22 | 285 | 0.157368 |
train_0d8907c3abfa29db | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.187, 0, 0.233), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.154, -0.026).lineTo(-0.154, 0.214).lineTo(0.154, 0.214).lineTo(0.154, -0.026).lineTo(-0.154, -0.026).close().revolve(angleDegrees=180, axisStart=(-0.154, -0.026), axisEnd=(-0.154, 0.21... | 9 | 48 | 0.237049 |
train_1b8234f448e3abaa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.055, -0.037, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.003).lineTo(1, 0.003).lineTo(1, 0.071).lineTo(-1, 0.071).lineTo(-1, 0.003).close().extrude(0.189)
result = result.edges().chamfer(0.009)
result = result.cut(cq.Workplane(cq.Plane(... | 23 | 163 | 0.016582 |
train_24890a80af08ae12 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.542, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.489, 1.521).threePointArc((0.489, 0.542), (-0.489, -0.436)).lineTo(-0.489, -0.309).lineTo(-0.489, 1.393).lineTo(-0.489, 1.521).close().extrude(2)
result = result.edges().fillet(0.183)
res... | 12 | 60 | 2.124484 |
train_8a0f653ae9632e05 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.156, 0.045, -0.45), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.514, 1.385).extrude(0.077)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.368, -0.176, -0.362), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.043, -0.441).lineTo(-0.043, 0.737... | 19 | 121 | 0.839914 |
train_97d6d80e538681c7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.296, 0, -0.353), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.288).workplane(offset=0.224).circle(0.23).workplane(offset=0.271).circle(0.062).loft()
result = result.edges().fillet(0.08)
result = result.union(cq.Workplane(cq.Plane(origin=(0.155, ... | 8 | 29 | 0.174017 |
train_9f66d7e7cf800809 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.908, 0.446, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.25, 0.071).lineTo(-1, 0.071).lineTo(-1, 0.822).lineTo(1, 0.822).lineTo(1, 0.071).lineTo(-0.25, 0.071).close().extrude(1.815)
result = result.edges().fillet(0.097)
result = result.cut(... | 15 | 112 | 1.905795 |
train_824f85d0be04ba04 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.652, 0, -0.272), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.347, -0.947).lineTo(-0.347, 0.947).lineTo(0.347, 0.947).lineTo(0.347, -0.947).lineTo(-0.347, -0.947).close().sweep(cq.Workplane('XZ').spline([(0.652, -0.272), (0.193, 0.099), (-0.319... | 4 | 17 | 2.296306 |
train_8f2070322eb4fc80 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.114, -0.303, -0.155), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.913, 0.734).extrude(0.31)
result = result.faces('>Z').shell(-0.018)
result = result.union(cq.Workplane(cq.Plane(origin=(0.19, -0.821, -0.085), normal=(0, 0, 1), xDir=(1, 0, 0))).cir... | 5 | 43 | 0.098163 |
train_31e0269005f4c443 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.259, -0.547), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.769, 1.481).extrude(1.094)
result = result.union(cq.Workplane(cq.Plane(origin=(0.098, 0.719, -0.362), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.313, 0.562).extrude(0.533))
result = resu... | 11 | 85 | 1.117409 |
train_a3f26daa3012303a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.358, 0.002, -0.257), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.684, -0.298).lineTo(0.684, 0.386).lineTo(-0.684, 0.386).lineTo(-0.684, -0.298).lineTo(0.684, -0.298).close().extrude(1.059)
result = result.edges().chamfer(0.143)
result = result.... | 13 | 203 | 0.836808 |
train_bce45c480cfc0027 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.538, -0.68, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.333, 0.038).threePointArc((0.903, -0.198), (0.667, 0.371)).lineTo(0.667, 1.039).threePointArc((0.432, 1.136), (0.333, 1.372)).lineTo(-0.333, 1.372).threePointArc((-0.432, 1.136), (-0.6... | 16 | 128 | 2.362095 |
train_a95a69f015ccd0c2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.565), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.723).extrude(1.063)
result = result.union(cq.Workplane(cq.Plane(origin=(0 + 0.187 * math.cos(1.188 + 2 * math.pi * 0 / 4), 0 + 0.187 * math.sin(1.188 + 2 * math.pi * 0 / 4), -0.93), norma... | 16 | 219 | 3.699987 |
train_506a8caced1f839c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.174, 0.075, -0.222), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.847, -0.557).lineTo(0.826, -0.566).lineTo(0.825, 0.579).lineTo(-0.858, 0.573).close().moveTo(-0.341, 0.077).lineTo(-0.128, 0.079).lineTo(-0.13, 0.238).lineTo(-0.339, 0.236).close(... | 19 | 161 | 0.341626 |
train_f23cc3a8b15c3662 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.007, -0.003, -0.163), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.993, -0.023).lineTo(0.689, 0.688).lineTo(-0.022, 0.992).lineTo(-0.684, 0.698).lineTo(-1.007, -0.008).lineTo(-0.717, -0.704).lineTo(0.024, -0.986).lineTo(0.692, -0.681).close().mov... | 12 | 322 | 0.530854 |
train_bf915ad8497d1d29 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.015, -0.004), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.015, 1.003).lineTo(-0.015, -1).lineTo(0.015, -1).lineTo(0.015, 1.003).close().extrude(0.029)
result = result.edges().chamfer(0.002)
result = result.union(cq.Workplane(cq.Plane(origin=... | 11 | 57 | 0.000787 |
train_2cbc536a09e06d78 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.404), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.468).extrude(0.807)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.404, -1.358), normal=(0, 1, 0), xDir=(1, 0, 0))).rect(0.518, 0.334).extrude(0.698))
result = result.cut(cq.Workp... | 12 | 54 | 1.613919 |
train_d52406c849fb75e5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.447, 0, 0.279), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.55, 1).lineTo(-0.55, -1).lineTo(0.55, -1).lineTo(0.55, 1).lineTo(0.2, 1).lineTo(0.2, 0.6).lineTo(-0.2, 0.6).lineTo(-0.2, 1).lineTo(-0.55, 1).close().extrude(1.185)
result = result.ed... | 9 | 83 | 2.349028 |
train_5d4a0c7b2674f03f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.432), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.835).extrude(0.864)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.559, -0.126, -0.171), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.429).extrude(0.516))
result = result.cut(cq.Workp... | 18 | 117 | 2.016812 |
train_c4a003d5a4f972fd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.292, -0.03, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.442, 0.262).extrude(1.466)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.352, -0.075, 0.408), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.082, -0.016).lineTo(-0.087, -0.024).... | 13 | 24 | 0.175922 |
train_5c48cdf1d8776d34 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.038, 0.07).lineTo(-0.038, -0.061).lineTo(0.016, -0.07).lineTo(-0.003, -0.058).lineTo(0.038, 0.057).lineTo(-0.038, 0.07).close().sweep(cq.Workplane('XY').spline([(-0.938, -0.404), (-0.563, -0.3... | 1 | 7 | 0.009132 |
train_13c6d36ba9714318 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.258), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.58, 2).extrude(0.516)
result = result.faces('>Z').shell(-0.057)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.11, -0.896, 0.009), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.204, 0.22).... | 3 | 15 | 0.360714 |
train_d657b0a1adb75052 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.082, 0.229, -0.581), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.336, 0.345).extrude(0.052)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.082, 0.111, -0.558), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.14, 0.113).extrude(0.006))
result = re... | 23 | 169 | 0.095599 |
train_9a71ac3f37c8b435 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.431), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.61).extrude(1.085)
result = result.union(cq.Workplane(cq.Plane(origin=(0 + 0.347 * math.cos(0.899 + 2 * math.pi * 0 / 5), 0 + 0.347 * math.sin(0.899 + 2 * math.pi * 0 / 5), -0.654), norma... | 16 | 41 | 3.500115 |
train_0a1ddedc26427247 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.5, -0.95, 0.578), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.5, 1.155).lineTo(0.5, 0.517).lineTo(0.298, 0.517).lineTo(0.298, 0.748).lineTo(0.184, 0.748).lineTo(0.184, 0.517).lineTo(-0.017, 0.517).lineTo(-0.017, 0.39).lineTo(-0.455, 0.39).lineT... | 3 | 32 | 1.282771 |
train_61b01e30062c88d8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.223, -0.027), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.777, -0.777).lineTo(0.777, -0.504).lineTo(0.553, -0.359).lineTo(0.393, -0.393).lineTo(0, 0).lineTo(0.393, 0.393).lineTo(0.359, 0.553).lineTo(-0.393, 0.393).lineTo(-0.777, 0.777).line... | 23 | 87 | 0.420895 |
train_63fd0a8c949c92d2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.176, -0.21, -0.194), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.31, 1.58).extrude(0.321)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.078, 0.083, 0.122), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.128).extrude(0.072))
result = result.... | 10 | 45 | 0.549922 |
train_42c8263c053fdf7e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.176, 0.42, 0.234), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.096, 0.211).lineTo(0.766, 0.211).lineTo(0.766, 0.019).lineTo(-0.766, 0.019).lineTo(-0.766, 0.211).lineTo(-0.096, 0.211).close().extrude(0.178)
result = result.union(cq.Workplane(cq... | 3 | 14 | 0.367563 |
train_1f824c6aff662f99 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.107, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.705, 0.706).extrude(0.65)
result = result.union(cq.Workplane(cq.Plane(origin=(0.107, 0, -0.465), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.176, 0.147).extrude(1.465))
result = result.union(c... | 8 | 41 | 0.264341 |
train_d5982b0fcf638178 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.36, -0.904), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1, 0.2).lineTo(-1, 0.52).lineTo(-0.339, 0.52).threePointArc((-0.185, 0.675), (-0.03, 0.52)).lineTo(0.399, 0.52).threePointArc((0.554, 0.366), (0.708, 0.52)).lineTo(1, 0.52).lineTo(1, 0.... | 6 | 85 | 1.070193 |
train_90db10b1c9976a12 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.353, 0.142, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.036, -0.353).lineTo(0.008, -0.353).lineTo(0.012, -0.401).lineTo(-0.012, -0.401).lineTo(-0.008, -0.353).lineTo(-0.02, -0.353).lineTo(-0.02, -0.304).lineTo(0.02, -0.304).lineTo(0.02, 0.37... | 5 | 39 | 0.072637 |
train_62a892c0e8c053a9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.849, 0.184, 0.11), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.151, -0.076).lineTo(0.151, 0.067).threePointArc((0.144, 0.069), (0.142, 0.076)).lineTo(-0.049, 0.076).lineTo(-0.049, 0.047).threePointArc((-0.052, 0.041), (-0.058, 0.039)).lineTo(-... | 2 | 13 | 0.039609 |
train_30124945b9aaa96a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.195, 0.277, -0.795), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.147, 1.147).extrude(1.585)
result = result.faces('>Z').shell(-0.131)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.064, 0.333, 0.774), normal=(0, 0, 1), xDir=(1, 0, 0))).re... | 17 | 61 | 1.467103 |
train_27526396b6d9c3c9 | 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.357).workplane(offset=0.495).circle(0.363).workplane(offset=0.422).circle(0.327).workplane(offset=0.525).circle(0.647).workplane(offset=0.558).circle(0.687).loft()
result = result.edges().cham... | 10 | 30 | 0.901346 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.