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_ab2b3de9097571d6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.072, 0.082, 0.019), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.189, 0.449).lineTo(0.189, -0.211).lineTo(-0.189, -0.211).lineTo(-0.189, 0.449).lineTo(0.189, 0.449).close().extrude(0.839)
result = result.union(cq.Workplane(cq.Plane(origin=(0.084... | 22 | 134 | 0.175695 |
train_6817f9611241dc29 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.858, -0.875), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.117, 0.052).threePointArc((-0.694, 1.285), (0.667, 1.326)).threePointArc((0.694, 0.431), (-0.117, 0.052)).close().extrude(1.875)
result = result.edges().chamfer(0.137)
result = resul... | 3 | 11 | 3.8199 |
train_4a9224c80dad4273 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.738, 0, -0.129), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.112, 0.075).lineTo(-0.112, 0.07).lineTo(-0.118, 0.07).lineTo(-0.118, 0.064).lineTo(-0.123, 0.064).lineTo(-0.123, -0.068).lineTo(-0.118, -0.068).lineTo(-0.118, -0.075).lineTo(0.118, -0... | 13 | 174 | 0.2376 |
train_83354da11aa31523 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.362, -0.266, -0.289), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.885, 0.885).extrude(0.32)
result = result.union(cq.Workplane(cq.Plane(origin=(0.406, -0.221, 0.031), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.796, 0.796).extrude(0.021))
result = r... | 14 | 170 | 0.306393 |
train_619ef4140cc460bd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.341, -1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.347, -0.372).threePointArc((0.147, -0.136), (0.347, 0.372)).lineTo(0.347, -0.323).lineTo(-0.347, -0.372).close().sweep(cq.Workplane('XY').spline([(0.341, -0.7), (0.659, -0.867), (0.978, ... | 1 | 5 | 0.073491 |
train_1a48d59b8dc150d0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.62, -0.003, 0.127), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.06).workplane(offset=0.227).circle(0.121).workplane(offset=0.205).circle(0.122).workplane(offset=0.185).circle(0.061).loft()
result = result.edges().fillet(0.035)
result = result.u... | 28 | 97 | 0.045737 |
train_1d8105b1aa68ecba | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.036), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.088, 1).lineTo(0.088, -0.541).lineTo(-0.029, -0.541).lineTo(-0.029, -0.986).lineTo(-0.044, -1).lineTo(-0.072, -1).lineTo(-0.088, -0.987).lineTo(-0.088, 1).lineTo(0.088, 1).close().extrude(... | 9 | 85 | 0.017578 |
train_72bea84254cc40cd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.307, 0, -0.728), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.386, 1.731).extrude(1.456)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.387, -0.014, -0.976), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.067).extrude(1.747))
result = result.cu... | 29 | 310 | 1.698611 |
train_db57be5da0610b6a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.779, -0.518), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1.098, 0.506).threePointArc((0, 0.048), (1.098, 0.506)).lineTo(0, 1.595).lineTo(-1.098, 0.506).close().extrude(1.036)
result = result.edges().fillet(0.209)
result = result.cut(cq.Workp... | 19 | 124 | 1.179456 |
train_2cd532e49d913e1e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.576, 1.662).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.354, 0.098, -0.379), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.16).extrude(0.894))
result = result.edges().fillet(0.0... | 6 | 40 | 4.471647 |
train_b17e375360788181 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.252, 0.569, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.064, -0.095).lineTo(0.011, 0.095).lineTo(0.064, 0.065).lineTo(0, -0.015).lineTo(-0.064, -0.095).close().sweep(cq.Workplane('XY').spline([(0.072, 0.569), (0.18, 0.42), (0.287, 0.331),... | 12 | 78 | 0.033794 |
train_2e8fc60be5156348 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.811, -0.496, -0.075), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.189, 0.017).lineTo(-0.126, -0.067).lineTo(-0.126, -0.017).lineTo(-0.088, -0.067).lineTo(0.126, -0.067).lineTo(0.189, 0.017).lineTo(0.189, 0.067).lineTo(-0.189, 0.067).lineTo(-0... | 2 | 18 | 0.038567 |
train_493104136367b0ea | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.523), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.898, 1.028).lineTo(-0.708, -0.578).lineTo(-1.029, -0.9).lineTo(-0.901, -1.028).lineTo(1.029, 0.898).lineTo(0.898, 1.028).close().extrude(1.046)
result = result.edges().fillet(0.07)
result ... | 4 | 36 | 0.398844 |
train_c12fde10619ce545 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.096, -0.089, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.437).sweep(cq.Workplane('XY').spline([(-0.806, -0.089), (-0.063, -0.089), (0.291, 0.048), (0.644, 0.184), (0.999, 0.32)]))
result = result.edges().chamfer(0.206)
result = result.cut(cq... | 6 | 19 | 0.664318 |
train_b1c02626cf9e3b5a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.284, 0, -0.754), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.433, 1.328).extrude(1.127)
result = result.union(cq.Workplane(cq.Plane(origin=(0.689, 0.165, -0.477), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.311).extrude(0.173))
result = result.un... | 4 | 17 | 2.226953 |
train_dde9ff057a7e2452 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.383, -0.785, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.277, 0.495).lineTo(0.277, 0.045).threePointArc((0.284, 0.028), (0.268, 0.035)).lineTo(-0.268, 0.035).threePointArc((-0.284, 0.028), (-0.277, 0.045)).lineTo(-0.277, 0.485).lineTo(-0.2... | 13 | 37 | 0.177009 |
train_6f1ac6f326a1509b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.374, -0.011, -0.084), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.626, 0.005).lineTo(-0.626, 0.058).lineTo(0.626, 0.058).lineTo(0.626, 0.005).lineTo(-0.626, 0.005).close().extrude(0.148)
result = result.edges().fillet(0.017)
result = result.cut... | 11 | 130 | 0.015678 |
train_59323e3b8e70f94b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.125, 0, -0.528), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.75, 0.992).extrude(1.056)
result = result.union(cq.Workplane(cq.Plane(origin=(0.866, 0.06, -0.422), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.269, 0.521).extrude(0.561))
result = result... | 11 | 100 | 1.664691 |
train_0c40bc643a370066 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.647), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.182, 0.466).extrude(0.649)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, -0.012), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.099, 0.362).extrude(0.313))
result = result.union(cq.W... | 12 | 78 | 0.074393 |
train_ef05a51fad08bd67 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.127, -0.003), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.449).lineTo(-0.071, 0.449).lineTo(-0.071, 0.132).lineTo(-0.122, -0.097).lineTo(-0.141, -0.185).lineTo(0.141, -0.185).lineTo(0.122, -0.097).lineTo(0.071, 0.132).lineTo(0.071, -0.09... | 10 | 114 | 0.216078 |
train_e8854c615973c47a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.846, 0.5), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.046, 1.694).threePointArc((-0.272, 1.633), (-0.5, 1.694)).lineTo(-0.5, 0.178).lineTo(-0.5, -0.003).lineTo(0.5, -0.003).lineTo(0.5, 0.178).lineTo(0.43, 0.178).lineTo(0.023, 0.178).lineTo(... | 8 | 39 | 0.705087 |
train_40069f6857ac65de | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.214, -0.027, -0.129), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.044, 0.003).lineTo(-0.044, 0.028).lineTo(0, 0.053).lineTo(0.044, 0.028).lineTo(0.044, 0.003).threePointArc((0.038, -0.019), (0.022, -0.035)).threePointArc((0, -0.041), (-0.022,... | 20 | 309 | 0.148395 |
train_602ad918b02debbc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.941, 1.186).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.208, 0.314, -0.8), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.852, 0.587).extrude(1.247))
result = result.edges().chamf... | 3 | 51 | 3.957274 |
train_9d38a9e421efb8b3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.096, 0.093, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.005).lineTo(-1, 0.181).lineTo(1, 0.181).lineTo(1, 0.005).lineTo(-1, 0.005).close().extrude(0.193)
result = result.edges().fillet(0.062)
result = result.cut(cq.Workplane(cq.Plane(or... | 13 | 68 | 0.049529 |
train_a62acdba5d4fbf89 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.463, 0.064, -0.313), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.165, 0.508).threePointArc((0.002, 0.537), (0.169, 0.506)).threePointArc((0.315, 0.421), (0.424, 0.291)).threePointArc((0.481, 0.131), (0.48, -0.038)).threePointArc((0.422, -0.19... | 7 | 47 | 0.096751 |
train_38f94fab96dc0f44 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.02), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.068, 0.717).lineTo(-0.068, -0.717).lineTo(0.068, -0.717).lineTo(0.068, 0.717).lineTo(-0.068, 0.717).close().workplane(offset=0.008).moveTo(-0.072, 0.759).lineTo(-0.072, -0.759).lineTo(0.07... | 4 | 11 | 0.012309 |
train_fd9269d23b9f7931 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.37, 1.716).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.195, -0.595, -0.097), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.276).extrude(0.49))
result = result.cut(cq.Workplane(... | 14 | 143 | 2.772757 |
train_c300c7ced3569a68 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.28, -0.396), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.486, 1.44).extrude(0.791)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.259, -0.381, -0.02), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.533, 1.728).extrude(0.265))
result = result.... | 30 | 147 | 0.86075 |
train_9d3bda5f6fdd4bc9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.037, -0.5, 0.5), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.5, 0.062).lineTo(-0.5, 0.012).lineTo(0.5, 0.012).lineTo(0.5, 0.062).lineTo(-0.5, 0.062).close().revolve(angleDegrees=180, axisStart=(-0.5, 0.062), axisEnd=(-0.5, 0.012))
result = res... | 5 | 21 | 0.077536 |
train_ba1a3aef02a35aba | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.472, -0.108, -0.11), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.859, 0.488).lineTo(-0.837, 0.015).lineTo(0.859, 0.015).lineTo(0.859, 0.488).lineTo(-0.859, 0.488).close().extrude(0.485)
result = result.edges().fillet(0.121)
result = result.uni... | 18 | 71 | 0.45268 |
train_661768b22ab52a12 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.652, -0.469, -0.651), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.03, 0.399).lineTo(-0.03, -0.189).lineTo(0.414, -0.189).lineTo(0.414, 0.518).lineTo(-0.117, 1.084).lineTo(-0.414, 0.796).lineTo(-0.03, 0.399).close().extrude(0.788)
result = resu... | 13 | 303 | 0.726602 |
train_e46470c3baa2184f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.501, -0.52, -0.501), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.501, 0.787).lineTo(-0.501, 0.253).lineTo(-0.109, 0.253).threePointArc((0, 0.361), (0.109, 0.253)).lineTo(0.501, 0.253).lineTo(0.501, 0.787).lineTo(-0.334, 0.787).lineTo(-0.501, 0.... | 13 | 107 | 0.736403 |
train_9b545a0d0978b035 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.425, -0.647, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.507).sweep(cq.Workplane('XY').spline([(-0.425, -0.006), (-0.223, 0.36), (-0.021, 0.36), (0.181, -0.006)]))
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.248, -0.606, -0.679), ... | 3 | 11 | 0.813241 |
train_fe0c664746b4bef0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.481, -0.003, -0.007), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.08, 0.036).extrude(0.02)
result = result.faces('>Z').shell(-0.002)
result = result.union(cq.Workplane(cq.Plane(origin=(0.469, 0.019, -0.003), normal=(0, 0, 1), xDir=(1, 0, 0))).rect... | 13 | 134 | 0.000569 |
train_736c2fbd56fe62b2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 1.985, -0.103), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.211, 1.963).lineTo(-0.003, 2.008).lineTo(-0.211, 1.031).lineTo(0.003, 0.985).lineTo(0.211, 1.963).close().revolve(angleDegrees=270, axisStart=(0.211, 1.963), axisEnd=(-0.003, 2.008))
r... | 4 | 14 | 0.478845 |
train_0d4800668d86bf18 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.906, 0, 0.265), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.095).sweep(cq.Workplane('XZ').spline([(-0.906, -0.344), (-0.536, -0.336), (-0.167, -0.389), (0.202, -0.526), (0.571, -0.723)]))
result = result.faces('>Y').shell(-0.023)
| 2 | 3 | 0.004058 |
train_6ad2e7c04427a6d5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.047, 0.606, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.9, -0.653).lineTo(-0.9, 0.597).lineTo(-1, 0.597).lineTo(-1, 0.747).lineTo(1, 0.747).lineTo(1, 0.597).lineTo(0.9, 0.597).lineTo(0.9, -0.653).lineTo(-0.9, -0.653).close().extrude(1.212)... | 6 | 88 | 2.750397 |
train_41329528427369c1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.027, 0.363, 0.434), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.28, 0.378).lineTo(0.093, 0.27).lineTo(-0.094, 0.162).lineTo(-0.28, 0.055).lineTo(-0.093, -0.054).lineTo(0.094, -0.162).lineTo(0.28, -0.269).lineTo(0.28, 0.378).close().extrude(0.5... | 13 | 80 | 0.208094 |
train_06cf8f6fbbbbc334 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.712, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.114, 0.106).lineTo(-0.606, 0.106).lineTo(-0.606, 1.317).lineTo(0.606, 1.317).lineTo(0.606, 0.598).lineTo(0.114, 0.598).lineTo(0.114, 0.106).close().workplane(offset=0.43).moveTo(0.164, -0.... | 5 | 49 | 3.361532 |
train_465e472ad88a7a27 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.217, -0.041, 0.335), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.032, -0.881).threePointArc((-0.013, -0.863), (-0.032, -0.817)).lineTo(-0.032, 0.96).lineTo(0.032, 0.96).lineTo(0.032, -0.881).close().extrude(0.063)
result = result.edges().chamfer... | 6 | 213 | 0.454415 |
train_f0a231238e4fdabc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.25, -0.02, 0.548), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.033, -0.581).threePointArc((0.342, -0.643), (0.405, -0.335)).threePointArc((0.733, -0.233), (0.572, 0.071)).lineTo(0.405, 0.475).lineTo(0, 0.643).lineTo(-0.405, 0.475).lineTo(-0.572... | 8 | 46 | 0.949854 |
train_67d200df9b1cb946 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.476, 0.387, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.433, 0.019).threePointArc((0.612, 0.452), (0.433, 0.885)).lineTo(0, 1.318).lineTo(-0.433, 0.885).threePointArc((-0.612, 0.452), (-0.433, 0.019)).threePointArc((0, -0.16), (0.433, 0.019... | 5 | 29 | 1.30674 |
train_bf359a8732c8027b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.128, -0.108, -0.079), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, 0).lineTo(0.07, -0.121).lineTo(-0.21, -0.121).lineTo(-0.14, 0).lineTo(-0.21, 0.121).lineTo(0.21, 0.121).lineTo(0.14, 0).lineTo(0, 0).close().workplane(offset=0.011).moveTo(0, 0... | 18 | 133 | 0.178978 |
train_dbb648efec36b3f5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.191, -0.421, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.262).lineTo(-1.052, 0.87).lineTo(-1.052, 0.028).lineTo(1.052, 0.028).lineTo(1.052, 0.87).lineTo(0, 0.262).close().workplane(offset=0.134).moveTo(0, 0.292).lineTo(-0.887, 0.803).lin... | 5 | 51 | 0.157549 |
train_95365c9eea5ab7fa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.302, 0.096, -0.256), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.138, -0.07).lineTo(0.138, -0.359).lineTo(-0.571, 0.059).lineTo(-0.271, 0.359).lineTo(0.138, -0.049).lineTo(0.138, 0.002).lineTo(0.571, 0.002).lineTo(0.571, -0.07).lineTo(0.138, -... | 7 | 76 | 0.276438 |
train_2f0de21907954e25 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.033, 0.477, -0.323), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.82, 0.642).extrude(0.232)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.021, 0.522, -0.093), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.302).extrude(0.045))
result = resul... | 22 | 167 | 0.398253 |
train_2d41606ea5c3bc79 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.02, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.017, 1.084).extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.57, -0.006, 0.329), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.062).extrude(0.319))
result = result.union(cq.Wo... | 11 | 143 | 2.119717 |
train_d79f5aa2e68646d3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.74, 0.074, 0.106), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.23, 0.14).lineTo(-0.208, 0.14).threePointArc((0, 0.26), (0.208, 0.14)).lineTo(0.23, 0.14).lineTo(0.23, 0.08).lineTo(0.23, -0.26).lineTo(-0.23, -0.26).lineTo(-0.23, 0.08).lineTo(-0.... | 3 | 18 | 0.171022 |
train_66ec8f2e1c15a590 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.149, 0.111, -0.533), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.117, -0.033).lineTo(0.013, -0.033).threePointArc((0, 0.131), (-0.013, -0.033)).lineTo(-0.117, -0.033).threePointArc((-0.082, 0.166), (0.117, 0.13)).lineTo(0.117, -0.033).close().e... | 26 | 136 | 0.367613 |
train_9d3d15d2baa3e6b2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.277), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.774).extrude(0.874)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.409, 0.025, -0.596), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.39).extrude(0.336))
result = result.edges().cha... | 18 | 159 | 2.361966 |
train_f9bbb208b550fe77 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.576).workplane(offset=0.718).circle(0.343).workplane(offset=0.651).circle(0.865).workplane(offset=0.631).circle(0.669).loft()
result = result.edges().fillet(0.281)
result = result.cut(cq.Workp... | 10 | 34 | 1.991931 |
train_61e552a334d460e3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.144, 0.129, -0.611), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.389, 0.722).lineTo(-0.389, 0.336).lineTo(-0.003, 0.336).lineTo(-0.003, -0.049).lineTo(-0.382, -0.049).lineTo(-0.382, -0.434).lineTo(0.389, -0.434).lineTo(0.389, 0.722).lineTo(-0.... | 17 | 148 | 0.579898 |
train_2afeee0e07da2e75 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.347, -0.241), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.681, 0.063).threePointArc((-0.615, 0.471), (-0.681, 0.88)).lineTo(0.681, 0.88).lineTo(0.681, 0.063).lineTo(-0.681, 0.063).close().extrude(1.214)
result = result.edges().chamfer(0.393... | 9 | 52 | 1.00832 |
train_10c4d5651334fef7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.018, 0.011), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.3).extrude(0.137)
result = result.union(cq.Workplane(cq.Plane(origin=(0.273, -0.045, -0.149), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.385, 0.186).extrude(0.173))
result = result.uni... | 7 | 32 | 0.1081 |
train_22fcb95605615401 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.066, -0.611, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.202, 0.176).lineTo(-0.24, 0.119).lineTo(-0.202, -0.176).lineTo(0.24, -0.119).lineTo(0.202, 0.176).close().sweep(cq.Workplane('XY').spline([(-0.066, -0.081), (0.082, 0.124), (-0.082, ... | 2 | 16 | 0.120884 |
train_ed6b204ef7a556d7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.469, -0.434, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.283, 1.621).threePointArc((0.14, 0.904), (0.283, 0.083)).threePointArc((0.253, -0.329), (0.172, -0.734)).lineTo(-0.283, -0.734).lineTo(-0.283, 1.621).close().workplane(offset=0.262).... | 7 | 62 | 0.219451 |
train_7e95f011c010b499 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.284, -0.478, 0.478), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.238, -0.478).lineTo(0.238, -0.478).lineTo(0.238, 0).lineTo(0.716, 0).lineTo(0.716, 0.478).lineTo(-0.716, 0.478).lineTo(-0.716, 0).lineTo(-0.238, 0).lineTo(-0.238, -0.478).close()... | 7 | 49 | 0.697806 |
train_f40e130d45b73ca7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.134, -0.014, -0.057), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.866, -0.736).lineTo(0.856, -0.738).lineTo(0.859, 0.767).lineTo(-0.835, 0.733).close().moveTo(-0.153, 0.208).lineTo(-0.177, 0.267).lineTo(-0.234, 0.293).lineTo(-0.293, 0.268).lin... | 8 | 74 | 0.530815 |
train_b0c037735ba90e63 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.096, 0.423, 0.405), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.372, 0.211).lineTo(-0.372, 0.211).lineTo(-0.372, 0.602).lineTo(0.372, 0.602).lineTo(0.372, 0.211).close().revolve(angleDegrees=360, axisStart=(0.372, 0.211), axisEnd=(-0.372, 0.211... | 32 | 539 | 0.793396 |
train_6ebf53715ee9458d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.291, 0, 1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.273, -0.28).lineTo(0.273, -0.03).lineTo(-0.31, -0.098).lineTo(-0.31, -0.062).lineTo(0.273, 0.007).lineTo(0.273, 0.28).lineTo(0.31, 0.28).lineTo(0.31, -0.28).lineTo(0.273, -0.28).close().sw... | 2 | 10 | 0.055963 |
train_38d25dd586585227 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.646, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.646).lineTo(-1, 0.947).lineTo(-0.75, 0.947).lineTo(-0.75, 0.808).lineTo(-0.613, 0.729).lineTo(0.863, 0.729).lineTo(1, 0.808).lineTo(1, 0.646).lineTo(-0.75, 0.646).lineTo(-0.75, 0.345... | 3 | 19 | 0.286196 |
train_75bb62712d5d12a8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.174), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.684).extrude(0.348)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0.092), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.279).center(0.043, 0.002).rect(0.263, 0.246).extrude(0.091)... | 14 | 60 | 0.903519 |
train_13d5a541e867c268 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.151, -0.143, 0.023), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.317, 0.006).lineTo(0.234, 0.233).lineTo(-0.007, 0.334).lineTo(-0.233, 0.227).lineTo(-0.32, 0).lineTo(-0.236, -0.239).lineTo(-0.007, -0.332).lineTo(0.221, -0.222).close().moveTo(-0... | 14 | 211 | 0.196083 |
train_eef16a87b306e511 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.911, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.883).workplane(offset=0.293).circle(0.95).workplane(offset=0.287).circle(0.979).workplane(offset=0.245).circle(0.876).workplane(offset=0.246).circle(0.905).workplane(offset=0.316).circle(0... | 14 | 43 | 4.25287 |
train_cbc0ea7e1f893b5c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.513, -0.415, 0.382), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.455, -0.001).lineTo(-0.455, 0.303).lineTo(0.151, 0.303).lineTo(0.151, 0.607).lineTo(0.455, 0.607).lineTo(0.455, -0.001).lineTo(-0.455, -0.001).close().extrude(1.026)
result = res... | 6 | 89 | 0.722947 |
train_274cf3eacfd50f20 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.596), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.159).extrude(1.193)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.153, -0.138, -0.799), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.181).extrude(1.432))
result = result.cut(cq.Workp... | 3 | 11 | 2.387798 |
train_3ca7616e3a5c2d6f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.542, 0.845, 0.091), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.357, -0.189).threePointArc((-0.747, 1.305), (0.747, 1.695)).lineTo(-0.357, -0.189).close().extrude(1.067)
result = result.edges().chamfer(0.057)
result = result.cut(cq.Workplane(c... | 15 | 114 | 1.506912 |
train_fddb291b4a0aba3b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.056, -0.14, -0.71), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.661, 0.364).extrude(0.836)
result = result.union(cq.Workplane(cq.Plane(origin=(0.01, -0.197, 0.096), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.115, 0.101).extrude(0.904))
result = res... | 9 | 48 | 0.273183 |
train_daec455cb6008b8e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.682, -0.246, -0.018), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.072, -0.014).threePointArc((0.248, 0.12), (0.276, 0.34)).lineTo(0.152, 0.268).lineTo(0.08, 0.392).lineTo(0.205, 0.464).threePointArc((0, 0.549), (-0.205, 0.464)).threePointArc((-... | 10 | 62 | 0.341162 |
train_070110edffe7eb55 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.698, -0.716, -0.195), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.129, -0.302).lineTo(-0.129, -0.129).lineTo(0.19, -0.129).lineTo(0.19, 0.112).lineTo(0.302, 0.112).lineTo(0.302, 0.302).lineTo(-0.302, 0.302).lineTo(-0.302, -0.302).lineTo(-0.12... | 6 | 40 | 0.825789 |
train_316ea2cf7bcd8fea | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.322, -1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-1, 0.572).lineTo(-1, 0.072).lineTo(-0.2, 0.072).threePointArc((0, 0.272), (0.2, 0.072)).lineTo(1, 0.072).lineTo(1, 0.572).lineTo(-1, 0.572).close().revolve(angleDegrees=90, axisStart=(-1, ... | 13 | 85 | 0.608047 |
train_7361dea2524b944f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.528), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.826).extrude(1.057)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.821, -0.189, -0.239), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.378, 0.25).extrude(0.184))
result = result.cut(cq.W... | 17 | 60 | 1.21965 |
train_0ad6017c88240bc4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, 0.673, -0.575), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.411, -0.128).threePointArc((-0.476, 0.1), (-0.411, 0.327)).lineTo(0.311, 0.327).threePointArc((0.353, 0.24), (0.374, 0.146)).threePointArc((0.354, 0.1), (0.374, 0.053)).threePoi... | 10 | 30 | 0.892191 |
train_fce7f4cd44cb0a4b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.065, -0.029, -0.372), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.121, 1.007).extrude(1.157)
result = result.union(cq.Workplane(cq.Plane(origin=(0.034, -0.317, -0.415), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.558, -0.002).lineTo(-0.585, -0.... | 6 | 38 | 1.312163 |
train_a18b012d3c155e77 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.136, -0.128, 0.051), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.133, 0.191).extrude(0.141)
result = result.faces('<Z').shell(-0.01)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.074, -0.106, 0.132), normal=(-1, 0, 0), xDir=(0, 0, 1))).m... | 13 | 101 | 0.052688 |
train_ce14f445ad67d719 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.16, -0.006, -0.106), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, -0.687).lineTo(0.304, -0.687).lineTo(0.304, 0.687).lineTo(-0.304, 0.687).lineTo(-0.304, -0.687).lineTo(0, -0.687).close().extrude(0.47)
result = result.cut(cq.Workplane(cq.Plane... | 29 | 190 | 1.242985 |
train_02ab1e8b7ef664c7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.168, -0.163, -0.172), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.016, 0.381).threePointArc((-0.381, 0), (0.016, -0.381)).threePointArc((0.381, 0), (0.016, 0.381)).close().sweep(cq.Workplane('YZ').spline([(-0.163, -0.172), (-0.076, -0.024), (0.... | 10 | 36 | 0.413591 |
train_d92caf8c3443f44e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.173, -0.54, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.465, 1.005).lineTo(-0.465, 0.211).lineTo(-0.329, 0.211).threePointArc((0, 0.075), (0.329, 0.211)).threePointArc((0.465, 0.54), (0.329, 0.869)).lineTo(0.329, 1.005).lineTo(0, 1.005).l... | 14 | 102 | 0.486855 |
train_979f86b32f0eea61 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.81, 0.363, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, -0.224).lineTo(-1, 0.844).lineTo(1, 0.844).lineTo(1, -0.224).lineTo(-1, -0.224).close().extrude(1.62)
result = result.edges().chamfer(0.149)
result = result.cut(cq.Workplane(cq.Plane(... | 13 | 63 | 3.195485 |
train_2b8b003c666d4726 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.002, 0.141, -0.07), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.468, -0.27).threePointArc((0.156, -0.18), (-0.156, -0.27)).threePointArc((-0.312, -0.204), (-0.468, -0.27)).lineTo(-0.468, 0).lineTo(-0.195, 0).lineTo(-0.236, 0.27).lineTo(0.156, 0.... | 19 | 335 | 0.492328 |
train_6c8ebb5edd64ca9a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.927, 0.15, -0.034), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.138, 0.073).lineTo(-0.138, -0.073).lineTo(0.138, -0.073).lineTo(0.138, 0.073).lineTo(-0.138, 0.073).close().sweep(cq.Workplane('XY').spline([(-0.927, -0.49), (-0.569, -0.413), (-0... | 2 | 14 | 0.01736 |
train_e8a4bdbec6222422 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.703, 0, 0.034), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.1, 0.212).lineTo(-0.1, 0.212).lineTo(-0.1, -0.154).lineTo(0.1, -0.154).lineTo(0.1, 0.212).close().extrude(0.232)
result = result.edges().chamfer(0.01)
result = result.union(cq.Workplan... | 15 | 149 | 0.066908 |
train_9ae2fe89ee39afca | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.65, 0, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.667, 0.651).lineTo(1, 0.651).lineTo(0.817, -0.333).lineTo(-0.817, -0.333).lineTo(-1, 0.651).lineTo(-0.667, 0.651).close().revolve(angleDegrees=360, axisStart=(-0.667, 0.651), axisEnd=(0, 0... | 5 | 16 | 3.66285 |
train_f5290fdde2acd3b1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.145, 0, -0.028), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.061, 0.855).lineTo(-0.19, 0.855).lineTo(-0.19, 0.154).lineTo(0.19, 0.154).lineTo(0.19, 0.622).lineTo(0.096, 0.622).threePointArc((0.102, 0.693), (0.061, 0.752)).lineTo(0.061, 0.855).... | 3 | 20 | 0.584426 |
train_38c92234a9109305 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.19, 0, 0.66), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.872, 0.48).extrude(0.225)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.19, 0.284, 0.682), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.049).extrude(0.213))
result = result.union(c... | 22 | 100 | 0.771637 |
train_9f5775bf6acc9a10 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.046, -0.26, -0.358), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.197, 0.202).lineTo(0, 0.064).lineTo(-0.092, 0).lineTo(-0.197, -0.073).lineTo(-0.197, -0.202).lineTo(0, -0.064).lineTo(0.092, 0).lineTo(0.197, 0.074).lineTo(0.197, 0.202).close().s... | 3 | 23 | 0.140709 |
train_db0ffbb8cb76c630 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.046, -0.193, -0.845), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.559, 0.21).extrude(0.668)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.047, -0.208, -0.284), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.113, 0.044).extrude(1.284))
result =... | 10 | 53 | 0.13376 |
train_590932e24098c3e5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.3, 0.305, 0.152), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.386, 0.015).threePointArc((0.142, 0.3), (0.386, 0.585)).threePointArc((-0.386, 0.3), (0.386, 0.015)).close().extrude(0.627)
result = result.edges().fillet(0.145)
result = result.unio... | 7 | 65 | 0.262986 |
train_599917102f40706a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.138, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.952, 0.952).extrude(0.952)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.407, -0.191, -0.505), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.294, 0.413).lineTo(-0.294, 0.526).threePo... | 18 | 43 | 1.067729 |
train_61e62d09ef1d7a8d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.214, 0, -0.109), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.572, 1.441).extrude(0.108)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.392, 0.015, -0.003), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.301).extrude(0.019))
result = result.u... | 20 | 74 | 0.23516 |
train_e108cf7daeab4a91 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.072, 0, 0.022), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.105, 0.635).lineTo(-0.023, 0.613).lineTo(-0.15, 0.589).lineTo(-0.238, 0.346).lineTo(-0.154, 0.247).lineTo(-0.071, 0.148).lineTo(0.057, 0.171).threePointArc((0.162, 0.22), (0.228, 0.316... | 10 | 65 | 0.300768 |
train_44772a4fd1889fc4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.059), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.947, 2).extrude(0.097)
result = result.union(cq.Workplane(cq.Plane(origin=(0.556, 0.19, 0.037), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.063).extrude(0.022))
result = result.cut(cq.Workpl... | 8 | 31 | 0.319896 |
train_bea9db02b2c850f5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.483, -0.358, 0.366), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.426, -0.293).threePointArc((0, 0.517), (-0.426, -0.293)).threePointArc((0, -0.517), (0.426, -0.293)).close().extrude(0.362)
result = result.edges().fillet(0.063)
result = result.u... | 19 | 154 | 0.894606 |
train_520f2e24ce5defc7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.513), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.963, 2).extrude(1.027)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.556, -0.035), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.919, 0.935).extrude(0.071))
result = result.edges().cham... | 12 | 85 | 3.498559 |
train_20b7a16582030af1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.011, 0.045, -0.025), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.05, -0.989).lineTo(-0.05, -0.889).lineTo(-0.05, 0.911).lineTo(0.05, 1.011).lineTo(0.05, -0.989).close().extrude(0.089)
result = result.union(cq.Workplane(cq.Plane(origin=(0.086, 0... | 9 | 33 | 0.056634 |
train_fe315ce322905110 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.098, -0.142, 0.331), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.179, 0.858).lineTo(-0.179, 0.551).lineTo(-0.243, 0.551).lineTo(-0.243, -0.858).lineTo(0.243, -0.858).lineTo(0.243, 0.551).lineTo(0.179, 0.551).lineTo(0.179, 0.858).lineTo(-0.179,... | 17 | 146 | 0.324012 |
train_4e711e4cfdeee9e9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.017, -0.37, 0.08), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.706, -0.009).lineTo(0.337, 0.632).lineTo(-0.37, 0.627).lineTo(-0.739, -0.007).lineTo(-0.384, -0.618).lineTo(0.333, -0.623).close().moveTo(0.13, 0.202).lineTo(0.063, 0.313).lineTo(-0.... | 16 | 136 | 0.287061 |
train_5e11d5a352f145ee | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.603, -0.43, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.833, 0.397).lineTo(0.833, 0.397).lineTo(0.833, -0.397).lineTo(-0.833, -0.397).lineTo(-0.833, 0.397).close().sweep(cq.Workplane('XY').spline([(-0.603, 0.205), (-0.268, 0.684), (0.067,... | 4 | 24 | 1.873457 |
train_dff90f106d71a04b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.147, 0.393, 0.678), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.554).transformed(offset=(0.028, 0.271, 0.412), rotate=(0, 0, 0)).circle(0.567).transformed(offset=(-0.15, 0.411, 0.138), rotate=(10, 0, 0)).circle(0.263).transformed(offset=(-0.334... | 6 | 20 | 0.640357 |
train_6ca8990255cb2947 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.002, -0.644, 0.545), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.461, 1.078).lineTo(-0.461, 0.064).lineTo(-0.03, 0.064).lineTo(-0.03, 0.265).lineTo(0.461, 0.265).lineTo(0.461, 1.078).lineTo(-0.461, 1.078).close().revolve(angleDegrees=270, axis... | 13 | 128 | 1.751401 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.