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_3481c9d636c49228 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1, -0.428), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.043, -0.033).lineTo(-0.044, 0.027).lineTo(-0.047, 0.027).lineTo(0.009, 0.047).lineTo(0.009, 0.05).lineTo(0.045, 0.002).lineTo(0.047, 0.004).lineTo(0.013, -0.046).lineTo(0.015, -0.047).l... | 1 | 12 | 0.00563 |
train_e851ee9d2cca6c1d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.363, 1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.011, -0.078).lineTo(0.011, -0.055).lineTo(-0.103, -0.019).lineTo(-0.127, 0.064).lineTo(-0.15, 0.064).lineTo(-0.154, 0.078).lineTo(-0.116, 0.078).lineTo(-0.116, 0.064).lineTo(0.138, 0.064).l... | 1 | 17 | 0.028064 |
train_3a007023323db537 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.792, -0.08, 0.078), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.093, -0.111).threePointArc((0.128, -0.084), (0.155, -0.05)).threePointArc((0.181, 0.044), (0.155, 0.137)).lineTo(0.11, 0.137).threePointArc((0.131, -0.017), (0, -0.101)).threePoint... | 4 | 23 | 0.010887 |
train_160e9bee7c6f61b9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.426, -0.759, -0.17), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.477, -0.241).lineTo(-0.41, -0.084).lineTo(-0.331, 0.1).lineTo(-0.07, 0.219).threePointArc((0.022, 0.241), (0.116, 0.224)).lineTo(0.391, 0.119).lineTo(0.477, -0.084).lineTo(0.345... | 6 | 82 | 0.261986 |
train_5751674b5d21815a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.035, 0.511, 0.07), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.2, 0.01).lineTo(-0.2, 0.01).lineTo(-0.2, 0.277).lineTo(0.2, 0.277).lineTo(0.2, 0.01).close().extrude(0.256)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.035, 0.884, 0.129)... | 5 | 88 | 0.167363 |
train_01f501cdf46673b3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.028, 0.044, -0.711), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.095, 0.077).lineTo(-0.098, 0.077).lineTo(-0.098, 0.03).lineTo(0.098, 0.03).lineTo(0.098, 0.049).lineTo(-0.096, 0.049).lineTo(-0.096, 0.058).lineTo(0.098, 0.058).lineTo(-0.095, 0.... | 10 | 54 | 0.002461 |
train_b9c5e0d8a4c14e3e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.134, 0.107, -0.526), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.455, 1.787).extrude(0.992)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.081, -0.888, 0.177), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.14, 0.224).extrude(0.119))
result = ... | 7 | 80 | 2.589212 |
train_6f9ba55c778ee49f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.404, 0.571, -0.606), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.057).sweep(cq.Workplane('XY').spline([(-0.054, 0.571), (0.122, 0.266), (0.297, 0.165), (0.473, 0.266), (0.648, 0.571)]))
result = result.union(cq.Workplane(cq.Plane(origin=(0.15,... | 18 | 114 | 0.444118 |
train_42a0eedce6e13e0c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.231, 0.202, -0.197), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.624, 0.624).extrude(0.193)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.199, 0.514, 0.003), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.016, 0.902).threePointArc((-0.208, ... | 9 | 95 | 0.312106 |
train_425722ee30fc2f06 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.174, -0.089), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.324).extrude(0.258)
result = result.cut(cq.Workplane(cq.Plane(origin=(0 + 0.194 * math.cos(5.84 + 2 * math.pi * 0 / 3), 0.174 + 0.194 * math.sin(5.84 + 2 * math.pi * 0 / 3), -0.128), ... | 13 | 60 | 0.59558 |
train_7163ae22b30d60b5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.175, 0, 0.046), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.417, 0.959).lineTo(0.417, 1).lineTo(0.416, -1).lineTo(0.335, -1).lineTo(0.041, -0.218).lineTo(0.227, -0.226).lineTo(-0.119, 0.298).lineTo(0.091, 0.294).lineTo(-0.417, 0.959).close().s... | 9 | 48 | 0.495267 |
train_0c412fe0ba72b354 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.79, 0.841, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(1, 1.518).lineTo(0, 1.104).lineTo(-1, 1.518).lineTo(-1, 0.69).lineTo(-0.414, 0.104).lineTo(0.414, 0.104).lineTo(1, 0.69).lineTo(1, 1.518).close().extrude(1.683)
result = result.edges().fi... | 13 | 44 | 3.454401 |
train_6e97d6aa43712e97 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.469, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.025, 0.722).lineTo(0.617, 0.722).lineTo(0.617, 0.031).lineTo(-0.617, 0.031).lineTo(-0.617, 0.722).lineTo(0.025, 0.722).close().extrude(1.546)
result = result.edges().fillet(0.316)
result ... | 14 | 71 | 0.696694 |
train_a9a048c9c0c4c6b1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.171, -0.921, -0.043), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 0.188).threePointArc((-0.049, 0.182), (-0.096, 0.163)).threePointArc((-0.188, 0), (-0.096, -0.163)).threePointArc((-0.049, -0.182), (0, -0.188)).threePointArc((0.188, 0), (0, 0.... | 16 | 245 | 0.392202 |
train_ac27617fa09e107b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.242, -0.175, -0.263), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.175, -0.207).lineTo(-0.175, 0.289).lineTo(0.175, 0.289).lineTo(0.175, -0.207).lineTo(-0.175, -0.207).close().extrude(0.489)
result = result.union(cq.Workplane(cq.Plane(origin=(0... | 43 | 435 | 0.455458 |
train_59c7e45444da45f5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.717, 0, 0.313), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.22, -0.361).lineTo(-0.22, 0).threePointArc((-0.399, 0.165), (-0.25, 0.358)).lineTo(-0.25, 0.361).lineTo(-0.22, 0.361).lineTo(0.112, 0.126).lineTo(-0.048, 0.126).lineTo(-0.054, 0.126).l... | 1 | 13 | 0.173848 |
train_19a1469787ac5fea | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.383, -0.571), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.051, 0.013).lineTo(-0.057, 0.013).lineTo(-0.054, 0.003).lineTo(-0.054, 0.007).lineTo(-0.044, 0.007).lineTo(-0.044, 0.003).lineTo(-0.026, -0.013).lineTo(0.057, -0.013).lineTo(0.057, 0.0... | 8 | 48 | 0.019746 |
train_3eedb67aeb43f9c8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.128, 0.19, -0.179), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.089, 0.406).extrude(0.254)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.832, 0.109, -0.15), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.337, 0.121).extrude(0.13))
result = re... | 15 | 129 | 0.225072 |
train_77ec2755863f1ed4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.058, 0, -0.164), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.013, 0.028).lineTo(0.011, 0.028).lineTo(0.011, -0.026).lineTo(-0.013, -0.026).lineTo(-0.013, -0.028).lineTo(0.013, -0.028).lineTo(0.013, 0.028).close().sweep(cq.Workplane('XZ').spline... | 5 | 33 | 0.015298 |
train_40072a2151d06aeb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.101, 0.3, -0.448), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.068, 0.025).lineTo(-0.161, 0.025).lineTo(-0.161, 0.287).lineTo(0.161, 0.287).lineTo(0.161, 0.025).lineTo(0.068, 0.025).lineTo(0.068, 0.226).lineTo(-0.068, 0.226).lineTo(-0.068, 0.... | 12 | 103 | 0.10997 |
train_b3866e0738213d28 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.571, -0.004), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.585, 0.084).lineTo(0.585, 1.031).lineTo(-0.563, 1.031).lineTo(-0.585, 0.084).lineTo(0.585, 0.084).close().extrude(2)
result = result.edges().fillet(0.298)
result = result.cut(cq.Work... | 15 | 76 | 1.838032 |
train_550abaf7fbebe292 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.036, -0.037, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.058, 0.714).threePointArc((0, -0.64), (0.058, 0.714)).lineTo(0.058, 0.944).lineTo(0.058, 1.036).threePointArc((0, -0.962), (-0.058, 1.036)).lineTo(-0.058, 0.944).lineTo(-0.058, 0.714... | 8 | 86 | 0.114106 |
train_b819503883986a39 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.483, -0.231, -0.474), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.526, 0.026).lineTo(-0.526, 0.436).lineTo(0.526, 0.436).lineTo(0.526, 0.026).lineTo(-0.526, 0.026).close().extrude(0.966)
result = result.edges().chamfer(0.179)
result = result.u... | 4 | 34 | 0.311324 |
train_64b746300aca2e48 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.171, 0, -0.464), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.658, 1.393).extrude(0.929)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.171, 0, 0.239), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.131, 0.145).extrude(0.231))
result = result.cut... | 34 | 120 | 1.142594 |
train_3e6ebfd8649d2349 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.127, 0.004, 0.069), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 0.193).lineTo(0.386, 0.193).lineTo(0.386, -0.579).lineTo(0, -0.193).lineTo(-0.386, 0.193).lineTo(-0.386, 0.579).lineTo(0, 0.579).lineTo(0, 0.193).close().sweep(cq.Workplane('YZ').... | 2 | 14 | 0.801809 |
train_a6fc74821e35f22f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.287, 0.428, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.974, 0.526).lineTo(1, 0.526).lineTo(1, 0.239).lineTo(-0.974, 0.048).lineTo(-1, 0.048).lineTo(-1, 0.526).lineTo(-0.974, 0.526).close().workplane(offset=0.094).moveTo(-0.47, 0.402).line... | 3 | 18 | 0.25742 |
train_8825015eebef93ce | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.162, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.158, 0.067).threePointArc((0, -0.12), (0.158, 0.067)).lineTo(0.076, 0.067).threePointArc((0, 0.12), (-0.076, 0.067)).lineTo(-0.158, 0.067).close().sweep(cq.Workplane('XY').spline([(-0.64... | 3 | 19 | 0.020714 |
train_230798886993bd77 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.639, -0.194), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.696, 0.723).extrude(0.388)
result = result.faces('>Z').shell(-0.034)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.094, 0.117, -0.07), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.... | 5 | 126 | 0.114757 |
train_809806ab9bca44f2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.566), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.939, 0.085).threePointArc((-1.024, 0.445), (-0.719, 0.654)).lineTo(0.719, 0.654).threePointArc((1.024, 0.445), (0.939, 0.085)).lineTo(0.22, -0.569).threePointArc((0, -0.654), (-0.22, -0.5... | 7 | 47 | 0.892082 |
train_f17ed4c6828071df | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.577, 0.069, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 1.069).lineTo(-0.415, 0.829).lineTo(-0.415, 0.033).lineTo(-0.33, 0.033).lineTo(-0.33, -0.245).lineTo(-0.415, -0.293).lineTo(-0.415, -0.931).lineTo(0.33, -0.931).lineTo(0.33, -0.01).li... | 16 | 86 | 1.141574 |
train_0e2497eadc687692 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.443, -0.899, 0.004), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.209, 1.465).lineTo(0.885, -0.614).lineTo(-0.885, 0.671).lineTo(-0.132, 1.218).lineTo(0.209, 1.465).close().extrude(1.797)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.317,... | 20 | 221 | 1.796991 |
train_16927ce2843699dd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.175, -0.121, -0.584), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.651, 1.146).extrude(1.211)
result = result.faces('<X').shell(-0.078)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.543, 0.151, 0.75), normal=(0, 1, 0), xDir=(0, 0, 1))).mo... | 8 | 66 | 0.930448 |
train_21bb5ae0471f6965 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.999, 0.231, -0.381), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.308, 0.369).threePointArc((0.377, 0.398), (0.348, 0.329)).lineTo(0.348, -0.329).threePointArc((0.319, -0.34), (0.308, -0.369)).lineTo(-0.308, -0.369).threePointArc((-0.377, -0.39... | 5 | 27 | 0.600628 |
train_f2907ac057fa3a1a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.492, -0.592, -0.682), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.581, 1.032).lineTo(0.581, 1.032).lineTo(0.228, 0.42).lineTo(0, 0.025).lineTo(-0.228, 0.42).lineTo(-0.581, 1.032).close().extrude(0.981)
result = result.edges().chamfer(0.146)
res... | 4 | 58 | 1.004299 |
train_a4b7b2e211dc400d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.391, 0.148, -0.288), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.603, 0.004).lineTo(0.325, 0.55).lineTo(-0.304, 0.524).lineTo(-0.609, 0.014).lineTo(-0.313, -0.54).lineTo(0.312, -0.535).close().moveTo(-0.05, -0.001).lineTo(-0.094, 0.103).lineTo(... | 17 | 103 | 0.402515 |
train_9c7321454a8ab8a7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.483, 0.768), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.811, -0.189).threePointArc((1, 0), (0.811, 0.189)).lineTo(-0.811, 0.189).threePointArc((-1, 0), (-0.811, -0.189)).lineTo(0.811, -0.189).close().sweep(cq.Workplane('YZ').spline([(0.483, ... | 2 | 11 | 0.497618 |
train_054e4dc608ade228 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.119, 0.076, -0.001), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.698, 1.049).extrude(0.728)
result = result.union(cq.Workplane(cq.Plane(origin=(0.341, 0.264, 0.307), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.127).extrude(0.29))
result = result.... | 14 | 78 | 0.417239 |
train_e81e80a335ef25ab | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.255, 0.125, -0.513), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.359, 0.574).lineTo(0.359, 0.293).lineTo(0.078, 0.293).lineTo(0.078, 0.23).lineTo(0.359, 0.23).lineTo(0.359, -0.175).lineTo(0.123, -0.175).lineTo(0.078, -0.132).lineTo(0.078, -0.17... | 10 | 77 | 0.09911 |
train_601bccc0f5c4bc99 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.285, 0.098), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.068, 0.493).threePointArc((-0.057, 0.234), (-0.071, -0.026)).threePointArc((-0.08, -0.104), (-0.091, -0.181)).lineTo(0.033, -0.181).lineTo(0.033, -0.396).lineTo(-0.115, -0.311).threePo... | 2 | 25 | 0.207378 |
train_d1392a0bf073cf5f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.201, 0.137, 0.217), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.092, 0.897).lineTo(-0.092, -0.799).lineTo(0.033, -0.799).lineTo(0.037, -0.67).lineTo(0.092, 0.897).lineTo(-0.092, 0.897).close().extrude(0.192)
result = result.edges().fillet(0.00... | 37 | 211 | 0.05911 |
train_788c97d15ad3389a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.334, 0.432, -0.011), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-1.011, 0.792).threePointArc((-0.969, 0.661), (-0.911, 0.538)).lineTo(-0.638, 0.538).lineTo(-0.364, 0.538).lineTo(-0.095, 0.538).lineTo(0.184, 0.538).lineTo(0.383, 0.538).lineTo(0.3... | 20 | 99 | 0.239474 |
train_27b4a57a7176ae74 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.919, 0.003, -0.436), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.081).sweep(cq.Workplane('XY').spline([(-0.919, 0.498), (-0.41, 0.498), (0.099, 0.498), (0.328, 0.643), (0.558, 0.788), (0.788, 0.933)]))
result = result.union(cq.Workplane(cq.Pla... | 5 | 18 | 0.088767 |
train_0437262f481aafcb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.236, -0.235, -0.491), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.282, 0.895).extrude(0.735)
result = result.union(cq.Workplane(cq.Plane(origin=(0.273, -0.252, -0.483), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.14, 0.071).lineTo(-0.14, -0.071).... | 19 | 120 | 0.743163 |
train_97dbdfa8c867f32a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.212, 0.363, -0.2), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.145, 0.037).threePointArc((-0.362, 0.254), (-0.145, 0.76)).threePointArc((0.362, 0.543), (0.145, 0.037)).close().extrude(0.726)
result = result.union(cq.Workplane(cq.Plane(origin=(... | 3 | 33 | 0.434497 |
train_a3501622d7aa5f37 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.138, -0.469), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.48).extrude(0.938)
result = result.union(cq.Workplane(cq.Plane(origin=(0 + 0.131 * math.cos(1.723 + 2 * math.pi * 0 / 8), 0.331 + 0.131 * math.sin(1.723 + 2 * math.pi * 0 / 8), 0.271... | 32 | 136 | 2.359958 |
train_ed009b38b94b37af | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.147, 0.611, 0.1), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.761, 0.439).lineTo(-0.761, -0.068).lineTo(0.761, 0.439).lineTo(-0.761, 0.439).close().extrude(1.226)
result = result.edges().fillet(0.044)
result = result.union(cq.Workplane(cq.Plan... | 36 | 199 | 0.547438 |
train_3f60dac10e21fb7a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.19).workplane(offset=1.082).circle(0.148).workplane(offset=0.918).circle(0.273).loft()
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.038, 0.373, 0.073), normal=(0, 0, 1), xDir=(1, 0, 0)... | 4 | 14 | 0.184035 |
train_958c72749ec12d91 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.035, 0, 0.021), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.012, 0.066).lineTo(0.032, 0.066).lineTo(0.02, 0.08).lineTo(-0.032, 0.08).lineTo(-0.032, 0.066).lineTo(-0.024, 0.066).lineTo(-0.024, -0.022).threePointArc((-0.028, -0.021), (-0.032, -0.... | 1 | 12 | 0.006418 |
train_b573fca6406064e0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.655), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(1.046).workplane(offset=0.7).circle(0.974).workplane(offset=0.61).circle(1.092).loft()
result = result.edges().fillet(0.318)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.955, -0.18, ... | 11 | 80 | 3.562943 |
train_034e80f45882300c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.602, -0.91, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.09).lineTo(-1, 1.731).lineTo(1, 1.731).lineTo(1, 1.628).lineTo(0.846, 1.628).lineTo(0.846, 0.09).lineTo(-1, 0.09).close().workplane(offset=0.571).moveTo(-0.657, 0.372).lineTo(-0.65... | 9 | 17 | 1.656597 |
train_d47c5688f9f1034b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.108, 0.384, -0.175), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.975, 0.794).extrude(0.351)
result = result.faces('>Z').shell(-0.042)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.476, 0.417, -0.112), normal=(0, 0, 1), xDir=(1, 0, 0))).re... | 8 | 78 | 0.165858 |
train_73f828fa7e1af9ea | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.859, -0.041, -0.349), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.083, -0.015).threePointArc((0.066, -0.078), (0.017, -0.121)).threePointArc((-0.09, -0.113), (-0.141, -0.019)).threePointArc((-0.115, 0.053), (-0.049, 0.091)).lineTo(0.124, 0.121)... | 1 | 11 | 0.03542 |
train_924fc6e6267174cb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.393, -0.532, 0.244), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.732, 1.321).threePointArc((-0.732, 0.653), (-0.064, -0.811)).lineTo(0.732, 1.321).close().extrude(1.063)
result = result.edges().chamfer(0.401)
result = result.union(cq.Workplane(... | 13 | 116 | 0.82295 |
train_2b80095b06c2cd88 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.015, -0.065, -0.127), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.038, 0.066).lineTo(0, 0.066).threePointArc((-0.033, 0.057), (-0.057, 0.033)).threePointArc((-0.066, 0), (-0.057, -0.033)).lineTo(-0.038, -0.066).lineTo(0, -0.066).lineTo(0.038, -... | 18 | 95 | 0.018289 |
train_2075a40758d97ab0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.334, 0.22, 0.313), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.033, 0.354).lineTo(-0.04, 0.354).threePointArc((-0.214, 0.488), (-0.13, 0.692)).lineTo(-0.193, 0.692).lineTo(-0.193, 0.719).lineTo(-0.166, 0.719).lineTo(-0.166, 0.901).lineTo(0.087,... | 8 | 88 | 0.157487 |
train_33b054b0e0b8eb6e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.481, -0.222, -0.165), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.036, 0.119).lineTo(-0.205, 0.119).threePointArc((0.205, -0.052), (0.036, 0.359)).lineTo(0.036, 0.119).close().extrude(0.495)
result = result.edges().chamfer(0.037)
result = resul... | 19 | 123 | 0.164568 |
train_5ec1c9d9bcfb0179 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, 0.136, -0.003), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.581, -0.838).lineTo(0.596, -0.879).lineTo(0.568, 0.842).lineTo(-0.594, 0.864).close().moveTo(0.114, 0.242).lineTo(0.056, 0.339).lineTo(-0.059, 0.341).lineTo(-0.116, 0.241).lineTo... | 21 | 169 | 0.385983 |
train_f9fc092863e11677 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.795, -0.045, -0.321), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.679, 0.374).lineTo(-0.679, -0.196).lineTo(0.679, -0.196).lineTo(0.679, 0.374).lineTo(-0.679, 0.374).close().extrude(1.134)
result = result.union(cq.Workplane(cq.Plane(origin=(0.... | 20 | 201 | 1.010292 |
train_49afc49e2497bf0e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.762, 0.508, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.474, 0.128).lineTo(0.474, 0.1).lineTo(0.066, 0.508).lineTo(0.474, 0.916).lineTo(0.474, 0.889).lineTo(0.52, 0.889).lineTo(0.52, 1.029).lineTo(0.381, 1.029).lineTo(0.381, 0.982).lineTo(0... | 8 | 73 | 0.317481 |
train_020c6b21bf1aff43 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.188), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.66, -0.623).lineTo(-0.66, 0.623).lineTo(0.66, 0.623).lineTo(0.66, -0.623).lineTo(-0.66, -0.623).close().workplane(offset=0.175).moveTo(-0.871, -0.822).lineTo(-0.871, 0.822).lineTo(0.871, ... | 15 | 50 | 0.875212 |
train_efe62745ab6c264e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.364, -0.452, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.745, 1.592).lineTo(-0.745, 0.102).lineTo(0.745, 0.102).lineTo(-0.745, 1.592).close().extrude(2)
result = result.edges().fillet(0.309)
result = result.union(cq.Workplane(cq.Plane(orig... | 12 | 65 | 1.149908 |
train_1c4669a75e35581a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.154, 0.348, -0.159), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, -0.652).lineTo(0.168, -0.291).lineTo(0.565, -0.326).lineTo(0.336, 0).lineTo(0.565, 0.326).lineTo(0.168, 0.291).lineTo(0, 0.652).lineTo(-0.168, 0.291).lineTo(-0.565, 0.326).lineTo... | 9 | 97 | 0.140164 |
train_9cefbd572542a5a3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.527), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.203, 0.449).extrude(0.63)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, 0.07), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.153, 0.275).extrude(0.375))
result = result.union(cq.Work... | 12 | 131 | 0.081252 |
train_3d0cb0fdbd220226 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.358, -0.008, -0.703), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.297, -0.162).lineTo(-0.236, -0.208).lineTo(-0.236, -0.183).lineTo(-0.052, -0.32).lineTo(0.264, 0.101).lineTo(0.297, 0.145).lineTo(0.264, 0.17).lineTo(0.264, 0.195).lineTo(0.076,... | 11 | 80 | 0.228259 |
train_e08e50f75b155a71 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.228, 0.094, 0.133), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, 0.772).lineTo(-0.096, 0.772).lineTo(-0.096, 0.096).lineTo(0, 0.096).lineTo(0, 0).lineTo(-0.096, 0).lineTo(-0.096, -0.772).lineTo(0.096, -0.772).lineTo(0.096, 0.772).lineTo(0, 0.77... | 2 | 19 | 0.262688 |
train_593e50d79dd4d19f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.219, 0, -0.633), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.273, 1.845).extrude(1.26)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.53, 0.375, -1.005), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.169).extrude(0.385))
result = result.uni... | 17 | 79 | 2.296869 |
train_e3408c476008f3a2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.268, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.176, 0.724).threePointArc((-0.102, 0.798), (0, 0.825)).threePointArc((0.102, 0.798), (0.176, 0.724)).lineTo(0.381, 0.369).lineTo(0.586, 0.015).threePointArc((0.613, -0.087), (0.586, -0.1... | 22 | 50 | 1.50783 |
train_a399ee1846ec687b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.199, -0.308), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.166, 1.601).extrude(0.517)
result = result.union(cq.Workplane(cq.Plane(origin=(0.057, -0.192, 0.205), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.195).extrude(0.103))
result = result.un... | 10 | 74 | 0.342693 |
train_8677fe62aef807b1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.019, -0.535, -0.097), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.3).sweep(cq.Workplane('YZ').spline([(-0.535, -0.097), (-0.369, 0.082), (-0.203, 0.055), (-0.038, -0.044), (0.128, -0.167), (0.293, -0.258), (0.458, -0.274), (0.624, -0.207), (0.7... | 12 | 50 | 0.255161 |
train_f0110dc2164adc50 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.161, 0.169, 0.213), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.789, 0.061).threePointArc((0.684, 0.456), (0.395, 0.745)).threePointArc((0, 0.851), (-0.395, 0.745)).threePointArc((-0.684, 0.456), (-0.789, 0.061)).threePointArc((-0.684, -0.334)... | 18 | 61 | 0.776909 |
train_e15d0c1c1ecefaa7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.302, -0.96, -0.21), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.212, 0.96).lineTo(-0.212, 2.06).lineTo(0.212, 1.807).lineTo(0.212, 0.113).lineTo(-0.212, -0.14).lineTo(-0.212, 0.96).close().workplane(offset=0.2).moveTo(-0.212, 0.96).lineTo(-0.2... | 15 | 138 | 0.816521 |
train_e88d0e385555adb1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.351, -0.013, -0.019), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.958, 0.898).extrude(0.433)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.733, -0.013, 0.172), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.205, 0.667).extrude(0.05))
result = r... | 21 | 195 | 0.524958 |
train_ca490bf5aee6aee2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.065, -0.433, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.953, 0.734).threePointArc((0.15, -0.067), (0.953, 1.036)).lineTo(-0.953, 0.734).close().extrude(2)
result = result.edges().fillet(0.417)
result = result.cut(cq.Workplane(cq.Plane(or... | 14 | 55 | 1.648483 |
train_a3c2e46877fd46c9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.33, 0.014, -0.084), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.027, -0.628).lineTo(-0.027, 0.645).lineTo(0.027, 0.645).lineTo(0.027, -0.628).lineTo(-0.027, -0.628).close().extrude(0.033)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.794,... | 25 | 263 | 0.007209 |
train_4c68cc9966949272 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.002, 0.02, 0.342), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.025, -1.001).lineTo(-0.007, -0.921).lineTo(0.025, 1.002).lineTo(0.009, 1.002).lineTo(-0.025, -1.001).close().extrude(0.04)
result = result.edges().chamfer(0.003)
result = result.un... | 6 | 84 | 0.031498 |
train_cd588e9b8ec18e76 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.138, -0.538), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.292, 1.725).extrude(0.887)
result = result.union(cq.Workplane(cq.Plane(origin=(0 + 0.373 * math.cos(5.765 + 2 * math.pi * 0 / 8), -0.138 + 0.373 * math.sin(5.765 + 2 * math.pi * 0 / 8),... | 39 | 230 | 1.593516 |
train_bcfa44ef50c7880c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.338, -0.108, 0.097), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.338, 0.127).lineTo(-0.338, 0.217).lineTo(-0.055, 0.217).lineTo(-0.055, 0.487).lineTo(0.248, 0.487).lineTo(0.248, 0.36).lineTo(0.338, 0.36).lineTo(0.338, 0.254).lineTo(0.248, 0.254... | 12 | 99 | 0.387094 |
train_589b7b37cd164bfc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.973, 0, 0.29), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.012, 0.024).threePointArc((0, -0.027), (0.012, 0.024)).lineTo(0.012, 0.027).lineTo(0, 0.027).threePointArc((-0.006, 0.026), (-0.012, 0.024)).close().sweep(cq.Workplane('XZ').spline([(-... | 1 | 6 | 0.004678 |
train_fd82e9d36aaef0c9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.107, -0.058, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.086, 0.698).extrude(0.933)
result = result.union(cq.Workplane(cq.Plane(origin=(0.203, -0.232, -0.111), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.229, 0.098).extrude(1.111))
result = res... | 7 | 30 | 0.64788 |
train_63c94e3f141122dc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.346, -0.094, -0.539), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.035, 1.433).extrude(0.266)
result = result.union(cq.Workplane(cq.Plane(origin=(0.198, 0.196, -0.635), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.143).extrude(0.103))
result = resul... | 23 | 220 | 1.153743 |
train_3e33d86fb42ed39a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.188, 0.24).extrude(0.319)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, -0.691), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.118, 0.147).extrude(0.211))
result = result.union(cq.Workpl... | 15 | 188 | 0.021248 |
train_24ae0174ee1d00eb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.399, -0.001, -0.176), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.172, 0).lineTo(0.053, 0.169).lineTo(-0.147, 0.107).lineTo(-0.139, -0.101).lineTo(0.06, -0.167).close().moveTo(-0.05, 0).lineTo(-0.043, 0.017).lineTo(-0.057, 0.02).lineTo(-0.083, 0... | 15 | 121 | 0.474611 |
train_042cf925a8e06374 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.292, 0, -0.108), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.741, 0.167).extrude(0.168)
result = result.union(cq.Workplane(cq.Plane(origin=(0.817, 0.012, -0.08), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.365, 0.076).extrude(0.078))
result = result... | 12 | 54 | 0.037387 |
train_a7bc84db2c4d57c4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.501, 0.305, 0.501), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.501, 0.257).lineTo(-0.501, 0.089).lineTo(0.501, 0.089).lineTo(0.501, 0.476).lineTo(-0.501, 0.476).lineTo(-0.501, 0.257).close().revolve(angleDegrees=180, axisStart=(-0.501, 0.257)... | 16 | 207 | 0.55844 |
train_cb16ee7f98530812 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.113), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.561, -0.124).lineTo(0.561, 0.072).lineTo(-1, 0.072).lineTo(-1, 0.124).lineTo(1, 0.124).lineTo(1, 0.072).lineTo(0.771, 0.072).lineTo(0.771, -0.124).lineTo(0.561, -0.124).close().extrude(0.2... | 4 | 56 | 0.029282 |
train_612900e2654783e2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.021, -0.265, 0.102), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.811, 0.009).lineTo(0.404, 0.709).lineTo(-0.4, 0.75).lineTo(-0.853, 0.025).lineTo(-0.408, -0.716).lineTo(0.418, -0.735).close().moveTo(0.18, 0.002).lineTo(0.126, 0.132).lineTo(0, 0.... | 9 | 75 | 0.539999 |
train_ff516285ac1d6a45 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.14, 0.021, 0.312), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.568, 0.594).threePointArc((-0.39, 0.777), (-0.842, -0.088)).threePointArc((-0.047, -0.777), (0.769, -0.112)).threePointArc((0.842, 0.298), (0.718, 0.695)).close().workplane(offset=0... | 16 | 122 | 0.282492 |
train_de08da35da019b84 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.009, -0.122, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, 0.245).lineTo(1.09, 0.245).threePointArc((0, 0.018), (-1.09, 0.245)).lineTo(0, 0.245).close().revolve(angleDegrees=90, axisStart=(0, 0), axisEnd=(0.055, 0))
result = result.edges().f... | 12 | 68 | 0.128754 |
train_8c21e856ca16a20b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.163, 0, -0.446), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.351, 2).extrude(0.892)
result = result.union(cq.Workplane(cq.Plane(origin=(0.667, 0.177, -0.211), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.172).extrude(0.535))
result = result.cut(cq... | 5 | 66 | 2.317131 |
train_ce4894bc48274d68 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.266, 0.06, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.956, 0.511).threePointArc((0.987, 0.498), (1, 0.467)).lineTo(1, 0.023).lineTo(-1, 0.023).lineTo(-1, 0.467).threePointArc((-0.987, 0.498), (-0.956, 0.511)).lineTo(0.956, 0.511).close().e... | 13 | 108 | 0.930711 |
train_3892a9b3f0a47c4e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.237, -0.256, -0.423), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.526, 0.791).extrude(0.838)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.386, 0.235, -0.292), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.87, 0.209).extrude(0.392))
result =... | 16 | 174 | 0.693418 |
train_9f9d827d1786ec2d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.415, 0.031, -0.186), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.2, 0.116).lineTo(-0.2, -0.116).lineTo(0.178, -0.116).threePointArc((0.2, -0.125), (0.191, -0.104)).lineTo(0.191, 0.104).threePointArc((0.2, 0.125), (0.178, 0.116)).lineTo(-0.187... | 25 | 143 | 0.113184 |
train_2a84491a0e1df7d7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.756, 0.441, 0.579), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.244).transformed(offset=(0.127, 0.151, 0.104), rotate=(0, 0, 20)).circle(0.095).transformed(offset=(0.254, 0.227, 0.199), rotate=(0, 0, 0)).circle(0.096).transformed(offset=(0.38,... | 1 | 3 | 0.053351 |
train_7e6f39bd090efe57 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.059, -0.21), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.354, -0.094).threePointArc((-0.258, 0.021), (-0.127, 0.094)).lineTo(0.127, 0.094).threePointArc((0.258, 0.021), (0.354, -0.094)).lineTo(-0.354, -0.094).close().sweep(cq.Workplane('YZ'... | 9 | 228 | 0.241557 |
train_d8618dd72ec6787f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.92, 1.319).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.101, -0.116, -1.009), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.223).extrude(0.38))
result = result.cut(cq.Workplane(c... | 17 | 101 | 1.385316 |
train_c9b60c905291003b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.309, -0.072, -0.168), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.382, 0.863).extrude(0.602)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.241, -0.052, -0.434), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.65, 0.194).extrude(0.283))
result ... | 10 | 87 | 0.519772 |
train_72fd26f8b0fb75e2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.039, -0.309), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.357).extrude(0.26)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.456, 0.032, -0.082), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.135).extrude(0.341))
result = result.union(c... | 8 | 101 | 0.1934 |
train_3c37d99193a62dfc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.888, 0.173, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.278, -0.07).lineTo(0.286, -0.056).lineTo(0.311, -0.056).lineTo(0.278, -0.112).lineTo(0.245, -0.056).lineTo(-0.311, 0.907).lineTo(-0.286, 0.907).lineTo(0.27, -0.056).lineTo(0.278, -0.07... | 2 | 23 | 0.007262 |
train_8291fd84feb8d619 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.041, 0, -0.033), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.033, 0.003).lineTo(0.033, 0.011).lineTo(-0.033, 0.011).lineTo(-0.033, 0.003).lineTo(0.033, 0.003).close().revolve(angleDegrees=270, axisStart=(0.033, 0.003), axisEnd=(0.033, 0.007))
... | 4 | 58 | 0.001949 |
train_8aa7d5b728ab38bb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.42, -0.027, -0.302), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.913, 0.539).extrude(0.492)
result = result.union(cq.Workplane(cq.Plane(origin=(0.466, 0, 0.188), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.242).extrude(0.05))
result = result.union... | 15 | 93 | 0.135982 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.