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_3175a81781f78e97 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.85, 0.496, -0.544), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.026, 0.172).threePointArc((0.113, 0.136), (0.149, 0.049)).lineTo(0.149, -0.049).threePointArc((0.113, -0.136), (0.026, -0.172)).lineTo(-0.026, -0.172).threePointArc((-0.113, -0.136... | 3 | 34 | 0.382883 |
train_395c8256ab3fccdd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.421, -0.592, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.095, 1.253).threePointArc((0.637, 1.161), (1, 0.738)).threePointArc((0.772, 0.227), (0.095, -0.069)).threePointArc((-0.637, 0.025), (-1, 0.452)).threePointArc((-0.772, 0.959), (-0.09... | 13 | 12 | 0.987791 |
train_e971668df299d833 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.011, 0, -0.127), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.942, 0.253).lineTo(0.912, 0.195).lineTo(1, 0.089).lineTo(1, 0).lineTo(0.932, 0).lineTo(0.932, 0.076).lineTo(0.831, 0.195).lineTo(0, 0.192).lineTo(0, 0.253).lineTo(0.942, 0.253).close... | 15 | 28 | 0.217809 |
train_2cda83498392ea88 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.11, 0, -0.192), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.328, 0.758).threePointArc((0.41, 0.729), (0.445, 0.659)).lineTo(0.445, 0.446).threePointArc((0.468, 0.399), (0.523, 0.379)).lineTo(0.813, 0.379).threePointArc((0.866, 0.36), (0.889, 0.3... | 15 | 170 | 0.648892 |
train_ef4994f65ab1ea2d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.859, -0.037, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.001, 0.552).lineTo(0.268, 0.285).lineTo(0.001, 0.016).lineTo(-0.268, 0.283).lineTo(-0.001, 0.552).close().extrude(1.718)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.24, -0... | 15 | 2,906 | 0.853418 |
train_9ea4b1148e2e5d11 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.112, -0.034), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.799).lineTo(1, 0.37).lineTo(0.214, 0.37).lineTo(0.214, -0.799).lineTo(-0.214, -0.799).lineTo(-0.214, 0.37).lineTo(-1, 0.37).lineTo(-1, 0.799).lineTo(1, 0.799).close().extrude(0.566)... | 5 | 46 | 1.611115 |
train_de549019e38ad2de | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.124), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.007, 1).threePointArc((0.265, 0.884), (0.372, 0.63)).lineTo(0.372, -1).lineTo(-0.079, -1).threePointArc((-0.287, -0.906), (-0.372, -0.702)).lineTo(-0.372, 0.722).threePointArc((-0.292, 0.9... | 6 | 23 | 0.235491 |
train_53b7d57c90c56e28 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1.294, -0.198, -0.93), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.449, 0.831).lineTo(1.449, -0.831).lineTo(-1.449, -0.831).lineTo(-1.449, 0.831).lineTo(-0.985, 0.831).lineTo(-0.985, -0.624).lineTo(0.985, -0.624).lineTo(0.985, 0.831).lineTo(1.449,... | 6 | 13 | 0.111599 |
train_174b78fb1e3cd457 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.533), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(1, 1.066).lineTo(1, 0.594).lineTo(0.81, 0.594).lineTo(0.81, 0).lineTo(0, 0).lineTo(0, 1.066).lineTo(1, 1.066).close().revolve(angleDegrees=360, axisStart=(0, 0, 0), axisEnd=(0, 1, 0))
resul... | 6 | 31 | 2.359535 |
train_c510b25813e8aea4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.147, 0, -0.197), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.764, 1).lineTo(0.764, 0.114).threePointArc((0.426, -0.322), (0.764, -0.322)).lineTo(0.764, -1).lineTo(-0.619, -1).lineTo(-0.619, -0.666).threePointArc((-0.764, -0.382), (-0.619, -0.38... | 18 | 228 | 1.838451 |
train_e74de6522cb2a5c2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.039, -0.285, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.221, 0.156).lineTo(0.221, -0.156).lineTo(-0.221, -0.156).lineTo(-0.221, 0.156).lineTo(-0.081, 0.156).lineTo(-0.081, -0.015).lineTo(0.081, -0.015).lineTo(0.081, 0.156).lineTo(0.221, 0.... | 6 | 26 | 0.317204 |
train_e9463f9c856aa8c5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.076, 0.273, 0.162), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.597, 0.701).threePointArc((-0.182, 0.7), (0.339, 0.289)).threePointArc((0.662, -0.291), (0.597, -0.701)).threePointArc((0.182, -0.7), (-0.339, -0.289)).threePointArc((-0.662, 0.2... | 6 | 20 | 0.894356 |
train_14fc302b0f1c3507 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.076, 0, -0.245), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.444, -0.123).threePointArc((-0.741, -0.245), (-0.444, 0.123)).lineTo(0.593, 0.123).threePointArc((0.741, 0.245), (0.593, -0.123)).lineTo(-0.444, -0.123).close().extrude(0.49, taper=6... | 1 | 10 | 0.256604 |
train_91bcca67a46e3136 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.406, 0.036, 0.303), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.252, 0.34).threePointArc((0.328, 0.309), (0.359, 0.233)).lineTo(0.359, -0.135).threePointArc((0.328, -0.212), (0.252, -0.243)).lineTo(-0.252, -0.243).threePointArc((-0.328, -0.212),... | 13 | 195 | 2.041277 |
train_321760e098de6611 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.072), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.233, 0.767).lineTo(0.233, -0.767).threePointArc((0, -1), (-0.233, -0.767)).lineTo(-0.233, 0.767).threePointArc((0, 1), (0.233, 0.767)).close().extrude(0.043)
result = result.union(cq.Workp... | 25 | 576 | 0.076714 |
train_827c3ba906752d38 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.099, 0.002, -0.637), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.545, 0.61).threePointArc((0.882, 0.523), (0.898, 0.254)).lineTo(0.372, -0.042).threePointArc((0.319, -0.091), (0.389, -0.108)).lineTo(0.976, -0.118).threePointArc((1.054, -0.49), ... | 6 | 47 | 1.740732 |
train_fc9019490d636e28 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.341), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.558, 0.908).lineTo(-0.558, -0.591).lineTo(1, -0.591).lineTo(1, -0.908).lineTo(-1, -0.908).lineTo(-1, 0.908).lineTo(-0.558, 0.908).close().extrude(0.681)
result = result.cut(cq.Workplane(c... | 17 | 8 | 0.882956 |
train_1d50f6921d6a5d0c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.567, -0.101, -0.8), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.432, 0.039).lineTo(0.432, 0.024).lineTo(0.353, 0.024).lineTo(0.353, 0.008).lineTo(0.432, 0.008).lineTo(0.432, -0.039).lineTo(0.338, -0.039).lineTo(0.338, -0.024).lineTo(0.416, -0.0... | 9 | 167 | 1.067052 |
train_2d4f04892cd6666b | import cadquery as cq
import math
result = cq.Workplane('XY').moveTo(-0.394, 1).threePointArc((-0.292, 0.949), (-0.249, 0.846)).lineTo(-0.249, 0.578).threePointArc((-0.225, 0.522), (-0.168, 0.498)).lineTo(0.644, 0.498).threePointArc((0.716, 0.467), (0.747, 0.395)).lineTo(0.747, 0.147).threePointArc((0.703, 0.044), (0.5... | 7 | 58 | 2.52794 |
train_1604ddba61220891 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.006, 0, -0.443), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(1).extrude(0.885)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.998, 0, -0.443), normal=(0, 0, 1), xDir=(1, 0, 0))).pushPoints([(0, 0), (-0.683, 0.943), (-1.798, 0.584), (-1.798, -... | 12 | 106 | 1.739929 |
train_38f8fdea8c5d85ab | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.107, -0.028, -0.568), normal=(-0.024, 0.415, 0.91), xDir=(0, -0.91, 0.415))).moveTo(0.43, 0.77).lineTo(0.43, -0.77).lineTo(-0.43, -0.77).lineTo(-0.43, 0.77).lineTo(-0.282, 0.77).lineTo(-0.282, -0.395).lineTo(0.282, -0.395).lineTo(0.282, 0.77).l... | 14 | 262 | 0.824182 |
train_615e7c7569dcf6de | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.237, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.119, 0.441).threePointArc((0.193, 0.41), (0.223, 0.337)).lineTo(0.223, 0.137).threePointArc((0.193, 0.063), (0.119, 0.033)).lineTo(-0.119, 0.033).threePointArc((-0.193, 0.063), (-0.223, 0... | 7 | 58 | 0.337983 |
train_052e069e3320cd96 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.406, -0.434, 0.214), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.594, 0.481).lineTo(0.594, -0.481).lineTo(-0.594, -0.481).lineTo(-0.594, 0.481).lineTo(-0.284, 0.481).lineTo(-0.284, -0.17).lineTo(0.284, -0.17).lineTo(0.284, 0.481).lineTo(0.594, 0... | 18 | 431 | 1.72036 |
train_6354fb435ba2085c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, -0.063, -1), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.674, 2).lineTo(0.674, 1.247).lineTo(0.596, 1.247).lineTo(0.596, 0.628).lineTo(0.183, 0.628).lineTo(0.183, 0.222).lineTo(0.488, 0.222).lineTo(0.488, 0).lineTo(0, 0).lineTo(0, 2).line... | 6 | 41 | 1.218057 |
train_5b117acdd16bb0e7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.1, -0.256, -0.104), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.833, 0.743).threePointArc((0.833, -0.351), (0.019, -0.743)).lineTo(-0.833, 0.743).close().extrude(0.157)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.547, -0.586, -0.128),... | 9 | 270 | 0.592337 |
train_9d4b8b711695abab | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.057, -0.05), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.237).lineTo(1, -0.237).threePointArc((-1, 0), (1, 0.237)).close().extrude(0.172, both=True)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.005, -0.057, 0.199), normal=(0, 0, 1... | 17 | 105 | 0.362229 |
train_91c240911d7ceead | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.002, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.522, 0.246).threePointArc((0.858, 0.194), (1, 0.07)).lineTo(1, -0.148).threePointArc((0.921, -0.217), (0.734, -0.246)).lineTo(-0.185, -0.246).threePointArc((-0.289, -0.23), (-0.333, -0.191... | 7 | 18 | 0.282557 |
train_ad8777a8872f0a8a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.278), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.626, 0.783).lineTo(0.626, 0.47).lineTo(0.94, 0.47).lineTo(0.94, 0.157).lineTo(0.314, 0.157).lineTo(0.314, -0.157).lineTo(0, -0.157).lineTo(0, -0.47).lineTo(-0.314, -0.47).lineTo(-0.314, -0... | 8 | 42 | 0.754198 |
train_f706e18260812d1f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.344), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.916, 0.871).threePointArc((0.974, 0.847), (1, 0.787)).lineTo(1, -0.804).threePointArc((0.979, -0.852), (0.931, -0.871)).lineTo(-0.938, -0.871).threePointArc((-0.981, -0.854), (-1, -0.811))... | 13 | 88 | 1.562717 |
train_f271d5f489d122a4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.204), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(1).extrude(0.407)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, -0.204), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.935).extrude(1.22, both=True))
result = result.union(cq.Workpla... | 13 | 93 | 0.45065 |
train_a36d73c3c7544fe4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.245, 0.074, -0.694), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.431, 0.925).threePointArc((-0.3, 0.883), (-0.245, 0.784)).lineTo(-0.245, 0.29).threePointArc((-0.204, 0.216), (-0.106, 0.185)).lineTo(0.125, 0.185).threePointArc((0.209, 0.158), (... | 20 | 121 | 1.661243 |
train_c94a53c842e94700 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.142), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.61, 0.82).lineTo(0.958, 0.47).lineTo(0.958, -0.508).lineTo(0.648, -0.82).lineTo(-0.707, -0.82).lineTo(-0.958, -0.568).lineTo(-0.958, 0.226).lineTo(-0.366, 0.82).lineTo(0.61, 0.82).close().... | 15 | 120 | 0.374844 |
train_175020fdcbc22c81 | import cadquery as cq
import math
result = cq.Workplane('XY').moveTo(0.406, 1).threePointArc((0.82, 0.82), (1, 0.406)).lineTo(1, -0.488).threePointArc((0.84, -0.84), (0.488, -1)).lineTo(-0.389, -1).threePointArc((-0.815, -0.815), (-1, -0.389)).lineTo(-1, 0.691).threePointArc((-0.901, 0.901), (-0.691, 1)).lineTo(0.406, ... | 18 | 161 | 2.177144 |
train_7e02699db31d747f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.383), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.646).lineTo(1, -0.605).lineTo(0.922, -0.68).lineTo(-0.906, -0.68).threePointArc((-0.972, -0.653), (-1, -0.587)).lineTo(-1, 0.59).lineTo(-0.909, 0.68).lineTo(0.965, 0.68).threePointArc((... | 10 | 125 | 0.806397 |
train_3457004c29a28cad | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.792, 0.05), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.105, 0.396).threePointArc((0.241, 0.34), (0.297, 0.204)).lineTo(0.297, -0.204).threePointArc((0.241, -0.34), (0.105, -0.396)).lineTo(-0.055, -0.396).threePointArc((-0.19, -0.34), (-0.247... | 3 | 29 | 0.629464 |
train_ec3c50a5ae427692 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.536, 0.16), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.615, 1.397).lineTo(0.615, -0.324).threePointArc((-0.615, 0.537), (0.615, 1.397)).close().extrude(1.207)
result = result.cut(cq.Workplane(cq.Plane(origin=(-2.806, 0.657, 0.15), normal=(1... | 11 | 102 | 1.966466 |
train_cb2306c8a236e019 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.408, 0.433, -0.409), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.312, 0.524).lineTo(0.56, 0).lineTo(0.062, -0.524).lineTo(-0.062, -0.524).lineTo(-0.187, -0.524).lineTo(-0.312, -0.394).lineTo(-0.436, -0.131).threePointArc((-0.56, 0), (-0.436, 0)... | 3 | 32 | 2.537006 |
train_0d9efcf38e80f645 | import cadquery as cq
import math
result = cq.Workplane('XY').moveTo(-0.552, 0.243).lineTo(-0.552, -0.161).lineTo(1, -0.161).lineTo(1, -0.243).lineTo(-1, -0.243).lineTo(-1, 0.243).lineTo(-0.552, 0.243).close().extrude(0.353, both=True)
result = result.edges().chamfer(0.012)
result = result.cut(cq.Workplane(cq.Plane(ori... | 7 | 59 | 0.101514 |
train_f5c1199a8f2882f7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.107), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.498, 1).lineTo(0.498, 0).lineTo(1, 0).lineTo(1, -1).lineTo(-1, -1).lineTo(-1, -0.498).lineTo(-0.498, -0.498).lineTo(-0.498, 0.498).lineTo(0, 0.498).lineTo(0, 1).lineTo(0.498, 1).close().ex... | 8 | 86 | 0.419207 |
train_3cca40bbba323871 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.08, -0.713), normal=(0, 0, 1), xDir=(1, 0, 0))).workplane(offset=0).moveTo(0.65, 0.371).lineTo(0.93, -0.371).lineTo(-0.93, -0.371).lineTo(-0.65, 0.371).lineTo(0.65, 0.371).close().workplane(offset=0.856).moveTo(0.775, 0.365).lineTo(0.486, -0... | 8 | 63 | 1.693163 |
train_bd963ed20f2f1a2c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.351, 0.129), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.511, 1.052).threePointArc((-0.344, 1.101), (-0.086, 1.016)).threePointArc((0.196, 0.819), (0.425, 0.562)).threePointArc((0.541, 0.315), (0.511, 0.144)).threePointArc((0.344, 0.095), (... | 7 | 58 | 1.926361 |
train_2298695008dcd763 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.001, -0.215), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.101, 0.903).threePointArc((0.246, 0.867), (0.307, 0.782)).lineTo(0.307, 0.638).threePointArc((0.356, 0.57), (0.471, 0.541)).lineTo(0.776, 0.541).threePointArc((0.878, 0.516), (0.921, 0... | 10 | 81 | 0.864897 |
train_175a97e682767d4c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.142, 0.211, -0.176), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.73, 0.696).lineTo(0.73, 0.389).lineTo(0.179, 0.389).lineTo(0.179, -0.696).lineTo(-0.179, -0.696).lineTo(-0.179, 0.389).lineTo(-0.73, 0.389).lineTo(-0.73, 0.696).lineTo(0.73, 0.696... | 41 | 164 | 1.078291 |
train_25b38cb1e0e970e3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.006, 0.184, -0.337), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.596, 0.461).lineTo(-0.596, -0.294).lineTo(0.994, -0.294).lineTo(0.994, -0.461).lineTo(-0.994, -0.461).lineTo(-0.994, 0.461).lineTo(-0.596, 0.461).close().extrude(0.691)
result = ... | 14 | 146 | 0.611338 |
train_377cfd5b315c70f6 | import cadquery as cq
import math
result = cq.Workplane('XY').moveTo(0.419, 0.333).threePointArc((0.432, 0.328), (0.437, 0.315)).lineTo(0.437, 0.198).threePointArc((0.426, 0.172), (0.4, 0.16)).lineTo(-0.193, 0.16).threePointArc((-0.243, 0.139), (-0.264, 0.089)).lineTo(-0.264, -0.091).threePointArc((-0.244, -0.14), (-0.... | 7 | 55 | 0.692877 |
train_c81832f37bf09231 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.596, -0.432, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 1.19).threePointArc((0.841, 0.841), (1.19, 0)).lineTo(0.493, 0).threePointArc((0.349, 0.349), (0, 0.493)).lineTo(0, 1.19).close().extrude(2)
result = result.union(cq.Workplane(cq.Pl... | 8 | 42 | 1.967873 |
train_9a89e494e6551de9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.221, 0.387, 0.332), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.53, 0.542).lineTo(0.53, 0.169).lineTo(0.214, 0.169).lineTo(0.214, -0.542).lineTo(-0.214, -0.542).lineTo(-0.214, 0.169).lineTo(-0.53, 0.169).lineTo(-0.53, 0.542).lineTo(0.53, 0.542).... | 9 | 105 | 1.065355 |
train_8766b7241e2e46bb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.017, -0.035, 0.365), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.01, 0.227).spline([(0.01, 0.227), (0.22, 0.219)]).lineTo(0.153, -0.176).lineTo(0.017, -0.227).lineTo(-0.144, -0.192).lineTo(-0.22, -0.022).lineTo(-0.177, 0.193).lineTo(0.01, 0.227)... | 20 | 108 | 0.25992 |
train_020d3fb671f61678 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.136), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.357).lineTo(1, -0.357).lineTo(-1, -0.357).lineTo(-1, 0.357).lineTo(1, 0.357).close().extrude(0.273)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.868, -0.225, -0.136), normal=(0,... | 10 | 64 | 0.326587 |
train_fd3dc54a3fdb68d0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.277, 0, -0.243), normal=(0, 0, 1), xDir=(1, 0, 0))).box(1.444, 1.592, 1.343)
result = result.edges().fillet(0.157)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.277, 0, -0.243), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.185).extrude(2.... | 8 | 69 | 2.691778 |
train_08957c5cfd22f27c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.745), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.515, 1).threePointArc((0.572, 0.967), (0.597, 0.909)).lineTo(0.597, 0.725).threePointArc((0.635, 0.635), (0.725, 0.597)).lineTo(0.925, 0.597).threePointArc((0.972, 0.577), (1, 0.531)).line... | 3 | 57 | 2.475254 |
train_adb3bbb27ff992c7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.918, -0.393, 0.071), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.418, 1.011).threePointArc((0.451, 0.909), (0.389, 0.82)).lineTo(0.389, 0.627).lineTo(0.378, 0.435).lineTo(0.418, 0.243).threePointArc((-0.451, 0.627), (0.418, 1.011)).close().work... | 3 | 18 | 2.532185 |
train_73fdf9a010e09436 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.063, -0.054, -0.041), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.25, 0.197).lineTo(0.25, 0.111).lineTo(-0.165, 0.111).lineTo(-0.165, -0.111).lineTo(0.25, -0.111).lineTo(0.25, -0.197).lineTo(-0.25, -0.197).lineTo(-0.25, 0.197).lineTo(0.25, 0.197... | 8 | 67 | 0.529465 |
train_a00c1823d0691b71 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.18, 0.181, -0.135), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.362, 0.638).lineTo(0.73, 0.233).threePointArc((-0.73, -0.638), (-0.362, 0.638)).close().extrude(0.27, taper=9.599)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.302, 0.432... | 3 | 19 | 0.537743 |
train_fba5ce8db557a955 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.897, 0.196, 0.319), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.021, 0.108).lineTo(0.006, 0.08).threePointArc((0.021, 0.075), (0.04, 0.075)).threePointArc((0.073, 0.071), (0.087, 0.046)).lineTo(0.102, -0.001).threePointArc((0.067, -0.012), (0.... | 5 | 62 | 0.165874 |
train_4204001e299934bc | import cadquery as cq
import math
result = cq.Workplane('XZ').moveTo(0.704, 0.39).threePointArc((0.949, 0.263), (1, 0.228)).lineTo(0.807, 0.168).lineTo(0.855, 0.057).lineTo(0.864, -0.02).lineTo(0.748, 0.005).lineTo(0.671, -0.004).lineTo(0.732, -0.192).lineTo(0.654, -0.201).threePointArc((0.535, -0.175), (0.553, -0.33))... | 4 | 26 | 0.771474 |
train_df18b1b6fa7c9925 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.005, -0.008, 0.001), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.026, 0.123).threePointArc((0.086, 0.11), (0.085, 0.015)).threePointArc((0.084, 0.002), (0.106, -0.022)).threePointArc((0.121, -0.045), (0.105, -0.092)).threePointArc((0.047, -0.12... | 5 | 43 | 0.05955 |
train_09f17b194e3d4e6a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.398, -0.26), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.331, 0.733).lineTo(-0.331, -0.064).lineTo(1, -0.064).lineTo(1, -0.733).lineTo(-1, -0.733).lineTo(-1, 0.733).lineTo(-0.331, 0.733).close().extrude(0.52)
result = result.cut(cq.Workplane... | 8 | 51 | 0.596166 |
train_d5a78044b571af06 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.171), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.195, 0.872).threePointArc((0.761, 0.641), (1, 0.072)).lineTo(1, -0.016).threePointArc((0.745, -0.625), (0.139, -0.872)).lineTo(-0.215, -0.872).threePointArc((-0.769, -0.645), (-1, -0.092))... | 16 | 79 | 0.406427 |
train_1cfab252e48cfced | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.174), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.944, 1).lineTo(0.944, -1).lineTo(-0.084, -1).threePointArc((-0.696, -0.744), (-0.944, -0.133)).lineTo(-0.944, 0.122).threePointArc((-0.692, 0.74), (-0.075, 1)).lineTo(0.944, 1).close().ext... | 7 | 32 | 0.963491 |
train_09dd27249459774a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.012, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.257, 0.546).lineTo(0.297, 0.461).threePointArc((0.299, 0.452), (0.298, 0.443)).lineTo(0.275, 0.366).threePointArc((0.268, 0.349), (0.259, 0.335)).lineTo(0.106, 0.149).threePointArc((0.095, ... | 2 | 35 | 1.550095 |
train_5c0fd86ace435083 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.199), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(1, 0.525).lineTo(1, 0).lineTo(-1, 0).lineTo(-1, 0.525).lineTo(-0.736, 0.525).lineTo(-0.736, 0.26).lineTo(0.736, 0.26).lineTo(0.736, 0.525).lineTo(1, 0.525).close().extrude(0.443, both=True)... | 8 | 76 | 0.511397 |
train_2a72d8e7b0d71476 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.166, 1.386).lineTo(0.166, 1.337).lineTo(0.628, 1.337).lineTo(0.628, 0.922).lineTo(0.659, 0.922).lineTo(0.659, 0.784).lineTo(0.265, 0.784).lineTo(0.265, 0).lineTo(0, 0).lineTo(0, 1.386).lineTo... | 3 | 18 | 0.972013 |
train_879c2b9cd651c52d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.22, -0.257, -0.951), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.694, 0.282).lineTo(0.694, 0.208).threePointArc((0.681, 0.191), (0.648, 0.184)).lineTo(-0.405, 0.184).threePointArc((-0.446, 0.175), (-0.463, 0.153)).lineTo(-0.463, 0.078).threePoi... | 8 | 153 | 1.252976 |
train_49a5972912931bdf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.501, -0.182, -0.5), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.085, 0.569).threePointArc((0.321, 0.579), (0.472, 0.482)).threePointArc((0.496, 0.304), (0.387, 0.094)).threePointArc((0.175, -0.093), (-0.085, -0.206)).threePointArc((-0.321, -0.2... | 7 | 852 | 0.794817 |
train_d8272c430c763ef9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.998, 0.054, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.166, 1.051).lineTo(0.518, 0.297).threePointArc((0.567, 0.16), (0.657, 0.018)).lineTo(0.716, -0.324).lineTo(0.395, -0.945).lineTo(-0.101, -0.713).lineTo(-0.716, -0.741).lineTo(-0.631, -... | 18 | 26 | 1.45145 |
train_25934dccd119b70e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.125), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.686, 0.25).lineTo(0.92, 0.168).lineTo(1, 0.087).lineTo(1, 0).lineTo(0.88, 0).lineTo(0.88, 0.075).lineTo(0.78, 0.168).lineTo(0, 0.13).lineTo(0, 0.25).lineTo(0.686, 0.25).close().revolve(an... | 9 | 45 | 0.210434 |
train_379f170164fce6e6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.01, -0.169, -0.023), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.495, 0.081).threePointArc((-0.989, 0.243), (-0.495, 0.406)).threePointArc((0.495, 0.406), (0.495, 0.243)).threePointArc((0.989, -0.406), (0, -0.243)).close().extrude(2.674, both=... | 17 | 74 | 1.688595 |
train_2e5b6835adccf993 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.421, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.536, 0.421).threePointArc((0, -0.115), (-0.536, 0.421)).threePointArc((0, 0.956), (0.536, 0.421)).close().extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(2.439, -0.337, -3.73... | 5 | 8 | 1.790836 |
train_f08bb0ba75266f5d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.318, 0.019, 0.627), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.006, 0.694).lineTo(0.369, 0.432).lineTo(0.237, 0.051).lineTo(-0.063, -0.232).lineTo(-0.369, 0.064).lineTo(-0.355, 0.443).lineTo(-0.006, 0.694).close().extrude(1.078)
result = resu... | 7 | 51 | 0.648459 |
train_5cfda3391c810df1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.172, -0.66), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.159, 0.794).lineTo(0.159, 0.477).lineTo(0.477, 0.477).lineTo(0.477, -0.159).lineTo(0.159, -0.159).lineTo(0.159, -0.477).lineTo(-0.159, -0.477).lineTo(-0.159, -0.794).lineTo(-0.477, -0.... | 17 | 68 | 1.310123 |
train_6f7e08367abf452c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.215, 0.374, -0.28), normal=(0.5, 0.316, 0.806), xDir=(-0.534, 0.845, 0))).moveTo(0.317, 0.704).lineTo(0.317, 0.422).lineTo(-0.226, 0.422).lineTo(-0.226, 0.141).lineTo(0.317, 0.141).lineTo(0.317, -0.704).lineTo(-0.317, -0.704).lineTo(-0.317, -0.... | 4 | 88 | 1.181034 |
train_13fd62675fd32160 | 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.003, 0.088).lineTo(0.09, 0.077).lineTo(0.123, 0.043).threePointArc((0.122, 0.025), (0.139, 0.022)).lineTo(0.147, 0.005).lineTo(0.135, -0.009).lineTo(0.136, -0.028).lineTo(0.115, -0.038).three... | 6 | 55 | 0.068322 |
train_42abc8feef560322 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.347, -0.229, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.693).threePointArc((0.49, 0.49), (0.693, 0)).lineTo(0.37, 0).threePointArc((0.261, 0.261), (0, 0.37)).lineTo(0, 0.693).close().extrude(2)
result = result.union(cq.Workplane(cq.Pla... | 6 | 31 | 0.601161 |
train_6517b31175250451 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.25, 0.283, 0.007), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.221, 0.383).threePointArc((0.427, 0.114), (0.383, -0.221)).threePointArc((0.114, -0.427), (-0.221, -0.383)).threePointArc((-0.427, -0.114), (-0.383, 0.221)).threePointArc((-0.114, 0.... | 11 | 100 | 1.319984 |
train_0440700724293e30 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.782, 2).lineTo(0.782, 0.116).lineTo(0.452, 0.116).lineTo(0.452, 0).lineTo(0.094, 0).lineTo(0.094, 2).lineTo(0.782, 2).close().revolve(angleDegrees=360, axisStart=(0, 0, 0), axisEnd=(0, 1, 0))... | 2 | 14 | 3.626518 |
train_04296e24901fe1ef | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.145), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.511, 2).extrude(0.291)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0.026), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.197, 0.577).lineTo(0.3, 0.24).threePointArc((0.517, -0.05... | 8 | 28 | 0.462339 |
train_5e53dae0114aa9fc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.163), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.824).lineTo(1, 0.477).lineTo(0.173, 0.477).lineTo(0.173, -0.824).lineTo(-0.173, -0.824).lineTo(-0.173, 0.477).lineTo(-1, 0.477).lineTo(-1, 0.824).lineTo(1, 0.824).close().extrude(0.639,... | 20 | 337 | 0.877449 |
train_9a0964a3a54781b5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.092), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.54).lineTo(1, -0.54).lineTo(-0.5, -0.54).lineTo(-0.5, 0).lineTo(-1, 0).lineTo(-1, 0.54).lineTo(1, 0.54).close().extrude(0.886, both=True)
result = result.cut(cq.Workplane(cq.Plane(origi... | 18 | 131 | 1.415166 |
train_8543b3ca8d2e598c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.004, 0, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.018, 0.1).lineTo(0.078, 0.065).lineTo(0.102, 0).lineTo(0.078, -0.065).lineTo(0.018, -0.1).lineTo(-0.05, -0.088).lineTo(-0.095, -0.035).lineTo(-0.095, 0.035).lineTo(-0.05, 0.088).lineTo(0.0... | 1 | 11 | 0.059558 |
train_a8589e3447360c8a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.21, 0.112, 0.231), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.041, 0.791).lineTo(0.674, 0.076).lineTo(-0.041, -0.556).lineTo(-0.674, 0.159).lineTo(0.041, 0.791).close().moveTo(0.035, 0.602).lineTo(0.079, 0.487).lineTo(-0.035, 0.443).lineTo(-0... | 6 | 175 | 0.194031 |
train_a4d44cd97fe29fca | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.453, -0.449, 0.079), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.134, 0.203).lineTo(0.134, -0.176).threePointArc((0.022, -0.288), (-0.091, -0.176)).lineTo(-0.134, -0.049).lineTo(-0.08, 0.077).threePointArc((-0.075, 0.141), (-0.091, 0.203)).thre... | 12 | 436 | 0.286907 |
train_b416d3bba61fb974 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.353, 0.373, 0.351), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.627, 0).threePointArc((0, -0.627), (-0.627, 0)).threePointArc((0, 0.627), (0.627, 0)).close().extrude(0.268)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.121, 0.373, 0.35... | 10 | 241 | 1.201256 |
train_0afc7302520c0a0c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.128, 0, -0.225), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.319, 0.921).threePointArc((0.389, 0.901), (0.459, 0.877)).threePointArc((0.525, 0.845), (0.585, 0.805)).threePointArc((0.641, 0.758), (0.691, 0.705)).threePointArc((0.735, 0.647), (0.7... | 10 | 118 | 0.660275 |
train_fcf43bdf8dc13119 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.891, 0, 0.594), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.038, 1.2).threePointArc((0.078, 1.199), (0.112, 1.18)).threePointArc((0.145, 1.153), (0.188, 1.149)).threePointArc((0.338, 1.086), (0.401, 0.936)).lineTo(0.401, 0.831).threePointArc((0... | 9 | 104 | 1.370813 |
train_243f88c5b0055d3b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.122), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.274, 0.243).lineTo(0.274, 0).lineTo(-0.274, 0).lineTo(-0.274, 0.243).lineTo(-0.122, 0.243).lineTo(-0.122, 0.153).lineTo(0.122, 0.153).lineTo(0.122, 0.243).lineTo(0.274, 0.243).close().ext... | 6 | 31 | 0.201436 |
train_0ca4528fbdf2e869 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.308, -0.445), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.939, 0.549).threePointArc((0.976, 0.533), (1, 0.495)).lineTo(1, -0.463).threePointArc((0.967, -0.524), (0.906, -0.549)).lineTo(-0.877, -0.549).threePointArc((-0.958, -0.516), (-1, -0.4... | 10 | 65 | 1.279447 |
train_fea95444253c0b5c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.113, -0.041, -0.218), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.526, -0.452).threePointArc((-0.584, 0.892), (0.564, -0.009)).lineTo(0.753, -0.714).threePointArc((0.649, -0.892), (0.33, -0.827)).lineTo(0.103, 0.019).threePointArc((0.169, 0.339... | 8 | 180 | 0.631936 |
train_06852b6952b2f65f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.557, 0.473, -0.081), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.028, 0.334).lineTo(0.067, 0.295).lineTo(0.067, 0.238).lineTo(0.105, 0.2).lineTo(0.16, 0.2).lineTo(0.2, 0.16).lineTo(0.2, -0.313).lineTo(0.179, -0.334).lineTo(0.101, -0.334).lineTo... | 14 | 71 | 0.550656 |
train_9d293eb918ca8020 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.286, -0.079, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.571).threePointArc((0.404, 0.404), (0.571, 0)).lineTo(0.171, 0).threePointArc((0.121, 0.121), (0, 0.171)).lineTo(0, 0.571).close().extrude(2)
result = result.union(cq.Workplane(cq... | 4 | 19 | 0.562182 |
train_c28cc9662b14b621 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.439), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.308, 0.944).lineTo(0.805, 0.585).lineTo(1, 0).lineTo(0.805, -0.585).lineTo(0.308, -0.944).lineTo(-0.308, -0.944).lineTo(-0.805, -0.585).lineTo(-1, 0).lineTo(-0.805, 0.585).lineTo(-0.308, 0... | 8 | 63 | 2.138905 |
train_3328944e145cfaec | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.099), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 1).lineTo(1, 0).lineTo(0, -1).lineTo(-1, 0).lineTo(0, 1).close().extrude(0.419)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, -0.099), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(... | 5 | 41 | 0.775299 |
train_f5808980c980d1b3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1.113, -0.342, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.289, 2.113).lineTo(0.289, 1.59).lineTo(0.947, 1.59).lineTo(0.947, 0.636).lineTo(0.289, 0.636).lineTo(0.289, 0.113).lineTo(-0.289, 0.113).lineTo(-0.289, 0.636).lineTo(-0.947, 0.636).li... | 13 | 382 | 1.369968 |
train_1fe16e0592f2ff31 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.153, 0.54, -0.267), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.306, 0.459).lineTo(0.459, 0.306).lineTo(0.153, 0).lineTo(0.459, -0.306).lineTo(0.306, -0.459).lineTo(0, -0.153).lineTo(-0.306, -0.459).lineTo(-0.459, -0.306).lineTo(-0.153, 0).lineT... | 13 | 228 | 0.085655 |
train_3a76469e5900d69a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.363), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.108, 1).threePointArc((0.149, 0.983), (0.167, 0.941)).lineTo(0.167, 0.554).threePointArc((0.232, 0.399), (0.387, 0.333)).lineTo(0.67, 0.333).threePointArc((0.785, 0.285), (0.833, 0.17)).li... | 19 | 26 | 1.127094 |
train_8c1817192dd62f1e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.392, -0.951, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.126, 1.509).threePointArc((0.254, 1.322), (0.565, 1.035)).threePointArc((0.726, 0.726), (0.691, 0.478)).threePointArc((0.472, 0.356), (0.126, 0.393)).threePointArc((-0.254, 0.581), (... | 10 | 416 | 0.984272 |
train_193f567bca559ce1 | import cadquery as cq
import math
result = cq.Workplane('XY').moveTo(0.343, 0.377).threePointArc((0.364, 0.368), (0.374, 0.348)).lineTo(0.374, 0.209).threePointArc((0.362, 0.185), (0.336, 0.175)).lineTo(-0.113, 0.175).threePointArc((-0.14, 0.164), (-0.152, 0.139)).lineTo(-0.152, -0.086).threePointArc((-0.122, -0.148), ... | 21 | 151 | 0.72701 |
train_6376ea8a2726eb7c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.151), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.884, -0.156).lineTo(0.97, -0.206).lineTo(0.938, -0.321).lineTo(0.844, -0.308).lineTo(0.781, -0.45).lineTo(0.84, -0.527).lineTo(0.775, -0.624).lineTo(0.691, -0.579).lineTo(0.581, -0.69).lin... | 4 | 104 | 0.670127 |
train_3992b599d668462c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.409, 0, -0.08), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.591).extrude(0.264, both=True)
result = result.union(cq.Workplane(cq.Plane(origin=(0.409, 0, -0.08), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.583).extrude(0.317, both=True))
result =... | 10 | 103 | 0.38796 |
train_e87bb565a233f943 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.815, -0.025, 0.531), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.039, 0.273).threePointArc((0.123, 0.167), (0.163, 0.085)).threePointArc((0.159, 0.036), (0.185, -0.003)).lineTo(0.183, -0.169).threePointArc((0.142, -0.192), (0.124, -0.273)).line... | 2 | 34 | 0.199865 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.