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_53288b37d566005d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.445, 0.143, -0.019), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.135, 0.169).extrude(0.019)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.445, 0.131, -0.016), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.019).extrude(0.006))
result = result... | 29 | 107 | 0.37267 |
train_e76ab72407f0a602 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.489, -0.004, 0.037), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.021, 0.373).extrude(0.115)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.72, -0.061, 0.051), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.59, 0.184).extrude(0.03))
result = resu... | 21 | 109 | 0.063788 |
train_f5f6bfc39f49d715 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.224, -0.722, -0.061), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.576, 0.537).lineTo(0.384, 0.433).lineTo(-0.384, 0.433).lineTo(-0.576, 0.537).lineTo(-0.576, -0.089).lineTo(-0.384, 0.016).lineTo(0.384, 0.016).lineTo(0.576, -0.089).lineTo(0.576,... | 15 | 117 | 0.686084 |
train_1d3a70b646eb1d72 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.014, 0, -0.465), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.378, 0.438).extrude(0.608)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.014, 0, 0.13), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.092).extrude(0.407))
result = result.union(c... | 13 | 177 | 0.152582 |
train_d06dd513f7db9af1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.013, -0.003, -0.009), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.095, 0.025).extrude(0.063)
result = result.union(cq.Workplane(cq.Plane(origin=(0.021, -0.004, -0.02), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.06, 0.017).extrude(0.012))
result = r... | 5 | 31 | 0.000825 |
train_e203d2b983f907de | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.021, 0.164, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.885, 0.002).lineTo(1, 0.002).lineTo(1, 0.016).lineTo(-1, 0.016).lineTo(-1, 0.002).lineTo(0.885, 0.002).close().revolve(angleDegrees=90, axisStart=(0.885, 0.002), axisEnd=(1, 0.002))
re... | 5 | 62 | 0.000466 |
train_84d39c45d04ccf85 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.06, -0.842, -0.293), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.119, 0.06).lineTo(-0.06, 0.06).lineTo(-0.06, 0).lineTo(0, 0).lineTo(0, 0.06).lineTo(0.119, 0.06).lineTo(0.119, 0).lineTo(0.06, 0).lineTo(0.06, -0.06).lineTo(-0.119, -0.06).lineT... | 8 | 91 | 0.445263 |
train_0f189edc6971fe39 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.614, -0.043, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.233).sweep(cq.Workplane('XY').spline([(0.013, -0.179), (0.222, -0.175), (0.431, -0.147), (0.64, -0.043), (0.849, 0.061), (1.058, 0.089), (1.267, 0.093)]))
result = result.edges().fil... | 4 | 16 | 0.272298 |
train_f7fbc8eac9dcefdd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.282, 0.293, -0.03), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.169, 0.098).threePointArc((0.13, 0.151), (0.067, 0.172)).lineTo(0.067, 0.299).threePointArc((-0.169, 0.064), (0.067, -0.172)).lineTo(0.067, -0.044).threePointArc((0.154, 0.001), (0... | 29 | 185 | 0.148828 |
train_c5fd12d06735e63f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.228, 0.055, -0.348), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.543, 0.834).extrude(0.805)
result = result.faces('>Z').shell(-0.05)
result = result.union(cq.Workplane(cq.Plane(origin=(0.115, -0.494, 0.052), normal=(0, 0, 1), xDir=(1, 0, 0))).circ... | 7 | 53 | 0.370281 |
train_572777e606aed37a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.069, -0.123), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.785).extrude(0.646)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.054, -0.431, -0.21), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.205, -0.007).lineTo(-0.294, -0.007).threeP... | 11 | 57 | 1.285507 |
train_bcb04a8ef9446888 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.123), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.401, 2).extrude(0.049)
result = result.union(cq.Workplane(cq.Plane(origin=(0.037, -0.229, -0.076), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.36).extrude(0.059))
result = result.union(cq.Wo... | 8 | 24 | 0.156484 |
train_254d0ceaaaa75937 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.299, 0.016), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.493, 0.299).threePointArc((-0.493, -0.206), (-0.325, 0.889)).threePointArc((0.235, 0.803), (0.493, 0.299)).close().extrude(2)
result = result.edges().chamfer(0.15)
result = result.uni... | 3 | 15 | 2.493056 |
train_e706cb925c61b66d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.158, -0.469, -0.035), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.182, -0.313).threePointArc((0, -0.362), (-0.181, -0.314)).lineTo(-0.362, 0).lineTo(-0.182, 0.313).threePointArc((0, 0.362), (0.181, 0.314)).threePointArc((0.313, 0.182), (0.362,... | 6 | 27 | 0.458958 |
train_294757fd96c927d4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.254, 0.028, -0.321), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.15, 0.115).lineTo(0, 0.34).lineTo(0.15, 0.115).lineTo(0.15, -0.334).lineTo(-0.15, -0.334).lineTo(-0.15, 0.115).close().revolve(angleDegrees=180, axisStart=(-0.15, 0.115), axisEnd=... | 5 | 85 | 0.164073 |
train_f487371c17c56c84 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.532, 0.022, -0.03), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.097, 0.058).extrude(0.065)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.515, 0.044, -0.002), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.007).extrude(0.03))
result = result.c... | 14 | 249 | 0.004244 |
train_4e4da7ed865356b6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.922, -0.373), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.093, 1.14).threePointArc((0.316, 1.048), (0.409, 0.824)).lineTo(0.409, -0.222).threePointArc((-0.067, 0.419), (-0.409, 1.14)).lineTo(0.093, 1.14).close().revolve(angleDegrees=360, ax... | 17 | 57 | 0.570337 |
train_a252557601fc8924 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.081, 0.057, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.18, 1.066).threePointArc((0, 1.081), (0.18, 1.066)).lineTo(0.161, 0.958).threePointArc((0, -0.919), (-0.161, 0.958)).lineTo(-0.18, 1.066).close().workplane(offset=0.038).moveTo(-0.134... | 5 | 20 | 0.134855 |
train_a894aea339787408 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.275, -0.298, -0.29), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.061, 0.101).threePointArc((0.037, 0.084), (0.018, 0.06)).lineTo(0.143, 0.262).threePointArc((-0.143, 0.038), (0.061, -0.262)).lineTo(0.061, -0.039).threePointArc((0.051, -0.003), ... | 2 | 12 | 0.156425 |
train_f5a19ac4e85a963b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.294, -0.209, -0.635), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.412, 0.96).extrude(0.969)
result = result.faces('<Y').shell(-0.094)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.294, -0.209, 0.128), normal=(0, 0, 1), xDir=(1, 0, 0))).cir... | 11 | 111 | 0.747524 |
train_dfc219f264c91f09 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.825, 0.135, -0.208), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.314, 0.026).lineTo(0.798, 0.026).lineTo(0.798, 0.471).lineTo(-0.798, 0.471).threePointArc((-0.759, 0.249), (-0.798, 0.026)).lineTo(-0.314, 0.026).close().extrude(1.459)
result = ... | 5 | 80 | 1.211504 |
train_3cb19d4b6869313f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.679), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.386, 0.214).lineTo(-0.386, -0.786).lineTo(-1, -0.786).lineTo(-1, 0.786).lineTo(1, 0.786).lineTo(1, -0.786).lineTo(0.136, -0.786).lineTo(0.136, 0.214).lineTo(-0.386, 0.214).close().extrude... | 3 | 50 | 3.53406 |
train_cd49d4546fde4a8c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.501, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.408, 0.479).lineTo(-0.408, 0.566).threePointArc((-0.39, 0.67), (-0.34, 0.763)).lineTo(-0.058, 1.003).lineTo(0.408, 1.003).lineTo(0.408, 0.712).lineTo(-0.058, 0.712).lineTo(-0.087, 0.712).... | 8 | 92 | 0.417383 |
train_d3ff30227a76f00b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1, -0.282), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.168, 0.104).lineTo(-0.101, 0.115).lineTo(0.101, 0.158).lineTo(0.101, 0.155).lineTo(0.168, 0.157).lineTo(0.168, -0.136).lineTo(0.101, -0.147).lineTo(-0.101, -0.158).lineTo(-0.168, -0.15)... | 3 | 21 | 0.101719 |
train_b655a4757d029231 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.646), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.272, 0.253).extrude(0.478)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, -0.184), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.072).extrude(0.31))
result = result.edges().chamfer(... | 17 | 194 | 0.048835 |
train_12f4767be766999e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.14, -0.08, -0.095), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.15, 0.874).extrude(0.152)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.015, -0.22, 0.054), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.507, 0.277).extrude(0.039))
result = res... | 17 | 107 | 0.189085 |
train_8df62bc79112b58d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.06, -0.206, -0.581), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.881, 1.079).extrude(1.096)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.277, -0.314, 0.602), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.472, 1.277).lineTo(-0.247, 1.088)... | 17 | 78 | 1.630208 |
train_6acd5e2b85331afa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1.176, -0.304, 0.049), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.1, 1.061).lineTo(-0.1, 1.02).lineTo(0.992, 1.02).lineTo(-0.1, 0.166).threePointArc((-0.716, 0.415), (-0.991, 1.02)).threePointArc((-0.992, 1.069), (-0.99, 1.118)).threePointArc((... | 8 | 45 | 0.927138 |
train_0a7b43ea3e53050e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1.097, -0.428), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.654, 0.097).lineTo(0.654, 0.27).threePointArc((0.705, 0.392), (0.827, 0.443)).lineTo(1, 0.443).lineTo(1, 1.751).lineTo(1, 1.992).threePointArc((0.969, 2.066), (0.895, 2.097)).lineTo(0... | 11 | 100 | 3.136639 |
train_8cc64f79c631c97e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.993).workplane(offset=0.44).circle(0.852).workplane(offset=0.599).circle(0.712).workplane(offset=0.49).circle(0.571).workplane(offset=0.47).circle(0.43).loft()
result = result.edges().chamfer(... | 12 | 42 | 2.982072 |
train_3ac7db556458d10f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.096, 0, -0.403), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.322, 0.3).lineTo(-0.435, 0.186).lineTo(-0.435, 0.109).lineTo(-0.482, 0.109).lineTo(-0.482, 0.039).lineTo(-0.195, 0.039).threePointArc((-0.16, 0.011), (-0.122, 0.035)).lineTo(-0.122, ... | 15 | 138 | 0.393008 |
train_27fac768e4e01671 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.085, 0.028, -0.267), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.387, 0.214).threePointArc((0.385, 0.237), (0.381, 0.26)).lineTo(0.334, 0.26).lineTo(0.232, 0.26).lineTo(0.232, 0.229).lineTo(0.339, 0.229).lineTo(0.341, 0.214).threePointArc((0, ... | 16 | 210 | 0.441721 |
train_9eb5376ee584efe4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.113, -0.001, -0.039), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.171, -0.511).threePointArc((-0.074, -0.77), (0.171, -0.899)).lineTo(0.171, -0.511).lineTo(0.142, -0.511).lineTo(0.142, -0.843).threePointArc((-0.053, -0.723), (-0.134, -0.511)).... | 8 | 117 | 0.169207 |
train_dc0d8219f242d83e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.03, -0.373), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.967, 1.939).extrude(0.361)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0.097, -0.015), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.498, 1.806).extrude(0.058))
result = result.un... | 17 | 131 | 1.123953 |
train_f19c6214d7619aff | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.597, 0, 0.603), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.46, 0.146).lineTo(-0.46, -0.146).lineTo(0.46, -0.146).lineTo(0.46, 0.146).lineTo(-0.46, 0.146).close().sweep(cq.Workplane('XZ').spline([(0.597, 0.222), (0.269, 0.331), (-0.105, 0.3), (... | 3 | 23 | 0.296268 |
train_e09963a87d113112 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.272, 0.03, 0.46), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.068, 0.667).lineTo(-0.54, 0.195).lineTo(-0.472, 0.127).lineTo(-0.429, 0.127).lineTo(-0.429, 0.032).lineTo(0.429, 0.032).lineTo(0.429, 0.127).lineTo(0.472, 0.127).lineTo(0.54, 0.195)... | 17 | 422 | 0.914822 |
train_0f00e006224b96c9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.145, -0.439), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.534, 0.7).extrude(0.727)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.029, 0.275, 0.107), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.235, 0.149).lineTo(0.235, -0.133).lineTo(... | 15 | 70 | 0.227296 |
train_b05191881ed1aacb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.167, -0.16, -0.055), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.251, 0.276).threePointArc((0.276, -0.276), (-0.276, -0.251)).lineTo(0.251, -0.251).lineTo(0.251, 0.276).close().sweep(cq.Workplane('XY').spline([(-0.553, -0.16), (-0.347, 0.086), (... | 1 | 5 | 0.181046 |
train_fad58642c3dfd53b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.177, -0.412), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.259, 1.623).extrude(0.825)
result = result.faces('>Z').shell(-0.094)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.276, 0.479, -0.04), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.4... | 8 | 59 | 0.558841 |
train_e0e20bd470273b8a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.176, -0.989), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.955, 1.647).extrude(1.471)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.088, -0.306, 0.457), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.075).extrude(0.532))
result = result.u... | 10 | 89 | 2.250332 |
train_050fe0f591acea53 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.087, 0.082, 0.08), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.672, -0.323).lineTo(0.672, -0.144).threePointArc((0, 1.087), (-0.672, -0.144)).lineTo(-0.672, -0.323).lineTo(-0.582, -0.323).threePointArc((-0.433, -0.373), (-0.28, -0.408)).lineTo(... | 10 | 92 | 0.408719 |
train_b3b7a170b2429793 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.539, 0.03, 0.271), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.422, 0.146).lineTo(-0.422, 0.146).lineTo(-0.422, 0.129).lineTo(-0.461, 0.129).lineTo(-0.461, -0.146).lineTo(0.461, -0.146).lineTo(0.461, 0.129).lineTo(0.422, 0.129).lineTo(0.422, 0... | 19 | 99 | 0.053642 |
train_8a68695acc1c5293 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.313, 0.11, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).lineTo(0.05, -0.027).threePointArc((-0.044, -0.125), (-0.045, -0.152)).lineTo(-0.019, -0.152).threePointArc((-0.126, -0.191), (-0.161, -0.152)).lineTo(-0.161, -0.119).threePointArc((-0.151, -0.... | 5 | 42 | 0.053559 |
train_5eb6fb0a21b94a68 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.45, 0.178, -0.496), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.095, 1.447).extrude(1.496)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.222, 0.334, -0.05), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.156).extrude(0.595))
result = result.... | 16 | 47 | 1.890859 |
train_98b6ac01da9cdb67 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.544, -1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.542, -0.118).lineTo(0.528, -0.118).lineTo(0.528, 1.192).lineTo(-0.532, 1.192).lineTo(-0.532, -0.118).lineTo(-0.542, -0.118).lineTo(-0.542, 1.206).lineTo(0.542, 1.206).lineTo(0.542, -0.118... | 2 | 10 | 0.093232 |
train_74ae37e919effac7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.05, 0, -0.079), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.158, 0.309).extrude(0.208)
result = result.union(cq.Workplane(cq.Plane(origin=(0.017, 0.065, -0.113), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.015).extrude(0.035))
result = result.unio... | 5 | 38 | 0.019193 |
train_5c93a4bff0c0bc46 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.251, 0.225, 0.465), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.749, 0.568).lineTo(-0.749, -0.568).lineTo(-0.652, -0.568).lineTo(-0.652, -0.536).lineTo(-0.704, -0.536).lineTo(-0.704, 0.522).lineTo(0.704, 0.522).lineTo(0.704, -0.536).lineTo(0.... | 4 | 31 | 0.302782 |
train_52ab541689500bd5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.114, 0.646, -0.391), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.256).sweep(cq.Workplane('YZ').spline([(0.646, -0.665), (0.179, -0.205), (-0.431, -0.117), (-0.982, -0.429)]))
result = result.edges().chamfer(0.251)
result = result.union(cq.Workp... | 10 | 96 | 0.411238 |
train_ff4a0606970389e0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.463, -0.693, -0.001), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.358, 1.492).lineTo(0.8, 1.038).lineTo(0.222, 0.466).lineTo(-0.354, -0.105).lineTo(-0.8, 0.342).lineTo(-0.223, 0.915).lineTo(0.358, 1.492).close().extrude(1.463)
result = result.e... | 10 | 68 | 0.995154 |
train_fbb5fe6e664a3040 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.18, -0.06, 0.087), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.551, 0.079).threePointArc((-0.578, 0.068), (-0.589, 0.042)).lineTo(-0.589, -0.025).lineTo(-0.82, -0.025).lineTo(-0.82, -0.079).lineTo(0.82, -0.079).lineTo(0.82, -0.025).lineTo(0.5... | 30 | 275 | 0.009493 |
train_1842c535ad2e46da | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.028, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.694, 0.561).extrude(1.22)
result = result.union(cq.Workplane(cq.Plane(origin=(0.047, -0.07, 0.19), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.05).extrude(0.353))
result = result.union(cq.Wo... | 18 | 41 | 0.497839 |
train_a5e1f0cfb67b00dd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.199), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.5, -1).lineTo(0.5, 1).lineTo(-0.5, 1).lineTo(-0.5, -1).close().extrude(0.398)
result = result.faces('>Z').shell(-0.033)
| 2 | 9 | 0.093344 |
train_81dae6e2e358c758 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.516, 0, 0.011), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.505, 0.409).lineTo(-0.505, -0.409).lineTo(0.505, -0.409).lineTo(0.505, 0.409).lineTo(-0.505, 0.409).close().revolve(angleDegrees=270, axisStart=(-0.505, 0.409), axisEnd=(-0.505, 0.368... | 5 | 25 | 1.847312 |
train_2c3c8c8ad915cf1b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.025, -0.044, -0.299), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.081, 0.189).lineTo(-0.081, 0.087).lineTo(0.081, 0.087).lineTo(0.081, 0.189).lineTo(-0.081, 0.189).close().revolve(angleDegrees=90, axisStart=(0, 0), axisEnd=(0.08, 0))
result = r... | 16 | 140 | 0.086277 |
train_6d2280042bef5816 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.707), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.786).extrude(1.415)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.011, 0.434, -0.078), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.563, 1.279).lineTo(0.563, -0.021).lineTo(-0.584,... | 21 | 164 | 1.394253 |
train_ea6e1a4943f1b373 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.257, 0, -0.13), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.486, 0.813).extrude(0.118)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.262, 0.044, -0.012), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.247, 0.478).extrude(0.024))
result = resu... | 14 | 101 | 0.120748 |
train_bce40231665c8c6b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.231, -0.005, -0.313), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.769, -0.009).lineTo(0.527, 0.513).lineTo(-0.01, 0.744).lineTo(-0.538, 0.539).lineTo(-0.743, 0.005).lineTo(-0.529, -0.528).lineTo(-0.008, -0.734).lineTo(0.556, -0.535).close().move... | 11 | 126 | 0.38269 |
train_6dd6f99dc39c7105 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.753, 0.911, 0.274), normal=(0, 1, 0), xDir=(0, 0, 1))).lineTo(-0.309, -0.328).lineTo(-0.548, -0.584).lineTo(-0.155, -0.584).lineTo(-0.064, -0.584).close().sweep(cq.Workplane('XY').spline([(0.753, 0.032), (0.476, 0.358), (0.13, 0.345), (-0.137, 0... | 1 | 7 | 0.018283 |
train_bd3db878edbda22b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.392, -0.658, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.156).sweep(cq.Workplane('XY').spline([(-0.392, 0.213), (-0.446, 0.48), (-0.648, 0.684), (-0.942, 0.767)]))
result = result.edges().chamfer(0.052)
result = result.union(cq.Workplane(c... | 5 | 21 | 0.104717 |
train_594d1538fcce349f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.005, 0.025, -0.958), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.042, 0.021).lineTo(-0.042, -0.017).threePointArc((0, 0), (0.042, -0.017)).lineTo(0.042, 0.021).lineTo(-0.042, 0.021).close().extrude(0.049)
result = result.edges().fillet(0.006)
... | 5 | 36 | 0.000121 |
train_a3c3533ffe94f8e5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.743, 0.045, -0.528), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.199, -0.115).threePointArc((-0.253, -0.075), (-0.318, -0.06)).threePointArc((-0.436, 0.059), (-0.318, 0.178)).threePointArc((-0.253, 0.192), (-0.199, 0.232)).threePointArc((0, 0.... | 21 | 401 | 0.422185 |
train_a4018730c4d6be76 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.647, -0.39, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.5, 1.106).lineTo(0.5, 1.106).lineTo(0.5, -0.61).lineTo(0.215, -0.61).lineTo(0.215, 0.348).lineTo(-0.5, 0.348).lineTo(-0.5, 1.106).close().extrude(1.293)
result = result.edges().chamfe... | 7 | 56 | 1.212654 |
train_8603e5ece66a56ef | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.05), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.837).extrude(0.099)
result = result.union(cq.Workplane(cq.Plane(origin=(0.341, -0.009, 0.049), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.057).extrude(0.031))
result = result.cut(cq.Workp... | 10 | 21 | 0.328286 |
train_f4b18aef959a27cc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.164, -3.154, -0.756), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.487, 3.404).lineTo(-1.523, 1.61).threePointArc((0.004, 2.501), (1.523, 3.404)).lineTo(-0.487, 3.404).close().revolve(angleDegrees=90, axisStart=(-0.487, 3.404), axisEnd=(-1.523,... | 4 | 23 | 0.68255 |
train_d33eaac0ea06dc09 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.666, 0.078, -0.281), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.669, 0.591).extrude(0.254)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.706, 0.251, -0.041), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.078, 0.09).extrude(0.357))
result = ... | 9 | 51 | 0.67947 |
train_b32276486f3e4276 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.196, -0.262, -0.362), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.734, -0.012).lineTo(0.503, 0.495).lineTo(-0.019, 0.74).lineTo(-0.512, 0.489).lineTo(-0.71, 0.016).lineTo(-0.5, -0.523).lineTo(-0.007, -0.738).lineTo(0.525, -0.494).close().moveTo... | 9 | 61 | 0.49422 |
train_1fbb897f331f4044 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.465, -0.76, -0.03), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.813, 1.364).lineTo(-0.813, 0.009).lineTo(0.813, 0.009).lineTo(0.813, 1.364).lineTo(0.044, 1.364).lineTo(0.044, 1.072).threePointArc((0, 0.568), (-0.044, 1.072)).lineTo(-0.044, 1.3... | 6 | 68 | 2.022718 |
train_1845e35d7f82cc02 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.176, 0.116, -0.826), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.804, 1.205).extrude(1.314)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.497 + 0.1075, 0.422, -1.609), normal=(0, 1, 0), xDir=(1, 0, 0))).circle(0.06).extrude(1.567))
result ... | 18 | 54 | 0.967143 |
train_e98cd19f35e87fc6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.039, -0.558, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.394, 0.183).lineTo(-0.394, 0.183).lineTo(-0.394, 0.458).lineTo(0.394, 0.457).lineTo(0.394, 0.183).close().revolve(angleDegrees=180, axisStart=(0.394, 0.183), axisEnd=(-0.394, 0.183))
r... | 11 | 74 | 0.112712 |
train_ea69e09a6df83852 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.176), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.829, 2).extrude(0.352)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, -0.229), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.786, 1.254).extrude(0.458))
result = result.cut(cq.Workplane... | 6 | 10 | 0.940669 |
train_4f4b439765ca9ff6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.597, 0, 0.218), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.25, -0.114).lineTo(0.194, -0.179).lineTo(0.194, -0.302).lineTo(0.084, -0.302).lineTo(0.084, -0.459).lineTo(-0.006, -0.459).lineTo(-0.081, -0.302).lineTo(-0.206, -0.086).threePointArc((-... | 2 | 20 | 0.344442 |
train_414f83de133d2ea3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.703), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.966).workplane(offset=0.492).circle(0.919).workplane(offset=0.487).circle(0.702).workplane(offset=0.428).circle(0.822).loft()
result = result.edges().chamfer(0.187)
result = result.union(c... | 11 | 41 | 1.307368 |
train_b75fb6c10f28c817 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.296, 0.477, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1, 0.952).lineTo(1, 0.952).lineTo(1, -0.264).lineTo(-1, -0.264).lineTo(-1, 0.952).close().extrude(0.954)
result = result.edges().fillet(0.103)
result = result.union(cq.Workplane(cq.Plan... | 10 | 61 | 1.468793 |
train_e16c32d40896fb62 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.695, 0.182, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.444, 0.341).lineTo(-0.384, 0.237).threePointArc((-0.459, 0.222), (-0.528, 0.255)).lineTo(-0.222, -0.043).lineTo(-0.06, -0.324).lineTo(0, -0.428).lineTo(0.06, -0.324).threePointArc((0... | 3 | 27 | 0.616246 |
train_a89a659961d8e745 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.007, -0.545, 0.272), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.119, 0.087).threePointArc((-0.08, 0.19), (-0.013, 0.278)).threePointArc((-0.189, -0.01), (0.189, -0.455)).threePointArc((-0.093, -0.029), (-0.119, -0.028)).lineTo(-0.119, 0.034).... | 4 | 18 | 0.109156 |
train_0fe6c2f63bd41fb5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.288, -0.419, -0.132), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.236, 0.918).extrude(0.127)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.079 + 0.1835, -0.356, -0.936), normal=(1, 0, 0), xDir=(0, 1, 0))).circle(0.01).extrude(1.607))
result... | 22 | 284 | 0.561118 |
train_db7e0db5ff6f69c7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.036, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.603, 1.001).extrude(1.709)
result = result.union(cq.Workplane(cq.Plane(origin=(0.301, 0.289, -0.298), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.072, 0.15).extrude(0.204))
result = result.cu... | 13 | 90 | 1.073973 |
train_ebef6b62bba797da | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.325, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.902, 0.191).threePointArc((0.917, 0.335), (0.902, 0.479)).threePointArc((0.702, 0.84), (0.335, 1.026)).threePointArc((0.216, 0.963), (0.098, 1.026)).threePointArc((-0.27, 0.84), (-0.469, 0... | 8 | 119 | 3.078671 |
train_b0bd28fa13252b14 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.493), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.947, 2).extrude(1.266)
result = result.faces('>X').shell(-0.079)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.063, -0.113, 0.475), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.564, 0.376... | 5 | 25 | 1.236498 |
train_3e498c2a6d855e1f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.324, 0.287, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1, 0.487).lineTo(1, 0.487).lineTo(1, 0.033).lineTo(-1, 0.033).lineTo(-1, 0.487).close().extrude(0.33)
result = result.edges().fillet(0.035)
result = result.cut(cq.Workplane(cq.Plane(ori... | 19 | 156 | 0.274559 |
train_9ba246bc7b4adc1d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, 0, -0.454), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.113, 0.183).threePointArc((-0.37, 0.042), (-0.171, -0.172)).threePointArc((-0.147, -0.169), (-0.125, -0.163)).lineTo(0.274, -0.076).threePointArc((0.37, 0.009), (0.282, 0.102)).lineT... | 7 | 147 | 0.659785 |
train_fcb476ea726e9726 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.257, 0.339, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.165, -0.059).lineTo(0.059, -0.165).lineTo(-0.165, 0.059).lineTo(-0.059, 0.165).lineTo(0.165, -0.059).close().sweep(cq.Workplane('XY').spline([(-0.103, 0.339), (-0.052, 0.266), (-0.001... | 4 | 34 | 0.05659 |
train_dae7f6378a0a2ddb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.523, 0, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).lineTo(-1, -0.002).lineTo(1, 1.048).close().revolve(angleDegrees=360, axisStart=(1, 1.048), axisEnd=(-1, -0.002))
result = result.edges().chamfer(0.238)
result = result.cut(cq.Workplane(cq.Plane(or... | 8 | 30 | 0.335894 |
train_3d000669d361d9ca | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.598, -0.026, -0.031), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.133, -0.407).threePointArc((0.239, 0.265), (-0.08, 0.866)).threePointArc((-0.16, 0.86), (-0.239, 0.85)).threePointArc((0.12, 0.277), (0.011, -0.391)).threePointArc((0.073, -0.395... | 13 | 106 | 0.149395 |
train_a9f1946f70a85fc2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.355, -0.627, -0.553), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.206, 0.121).extrude(0.033)
result = result.union(cq.Workplane(cq.Plane(origin=(0.355, -0.671, -0.518), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.045, 0.198).lineTo(0.02, 0.198).l... | 17 | 291 | 0.619136 |
train_d238ac3a8fc8179d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.061, 0, -0.048), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.255, -0.14).lineTo(0.25, -0.136).lineTo(0.25, 0.135).lineTo(-0.246, 0.136).close().moveTo(-0.047, 0).lineTo(-0.07, 0.032).lineTo(-0.107, 0.02).lineTo(-0.106, -0.02).lineTo(-0.071, -0.... | 11 | 142 | 0.008501 |
train_0a8fe62eea3d57dc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.229), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.778, 0.222).threePointArc((-1, 0), (-0.778, -0.222)).lineTo(1, -0.222).lineTo(1, -0.142).lineTo(1, 0.142).lineTo(1, 0.222).lineTo(-0.778, 0.222).close().extrude(0.458)
result = result.edg... | 7 | 38 | 0.20212 |
train_4c5b5ad0761ce94f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.234), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.739, 0.806).lineTo(0.739, 0.913).lineTo(-0.739, 0.913).lineTo(-0.739, -0.913).lineTo(-0.625, -0.913).lineTo(-0.625, -0.057).threePointArc((-0.006, 0.425), (0.625, -0.043)).lineTo(0.625, -0... | 13 | 64 | 0.164471 |
train_f7ffb29ef2c88774 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.595), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.387, 0.479).extrude(0.352)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, -0.261), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.115).extrude(0.269))
result = result.union(cq.Workpl... | 12 | 89 | 0.159423 |
train_bb4d4a3d98c678ce | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.216), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.879, 2).extrude(0.433)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.216, -1.516), normal=(0, 1, 0), xDir=(1, 0, 0))).moveTo(0.138, 0.101).lineTo(0.147, 0.107).lineTo(0.156, 0.09).l... | 14 | 63 | 1.15617 |
train_49a5cc305c7681ef | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.623, 0.159, -0.528), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.754, 0.754).extrude(0.754)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.697, -0.064, 0.22), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.063, 0.059).extrude(0.069))
result = ... | 15 | 36 | 1.044184 |
train_a83ba60602b7c384 | 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.148).workplane(offset=1.027).circle(0.161).workplane(offset=0.973).circle(0.199).loft()
result = result.edges().chamfer(0.126)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.065, -0.509, ... | 8 | 17 | 0.110599 |
train_4948f5a48100be8f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.184, 0.013, -0.167), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.141, 0.542).lineTo(-0.141, -0.212).lineTo(0.141, -0.212).lineTo(0.141, 0.58).lineTo(-0.141, 0.58).lineTo(-0.141, 0.542).close().extrude(1.013)
result = result.edges().chamfer(0.0... | 24 | 168 | 0.207975 |
train_54fde13c8c3003bc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.257, 0.07, -0.041), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.054, 0.001).lineTo(0.054, 0.009).lineTo(0.062, 0.009).lineTo(0.062, 0.025).lineTo(0.054, 0.025).lineTo(0.054, 0.071).lineTo(-0.062, 0.071).lineTo(-0.062, 0.001).lineTo(0.054, 0.001... | 14 | 80 | 0.022104 |
train_ebd607a1334ffe1f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.619, 0, 0.567), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.184, 0.28).lineTo(-0.276, -0.28).lineTo(0.276, -0.28).lineTo(0.276, 0.28).lineTo(0, 0.28).lineTo(0, 0.088).lineTo(-0.092, 0.28).lineTo(-0.184, 0.28).close().sweep(cq.Workplane('XZ').sp... | 45 | 131 | 0.346388 |
train_54d966c7b54b961c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.543, 0.371), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.079).sweep(cq.Workplane('YZ').spline([(-0.357, 0.195), (-0.094, 0.512), (0.168, 0.702), (0.43, 0.765), (0.692, 0.702), (0.954, 0.512), (1.216, 0.195)]))
result = result.edges().chamfer(... | 9 | 48 | 0.039923 |
train_ef70b9afb190fb61 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.126, -0.837, -0.757), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.143, 0.14).lineTo(0, 0.223).lineTo(0.193, 0.111).lineTo(0.193, -0.111).lineTo(0.138, -0.143).lineTo(0, -0.223).lineTo(-0.193, -0.111).lineTo(-0.193, 0.111).lineTo(-0.143, 0.14).... | 6 | 33 | 0.386552 |
train_678c0c05ab82867b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.031, -0.154, -0.272), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.488, -0.001).lineTo(0.141, 0.483).lineTo(-0.4, 0.287).lineTo(-0.426, -0.281).lineTo(0.174, -0.475).close().moveTo(-0.379, 0.125).lineTo(-0.046, 0.124).lineTo(-0.043, 0.064).lineT... | 19 | 157 | 0.172667 |
train_2c46f9e44801801c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.003, -0.552, -0.649), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.975, 0.059).threePointArc((0.993, 0.702), (0.862, 1.33)).lineTo(-0.855, 0.619).threePointArc((-0.942, 0.548), (-0.977, 0.441)).threePointArc((-0.982, 0.368), (-0.993, 0.297)).thr... | 18 | 97 | 1.423235 |
train_841821d17a6067c7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.166), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1, 0).lineTo(0.615, 0).lineTo(0.615, 0.395).lineTo(1, 0.395).lineTo(1, -0.395).lineTo(-1, -0.395).lineTo(-1, 0).close().extrude(0.332)
result = result.edges().fillet(0.118)
result = result.... | 34 | 38 | 0.278259 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.