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_9302c046e2a5da48 | 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.57).workplane(offset=0.511).circle(0.496).workplane(offset=0.528).circle(0.502).workplane(offset=0.422).circle(0.306).workplane(offset=0.539).circle(0.669).loft()
result = result.edges().fille... | 4 | 13 | 0.973436 |
train_ea799bda8f89feec | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.17, -0.036, -0.621), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.3, 1.042).extrude(1.021)
result = result.faces('>Z').shell(-0.077)
result = result.union(cq.Workplane(cq.Plane(origin=(0.235, 0.296, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.2... | 15 | 105 | 0.775756 |
train_64d1139fdd207180 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.5, -0.565, -0.5), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.5, 0.453).lineTo(-0.5, 0.335).lineTo(0.406, 0.335).lineTo(0.406, 0.453).lineTo(0.5, 0.453).lineTo(0.5, 0.735).threePointArc((0.441, 0.794), (0.383, 0.735)).lineTo(0.383, 0.453).lineT... | 2 | 11 | 0.249468 |
train_53432ecc1667dbe3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.568, -0.182, 0.371), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.242, 0.424).lineTo(-0.242, -0.211).lineTo(-0.432, -0.211).lineTo(-0.432, -0.424).lineTo(0.432, -0.424).lineTo(0.432, 0.424).lineTo(-0.242, 0.424).close().sweep(cq.Workplane('XZ'... | 15 | 122 | 0.428123 |
train_97cffaf3f0253519 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.232, 0.453, 0.273), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.84, 0.068).lineTo(-0.84, 0.79).lineTo(0.84, 0.79).lineTo(-0.84, 0.068).close().extrude(0.689)
result = result.edges().chamfer(0.122)
result = result.union(cq.Workplane(cq.Plane(or... | 10 | 67 | 0.256745 |
train_d61031410dee138e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.104, -0.617, -0.447), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.201, -0.45).lineTo(-0.675, -0.235).threePointArc((-0.566, 0.025), (-0.382, 0.238)).threePointArc((-0.141, 0.385), (0.134, 0.45)).threePointArc((0.415, 0.426), (0.675, 0.317)).li... | 11 | 23 | 0.937413 |
train_c6a4a70b1118c3b9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.474, 0, -0.14), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.526).moveTo(0.109, -0.002).lineTo(0.055, 0.094).lineTo(-0.055, 0.095).lineTo(-0.109, -0.001).lineTo(-0.054, -0.094).lineTo(0.054, -0.093).close().extrude(0.28)
result = result.cut(cq.Wo... | 12 | 152 | 0.340841 |
train_14bd3d58f68a315f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.151, -0.322, 0.012), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.138, 2.313).threePointArc((0.138, 0.182), (-0.138, -1.95)).lineTo(-0.138, 2.313).close().revolve(angleDegrees=270, axisStart=(-0.138, -1.95), axisEnd=(-0.138, 2.313))
result = res... | 13 | 17 | 0.249533 |
train_93abc3eac1e980a5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.036, 0.061, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(1, 0.008).lineTo(-1, 0.008).lineTo(-1, 0.114).lineTo(1, 0.114).lineTo(1, 0.008).close().extrude(0.084)
result = result.edges().fillet(0.004)
result = result.cut(cq.Workplane(cq.Plane(ori... | 20 | 168 | 0.01274 |
train_2886723d7d5642ec | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.494), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.263, 0.341).extrude(0.389)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, -0.131), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.208, 0.2).extrude(0.282))
result = result.union(cq.Wor... | 14 | 159 | 0.046079 |
train_563e5fa2355e530b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.431), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.785, 0.971).threePointArc((-0.491, 0.768), (-0.172, 0.606)).threePointArc((0, 0.571), (0.172, 0.606)).threePointArc((0.491, 0.768), (0.785, 0.971)).threePointArc((0.961, 0.961), (0.971, 0... | 12 | 69 | 1.868737 |
train_a402a063224b66f4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.865, 0.408, 0.058), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.962, 0.968).lineTo(0.962, 0.968).lineTo(-0.373, 0.167).lineTo(-0.878, -0.136).lineTo(-0.962, -0.186).lineTo(-0.962, 0.968).close().extrude(1.865)
result = result.edges().fillet(0.... | 27 | 40 | 1.899125 |
train_134954b15792f729 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.595, 0.845, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.287, 1.341).threePointArc((-0.166, 1.461), (0, 1.505)).threePointArc((0.166, 1.461), (0.287, 1.341)).lineTo(0.621, 0.762).lineTo(0.956, 0.182).threePointArc((1, 0.017), (0.956, -0.15)... | 4 | 28 | 3.293247 |
train_73c438ef000332e1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.425, -0.552, -0.116), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.575, -0.01).threePointArc((0, 0.005), (-0.575, 0.01)).lineTo(0.575, -0.01).close().sweep(cq.Workplane('YZ').spline([(-0.552, -0.141), (-0.542, -0.127), (-0.532, -0.127), (-0.523, ... | 9 | 118 | 0.343756 |
train_357bc3eb4ab23344 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.149, 0.151, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.107, 0.534).lineTo(-0.107, 1.149).lineTo(0.107, 1.149).lineTo(0.107, -0.482).threePointArc((0.061, -0.528), (0.107, -0.574)).lineTo(0.107, -0.666).lineTo(0.107, -0.851).lineTo(-0.072,... | 7 | 55 | 0.071465 |
train_8cc72a285fd9f877 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.213, -0.221, 0.3), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.307, 0.323).threePointArc((0, 0.63), (0.307, 0.323)).lineTo(0.307, -0.187).lineTo(-0.307, -0.187).lineTo(-0.307, 0.323).close().extrude(0.7)
result = result.edges().chamfer(0.121)
r... | 9 | 49 | 0.348169 |
train_e4857db91e76d7f5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.711, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.093, 0.52).lineTo(0.169, 0.52).lineTo(0.169, 0.138).lineTo(0.856, 0.138).lineTo(0.856, 1.284).lineTo(-0.856, 1.284).lineTo(-0.856, 0.52).lineTo(0.093, 0.52).close().extrude(2)
result = res... | 14 | 92 | 2.988522 |
train_2ea8e90889b5d458 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.316, -0.269), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.05, -0.36).lineTo(0.071, -0.36).lineTo(0.071, 0.079).lineTo(0.153, 0.079).lineTo(0.153, 0.119).lineTo(0.091, 0.119).lineTo(0.076, 0.196).lineTo(0.06, 0.119).lineTo(-0.034, 0.119).l... | 4 | 82 | 0.433629 |
train_3daaa3ca985f2a1a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.007, -0.089, -0.063), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.926, 1.043).extrude(0.485)
result = result.union(cq.Workplane(cq.Plane(origin=(0.134, -0.795, 0.157), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.351, 0.411).extrude(0.155))
result = ... | 15 | 79 | 0.360869 |
train_d79ff3342800878e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1, -0.256), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.051, 0.263).threePointArc((-0.228, 0), (0.051, -0.263)).lineTo(0.051, -0.191).threePointArc((0.228, 0), (0.051, 0.191)).lineTo(0.051, 0.263).close().sweep(cq.Workplane('YZ').spline([(-0.... | 4 | 13 | 0.201965 |
train_66440a67446c0830 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.927), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.627, 2).extrude(1.853)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.094, -0.258, 0.394), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.758, 0.474).extrude(0.546))
result = result.edges().... | 10 | 151 | 5.434505 |
train_3139679d2d48ea92 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.084, 0.255, -0.1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.248, 0.397).extrude(0.017)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.084, 0.023, -0.095), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.035, 0.08).extrude(0.002))
result = re... | 10 | 92 | 0.273102 |
train_9984642b953ae2b0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.318, -0.551), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.101, 0.125).lineTo(0.101, 0.511).lineTo(-0.101, 0.511).lineTo(-0.101, 0.125).lineTo(0.101, 0.125).close().revolve(angleDegrees=360, axisStart=(0.101, 0.125), axisEnd=(0.101, 0.342))
re... | 12 | 137 | 0.113212 |
train_f0371eb068c96708 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.429), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.421, 2).extrude(0.857)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.337, 0.333, -0.098), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.787, 0.933).extrude(0.367))
result = result.edges()... | 21 | 180 | 1.054791 |
train_c8e33dd3477c3f5d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.744, 0.198, -0.059), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.05, 0.397).lineTo(0.049, 0.398).lineTo(0.044, 0.046).lineTo(0.248, 0.052).lineTo(0.256, -0.047).lineTo(0.055, -0.053).lineTo(0.045, -0.402).lineTo(-0.056, -0.409).lineTo(-0.047, -... | 13 | 159 | 0.658304 |
train_9e5b09309e2e58c6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.529, -0.224, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1, 0.529).lineTo(1, 0.529).lineTo(1, 0.081).lineTo(-1, 0.081).lineTo(-1, 0.529).close().revolve(angleDegrees=180, axisStart=(-1, 0.529), axisEnd=(-0.6, 0.529))
result = result.edges().... | 7 | 27 | 0.618506 |
train_e4f095758e80ffa1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.618), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.832, 0.793).extrude(0.984)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.058, -0.009, -0.246), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.137).extrude(0.235))
result = result.cut(cq.W... | 18 | 137 | 0.421937 |
train_c54a5bbccbe9cc33 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.013, 0.004, -0.262), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.989, 0.012).lineTo(0.509, 0.885).lineTo(-0.487, 0.9).lineTo(-1.013, 0.025).lineTo(-0.48, -0.89).lineTo(0.536, -0.908).close().moveTo(-0.311, -0.216).lineTo(0.311, -0.21).lineTo(0.3... | 13 | 87 | 0.584725 |
train_38be7a6fcc9e5ccd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.009, -0.732), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.353, 0.2).extrude(0.287)
result = result.union(cq.Workplane(cq.Plane(origin=(0, -0.009, -0.454), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.068).extrude(0.195))
result = result.union(c... | 15 | 250 | 0.034855 |
train_c2303b5f92c9e76c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.431, -0.276), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1, -0.218).lineTo(-1, -0.218).lineTo(-1, 0.218).lineTo(1, 0.218).lineTo(1, -0.218).close().sweep(cq.Workplane('YZ').spline([(-0.431, -0.276), (-0.46, -0.092), (-0.545, 0.066), (-0.675,... | 5 | 34 | 0.589909 |
train_3e18939028b2d28c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.788, -0.026, -0.312), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.425, 0.172).extrude(0.394)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.818, -0.077, 0.067), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.013).extrude(0.511))
result = res... | 12 | 74 | 0.081728 |
train_3f75f459cf0776f9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.348, 0, 0.5), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.5, 1.348).lineTo(-0.5, -0.652).lineTo(0.5, -0.652).lineTo(0.5, 1.348).lineTo(-0.5, 1.348).close().revolve(angleDegrees=360, axisStart=(-0.5, 1.348), axisEnd=(-0.5, -0.652))
result = res... | 3 | 5 | 5.883809 |
train_dcae0741656ebce0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.011, 0.692), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(1.098).workplane(offset=0.638).circle(0.895).workplane(offset=0.746).circle(0.692).loft()
result = result.edges().fillet(0.255)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.777,... | 16 | 89 | 1.644373 |
train_bd7e95b14e4f2601 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.19, -0.167), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.983, -0.674).lineTo(1, -0.683).lineTo(0.995, 0.682).lineTo(-1, 0.682).close().moveTo(-0.519, -0.151).lineTo(-0.111, -0.151).lineTo(-0.109, 0.152).lineTo(-0.518, 0.15).close().moveTo(0.... | 12 | 157 | 1.248574 |
train_b7c68205783c3dc4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.438, 0.463, -0.258), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.742, 0.692).lineTo(0.011, -0.04).lineTo(0.742, 0.712).lineTo(-0.011, 1.443).lineTo(-0.742, 0.692).close().extrude(1.102)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.113 +... | 21 | 63 | 0.526408 |
train_3c7ea7ad63b0a8c8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.938, 0.374, 1.632), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, -0.427).threePointArc((-0.271, 0.179), (0, 0.784)).threePointArc((0.271, 0.179), (0, -0.427)).close().extrude(1.379)
result = result.edges().chamfer(0.045)
result = result.cut(cq.... | 21 | 33 | 0.140703 |
train_fa33699c97edfdf0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.194, -0.479), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.016).extrude(0.958)
result = result.faces('>Z').shell(-0.106)
result = result.union(cq.Workplane(cq.Plane(origin=(0.059, 0.488, -0.321), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.731... | 7 | 54 | 0.621101 |
train_b407fe51ea79c7c2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.828).workplane(offset=0.286).circle(0.905).workplane(offset=0.366).circle(0.879).workplane(offset=0.353).circle(0.949).workplane(offset=0.337).circle(0.891).workplane(offset=0.322).circle(0.94... | 3 | 9 | 1.973932 |
train_fe0e99f7b0d62ea4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.859, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.911).workplane(offset=0.516).circle(0.999).workplane(offset=0.425).circle(0.943).workplane(offset=0.347).circle(0.803).workplane(offset=0.43).circle(0.87).loft()
result = result.cut(cq.Wor... | 9 | 45 | 3.483368 |
train_8dd23322080ea746 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.313, 0.091, -0.116), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.83, 0.245).lineTo(0.654, 0.432).lineTo(0.596, 0.909).lineTo(-0.298, 0.668).lineTo(0.037, -1.013).lineTo(0.185, -1.091).lineTo(0.769, -0.672).close().moveTo(-0.079, 0.006).lineTo(-... | 14 | 83 | 0.342747 |
train_26ec86bdecd3802c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.184, -0.158, 0.001), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.091, 0.95).threePointArc((-0.265, 0.851), (-0.136, 0.698)).lineTo(-0.136, -0.861).threePointArc((0.148, -0.743), (0.265, -0.46)).lineTo(0.265, 0.828).threePointArc((0.219, 1.013)... | 22 | 88 | 0.261739 |
train_9de51fa1a93d21ee | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.06, -0.724, -0.223), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.466, 0.371).threePointArc((-0.777, 0.06), (-0.466, -0.251)).lineTo(0.466, -0.251).threePointArc((0.777, 0.06), (0.466, 0.371)).lineTo(-0.466, 0.371).close().extrude(1.448)
result... | 8 | 33 | 1.047954 |
train_3fbcde089dcbb2ca | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.036, 0.549, 0.195), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.451, 0.187).lineTo(-0.58, 0.187).lineTo(-0.58, -0.114).lineTo(0.58, -0.114).lineTo(0.58, 0.187).lineTo(0.451, 0.187).close().extrude(1.098)
result = result.union(cq.Workplane(cq.Pl... | 25 | 246 | 0.338114 |
train_d989a69288e4b13c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.252, 0, -0.308), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.683).workplane(offset=0.103).circle(0.508).workplane(offset=0.094).circle(0.686).workplane(offset=0.115).circle(0.451).workplane(offset=0.086).circle(0.346).workplane(offset=0.105).ci... | 3 | 11 | 0.450636 |
train_04d8a9fcb4e356ce | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.333, -0.599), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.013, -0.359).lineTo(0.627, -0.359).lineTo(0.547, -0.28).lineTo(0.434, -0.28).lineTo(0.4, -0.247).lineTo(0.46, -0.195).lineTo(-0.013, 0.359).lineTo(-0.487, -0.195).lineTo(-0.559, -0.... | 9 | 24 | 0.498319 |
train_20798e6f7c55f9aa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.745), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.294, 0.392).extrude(0.539)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, -0.211), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.202, 0.295).extrude(0.213))
result = result.union(cq.W... | 14 | 112 | 0.110693 |
train_e3ff365fdbafc85a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.659, -0.885, 0.194), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.821, 1.591).lineTo(-0.821, 0.178).lineTo(0.821, 0.178).lineTo(0.821, 1.591).lineTo(-0.821, 1.591).close().workplane(offset=0.364).moveTo(-0.666, 1.458).lineTo(-0.666, 0.312).line... | 15 | 54 | 1.268626 |
train_77d89d765ba28c61 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.923, 0.519, 0.519), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.519, 0.479).lineTo(-0.519, 1.367).lineTo(0.519, 1.367).lineTo(0.519, 0.479).lineTo(-0.519, 0.479).close().revolve(angleDegrees=180, axisStart=(-0.519, 0.479), axisEnd=(-0.519, 1.3... | 11 | 73 | 1.052808 |
train_d156df9c0b164f0b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.38, -0.16, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.703, 0.815).extrude(0.544)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.32, -0.16, -0.816), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.825, 0.635).extrude(0.176))
result = result... | 7 | 30 | 0.412155 |
train_c1eebc8832a9265e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.62, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.518).workplane(offset=0.285).circle(0.639).workplane(offset=0.364).circle(0.472).workplane(offset=0.318).circle(0.497).workplane(offset=0.387).circle(0.423).workplane(offset=0.267).circle(0... | 4 | 11 | 1.152349 |
train_86f6fb9365213c69 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.062, -0.067, -0.475), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.207, 0.067).lineTo(0.052, 0.093).threePointArc((0, 0.08), (-0.052, 0.093)).lineTo(-0.207, 0.067).lineTo(-0.052, 0.041).threePointArc((0, 0.054), (0.052, 0.041)).lineTo(0.207, 0.0... | 9 | 106 | 0.00862 |
train_f268bfa77eed3541 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.546, -1.102, 0.029), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.971, 0.103).lineTo(0.971, 1.902).lineTo(-0.629, 1.902).threePointArc((-0.971, 2.044), (-0.829, 1.702)).lineTo(-0.829, 0.303).lineTo(-0.829, 0.103).lineTo(-0.629, 0.103).lineTo(0.7... | 6 | 47 | 3.311951 |
train_3aa182f640d4da3d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.191, 0.542), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.597, 0.809).lineTo(-0.809, 0.595).lineTo(-0.809, -0.599).lineTo(-0.592, -0.809).lineTo(0.602, -0.809).lineTo(0.809, -0.599).lineTo(0.809, 0.595).lineTo(0.597, 0.809).lineTo(-0.597, 0... | 20 | 175 | 1.99962 |
train_3dddca45a586f05b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.687, -0.243, -0.002), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.019, 0.313).lineTo(0.019, -0.296).lineTo(-0.019, -0.296).lineTo(-0.019, 0.139).lineTo(-0.019, 0.313).lineTo(0.019, 0.313).close().extrude(0.042)
result = result.edges().chamfer(0.... | 6 | 114 | 0.003034 |
train_6a60d03f18a6554f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.013, 0.052, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.583, 0.872).extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.118, -0.434, -0.2), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.063, 0.108).extrude(0.261))
result = result.un... | 8 | 81 | 0.952263 |
train_e721e17d99caf607 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.024, 0.008, -0.201), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.976, 0.014).lineTo(0.507, 0.843).lineTo(-0.469, 0.847).lineTo(-1.024, -0.001).lineTo(-0.455, -0.862).lineTo(0.53, -0.833).close().center(0, 0.278).circle(0.138).moveTo(-0.307, -0.3... | 15 | 65 | 0.569743 |
train_d5f6e9b0ad2dbd5e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.022, -0.252, -0.803), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.236, 0.439).extrude(0.073)
result = result.union(cq.Workplane(cq.Plane(origin=(0.022, 0.008, -0.79), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.186, 0.085).extrude(0.049))
result = r... | 34 | 183 | 0.082626 |
train_f589317414ec00a6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.026, 0.26), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1.009, -0.478).threePointArc((-0.956, -0.157), (-0.805, 0.13)).threePointArc((0.321, 0.478), (1.009, -0.478)).lineTo(-0.805, -0.478).lineTo(-1.009, -0.478).close().extrude(0.438)
result ... | 14 | 58 | 0.643673 |
train_6492f90c92e4158e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.128, -0.168, 0.392), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.234, 0.186).lineTo(-0.209, 0.142).threePointArc((-0.242, 0.136), (-0.271, 0.151)).lineTo(-0.117, -0.017).lineTo(-0.048, -0.235).threePointArc((-0.047, -0.201), (-0.025, -0.176)).... | 4 | 42 | 0.091521 |
train_1db109cceaac9816 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.281, 0.393, 0.471), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.529, 0.223).lineTo(-0.318, 0.711).lineTo(-0.529, 0.346).lineTo(0.318, -0.143).lineTo(0.529, 0.223).close().extrude(0.786)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.519, ... | 18 | 69 | 0.363682 |
train_3489eb9b8a60aa3a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.419, -0.392, -0.006), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.713, -0.429).threePointArc((-0.643, -0.551), (-0.511, -0.6)).lineTo(0.8, -0.6).threePointArc((0.991, -0.471), (0.945, -0.246)).lineTo(-0.642, 1.325).threePointArc((-0.883, 1.36)... | 5 | 33 | 1.516358 |
train_2992d7457dd4b634 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.032, -0.07, 0.13), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.063, 0.392).lineTo(-0.16, 0.28).lineTo(-0.105, 0.28).lineTo(-0.114, 0.255).threePointArc((-0.123, 0.205), (-0.114, 0.156)).threePointArc((0.019, 0.064), (0.151, 0.156)).threePoint... | 9 | 59 | 0.229469 |
train_e774eb8f7e89078f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.001, 0.229, 0.082), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.315, 0.412).threePointArc((-0.542, 0.428), (-0.493, -0.428)).threePointArc((0.269, -0.413), (0.368, 0.343)).threePointArc((0.454, 0.379), (0.542, 0.412)).lineTo(0.315, 0.412).close(... | 2 | 13 | 1.314768 |
train_82bd17fed33031ee | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.005, 0.177, -0.241), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.23, 0.21).extrude(0.131)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.005, 0.135, -0.287), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.016, 0.025).lineTo(-0.016, -0.025).... | 11 | 84 | 0.133781 |
train_b4f9af024ec990a7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.215, 0.346, 0.473), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.463, 0.632).threePointArc((-0.498, 0.618), (-0.511, 0.585)).lineTo(-0.511, 0.081).threePointArc((-0.498, 0.048), (-0.463, 0.034)).lineTo(0.463, 0.034).threePointArc((0.498, 0.048)... | 17 | 127 | 1.566112 |
train_e05e2f2ec116379e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.767), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.766, 0.688).threePointArc((-0.412, 1), (-0.058, 0.688)).threePointArc((-0.055, 0.648), (-0.057, 0.607)).lineTo(-0.157, -0.39).threePointArc((-0.114, -0.525), (0.015, -0.587)).lineTo(0.594... | 7 | 41 | 0.846404 |
train_1aad18a8a2bc941d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.241, 0, -0.121), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.227, 2).extrude(0.232)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.241, 0, -0.021), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.114, 0.807).extrude(0.135))
result = result.cut(cq.W... | 16 | 123 | 0.575745 |
train_53ba2bec77566425 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.314, -0.172, -0.493), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.373, 1.625).extrude(0.354)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.314, -0.172, -0.142), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.983, 0.981).extrude(0.088))
result... | 17 | 210 | 1.664905 |
train_42112fb348da46c4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.251, 0.295, 0.699), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.094, -0.041).lineTo(-0.081, -0.027).lineTo(0.07, 0.14).lineTo(0.082, 0.154).lineTo(0.084, 0.135).lineTo(0.094, -0.022).threePointArc((0.081, -0.028), (0.076, -0.041)).lineTo(-0.07... | 33 | 137 | 0.460286 |
train_e3469cd312ade38e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.652, 0.442, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.544, -0.023).threePointArc((0.567, -0.186), (0.544, -0.349)).lineTo(0.476, -0.349).lineTo(-0.541, -0.349).threePointArc((-0.567, -0.186), (-0.541, -0.023)).threePointArc((-0.032, 0.349)... | 2 | 11 | 0.010926 |
train_8c3ac0acecf2b556 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1, -0.147), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.41, 0.303).lineTo(0.41, 0.303).lineTo(0.41, 0.281).lineTo(0.292, 0.281).lineTo(0.292, -0.303).lineTo(0.19, -0.303).lineTo(0.19, 0.281).lineTo(-0.41, 0.281).lineTo(-0.41, 0.303).close().... | 2 | 10 | 0.137373 |
train_4a5bc9f7363ded79 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.411, 0.294, -0.037), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.502, 1.297).threePointArc((-0.502, 0.294), (0.502, -0.709)).lineTo(0.502, 1.297).close().extrude(0.809)
result = result.edges().fillet(0.075)
result = result.union(cq.Workplane(cq... | 8 | 77 | 1.267541 |
train_3c0a391392067560 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.417), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.943).extrude(0.879)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.14, -0.059, 0.019), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2.4, 0.11).extrude(0.043))
result = result.cut(cq.Work... | 11 | 123 | 1.615467 |
train_0174a3627d32976c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.164, -0.384), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.687, 1.672).extrude(0.955)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.675 + 0.1685, -0.833 + 0.1335, -0.572), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.02, 0.05).lineTo(0.... | 29 | 209 | 2.604317 |
train_50da0a7ab25929ee | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.003, -0.012, -0.122), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.987, -0.988).lineTo(0.993, -0.976).lineTo(0.993, 1.012).lineTo(-0.97, 0.998).close().center(-0.276, 0.277).circle(0.134).moveTo(0.534, 0.07).lineTo(0.553, 0.088).lineTo(0.571, 0... | 16 | 158 | 0.610927 |
train_1f973928fc49ed65 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.689, 0.537, 0.123), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.621, 0).lineTo(0, 0).lineTo(0, 0.311).lineTo(0.311, 0).lineTo(0.621, -0.311).lineTo(-0.621, -0.311).lineTo(-0.621, 0).close().sweep(cq.Workplane('XY').spline([(0.689, -0.031), (1.0... | 4 | 20 | 0.180199 |
train_e6b21d7d98fa9483 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.643, 0.028, -0.174), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.335, 0).lineTo(0.242, 0.225).lineTo(-0.003, 0.323).lineTo(-0.241, 0.235).lineTo(-0.325, 0.006).lineTo(-0.221, -0.225).lineTo(0.002, -0.331).lineTo(0.224, -0.234).close().moveTo(-0.... | 23 | 221 | 0.232498 |
train_f603fa3d5c6dac4f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.067, -0.215, 0.543), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.08).workplane(offset=0.124).circle(0.106).workplane(offset=0.098).circle(0.107).workplane(offset=0.125).circle(0.088).workplane(offset=0.087).circle(0.083).workplane(offset=0.101)... | 10 | 51 | 0.050951 |
train_70e8583e38287215 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, -0.647, 0.168), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.087, 0.108).lineTo(-0.087, 0.134).lineTo(-0.052, 0.134).lineTo(-0.052, 0.121).lineTo(0.052, 0.121).lineTo(0.052, 0.134).lineTo(0.087, 0.134).lineTo(0.087, 0.108).lineTo(0.106, 0... | 13 | 154 | 0.262399 |
train_9b28ef2d9c9de5ba | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.458, 0, -0.348), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.718, 0.696).extrude(0.574)
result = result.union(cq.Workplane(cq.Plane(origin=(0.05, 0.04, -0.112), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.12, 0.389).extrude(0.28))
result = result.ed... | 15 | 130 | 0.248936 |
train_4ffb19efab7eb07e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.499), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.425).workplane(offset=0.301).circle(0.415).workplane(offset=0.253).circle(0.507).workplane(offset=0.344).circle(0.574).workplane(offset=0.256).circle(0.52).workplane(offset=0.346).circle(0... | 7 | 27 | 0.720657 |
train_a6417be086cac69d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.204, 0, 0.456), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.309, 0.536).threePointArc((0.002, 0.247), (0.309, 0.54)).lineTo(0.308, -0.211).lineTo(0.308, -0.252).threePointArc((0.018, -0.54), (-0.303, -0.288)).lineTo(-0.304, -0.178).lineTo(-0.3... | 12 | 117 | 0.125385 |
train_b26e2d20de512ecd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.39, -0.054, -0.184), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.918, 0.619).extrude(0.368)
result = result.faces('>Z').shell(-0.036)
result = result.union(cq.Workplane(cq.Plane(origin=(0.504, 0.307, -0.138), normal=(0, 0, 1), xDir=(1, 0, 0))).rec... | 7 | 147 | 0.117434 |
train_c2784a21dc6e03b9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.678, -0.009), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.08, 0.644).extrude(0.069)
result = result.union(cq.Workplane(cq.Plane(origin=(0.054, -0.356, 0.065), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.274, -0.131).lineTo(-0.209, -0.131).line... | 6 | 61 | 0.262135 |
train_2112b53c90338a74 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.156, 0, 0.59), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.742).workplane(offset=0.368).circle(0.841).workplane(offset=0.429).circle(0.762).workplane(offset=0.412).circle(0.791).loft()
result = result.edges().fillet(0.24)
result = result.cut(c... | 17 | 88 | 1.008491 |
train_9d08b9675cf24f85 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.18, 0.107, -0.465), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.639, 1.204).extrude(0.929)
result = result.faces('>Z').shell(-0.072)
result = result.union(cq.Workplane(cq.Plane(origin=(0.81, 0.234, -0.065), normal=(0, 0, 1), xDir=(1, 0, 0))).rect... | 4 | 21 | 0.600681 |
train_60dc240864954711 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.079, 0.018, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.504, 0.348).threePointArc((-0.472, 0.407), (-0.406, 0.413)).threePointArc((0, 0.333), (0.406, 0.413)).threePointArc((0.472, 0.407), (0.504, 0.348)).lineTo(0.504, -0.199).threePointAr... | 16 | 134 | 0.826773 |
train_b757e997c1f0e845 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.045, 0, -0.762), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.167, 0.841).extrude(1.075)
result = result.union(cq.Workplane(cq.Plane(origin=(0.064, 0.164, 0.281), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.59, 0.299).extrude(0.503))
result = result.... | 10 | 117 | 1.069739 |
train_d0a2e81024501451 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.153, 0.005, -0.867), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.133, 0.094).lineTo(0.133, -0.083).lineTo(-0.044, -0.083).lineTo(-0.044, 0.005).lineTo(-0.133, 0.005).lineTo(-0.133, 0.094).lineTo(0.133, 0.094).close().extrude(0.306)
result = res... | 12 | 83 | 0.024881 |
train_c7d2f71e09207fe3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.223, -0.427, 0.467), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.347, -0.182).threePointArc((-0.5, 0.037), (0, 0.756)).threePointArc((0.5, 0.407), (0.347, -0.182)).close().extrude(0.663)
result = result.edges().chamfer(0.129)
result = result.cu... | 28 | 179 | 0.527622 |
train_81a3d2fc1f00a7ff | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.026, 0.496, -0.249), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.079, -0.019).lineTo(-0.109, 0.011).lineTo(-0.092, 0.028).lineTo(0.109, 0.229).lineTo(0.109, 0.109).lineTo(0.028, 0.028).lineTo(-0.049, -0.049).lineTo(-0.079, -0.019).close().ext... | 5 | 121 | 0.129191 |
train_c5d7739d9f2ce312 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.397), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.842, 2).extrude(0.795)
result = result.cut(cq.Workplane(cq.Plane(origin=(0 + 0.254 * math.cos(2.742 + 2 * math.pi * 0 / 5), 0 + 0.254 * math.sin(2.742 + 2 * math.pi * 0 / 5), -0.517), normal... | 18 | 83 | 2.528413 |
train_4669311b7caaa863 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.064, -0.054), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.332, -0.354).lineTo(-0.332, 0.354).lineTo(0.332, 0.354).lineTo(0.332, -0.354).lineTo(-0.332, -0.354).close().sweep(cq.Workplane('XZ').spline([(-0.299, -0.74), (-0.099, -0.735), (0.... | 13 | 40 | 0.843462 |
train_22b944de7cc7642a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.63, -0.743, 0.148), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.625, 1.711).threePointArc((-0.625, 0.743), (0.625, -0.225)).threePointArc((0.554, 0.743), (0.625, 1.711)).close().extrude(1.494)
result = result.cut(cq.Workplane(cq.Plane(origin=(-... | 10 | 116 | 1.10374 |
train_69a0facf806ee9e9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.378, 0.248, -0.079), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.226, 0.478).lineTo(-0.226, -0.347).lineTo(0.226, -0.347).lineTo(0.226, 0.478).lineTo(-0.226, 0.478).close().extrude(0.471)
result = result.edges().fillet(0.121)
result = result.c... | 14 | 209 | 0.501671 |
train_34064daa4d5f85a6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.192), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.028).extrude(0.385)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0.077), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.602, 0.475).moveTo(0.112, -0.006).lineTo(0.033, -0.005).lineT... | 12 | 119 | 0.515621 |
train_8804b346004bdb76 | 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.897, 0.692).extrude(1.406)
result = result.union(cq.Workplane(cq.Plane(origin=(0.186, -0.079, 0.342), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.141).extrude(0.658))
result = result.edges().fil... | 3 | 30 | 0.906942 |
train_74e8139d280ddb1c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.063, 0.396, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.377, 0.587).lineTo(-0.57, 0.254).lineTo(-0.678, 0.191).lineTo(-0.301, -0.462).lineTo(-0.193, -0.399).lineTo(0.193, -0.399).lineTo(0.301, -0.462).lineTo(0.678, 0.191).lineTo(0.57, 0.25... | 5 | 42 | 0.660239 |
train_fe8b4d864ceb21ed | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.616, -1, -0.16), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.648, 0.84).lineTo(-0.648, 0.086).lineTo(-0.624, 0.086).lineTo(-0.624, 0.053).lineTo(-0.591, 0.053).lineTo(-0.591, 0.029).lineTo(0.648, 0.029).lineTo(0.648, 0.84).lineTo(-0.648, 0.84)... | 30 | 116 | 1.268375 |
train_e73ad975503e8b1c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.385, -0.175, -0.244), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.891, 0.642).extrude(0.219)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.325, -0.13, -0.116), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.099).extrude(0.02))
result = result.c... | 23 | 114 | 0.672771 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.