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_3bf8a32f5c6811f5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.426), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.938, 2).extrude(0.812)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.512, 0.041, -0.564), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.051).extrude(0.974))
result = result.cut(cq.Workpl... | 14 | 81 | 3.030887 |
train_abb573521626ad53 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.077, -0.047, -0.724), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.276, 0.006).lineTo(0.276, 0.07).lineTo(-0.276, 0.07).lineTo(-0.276, 0.006).lineTo(0.276, 0.006).close().extrude(0.066)
result = result.edges().chamfer(0.021)
| 2 | 26 | 0.00178 |
train_b5b1a4cf4f039156 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.547, -0.245, 0.032), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.419, 1.253).threePointArc((-0.71, 0.68), (-0.419, 0.106)).threePointArc((0.71, 0.68), (-0.419, 1.253)).close().extrude(1.086)
result = result.edges().fillet(0.065)
result = resul... | 33 | 221 | 1.379983 |
train_c04ec6e997940a7a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.081, -0.063, -0.05), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.731, 0.091).threePointArc((-0.752, 0.096), (-0.77, 0.11)).threePointArc((-0.919, 0.058), (-0.77, 0.005)).threePointArc((-0.752, 0.019), (-0.731, 0.025)).lineTo(0.731, 0.025).three... | 9 | 56 | 0.014255 |
train_b30c72d018f5c332 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.085, 0.026, -0.039), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.197, 0.782).extrude(0.335)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.072, 0.069, 0.293), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.021, 0.277).threePointArc((0, 0.29... | 20 | 99 | 0.418968 |
train_7a2e5b70a9f146a5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.054, 0.111, -0.023), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.41, 0.41).extrude(0.362)
result = result.faces('>Z').shell(-0.025)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.027, 0.139, 0.335), normal=(0, 0, -1), xDir=(1, 0, 0))).mov... | 6 | 137 | 0.075578 |
train_f229cd5cd9bdac2d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.016, -0.008, -0.645), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.016, 0.002).lineTo(0.525, 0.931).lineTo(-0.496, 0.922).lineTo(-1.051, 0.038).lineTo(-0.546, -0.915).lineTo(0.487, -0.853).close().moveTo(-0.276, -0.428).lineTo(-0.246, -0.366).li... | 16 | 515 | 1.417116 |
train_a296439fe2dd9221 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.267, -0.079, -0.071), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.78, 0.16).lineTo(0.929, 0.16).lineTo(0.929, 0.011).lineTo(-0.929, 0.011).lineTo(-0.929, 0.16).lineTo(0.78, 0.16).close().extrude(0.466)
result = result.union(cq.Workplane(cq.Plan... | 12 | 46 | 0.122716 |
train_03e50d3b103a4734 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.125, -0.125, 0.349), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.163, 0.832).threePointArc((0.832, -0.832), (-0.832, 0.163)).threePointArc((-0.582, 0.582), (-0.163, 0.832)).close().extrude(0.798)
result = result.edges().fillet(0.187)
result =... | 18 | 105 | 1.5594 |
train_1574377f2e168504 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.077), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.637, 2).extrude(0.093)
result = result.union(cq.Workplane(cq.Plane(origin=(0.354, 0.621, 0.016), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.096, 0.198).extrude(0.019))
result = result.union(c... | 7 | 31 | 0.226715 |
train_febe3e8850c91ba7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.619), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.961).extrude(1.238)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.139, -0.118, -0.325), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2.402, 0.319).extrude(0.272))
| 2 | 10 | 4.6819 |
train_98fd60e9fde7aeb6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.816, 0.514, -0.491), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.586, 1.265).threePointArc((0.482, 0.803), (0.586, -0.356)).threePointArc((-0.013, 0.445), (-0.586, 1.265)).close().extrude(0.958)
result = result.edges().chamfer(0.138)
result = ... | 13 | 61 | 0.888369 |
train_73c560b3743a5272 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.053, -0.04, -0.827), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.873, 1.465).extrude(1.259)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.273, -0.229, -1.041), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.316, 0.347).extrude(1.51))
result = r... | 14 | 98 | 3.444022 |
train_36b9a9f271160d2e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.635, -0.96), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 1.635).lineTo(1, 1.635).lineTo(1, -0.103).lineTo(0.738, -0.365).lineTo(-1, -0.365).lineTo(-1, 0.635).lineTo(0, 0.635).lineTo(0, 1.635).close().extrude(1.773)
result = result.edges().c... | 14 | 244 | 5.061685 |
train_2ed41e53de7e8b39 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.001, 0, 0.604), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.595, 0.841).threePointArc((0.161, -0.019), (0.665, -0.841)).threePointArc((0.338, -0.764), (0.021, -0.652)).threePointArc((-0.131, -0.585), (-0.279, -0.511)).threePointArc((-0.464, -0.... | 2 | 13 | 2.136945 |
train_2bb397ece82dfe57 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.01, 0.005, -0.141), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.838, 0.981).lineTo(0.798, 0.995).lineTo(0.817, 0.581).lineTo(0.225, 0.539).lineTo(0.201, -0.964).lineTo(-0.212, -1.005).lineTo(-0.189, 0.549).lineTo(-0.795, 0.553).close().moveTo(0... | 8 | 87 | 0.328444 |
train_aa3c685bed720e3c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.872, -0.169, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.8, 0.231).lineTo(0.8, 0.144).lineTo(-0.953, -0.138).lineTo(-0.953, -0.231).lineTo(0.953, 0.077).lineTo(0.953, 0.231).lineTo(0.8, 0.231).close().sweep(cq.Workplane('XY').spline([(0.09... | 1 | 8 | 0.210274 |
train_015d5a92e36d6751 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.856), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.272, 2).extrude(1.713)
result = result.union(cq.Workplane(cq.Plane(origin=(0.599, 0.107, -0.28), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.234).workplane(offset=0.09).circle(0.25).workpla... | 5 | 53 | 3.83542 |
train_c202da3dd93f0ca8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.758, 0.128), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.497, -1).lineTo(0.497, -1).lineTo(0.497, -0.929).lineTo(0.212, -0.929).lineTo(0.212, 1).lineTo(0.14, 1).lineTo(0.14, -0.929).lineTo(-0.497, -0.929).lineTo(-0.497, -1).close().sweep(c... | 1 | 10 | 0.208785 |
train_3b657195e72428b7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.028, -0.538, -0.052), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.061, 0.106).threePointArc((0, 0.123), (-0.061, 0.106)).lineTo(-0.123, 0).threePointArc((-0.106, -0.061), (-0.061, -0.106)).threePointArc((0, -0.123), (0.061, -0.106)).lineTo(0.123... | 12 | 197 | 0.096217 |
train_1e86b8fe6a85292b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.011), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.542, 0.172).lineTo(-0.542, -0.048).lineTo(-1, -0.048).lineTo(-1, -0.172).lineTo(1, -0.172).lineTo(1, -0.048).lineTo(0.542, -0.048).lineTo(0.542, 0.172).lineTo(-0.542, 0.172).close().extru... | 11 | 241 | 0.26435 |
train_b103b4f943b72025 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.269, 0, 0.008), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.197, 0).lineTo(0.197, -0.079).lineTo(-0.118, -0.079).lineTo(-0.118, -0.157).lineTo(-0.197, -0.157).lineTo(-0.197, 0.157).lineTo(0.043, 0.157).lineTo(0.043, 0.079).lineTo(0.197, 0.079)... | 10 | 54 | 0.008609 |
train_3138bd136f724fd6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.866, 0.091, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.151, 0.313).threePointArc((0.176, 0.218), (0.151, 0.124)).lineTo(-0.013, 0.029).lineTo(-0.176, 0.124).lineTo(-0.176, 0.313).lineTo(-0.013, 0.407).lineTo(0.151, 0.313).close().extrude(0... | 20 | 109 | 0.024518 |
train_17d686f777068118 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.454, -1, -0.121), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, 0.683).threePointArc((-0.27, 0.545), (-0.315, 0.245)).threePointArc((0, 0.019), (0.315, 0.245)).threePointArc((0.27, 0.545), (0, 0.683)).close().extrude(1.065)
result = result.cut(c... | 26 | 96 | 0.350492 |
train_752ff6e300a9ff10 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.007, -1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.464, -0.372).lineTo(-0.464, -0.765).lineTo(0.464, -0.765).lineTo(0.464, 1.236).lineTo(-0.464, -0.372).close().extrude(2)
result = result.edges().fillet(0.167)
result = result.cut(cq.Work... | 18 | 26 | 2.014378 |
train_5763436cd9ce8a00 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.61, -0.223, 0.632), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.307).workplane(offset=0.495).circle(0.359).workplane(offset=0.459).circle(0.365).loft()
result = result.faces('<X').shell(-0.049)
result = result.union(cq.Workplane(cq.Plane(origin... | 7 | 30 | 0.205548 |
train_ee35860ce33f6bb6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.101, -0.696), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.083).extrude(1.231)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.014, 0.726, 0.173), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.17, 0.195).extrude(0.15))
result = result.unio... | 11 | 65 | 1.941629 |
train_43f3488d22c7753a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.176, -0.336, -0.303), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.103, 0.861).threePointArc((-0.071, 0.877), (-0.241, 0.836)).threePointArc((-0.067, -0.206), (0.241, 0.805)).lineTo(0.103, 0.861).close().extrude(0.804)
result = result.edges().fil... | 20 | 212 | 0.747434 |
train_d3563a60ccbcc244 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.089, -0.175, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.017).lineTo(-1, 0.231).lineTo(1, 0.231).lineTo(1, 0.017).lineTo(0.959, 0.017).lineTo(0.959, 0.116).lineTo(-0.785, 0.116).lineTo(-0.785, 0.017).lineTo(-1, 0.017).close().extrude(0.... | 17 | 182 | 0.05501 |
train_2c6a7e95aec6a9ab | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.019, 0.026, -0.013), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.66, 0.079).extrude(0.118)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.643, 0.025, 0.001), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.714, 0.03).extrude(0.092))
result = re... | 7 | 78 | 0.019489 |
train_23cd8a383621b5f1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.312, 0, -0.373), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.377, 1.869).extrude(0.746)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.498, -0.161, -0.227), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.151).extrude(0.382))
result = result.u... | 4 | 13 | 1.844515 |
train_103940fdb8c33765 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.27, 0, 0.359), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 1).lineTo(-0.133, 1).lineTo(-0.133, 0.867).lineTo(0, 0.867).lineTo(0, 0.733).lineTo(-0.133, 0.733).lineTo(-0.133, -1).lineTo(0.133, -1).lineTo(0.133, 1).lineTo(0, 1).close().sweep(cq.... | 18 | 58 | 0.200247 |
train_7cb1fcd58900ffa9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.519, -0.402, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, -0.23).threePointArc((-0.904, -0.462), (-0.672, -0.558)).lineTo(0.672, -0.558).threePointArc((0.904, -0.462), (1, -0.23)).lineTo(1, 0.835).threePointArc((0.934, 1.032), (0.764, 1.15... | 11 | 68 | 2.902112 |
train_aff845ab6538c4df | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.163, 0.186, 0.287), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.243, 1.163).lineTo(-0.243, -0.627).lineTo(0.243, -0.627).lineTo(0.243, 1.163).lineTo(-0.243, 1.163).close().extrude(0.636)
result = result.union(cq.Workplane(cq.Plane(origin=(0.89... | 9 | 53 | 0.769637 |
train_45835d8ef68eebdc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.959, 0.067, 0.367), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.122, -0.041).threePointArc((-0.132, -0.037), (-0.136, -0.027)).lineTo(-0.136, 0.027).threePointArc((-0.132, 0.037), (-0.122, 0.041)).lineTo(0.122, 0.041).threePointArc((0.132, 0.03... | 7 | 66 | 0.450644 |
train_a4f760dff69623f3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.327, 0.004, -0.006), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.347, 0.31).extrude(0.143)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.005, 0.015, -0.145), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.433, 0.227).extrude(0.145))
result = ... | 8 | 35 | 0.082312 |
train_7229d66fc08e3121 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.545, -0.993, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.5, 1.411).threePointArc((0, -0.455), (0.5, 1.411)).threePointArc((0, 1.545), (-0.5, 1.411)).close().extrude(1.986)
result = result.edges().fillet(0.391)
| 2 | 8 | 5.862799 |
train_09e458b53e227b13 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.322, -0.813), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.241).extrude(1.32)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.8 + 0.2, -0.19 + 0.1055, -0.192), normal=(0, 1, 0), xDir=(1, 0, 0))).moveTo(-0.03, 0.06).lineTo(-0.03, -0.06... | 36 | 88 | 2.851767 |
train_df694b6b00c18cab | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.668, 0.62, -0.385), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.654, 0.76).extrude(0.771)
result = result.union(cq.Workplane(cq.Plane(origin=(0.301, 0.492, -0.14), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.387, 0.09).extrude(0.107))
result = resu... | 4 | 19 | 0.38681 |
train_8245e1e4bcf39862 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.717, -0.018, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.081, 0.161).lineTo(-0.176, 0.051).lineTo(-0.131, -0.071).threePointArc((0, -0.161), (0.131, -0.071)).lineTo(0.176, 0.051).lineTo(0.121, 0.051).lineTo(0.101, 0.051).threePointArc((0,... | 10 | 67 | 0.048452 |
train_0083fb794dd3527e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.71, 0.068, -0.694), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.306).sweep(cq.Workplane('XY').spline([(-0.072, 0.068), (0.566, -0.072), (1.204, -0.349)]))
result = result.edges().fillet(0.055)
result = result.union(cq.Workplane(cq.Plane(origin... | 5 | 16 | 0.373793 |
train_366abe45b7c3add9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1.42, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.683, 1.42).lineTo(-0.712, 1.42).lineTo(-0.712, 0.42).lineTo(-0.697, 0.42).lineTo(-0.697, 0.449).lineTo(-0.46, 0.449).lineTo(-0.46, 0.42).lineTo(0.475, 0.42).lineTo(0.475, 0.46).lineTo(0.71... | 6 | 47 | 4.255747 |
train_316aa3532be6e0dc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.161, -0.192, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.256, -0.295).lineTo(-0.256, -0.808).lineTo(0.154, -0.808).lineTo(0.154, -0.295).lineTo(0.256, -0.295).lineTo(0.256, 0.935).threePointArc((0, 1.192), (-0.256, 0.935)).lineTo(-0.256, -... | 10 | 84 | 0.126982 |
train_8acc26b26241764e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.005, 0, 0.458), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.706).workplane(offset=0.362).circle(0.7).workplane(offset=0.311).circle(0.983).workplane(offset=0.295).circle(0.937).workplane(offset=0.339).circle(0.962).loft()
result = result.cut(c... | 22 | 92 | 1.82921 |
train_a11be2f6db1307d8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.73, -0.143, -0.305), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.241).transformed(offset=(0.12, 0.17, 0.139), rotate=(30, 0, 0)).circle(0.066).transformed(offset=(0.24, 0.227, 0.114), rotate=(0, 45, 0)).circle(0.164).transformed(offset=(0.359, ... | 2 | 3 | 0.075973 |
train_ba9c79da8dc84171 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.378, -0.406, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.378, -0.594).threePointArc((0, -0.544), (-0.378, -0.594)).lineTo(-0.378, 1.385).threePointArc((0, 1.406), (0.378, 1.385)).lineTo(0.378, -0.594).close().revolve(angleDegrees=360, axisSt... | 16 | 35 | 2.935575 |
train_8876277e9a2906a9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.187, -0.385, -0.609), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.626, 1.031).extrude(0.262)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.187, -0.385, -0.349), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.357).extrude(0.045))
result = re... | 25 | 152 | 0.90523 |
train_d4677fb65712e6bc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.025, -0.42, -0.682), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.272, -0.105).threePointArc((-0.023, -0.094), (0.221, -0.149)).lineTo(0.325, 0.136).lineTo(-0.325, 0.193).lineTo(-0.272, -0.105).close().extrude(0.84)
result = result.edges().fill... | 6 | 81 | 0.106753 |
train_a77a9c31aaf6ea08 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.375, -0.181, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 1.112).lineTo(-0.08, 1.112).lineTo(-0.08, 1.158).lineTo(-0.159, 1.112).lineTo(-0.306, 1.112).lineTo(-0.306, -0.819).lineTo(0.306, -0.819).lineTo(0.306, 1.028).lineTo(0.159, 1.112).li... | 40 | 157 | 0.87106 |
train_adcfcfa5bd696691 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.164, 0.373, 0.249), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.039, 0.917).lineTo(0.193, 0.917).lineTo(0.116, -0.627).lineTo(-0.193, -0.627).lineTo(-0.039, 0.917).close().extrude(0.242)
result = result.edges().fillet(0.09)
result = result.cut... | 14 | 99 | 0.109946 |
train_d2a5e7613414f6eb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.407, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.021, 0.027).threePointArc((-0.034, 0), (0.021, -0.027)).threePointArc((0.034, 0), (0.021, 0.027)).close().sweep(cq.Workplane('XY').spline([(-0.458, 0.407), (-0.096, 0.106), (0.266, 0.106)... | 1 | 4 | 0.002078 |
train_cc97d164d5300959 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.082, -0.77, 0.053), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 0.058).threePointArc((-0.01, 0.056), (-0.021, 0.054)).lineTo(-0.035, 0.06).lineTo(-0.051, 0.044).lineTo(-0.05, 0.029).threePointArc((-0.054, 0.019), (-0.057, 0.009)).lineTo(-0.06... | 2 | 38 | 0.035707 |
train_dad1c52516e7f2ae | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.067, -0.043, 0.04), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.062, -0.808).lineTo(-0.063, 1.067).lineTo(0.062, 1.067).lineTo(0.063, -0.933).lineTo(-0.062, -0.933).lineTo(-0.062, -0.808).close().extrude(0.094)
result = result.edges().fillet(0... | 13 | 184 | 0.030032 |
train_c0369e2e31301351 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.453, 0.002, -0.289), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.287, -0.872).lineTo(0.287, 1.233).lineTo(-0.287, 1.233).lineTo(0.287, -0.872).close().revolve(angleDegrees=270, axisStart=(0.287, -0.872), axisEnd=(0.287, 1.233))
result = result.... | 3 | 19 | 0.530819 |
train_d08c03cc500e429b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.12, 0.459, -0.105), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.333, 0.395).lineTo(-0.333, 0.01).lineTo(0, -0.183).lineTo(0.132, -0.106).lineTo(0.174, -0.082).lineTo(0.333, 0.01).lineTo(0.333, 0.395).lineTo(0.201, 0.472).lineTo(0.132, 0.511).l... | 32 | 245 | 0.306923 |
train_fbdd5ae6fab7a29c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.346), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.643).extrude(0.692)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.107, -0.201, -0.464), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.075).extrude(0.83))
result = result.cut(cq.Workpl... | 3 | 8 | 2.154062 |
train_b7ce80a7bdc7a1b4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.544, -0.027, -0.157), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.251, 0.456).threePointArc((-0.166, 0.437), (-0.098, 0.382)).threePointArc((-0.055, 0.26), (-0.098, 0.138)).threePointArc((-0.032, 0.085), (0.049, 0.064)).threePointArc((0.251, 0.... | 8 | 70 | 0.319504 |
train_355ef86c22c734f6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.024, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.511, 0.976).extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.255, 0.069, -0.192), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.048, 0.067).extrude(0.308))
result = result.cut(c... | 9 | 47 | 0.874309 |
train_063e9c730e98d519 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.004, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.171, -0.067).lineTo(-0.171, 0.073).lineTo(0.171, 0.073).lineTo(0.171, -0.067).lineTo(-0.171, -0.067).close().extrude(0.171)
result = result.union(cq.Workplane(cq.Plane(origin=(0.003, 0.0... | 12 | 64 | 0.018688 |
train_66671f5eeb09b3ae | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.2, 0, -0.46), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.863, 0.827).extrude(0.921)
result = result.union(cq.Workplane(cq.Plane(origin=(0.58, 0, -0.149), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.84, 0.595).extrude(0.299))
result = result.union(... | 6 | 103 | 0.665622 |
train_a5cc7bcb7b5e34fb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.32, -0.846), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.008, 0.014).lineTo(0.008, 0.01).lineTo(-0.015, 0.01).lineTo(-0.015, -0.014).lineTo(0.008, -0.014).lineTo(0.008, -0.007).lineTo(0.015, -0.007).lineTo(0.015, 0.01).lineTo(0.011, 0.01).li... | 3 | 28 | 0.001434 |
train_fcfe9e411e9c202b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.24, -0.224), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.723, 1.243).extrude(0.447)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.497 + 0.2485, 0.3745, -1.343), normal=(1, 0, 0), xDir=(0, 1, 0))).circle(0.07).extrude(2.24))
result = resu... | 23 | 26 | 0.978309 |
train_54dd6f76e296ac97 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.896, 0.333, 0.133), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.437, 1.397).threePointArc((-0.238, 1.864), (-0.437, 1.067)).lineTo(-0.076, -0.075).threePointArc((-0.07, -0.09), (-0.062, -0.104)).lineTo(-0.062, 0.898).threePointArc((0.291, 1.044... | 9 | 47 | 0.674465 |
train_450fd371225fc859 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.378, 1.14, 0.069), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(1, 1.14).lineTo(0, 0.14).lineTo(-1, 0.14).lineTo(-1, 2.14).lineTo(0, 2.14).lineTo(-0.5, 1.64).lineTo(0, 1.14).lineTo(1, 1.14).close().extrude(0.757)
result = result.edges().chamfer(0.... | 8 | 89 | 1.248621 |
train_e2d0170601f1eaee | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.218, -1, -0.172), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.577, 0.406).lineTo(0.577, 0.406).threePointArc((0, 0.029), (-0.577, 0.406)).close().extrude(2)
result = result.edges().fillet(0.139)
result = result.union(cq.Workplane(cq.Plane(orig... | 16 | 111 | 0.380724 |
train_9d36ab77d316dd2f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.511, -0.149, -0.069), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.978, 0.662).extrude(0.112)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.191, -0.028, -0.051), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.469, 0.288).extrude(0.052))
result ... | 23 | 216 | 0.09134 |
train_0e1f5b058603a49e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.2, -0.426, 0.036), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.291, 0.349).extrude(0.043)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.2, -0.313, 0.055), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.146, 0.131).extrude(0.005))
result = result.... | 31 | 254 | 0.408408 |
train_d5c099140f62e6b3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.319), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.845, 2).extrude(0.6)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.431, -0.527, -0.421), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.203, 0.193).extrude(0.72))
result = result.cut(cq.Wor... | 10 | 42 | 2.125193 |
train_c81a55cba78b6c27 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.448, -0.231, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.359, -0.493).lineTo(-0.347, -0.493).lineTo(-0.347, 0.943).lineTo(0.251, 0.943).lineTo(0.251, 0.871).lineTo(-0.251, 0.871).lineTo(-0.251, -0.493).lineTo(0.359, -0.493).lineTo(0.359, -... | 9 | 73 | 0.92584 |
train_2495520d476b3f9d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.103, -0.019, -0.096), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.122, 0.052).lineTo(-0.122, 0.052).lineTo(-0.122, -0.052).lineTo(0.122, -0.052).lineTo(0.122, 0.052).close().workplane(offset=0.009).moveTo(0.207, 0.088).lineTo(-0.207, 0.088).li... | 24 | 219 | 0.07156 |
train_e861d0951ff5f378 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.181), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.821, 0.479).lineTo(1, 0.479).lineTo(1, -0.287).lineTo(0.821, -0.287).lineTo(0.821, -0.415).lineTo(0.684, -0.479).lineTo(-0.59, -0.479).lineTo(-1, -0.351).lineTo(-1, 0.223).lineTo(-0.59, 0.... | 10 | 101 | 0.531608 |
train_bd855938a291114d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.413, -0.052), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.882, 0.378).lineTo(0.882, -0.228).threePointArc((0.303, 0.958), (-0.882, 0.378)).close().extrude(2)
result = result.edges().fillet(0.148)
result = result.cut(cq.Workplane(cq.Plane(o... | 7 | 44 | 1.815412 |
train_a3c9568944e8bb65 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.638, 0.168, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.066, -0.085).lineTo(0.066, -0.231).lineTo(-0.241, -0.053).lineTo(-0.22, -0.032).lineTo(-0.089, 0.099).lineTo(-0.078, 0.109).lineTo(0.043, 0.231).lineTo(0.212, -0.056).lineTo(0.241, -0... | 10 | 76 | 0.103441 |
train_64815e8cf278846e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.092, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.908, 0.614).lineTo(-0.908, 0.614).lineTo(-0.908, -0.43).lineTo(0.908, -0.43).lineTo(0.908, 0.614).close().extrude(1.369)
result = result.edges().chamfer(0.191)
result = result.union(cq.Wo... | 9 | 40 | 2.097317 |
train_87cf5cbf45016b1b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.518, 0, -0.239), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.452, 0.541).extrude(0.477)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.861, 0, -0.096), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.139).extrude(0.193))
result = result.edges... | 8 | 64 | 0.164389 |
train_30469a5a9054522e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.67, 0.232, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.78, 0.044).threePointArc((-0.986, 0.837), (0.943, 1.002)).threePointArc((0.986, 0.502), (0.78, 0.044)).close().extrude(0.463)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.096, 0.... | 7 | 58 | 1.212165 |
train_19866a81c1bfc22a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.001, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.227, 0.283).lineTo(-0.111, -0.197).threePointArc((0, -0.283), (0.111, -0.197)).lineTo(0.227, 0.283).lineTo(-0.227, 0.283).close().sweep(cq.Workplane('XY').spline([(-0.991, -0.001), (-0.59... | 8 | 112 | 0.180722 |
train_73686a45b82c6aad | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.633, 0, 0.391), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.081, 0.246).lineTo(-0.081, 0.275).lineTo(-0.367, 0.275).lineTo(-0.367, -0.21).lineTo(-0.108, -0.21).lineTo(-0.108, -0.275).lineTo(0.367, -0.275).lineTo(0.367, -0.212).lineTo(0.34, -0.2... | 14 | 132 | 0.286569 |
train_f0b43fb6c2902db4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.183), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.069, 0.069).lineTo(0.033, 0.069).lineTo(0.069, 0.033).lineTo(0.069, -0.069).lineTo(-0.069, -0.069).lineTo(-0.069, 0.069).close().sweep(cq.Workplane('XZ').spline([(-1.448, -0.262), (-0.483... | 5 | 19 | 0.038846 |
train_a1027238a4146cd6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.568, 0.461).lineTo(-0.568, 1).lineTo(0.568, 1).lineTo(0.568, 0.461).lineTo(-0.568, 0.461).close().revolve(angleDegrees=360, axisStart=(0, 0), axisEnd=(0.586, 0))
result = result.edges().chamf... | 7 | 100 | 2.327242 |
train_73c28ac755ba22e6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.294, -0.082, 0.017), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.67).sweep(cq.Workplane('YZ').spline([(0.678, -0.266), (0.207, -0.168), (-0.281, -0.224), (-0.663, -0.419)]))
result = result.edges().chamfer(0.192)
result = result.cut(cq.Workplan... | 4 | 17 | 1.51639 |
train_1cae2a95440402aa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.106, 0, -0.796), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.204, 0.149).threePointArc((0.149, -0.055), (0, -0.204)).threePointArc((-0.149, -0.055), (-0.204, 0.149)).threePointArc((0, 0.204), (0.204, 0.149)).close().sweep(cq.Workplane('XY').spl... | 4 | 31 | 0.083004 |
train_d251116817162edc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.264, -0.163, 0.012), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.031, 0.06).lineTo(0.031, 0.015).lineTo(-0.014, 0.015).lineTo(-0.014, 0.005).lineTo(0.031, 0.005).lineTo(0.031, -0.06).lineTo(-0.007, -0.06).lineTo(-0.014, -0.053).lineTo(-0.014, -... | 7 | 109 | 1.154868 |
train_03e78c1c245ef6c8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.036, -0.038, -0.527), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.18).sweep(cq.Workplane('XZ').spline([(-0.395, -0.776), (-0.293, -0.543), (-0.19, -0.707), (-0.087, -0.979), (0.016, -0.936), (0.119, -0.645), (0.222, -0.558), (0.324, -0.776)]))
... | 10 | 34 | 0.38218 |
train_082d26464ce526d8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.175, -0.569, -0.382), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.008, -0.428).lineTo(-0.432, -0.123).lineTo(-0.426, 0.677).lineTo(-0.008, 0.675).lineTo(0.432, 0.671).lineTo(0.423, -0.128).lineTo(-0.008, -0.428).close().extrude(0.859)
result =... | 13 | 100 | 1.340813 |
train_34e5fb6ee2dd6765 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.35, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.897, -0.197).lineTo(0.896, -0.218).lineTo(-0.897, -0.136).lineTo(-0.896, -0.116).lineTo(-0.539, -0.132).lineTo(-0.518, -0.133).lineTo(0.134, -0.162).lineTo(0.134, 0.217).lineTo(0.154, 0.2... | 1 | 13 | 0.015587 |
train_a2a5e5bd6cfc5313 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.688, 0, 0.494), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.469).sweep(cq.Workplane('XZ').spline([(-0.122, -0.327), (0.025, -0.126), (-0.006, 0.109), (-0.201, 0.277), (-0.473, 0.301), (-0.705, 0.174)]))
result = result.edges().fillet(0.279)
| 2 | 5 | 1.273721 |
train_1b8229961c4b3712 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.22, -1, -0.154), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.3, -0.505).threePointArc((-0.549, -0.269), (-0.641, 0.061)).threePointArc((0, 0.702), (0.641, 0.061)).threePointArc((0.549, -0.269), (0.3, -0.505)).threePointArc((0, -0.58), (-0.3, -... | 15 | 227 | 2.221923 |
train_51242e603c753c59 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.412, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.257, -0.169).lineTo(-0.127, -0.056).lineTo(0.159, 0.193).lineTo(0.257, 0.002).lineTo(-0.014, -0.107).lineTo(-0.169, -0.169).lineTo(-0.229, -0.193).lineTo(-0.257, -0.169).close().sweep(c... | 2 | 12 | 0.101596 |
train_90c5a9135ea5ae71 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.79, -0.131, -0.058), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.194, 0.081).threePointArc((-0.21, 0.005), (-0.197, -0.073)).threePointArc((0, -0.21), (0.197, -0.073)).threePointArc((0.21, 0.005), (0.194, 0.081)).threePointArc((0, 0.21), (-0.... | 6 | 14 | 0.110023 |
train_08b361cd6a484e64 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1, -0.113), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.283, -0.656).threePointArc((0.039, 0.706), (-0.283, -0.639)).threePointArc((-0.001, -0.706), (0.283, -0.656)).close().sweep(cq.Workplane('YZ').spline([(-0.716, -0.481), (-0.598, -0.35), ... | 15 | 13 | 1.65012 |
train_d0a3c61b50761ea9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.001, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.233, -0.024).threePointArc((0, 0.234), (-0.233, -0.024)).threePointArc((0, -0.234), (0.233, -0.024)).close().workplane(offset=0.664).moveTo(0.307, -0.031).threePointArc((0, 0.309), (-0.30... | 14 | 70 | 0.275608 |
train_47b206a1bca7f15e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.013, -0.335), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.77).extrude(0.84)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.441, 0.188, -0.337), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.064).extrude(0.06))
result = result.edges().fil... | 11 | 80 | 1.391268 |
train_0316d5820fbdf845 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.407, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.306, 0).lineTo(0.306, -0.083).lineTo(-0.241, -0.18).threePointArc((-0.273, -0.189), (-0.306, -0.191)).lineTo(-0.306, 0.191).threePointArc((-0.273, 0.189), (-0.241, 0.18)).lineTo(0.306, 0.... | 1 | 8 | 0.147061 |
train_cfd07bbc84b5a9d2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.107, 0.117, 0.538), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.126, 0.875).threePointArc((0, 0.884), (-0.126, 0.875)).threePointArc((-0.19, 0.863), (-0.253, 0.847)).threePointArc((0, -0.884), (0.253, 0.847)).threePointArc((0.19, 0.863), (0.126... | 10 | 58 | 2.17161 |
train_58eba56915f813dc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1, 0.134), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.349, -0.509).threePointArc((-0.306, -0.608), (-0.205, -0.647)).lineTo(0.442, -0.624).threePointArc((0.322, -0.511), (0.437, -0.393)).lineTo(0.069, -0.391).threePointArc((-0.017, -0.354),... | 2 | 18 | 0.730648 |
train_3cd20bafc47b7d52 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.401, 0.028, 0.104), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.589, -0.871).lineTo(0.598, -0.885).lineTo(0.599, 0.918).lineTo(-0.609, 0.909).close().moveTo(-0.053, -0.001).lineTo(-0.12, 0.12).lineTo(-0.257, 0.12).lineTo(-0.327, -0.002).lineTo(... | 9 | 56 | 0.96579 |
train_7906890525c9a833 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.081, -0.038), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.799, 0.919).lineTo(-0.799, 0.195).lineTo(0.799, 0.195).lineTo(0.799, 0.919).lineTo(-0.799, 0.919).close().revolve(angleDegrees=360, axisStart=(0, 0), axisEnd=(0.514, 0))
result = re... | 5 | 44 | 3.457086 |
train_d97f21f47e61a45c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.734, 0.061), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.276, 0.009).lineTo(-0.276, -0.266).lineTo(0.276, -0.266).lineTo(0.276, 0.009).lineTo(0.256, 0.009).threePointArc((0, 0.266), (-0.256, 0.009)).lineTo(-0.276, 0.009).close().sweep(cq.Wo... | 5 | 28 | 0.076885 |
train_1a47d9c6b60bef8b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.103, -0.193, -0.155), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.821, 1.212).extrude(0.306)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.024, -0.039, -0.295), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.403, 0.253).extrude(0.153))
result ... | 27 | 201 | 0.241699 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.