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_0d4182ab258d5eda | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.749, -0.743, -0.223), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.472, 0.81).threePointArc((0.776, 0.506), (0.472, 0.203)).lineTo(-0.472, 0.203).threePointArc((-0.776, 0.506), (-0.472, 0.81)).lineTo(0.472, 0.81).close().revolve(angleDegrees=90,... | 5 | 25 | 1.256951 |
train_acdf11f0c17e7fec | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.15), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.067).lineTo(0.021, 0.064).lineTo(0.039, 0.053).lineTo(0.053, 0.039).lineTo(0.064, 0.021).lineTo(0.067, 0).lineTo(0.064, -0.021).lineTo(0.053, -0.039).lineTo(0.039, -0.053).lineTo(0.021, -... | 9 | 62 | 0.027205 |
train_bcecfc18542db214 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.247, 0, -0.177), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.227, 0.357).lineTo(0.227, 0.227).lineTo(0.753, 0.227).lineTo(0.753, 0).lineTo(0, 0).lineTo(0, 0.357).lineTo(0.227, 0.357).close().extrude(0.826, both=True)
result = result.cut(cq.Work... | 8 | 47 | 0.455665 |
train_689e86072a5ea16e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.4, 0.104, -0.287), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.555, 0.191).threePointArc((0.585, 0.178), (0.599, 0.147)).lineTo(0.599, -0.161).threePointArc((0.59, -0.182), (0.569, -0.191)).lineTo(-0.558, -0.191).threePointArc((-0.587, -0.179),... | 14 | 58 | 0.290293 |
train_6080ba8a7ee57ed6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.003, -0.382), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.46, 0.509).threePointArc((-0.375, 0.49), (-0.339, 0.446)).lineTo(-0.339, -0.068).threePointArc((-0.283, -0.137), (-0.149, -0.167)).lineTo(0.819, -0.167).threePointArc((0.946, -0.194),... | 9 | 87 | 0.386992 |
train_e0603061bfae08f8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.244, -0.068, 0.003), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.532, -0.118).lineTo(-0.08, -0.589).threePointArc((-0.498, 0.589), (0.532, -0.118)).close().moveTo(0.163, 0.448).lineTo(0.345, -0.063).threePointArc((-0.532, -0.087), (0.163, 0.448... | 13 | 121 | 0.60631 |
train_015c4068c0e21d67 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.44), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.908, 0.588).threePointArc((0.973, 0.56), (1, 0.496)).lineTo(1, -0.49).threePointArc((0.971, -0.559), (0.902, -0.588)).lineTo(-0.858, -0.588).threePointArc((-0.958, -0.546), (-1, -0.447)).li... | 12 | 67 | 1.059348 |
train_d145d88b6e174f1a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.109, 0.021, 0.086), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.19, 0.207).lineTo(0.592, -0.067).threePointArc((-0.592, -0.207), (-0.19, 0.207)).close().extrude(0.44, both=True).intersect(cq.Workplane(cq.Plane(origin=(0.109, 0.021, 0.086), norm... | 12 | 80 | 0.739975 |
train_ee1883722c0ae174 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.329), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.801, 0.801).lineTo(0.801, 0.401).lineTo(0.401, 0.401).lineTo(0.401, -0.401).lineTo(0, -0.401).lineTo(0, -0.801).lineTo(-0.801, -0.801).lineTo(-0.801, 0.401).lineTo(-0.401, 0.401).lineTo(-0.... | 16 | 225 | 0.572686 |
train_0358012696939643 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.339), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.736, 0.448).threePointArc((0.919, 0.372), (0.996, 0.188)).lineTo(0.996, -0.181).threePointArc((0.917, -0.369), (0.728, -0.448)).lineTo(-0.88, -0.448).threePointArc((-0.962, -0.414), (-0.99... | 5 | 26 | 1.019738 |
train_426f285d60fb5330 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.334, -0.097), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.556, 1.331).extrude(0.194)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.334, -0.097), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.145, -0.533).lineTo(-0.145, -0.133).lineTo(0.1... | 6 | 73 | 0.19691 |
train_cffa01ec6defea0c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.783, -0.636, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 1.566).threePointArc((1.108, 1.108), (1.566, 0)).lineTo(0.72, 0).threePointArc((0.509, 0.509), (0, 0.72)).lineTo(0, 1.566).close().extrude(2)
result = result.union(cq.Workplane(cq.P... | 5 | 21 | 3.59718 |
train_46b5a62557d88741 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.232, -0.173, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.167, 1.077).threePointArc((0.167, 1.077), (0.13, 0.833)).lineTo(0.488, 0.989).threePointArc((0.77, 0.822), (0.597, 0.636)).lineTo(0.989, 0.588).threePointArc((1.128, 0.306), (0.873, 0... | 6 | 49 | 0.371566 |
train_32e86ee29e957b9a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.02, 0.678, -0.005), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.088, 0.834).threePointArc((0.287, 0.832), (0.409, 0.744)).threePointArc((0.421, 0.596), (0.321, 0.424)).threePointArc((0.135, 0.276), (-0.088, 0.192)).threePointArc((-0.287, 0.195)... | 20 | 43 | 0.737059 |
train_609ebc20439be4d6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.214, 0.145, -0.275), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.786, 0.667).lineTo(0.786, -0.667).lineTo(-0.786, -0.667).lineTo(-0.786, 0.667).lineTo(-0.345, 0.667).lineTo(-0.345, -0.227).lineTo(0.345, -0.227).lineTo(0.345, 0.667).lineTo(0.786... | 4 | 35 | 1.88934 |
train_4d15ee049ea98e71 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1.06, -0.14), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.669, 0.923).lineTo(0.622, 0.778).lineTo(0.881, 0.571).lineTo(0.738, 0.374).lineTo(0.461, 0.556).lineTo(0.337, 0.466).lineTo(0.425, 0.147).lineTo(0.193, 0.072).lineTo(0.076, 0.382).lineT... | 8 | 491 | 0.168552 |
train_a5e3d6f679e9f1d8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.005, 0.102, -0.205), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.105, 0.056).threePointArc((-0.16, 0.072), (0.072, 0.055)).lineTo(0.078, -0.052).threePointArc((0.16, -0.072), (-0.089, -0.052)).lineTo(-0.105, 0.056).close().extrude(0.05, taper=1... | 6 | 124 | 0.194852 |
train_d41f74ab51d6d045 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.18, 0, -0.063), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.125, 1).threePointArc((0.227, 0.956), (0.269, 0.854)).lineTo(0.269, -0.868).threePointArc((0.232, -0.96), (0.139, -1)).lineTo(-0.155, -1).threePointArc((-0.236, -0.965), (-0.269, -0.884... | 12 | 114 | 0.253613 |
train_70a937c53fdcb536 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.009), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.384, 0.762).lineTo(0.702, -0.426).lineTo(-0.554, -0.762).lineTo(-0.702, -0.211).lineTo(0.004, -0.022).lineTo(-0.167, 0.615).lineTo(0.384, 0.762).close().extrude(10.434, both=True).intersec... | 2 | 20 | 1.549424 |
train_a5322a1c94a85fc5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.314, 0, 0), normal=(1, 0, 0), xDir=(0, 1, 0))).moveTo(0.443, -1.042).lineTo(0.188, -1.08).lineTo(-0.057, -0.971).lineTo(-0.261, -0.731).lineTo(-0.396, -0.392).lineTo(-0.443, 0).lineTo(-0.396, 0.392).lineTo(-0.261, 0.731).lineTo(-0.057, 0.971).l... | 19 | 374 | 0.485851 |
train_c4eb57e4bee7a289 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.011, 0.77, 0.325), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.136, 0.468).threePointArc((0.23, 0.43), (0.269, 0.336)).lineTo(0.269, 0.127).threePointArc((0.23, 0.033), (0.136, -0.006)).lineTo(-0.136, -0.006).threePointArc((-0.23, 0.033), (-0.2... | 6 | 26 | 0.391751 |
train_7c1977cab0244200 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.926, 0, -0.156), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.312, 1.62).lineTo(0.312, 0.312).lineTo(1.856, 0.312).lineTo(1.856, 0).lineTo(0, 0).lineTo(0, 1.62).lineTo(0.312, 1.62).close().extrude(1, both=True)
result = result.cut(cq.Workplane(... | 30 | 55 | 0.407215 |
train_5410d2dad52afdcb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.266, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.877, 0.66).lineTo(0.996, 0.543).lineTo(0.996, -0.66).lineTo(-0.825, -0.66).threePointArc((-0.946, -0.61), (-0.996, -0.486)).lineTo(-0.996, 0.66).lineTo(0.877, 0.66).close().extrude(2)
resu... | 7 | 22 | 5.737119 |
train_437e12aed515dfab | import cadquery as cq
import math
result = cq.Workplane('XY').moveTo(-0.092, 1).threePointArc((-0.027, 0.965), (0, 0.9)).lineTo(0, 0.61).threePointArc((0.034, 0.532), (0.112, 0.498)).lineTo(0.407, 0.498).threePointArc((0.471, 0.471), (0.498, 0.407)).lineTo(0.498, -0.395).threePointArc((0.529, -0.467), (0.6, -0.498)).li... | 9 | 114 | 3.195605 |
train_386c129a1a65353f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.007, 0, -0.069), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.754, 0.625).lineTo(0.632, 0.426).threePointArc((0.991, -0.102), (0.789, -0.61)).lineTo(-0.763, -0.625).threePointArc((-0.991, -0.175), (-0.754, 0.625)).close().extrude(0.162)
result =... | 12 | 106 | 0.329359 |
train_1c5f93d227e67ef7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.709, 0.879, -0.002), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.494, 0.173).lineTo(0.815, 0.638).lineTo(0.689, 1.188).lineTo(0.225, 1.422).lineTo(-0.225, 1.403).lineTo(-0.663, 1.183).lineTo(-0.815, 0.665).lineTo(-0.55, 0.173).lineTo(-0.024, -0... | 2 | 56 | 3.920383 |
train_6d945f1d4cb77628 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.456), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(1, 0.911).lineTo(1, 0.427).lineTo(0.517, 0.427).lineTo(0.517, 0).lineTo(0.424, 0).lineTo(0.424, 0.911).lineTo(1, 0.911).close().revolve(angleDegrees=360, axisStart=(0, 0, 0), axisEnd=(0, 1,... | 12 | 133 | 1.176984 |
train_c9555dcb57649f80 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.119), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.378, 1).threePointArc((0.486, 0.946), (0.532, 0.838)).lineTo(0.532, -0.865).threePointArc((0.494, -0.955), (0.404, -1)).lineTo(-0.532, -1).lineTo(-0.532, 0.867).lineTo(-0.406, 1).lineTo(0.... | 7 | 70 | 0.406475 |
train_155e2cf17eb7e7d6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.343, 0.258, -0.104), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.104, 0.483).lineTo(0.096, 0.322).threePointArc((0.111, 0.316), (0.127, 0.31)).lineTo(0.156, 0.296).threePointArc((0.155, 0.275), (0.17, 0.26)).lineTo(0.211, 0.262).threePointArc((0... | 6 | 46 | 0.059429 |
train_4ace9118c992ffd9 | import cadquery as cq
import math
result = cq.Workplane('XY').moveTo(0.757, 0.667).threePointArc((0.786, 0.655), (0.798, 0.626)).lineTo(0.798, 0.43).threePointArc((0.786, 0.4), (0.756, 0.388)).lineTo(-0.426, 0.388).threePointArc((-0.492, 0.36), (-0.519, 0.295)).lineTo(-0.519, -0.174).threePointArc((-0.456, -0.324), (-0... | 3 | 18 | 2.182039 |
train_57e2092539575a7c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.157, -0.046, -0.206), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.075, 0.639).threePointArc((0.973, 0.798), (0.823, -0.16)).threePointArc((0.673, -0.16), (0.823, -0.48)).threePointArc((0.673, -0.798), (0.225, -0.639)).threePointArc((0.075, -0.4... | 5 | 66 | 1.540408 |
train_75eed2ce50ba3a81 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.277, 0.15), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.193, 0.213).lineTo(0.723, 0.069).threePointArc((0.362, -0.213), (0.193, 0.213)).close().moveTo(0.278, 0).lineTo(0.41, -0.036).lineTo(0.374, -0.169).lineTo(0.242, -0.133).lineTo(0.278, 0... | 4 | 49 | 0.692385 |
train_68ae172b4ec8542a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.097, 0, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.016, 0.546).threePointArc((0.033, 0.546), (0.082, 0.41)).threePointArc((0.098, 0.274), (0.098, 0)).threePointArc((0.066, -0.274), (0.016, -0.546)).threePointArc((-0.033, -0.546), (-0.082,... | 7 | 71 | 0.303894 |
train_6a05e290f127f019 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.27), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.579).lineTo(1, -0.579).lineTo(-0.637, -0.579).threePointArc((-0.886, -0.476), (-1, -0.221)).lineTo(-1, 0.579).lineTo(1, 0.579).close().extrude(0.539)
result = result.cut(cq.Workplane(cq.... | 13 | 36 | 1.039092 |
train_e3eec70f768bdd53 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.234), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.615, 0.156).lineTo(0.615, -0.156).lineTo(-0.615, -0.156).lineTo(-0.615, 0.156).lineTo(0.615, 0.156).close().extrude(0.36)
result = result.union(cq.Workplane(cq.Plane(origin=(0.6, 0, 0.126)... | 10 | 78 | 0.210007 |
train_b2fb01dd7c89db78 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.377, -0.292, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.754).threePointArc((0.533, 0.533), (0.754, 0)).lineTo(0.309, 0).threePointArc((0.218, 0.218), (0, 0.309)).lineTo(0, 0.754).close().extrude(2)
result = result.union(cq.Workplane(cq... | 10 | 80 | 0.814166 |
train_d6712edd50d8907e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.063, -0.246, -0.491), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.568, 0.276).threePointArc((0.585, 0.269), (0.592, 0.252)).lineTo(0.592, 0.156).threePointArc((0.586, 0.142), (0.573, 0.136)).lineTo(0.366, 0.136).threePointArc((0.317, 0.115), (0... | 12 | 255 | 0.691612 |
train_88add7d0d140a312 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.313), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.937, 0.807).threePointArc((0.981, 0.789), (1, 0.745)).lineTo(1, 0.422).threePointArc((0.969, 0.351), (0.898, 0.321)).lineTo(-0.43, 0.321).threePointArc((-0.489, 0.296), (-0.514, 0.237)).li... | 5 | 34 | 1.310397 |
train_33984768a2cf6d0d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.467, -0.324, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.934).threePointArc((0.664, 0.664), (0.934, 0)).lineTo(0.423, 0).threePointArc((0.3, 0.3), (0, 0.423)).lineTo(0, 0.934).close().extrude(2)
result = result.union(cq.Workplane(cq.Pla... | 10 | 56 | 0.945054 |
train_6f6a6a5be0b039fe | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.009, -0.099), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.399, 0.234).lineTo(-0.399, -0.132).lineTo(0.968, -0.132).lineTo(0.968, -0.234).lineTo(-0.968, -0.234).lineTo(-0.968, 0.234).lineTo(-0.399, 0.234).close().extrude(0.166, taper=-9.934)... | 15 | 148 | 0.108919 |
train_bbbaa01265c692a1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.133, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.18, 0.3).lineTo(0.541, 0.176).threePointArc((0.667, 0.05), (0.541, -0.076)).lineTo(-0.541, -0.076).threePointArc((-0.667, 0.05), (-0.541, 0.176)).threePointArc((-0.381, 0.296), (-0.18, 0.2... | 5 | 42 | 0.602165 |
train_73e376b45137d303 | import cadquery as cq
import math
result = cq.Workplane('XY').circle(0.353).extrude(1.579, both=True)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(1).extrude(0.627, both=True))
result = result.cut(cq.Workplane('XY').circle(0.471).extrude(4.741, both=True))
resu... | 10 | 54 | 1.030114 |
train_058d3ac0e12bf7fa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.002, -0.112), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.753, -0.126).lineTo(0.98, -0.202).lineTo(0.942, -0.338).lineTo(0.712, -0.275).lineTo(0.656, -0.389).lineTo(0.841, -0.542).lineTo(0.756, -0.655).lineTo(0.564, -0.514).lineTo(0.471, -0.... | 4 | 98 | 0.445128 |
train_32fd3e2540c09818 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.084, 0, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.08, -0.667).lineTo(-0.111, -0.591).threePointArc((-0.14, -0.571), (-0.154, -0.539)).lineTo(-0.328, 0.282).threePointArc((-0.306, 0.667), (-0.17, 0.35)).lineTo(0.102, -0.282).threePointArc((... | 1 | 13 | 0.832412 |
train_92ec1bc93e540355 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.133, 0.017, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.056, 0.553).threePointArc((0.387, 0.664), (0.498, 0.221)).lineTo(-0.056, -0.664).threePointArc((-0.387, -0.664), (-0.498, -0.332)).lineTo(0.056, 0.553).close().extrude(1, both=True)
re... | 7 | 38 | 1.564055 |
train_559e6cf79fb6b4ea | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.179, -0.07, -0.04), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.007, 0.026).spline([(-0.007, 0.026), (0.027, 0.048), (0.078, 0.055)]).lineTo(0.065, -0.037).spline([(0.065, -0.037), (0.013, -0.055), (-0.004, -0.007)]).close().extrude(1.281).unio... | 7 | 83 | 0.086363 |
train_6b04e98d714baab5 | 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.352).extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, 0.391), normal=(0.865, 0, 0.502), xDir=(0.502, 0, -0.865))).circle(0.281).extrude(1.939))
result = result.cut(cq.Workp... | 7 | 17 | 0.316263 |
train_6de7b628900ccda4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.701), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.963, 1.403).lineTo(0.963, 0.162).lineTo(1, 0.162).lineTo(1, 0).lineTo(0.336, 0).lineTo(0.336, 1.403).lineTo(0.963, 1.403).close().revolve(angleDegrees=360, axisStart=(0, 0, 0), axisEnd=(0... | 9 | 38 | 3.174335 |
train_23e8eb44f1b5881d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.012, 0, 0.205), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.499, 1).threePointArc((0.57, 0.97), (0.6, 0.899)).lineTo(0.6, 0.7).threePointArc((0.63, 0.63), (0.7, 0.6)).lineTo(0.899, 0.6).threePointArc((0.97, 0.57), (1, 0.499)).lineTo(1, 0.288).th... | 9 | 93 | 0.397393 |
train_d9cf0a33cfd4c8ea | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.007, 0, -0.604), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(1, 1.058).lineTo(1, 0.466).lineTo(0.751, 0.466).lineTo(0.751, 0).lineTo(0.528, 0).lineTo(0.528, 1.058).lineTo(1, 1.058).close().revolve(angleDegrees=360, axisStart=(0, 0, 0), axisEnd=(... | 8 | 57 | 1.613422 |
train_e96c18c7683f130d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.331, -0.594), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.611, 1.33).lineTo(0.631, 0.911).threePointArc((0.668, 0.8), (0.619, 0.684)).lineTo(0.431, 0.515).lineTo(0.337, 0.367).lineTo(0.403, 0.034).lineTo(0.152, -0.165).lineTo(-0.182, 0.176).... | 7 | 64 | 1.365253 |
train_4a8a9deabd474d2c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.001, -0.185), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.749, 0.874).threePointArc((-0.685, 0.854), (-0.657, 0.807)).lineTo(-0.657, -0.371).threePointArc((-0.554, -0.548), (-0.31, -0.623)).lineTo(0.941, -0.623).threePointArc((0.985, -0.636)... | 3 | 76 | 0.361526 |
train_d4e46096075e5847 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.355), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.654, 0.634).lineTo(0.846, 0.211).lineTo(0.774, -0.211).threePointArc((0.671, -0.411), (0.654, -0.634)).threePointArc((-0.846, 0), (0.654, 0.634)).close().workplane(offset=0.12).moveTo(0.65... | 13 | 542 | 1.682169 |
train_fe47ca6a177d1da6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.041, -0.018), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.221, 0.189).threePointArc((0.271, 0.169), (0.291, 0.12)).lineTo(0.291, -0.019).threePointArc((0.241, -0.14), (0.119, -0.189)).lineTo(-0.194, -0.189).threePointArc((-0.263, -0.161), (-... | 9 | 51 | 0.088783 |
train_be2b40dc39b83ea1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.53, 0, -0.261), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.235, 0.407).threePointArc((0.235, 0.407), (0.47, 0)).threePointArc((0.235, -0.407), (-0.235, -0.407)).threePointArc((-0.47, 0), (-0.235, 0.407)).close().sweep(cq.Workplane(cq.Plane(o... | 5 | 94 | 0.521205 |
train_539e8e25df8f3e05 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.201, -0.38, -0.69), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.273, 0.619).threePointArc((0.321, 0.6), (0.341, 0.557)).lineTo(0.341, 0.4).threePointArc((0.371, 0.336), (0.441, 0.309)).lineTo(0.56, 0.309).threePointArc((0.646, 0.277), (0.682, 0.... | 13 | 57 | 1.221716 |
train_c8db6c8cb9324ff4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.193), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.774, 0.641).lineTo(0.774, 0.42).lineTo(1, 0.42).lineTo(1, -0.389).lineTo(0.744, -0.641).lineTo(-0.727, -0.641).threePointArc((-0.914, -0.561), (-1, -0.372)).lineTo(-1, 0.453).threePointArc... | 17 | 301 | 0.595769 |
train_e0571e4b2155ed75 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.331), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.73, 2).extrude(0.499)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, -0.331), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.091, -0.273).lineTo(0.091, -0.722).lineTo(-0.091, -0.722).... | 13 | 55 | 0.796199 |
train_bf95fee09fa792d8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.175), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.733, -0.182).lineTo(0.894, -0.227).lineTo(0.856, -0.361).lineTo(0.7, -0.299).lineTo(0.651, -0.409).lineTo(0.793, -0.504).lineTo(0.72, -0.619).lineTo(0.587, -0.511).lineTo(0.512, -0.6).line... | 3 | 262 | 0.671233 |
train_2e4ecfe3f652fd70 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.175, -0.197, 0.13), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.641).threePointArc((0.211, 0.553), (0.298, 0.342)).threePointArc((0.211, 0.131), (0, 0.044)).threePointArc((-0.211, 0.131), (-0.298, 0.342)).threePointArc((-0.211, 0.553), (0, 0... | 10 | 64 | 0.416577 |
train_a5c447ede7404d9d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.444, -0.429, 0.104), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.399, 0.238).threePointArc((0.374, 0.238), (0.414, 0.141)).lineTo(0.391, -0.424).lineTo(-0.391, -0.424).lineTo(-0.414, 0.141).threePointArc((-0.374, 0.141), (-0.399, 0.238)).threePo... | 18 | 301 | 1.656598 |
train_4874b3b953f70190 | 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.111, 0.111).lineTo(0.111, -0.056).lineTo(0, -0.056).lineTo(0, -0.111).lineTo(-0.056, -0.111).lineTo(-0.056, 0).lineTo(-0.111, 0).lineTo(-0.111, 0.056).lineTo(-0.056, 0.056).lineTo(-0.056, 0.11... | 3 | 16 | 0.988935 |
train_42e9ce6e500d503d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.086, 0.054, 0.022), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.215, -0.805).threePointArc((-0.618, -0.697), (-0.805, 0.215)).threePointArc((-0.697, 0.618), (0.215, 0.805)).threePointArc((0.618, 0.697), (0.805, -0.215)).threePointArc((0.697, -... | 18 | 212 | 1.758046 |
train_4b953172ef7cb077 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.002, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.102, 0.111).threePointArc((0.106, 0.109), (0.108, 0.105)).lineTo(0.108, -0.088).threePointArc((0.101, -0.104), (0.085, -0.111)).lineTo(-0.049, -0.111).threePointArc((-0.091, -0.094), (-0.... | 5 | 68 | 0.053036 |
train_3416df508e44190e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.001, 0.999), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.018, 0.129).threePointArc((0.033, 0.077), (0.037, 0.043)).lineTo(0.061, 0.03).threePointArc((0.083, 0.014), (0.128, -0.011)).threePointArc((0.135, -0.025), (0.108, -0.035)).threePoint... | 5 | 34 | 0.250163 |
train_bb8e2f949bdf157f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.003, -0.142, 0.042), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.473, 0.955).lineTo(0.779, 0.192).threePointArc((1.053, -0.058), (0.684, -0.112)).lineTo(0.113, -0.447).lineTo(0.124, -0.511).threePointArc((0.068, -0.598), (-0.064, -0.547)).lineTo... | 3 | 28 | 0.431419 |
train_88fd95ed6eb07342 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.224, 0, -0.316), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.173, 0.631).lineTo(0.173, 0.173).lineTo(0.449, 0.173).lineTo(0.449, 0).lineTo(0, 0).lineTo(0, 0.631).lineTo(0.173, 0.631).close().extrude(1, both=True)
result = result.cut(cq.Workpla... | 4 | 38 | 0.273011 |
train_97090023372f08e6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.352, -0.093, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.705).threePointArc((0.499, 0.499), (0.705, 0)).lineTo(0.266, 0).threePointArc((0.187, 0.187), (0, 0.266)).lineTo(0, 0.705).close().extrude(2)
result = result.union(cq.Workplane(cq... | 10 | 62 | 0.724661 |
train_42326c4e0444e126 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.75), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.172, 0.999).lineTo(0.551, 0.846).threePointArc((0.67, 0.719), (0.798, 0.602)).lineTo(0.991, 0.138).threePointArc((0.985, -0.021), (0.991, -0.181)).lineTo(0.801, -0.633).threePointArc((0.716... | 1 | 18 | 4.705464 |
train_8c5e1387ab04334d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.269), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.914, 0.262).lineTo(1, 0.177).lineTo(1, -0.185).threePointArc((0.975, -0.24), (0.92, -0.262)).lineTo(-0.892, -0.262).threePointArc((-0.968, -0.231), (-1, -0.155)).lineTo(-1, 0.262).lineTo(0... | 9 | 69 | 0.296052 |
train_236f099f6df4e39d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.123, -0.071, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.047, 0.056).threePointArc((0.05, 0.054), (0.052, 0.052)).lineTo(0.052, -0.043).threePointArc((0.048, -0.052), (0.038, -0.056)).lineTo(-0.035, -0.056).threePointArc((-0.047, -0.051), (-... | 5 | 95 | 0.022296 |
train_0b55c2fda3c01728 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.037, -0.049, -0.405), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.498, -0.628).threePointArc((-0.936, 0.492), (0.485, 0.322)).lineTo(0.942, 0.058).threePointArc((0.961, 0.037), (0.955, 0.01)).lineTo(0.895, -0.095).threePointArc((0.876, -0.112),... | 7 | 73 | 0.225193 |
train_b0f54f3c38e6e7da | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.104, 0.029, -0.225), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.601, 0.449).lineTo(0.601, 0).lineTo(-0.601, 0).lineTo(-0.601, 0.449).lineTo(-0.356, 0.449).lineTo(-0.356, 0.244).lineTo(0.356, 0.244).lineTo(0.356, 0.449).lineTo(0.601, 0.449).clo... | 6 | 24 | 0.585524 |
train_f553610851c5fb42 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.088, 0.111, 0.029), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.012, 0.247).lineTo(0.05, 0.21).lineTo(0.05, 0.185).lineTo(0.087, 0.148).lineTo(0.115, 0.148).lineTo(0.148, 0.115).lineTo(0.148, 0.077).lineTo(0.121, 0.05).lineTo(0.084, 0.05).lineTo... | 9 | 145 | 0.135979 |
train_4147045469ff4f21 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.173), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.308, 0.943).lineTo(0.805, 0.585).lineTo(1, 0).lineTo(0.805, -0.585).lineTo(0.308, -0.943).lineTo(-0.308, -0.943).lineTo(-0.805, -0.585).lineTo(-1, 0).lineTo(-0.805, 0.585).lineTo(-0.308, 0... | 5 | 66 | 0.954829 |
train_ac881e5a37065c7d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.247, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.617).lineTo(0, 0.123).lineTo(1, 0.123).lineTo(1, -0.37).lineTo(0.498, -0.37).lineTo(0.498, -0.617).lineTo(0, -0.617).lineTo(0, -0.37).lineTo(-1, -0.37).lineTo(-1, 0.123).lineTo(-0.498, 0... | 8 | 24 | 1.643103 |
train_a2b1b4821122ec65 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.005, -0.015, -0.123), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.708, -0.037).threePointArc((-0.97, -0.082), (-0.701, 0.039)).lineTo(0.727, 0.039).threePointArc((0.97, 0.082), (0.727, -0.032)).lineTo(-0.708, -0.037).close().extrude(0.245, tape... | 7 | 76 | 0.042266 |
train_73c385b6b5cebf2f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.423, -0.12, 0.032), normal=(-0.96, 0.272, -0.065), xDir=(-0.273, -0.962, 0))).moveTo(0.16, 0.454).lineTo(0.311, 0.078).lineTo(0.236, 0.009).lineTo(0.328, -0.043).lineTo(0.813, -0.153).lineTo(0.911, -0.205).lineTo(0.783, -0.275).threePointArc((0.... | 2 | 33 | 0.391886 |
train_bb9386b26558ab75 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.223, 0.031, 0.304), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.234, 0.405).threePointArc((0.234, 0.405), (0.467, 0)).threePointArc((0.234, -0.405), (-0.234, -0.405)).threePointArc((-0.467, 0), (-0.234, 0.405)).close().extrude(0.074)
result = ... | 14 | 81 | 0.406971 |
train_5904ba1ff5ebdf3e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.011, -0.116, -0.212), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.433, 0.259).lineTo(0.78, 0.085).threePointArc((0.78, 0.259), (0.953, 0.085)).lineTo(0.953, -0.238).threePointArc((0.947, -0.255), (0.93, -0.259)).lineTo(-0.433, -0.088).threePoin... | 3 | 63 | 0.278687 |
train_e1cdccf3319eec1b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.02, 0.162, -0.298), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.754, 0.595).lineTo(0.754, 0.312).lineTo(0.838, 0.312).lineTo(0.838, 0).lineTo(0.189, 0).lineTo(0.189, 0.595).lineTo(0.754, 0.595).close().revolve(angleDegrees=360, axisStart=(0, 0,... | 13 | 132 | 0.645179 |
train_1e85399d8cf23f69 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.393), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.158, 0.154).threePointArc((0.244, 0.118), (0.28, 0.033)).lineTo(0.28, -0.009).lineTo(0.134, -0.154).lineTo(-0.173, -0.154).lineTo(-0.173, -0.049).lineTo(-0.28, -0.049).lineTo(-0.28, 0.031)... | 7 | 44 | 0.291191 |
train_dcb2afec4a2d5e45 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.279, -0.163, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.332, 0.381).threePointArc((0.371, 0.363), (0.387, 0.321)).lineTo(0.387, 0.196).threePointArc((0.369, 0.15), (0.327, 0.131)).lineTo(-0.113, 0.131).threePointArc((-0.143, 0.116), (-0.15... | 8 | 148 | 0.739079 |
train_471531376885e883 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.186, 0.068, -0.141), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.466, 0.524).threePointArc((0.559, 0.486), (0.598, 0.392)).lineTo(0.598, -0.392).threePointArc((0.559, -0.486), (0.466, -0.524)).lineTo(-0.466, -0.524).threePointArc((-0.559, -0.4... | 16 | 150 | 0.409386 |
train_8deb8e59a4395a97 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.003, 0, -1), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.632, 2).lineTo(0.632, 1.203).lineTo(0.711, 1.203).lineTo(0.711, 0).lineTo(0, 0).lineTo(0, 2).lineTo(0.632, 2).close().revolve(angleDegrees=360, axisStart=(0, 0, 0), axisEnd=(0, 1, 0))
re... | 8 | 46 | 2.67108 |
train_ad2af45dfb79f222 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.301, 0.66, -0.122), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.197, 0.298).threePointArc((0.349, 0.071), (0.298, -0.197)).threePointArc((0.071, -0.349), (-0.197, -0.298)).threePointArc((-0.349, -0.071), (-0.298, 0.197)).threePointArc((-0.071, ... | 2 | 14 | 0.238366 |
train_475786ae14428b50 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.316, 0.999), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.399, 0.344).threePointArc((0.429, 0.332), (0.442, 0.302)).lineTo(0.442, -0.302).threePointArc((0.429, -0.332), (0.399, -0.344)).lineTo(-0.399, -0.344).threePointArc((-0.429, -0.332), (... | 16 | 153 | 1.682177 |
train_ea2a83b33caf19e0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.725, 0, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.157, 0.491).lineTo(0.392, 0.289).lineTo(0.382, -0.011).lineTo(0.181, -0.201).lineTo(-0.102, -0.275).lineTo(-0.276, -0.042).lineTo(-0.392, 0.25).lineTo(-0.134, 0.436).lineTo(0.157, 0.491).c... | 25 | 422 | 1.169949 |
train_8e84fce2ed0d2e44 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.062, 0.279, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.675, 0.672).lineTo(-0.675, -0.408).lineTo(0.938, -0.408).lineTo(0.938, -0.672).lineTo(-0.938, -0.672).lineTo(-0.938, 0.672).lineTo(-0.675, 0.672).close().extrude(0.338, taper=9.586, bo... | 5 | 46 | 0.711733 |
train_759e569b9a39de5f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.613), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.048, 0.179).threePointArc((0.093, 0.161), (0.179, 0.048)).threePointArc((0.161, -0.093), (0.048, -0.179)).threePointArc((-0.093, -0.161), (-0.179, -0.048)).threePointArc((-0.161, 0.093), ... | 12 | 298 | 0.142362 |
train_75dbb8a488f2b3f2 | 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.76, 0.667).lineTo(0.76, -0.667).lineTo(-0.76, -0.667).lineTo(-0.76, 0.667).lineTo(-0.394, 0.667).lineTo(-0.394, -0.3).lineTo(0.394, -0.3).lineTo(0.394, 0.667).lineTo(0.76, 0.667).close().extru... | 17 | 10 | 2.531368 |
train_cf5cd738a696f3f4 | import cadquery as cq
import math
result = cq.Workplane('XY').box(1.971, 2, 1.104)
result = result.edges().fillet(0.194)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.729, 0.509, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.795, 0.424).threePointArc((-0.127, -0.056), (-1.095, -0.424)).lineTo(-1.327, -0.004)... | 10 | 69 | 3.406588 |
train_c4f3209389798439 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.005, -0.462), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.178, 0.596).threePointArc((-0.053, 0.58), (0, 0.543)).lineTo(0, 0.38).threePointArc((0.082, 0.322), (0.276, 0.298)).lineTo(0.829, 0.298).threePointArc((0.949, 0.283), (1, 0.247)).line... | 5 | 13 | 2.133929 |
train_7bc1f61b82d7fcdf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.252, -0.284, -0.283), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.032, 0.339).lineTo(0.096, 0.169).lineTo(0.256, 0.127).lineTo(0.16, -0.042).lineTo(0.224, -0.212).lineTo(0.064, -0.212).lineTo(-0.032, -0.339).lineTo(-0.096, -0.169).lineTo(-0.256,... | 5 | 101 | 0.742747 |
train_e3dce227497e9960 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.002, -0.012, 0.025), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.221, 0.987).lineTo(-0.01, 0.277).threePointArc((-0.004, 0.206), (0.154, 0.194)).lineTo(0.398, 0.929).threePointArc((0.673, 0.752), (0.995, 0.13)).lineTo(0.233, 0.129).threePointArc... | 9 | 69 | 0.472703 |
train_33b8977835bacd48 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.09), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.115, 0.851).threePointArc((0.175, 0.829), (0.2, 0.778)).lineTo(0.2, 0.58).threePointArc((0.224, 0.531), (0.282, 0.51)).lineTo(0.482, 0.51).threePointArc((0.565, 0.481), (0.6, 0.41)).lineTo(... | 2 | 55 | 0.261436 |
train_c6a82f51db8a334d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.217), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.3, 0.434).lineTo(0.3, 0.228).lineTo(1, 0.228).lineTo(1, 0).lineTo(0.05, 0).lineTo(0.05, 0.434).lineTo(0.3, 0.434).close().revolve(angleDegrees=360, axisStart=(0, 0, 0), axisEnd=(0, 1, 0))... | 9 | 53 | 0.71699 |
train_c9f9c62855ba6ee9 | 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.196, 0.15).lineTo(0.196, -0.15).lineTo(-0.196, -0.15).lineTo(-0.196, -0.05).lineTo(0.117, -0.05).lineTo(0.117, 0.05).lineTo(-0.196, 0.05).lineTo(-0.196, 0.15).lineTo(0.196, 0.15).close().extru... | 17 | 100 | 0.112338 |
train_8dec5cd88fac758e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.001, -0.001, -0.749), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.032, 0.985).threePointArc((0.754, -0.236), (0.768, -0.31)).lineTo(0.753, -0.351).threePointArc((-0.314, -0.985), (-0.388, -0.998)).threePointArc((-0.55, -0.802), (-0.478, -0.528))... | 2 | 14 | 2.916145 |
train_cb51522fa435b71b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.303, -0.014, 0.082), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.443, 0.108).threePointArc((0.52, 0.006), (0.584, -0.134)).lineTo(0.338, -0.183).threePointArc((0.237, -0.238), (0.166, -0.413)).lineTo(-0.075, -0.239).lineTo(-0.439, -0.359).lineT... | 10 | 194 | 0.359701 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.