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_a7baacf506f190d6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.378), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.849).extrude(0.757)
result = result.cut(cq.Workplane(cq.Plane(origin=(0 + 0.246 * math.cos(2.214 + 2 * math.pi * 0 / 6), 0 + 0.246 * math.sin(2.214 + 2 * math.pi * 0 / 6), -0.492), normal... | 22 | 291 | 2.424721 |
train_ab41b6d21a0ffb9b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.317, 0.206, -0.216), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.428, 0.01).lineTo(0.131, 0.413).lineTo(-0.352, 0.247).lineTo(-0.356, -0.263).lineTo(0.139, -0.394).close().moveTo(-0.062, 0.064).lineTo(0.062, 0.065).lineTo(0.063, 0.087).lineTo(-... | 22 | 164 | 0.750473 |
train_e7911f533d36801b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.572, 0, 0.438), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.342, 0.128).lineTo(-0.342, 0.043).lineTo(-0.428, 0.043).lineTo(-0.428, -0.128).lineTo(-0.342, -0.128).lineTo(-0.342, -0.075).lineTo(0.342, -0.075).lineTo(0.342, -0.128).lineTo(0.428, -... | 16 | 132 | 0.064161 |
train_090866b4c343dcbd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.356, -0.118), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.257, 0.297).extrude(0.236)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.053, 0.741, 0.066), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.025, 0.517).extrude(0.028))
result = resul... | 5 | 100 | 0.015732 |
train_b1fd90c1d21fcdfd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.587, -0.639, 0.719), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.224).transformed(offset=(0.114, 0.049, 0.083), rotate=(0, 90, 0)).circle(0.194).transformed(offset=(0.227, 0.099, 0.176), rotate=(30, 0, 0)).circle(0.169).transformed(offset=(0.34... | 1 | 4 | 0.087384 |
train_88122e87ec5a0b9d | 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.428).workplane(offset=0.335).circle(0.334).workplane(offset=0.278).circle(0.405).workplane(offset=0.361).circle(0.489).workplane(offset=0.372).circle(0.442).workplane(offset=0.319).circle(0.45... | 7 | 24 | 0.811617 |
train_7401563615e1a254 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.036, -0.489), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.372).extrude(0.971)
result = result.union(cq.Workplane(cq.Plane(origin=(0.032, -0.228, -0.549), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.067, 0.061).extrude(0.063))
result = result.... | 4 | 21 | 2.666372 |
train_0bbc6250d0b13f4b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.042, -0.434, 0.538), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.462, 0.498).lineTo(-0.462, 0.491).lineTo(0.462, -0.378).lineTo(0.462, -0.37).lineTo(-0.462, 0.498).close().revolve(angleDegrees=180, axisStart=(-0.462, 0.498), axisEnd=(-0.462, 0.... | 2 | 31 | 0.200618 |
train_c48ec41d8b5894c5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.268, -0.005), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1.005, 0.108).lineTo(-0.809, 0.536).lineTo(1.005, 0.536).lineTo(1.005, 0.108).lineTo(-1.005, 0.108).close().revolve(angleDegrees=180, axisStart=(0, 0), axisEnd=(0.142, 0))
result = res... | 7 | 193 | 0.521996 |
train_4d98302d3c7f3950 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.638, -0.086, -0.163), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.183, -0.129).lineTo(0.177, -0.129).threePointArc((0.051, -0.309), (-0.167, -0.334)).threePointArc((-0.217, -0.312), (-0.262, -0.281)).threePointArc((-0.354, -0.082), (-0.267, 0.... | 6 | 38 | 0.184621 |
train_5541d3764ea2332e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.238, -0.26, 0.172), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.236, 0.354).lineTo(0.111, 0.219).lineTo(-0.334, -0.263).lineTo(-0.236, -0.354).lineTo(0.209, 0.128).lineTo(0.334, 0.263).lineTo(0.236, 0.354).close().extrude(0.184)
result = resul... | 15 | 274 | 0.167462 |
train_3ebab73dd709e06f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.444, 0.012, -0.59), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.41, 0.081).lineTo(-0.303, 0.081).threePointArc((-0.317, 0.137), (-0.321, 0.194)).threePointArc((0.044, 0.56), (0.41, 0.194)).threePointArc((0.409, 0.166), (0.405, 0.138)).threePoi... | 10 | 159 | 0.6794 |
train_e09640dd56365598 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.004, 0.017, -0.518), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.796, 1.087).extrude(1.119)
result = result.union(cq.Workplane(cq.Plane(origin=(0.104, -0.166, -0.734), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.516, 0.503).extrude(0.233))
result = ... | 16 | 278 | 1.925526 |
train_654ed00c12c57028 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.386, 0.138, -0.496), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.795, 0.495).extrude(0.85)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.574, 0.088, -0.411), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.441, 0.246).extrude(0.509))
result = re... | 16 | 72 | 0.128681 |
train_ae15ef77c3361542 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.327, -0.727, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.096, -0.176).lineTo(0.003, -0.17).lineTo(0.011, -0.058).lineTo(-0.026, -0.055).lineTo(-0.035, -0.167).lineTo(-0.128, -0.16).lineTo(-0.15, -0.069).lineTo(-0.041, -0.042).lineTo(-0.05, ... | 1 | 27 | 0.022157 |
train_9db7bd04ee7d90d4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.411, 0, 0.491), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.252, 0.673).threePointArc((0.339, 0.661), (0.42, 0.628)).threePointArc((0.543, 0.504), (0.589, 0.336)).lineTo(0.589, -0.336).threePointArc((0.543, -0.504), (0.42, -0.628)).threePointAr... | 21 | 155 | 1.058895 |
train_43b2af7e1d37eeb8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.458, 0.542, -0.407), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.158, 0.917).lineTo(-0.278, 0.917).lineTo(-0.278, 0.73).lineTo(-0.443, 0.73).lineTo(-0.443, -0.396).lineTo(-0.593, -0.396).lineTo(-0.593, 0.947).lineTo(-0.428, 0.947).lineTo(-0.428... | 9 | 82 | 0.504157 |
train_f503767dc7938463 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.249, -0.15, 0.07), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.625, 0.036).lineTo(-0.625, 0.436).lineTo(0.625, 0.436).lineTo(0.625, 0.036).lineTo(-0.625, 0.036).close().workplane(offset=0.174).moveTo(-0.414, 0.103).lineTo(-0.414, 0.369).lineTo... | 21 | 136 | 0.364035 |
train_183a74b3e72381ac | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.044, -0.33, -0.343), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.593, 1.34).extrude(1.326)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.136, 0.187, -0.372), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.01, 0.646).lineTo(-0.46, 0.196).lin... | 11 | 96 | 2.332952 |
train_85b3d3a85ec4197e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.901), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.03, 0.443).extrude(0.038)
result = result.union(cq.Workplane(cq.Plane(origin=(0.021, 0, -0.876), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.251, 0.115).lineTo(0.251, -0.115).lineTo(-0.208,... | 4 | 22 | 0.062885 |
train_2b1a36355cfe53c9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.006, -0.366), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.279).sweep(cq.Workplane('XY').spline([(-0.58, -0.006), (-0.371, 0.143), (-0.161, 0.193), (0.049, 0.143), (0.259, -0.006)]))
result = result.edges().chamfer(0.103)
result = result.un... | 9 | 44 | 0.653754 |
train_0974ac73012d0fb7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.262, -0.181, -0.404), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.432, 1.637).extrude(0.54)
result = result.faces('<X').shell(-0.053)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.076, -0.263, -0.41), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(... | 7 | 36 | 0.428631 |
train_7ab6b786424a6a58 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.033, -0.194, 0.31), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.085, 0.354).threePointArc((-0.205, 0.017), (-0.319, -0.323)).threePointArc((-0.025, -0.34), (0.27, -0.354)).threePointArc((0.294, -0.017), (0.319, 0.319)).threePointArc((0.117, 0.... | 3 | 14 | 0.160752 |
train_304998a4329e01b9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.522, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.48, -0.245).lineTo(0.959, -0.245).lineTo(0.959, 1.289).lineTo(-0.959, 1.289).lineTo(-0.959, -0.245).lineTo(-0.48, -0.245).close().extrude(2)
result = result.edges().fillet(0.2)
result = ... | 9 | 47 | 3.842495 |
train_99b6010aace6d2f7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.029, -0.327, -0.642), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.347, 0.842).threePointArc((-0.682, 0.981), (-0.543, 0.646)).lineTo(-0.543, -0.189).lineTo(-0.543, -0.385).lineTo(-0.347, -0.385).lineTo(0.682, -0.385).lineTo(0.682, 0.842).lineTo... | 9 | 55 | 2.923539 |
train_8d1bb031e1d5ad33 | 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.431).workplane(offset=1.025).circle(0.394).workplane(offset=0.975).circle(0.391).loft()
result = result.edges().chamfer(0.382)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.444, -0.101, ... | 8 | 31 | 0.529716 |
train_0b1f674cad1bcdd2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.005, -0.575, 0.438), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.332).sweep(cq.Workplane('YZ').spline([(-0.575, -0.52), (-0.38, -0.834), (-0.185, -0.991), (0.01, -0.991), (0.205, -0.834), (0.4, -0.52)]))
result = result.edges().fillet(0.047)
res... | 10 | 29 | 0.058101 |
train_37ea11df1140d94a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.075, -0.85, -0.24), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.051, 0.886).threePointArc((-0.76, 0.075), (0.051, -0.736)).lineTo(0.76, -0.736).lineTo(0.76, 0.886).lineTo(0.051, 0.886).close().extrude(1.701)
result = result.edges().fillet(0.193... | 14 | 67 | 3.081701 |
train_4e67cd98f367976a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.209, -0.152, -0.138), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.164, 1.695).extrude(0.156)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.151, -0.067, 0.017), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.048, 1.526).extrude(0.023))
result ... | 20 | 289 | 0.360727 |
train_585a37f98769b508 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.875, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 1.47).threePointArc((-0.42, 1.295), (-0.595, 0.875)).threePointArc((-0.42, 0.455), (0, 0.28)).lineTo(0, -0.125).threePointArc((-0.707, 0.168), (-1, 0.875)).threePointArc((-0.707, 1.582),... | 2 | 12 | 0.281898 |
train_d98ec4db3858beff | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.044, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.802, 0.629).extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.399, -0.171, 0.418), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.046).extrude(0.331))
result = result.cut(cq.Wor... | 11 | 151 | 0.943044 |
train_338d48060d413b09 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.204, 0.179, 0.251), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.607, -0.438).lineTo(0.749, -0.003).lineTo(-0.607, 0.438).lineTo(-0.749, 0.003).lineTo(0.607, -0.438).close().sweep(cq.Workplane('XY').spline([(-0.308, 0.179), (0.204, 0.333), (0.715... | 11 | 129 | 1.083913 |
train_d902d5f8351dc837 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1.014, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.369, 1.223).threePointArc((-0.923, 0.669), (-0.369, 0.116)).lineTo(0.923, 0.116).lineTo(0.923, 1.223).lineTo(-0.369, 1.223).close().extrude(2)
result = result.edges().chamfer(0.157)
resu... | 10 | 57 | 2.887551 |
train_4c4e48f452f3c206 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1.021, 0.704, -0.013), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.832, 1.929).threePointArc((0.987, 1.994), (0.922, 1.839)).lineTo(0.922, 0.112).lineTo(0.922, 0.021).lineTo(0.832, 0.021).lineTo(-0.895, 0.021).lineTo(-0.987, 0.021).lineTo(-0.987,... | 2 | 19 | 1.651943 |
train_438d042a37e22958 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.204, 0.173, -0.055), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.528, 0.281).lineTo(-0.796, 0.038).lineTo(-0.674, -0.594).lineTo(-0.132, -0.721).lineTo(0.23, -0.701).lineTo(0.751, -0.011).close().moveTo(0.159, 0.222).lineTo(0.047, 0.375).lineT... | 17 | 97 | 0.334348 |
train_0b23bf2f7189d578 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.046, 0.061, 0.483), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.097, 0.15).lineTo(0.122, 0.094).lineTo(-0.097, -0.004).lineTo(-0.122, 0.052).lineTo(-0.108, 0.058).lineTo(0.083, 0.144).lineTo(0.097, 0.15).close().extrude(0.279)
result = result.e... | 6 | 45 | 0.008118 |
train_7ad1e3d8cb037f5d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.121), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.984, 0.361).lineTo(-0.984, -0.361).lineTo(0.984, -0.361).lineTo(0.984, 0.361).lineTo(-0.984, 0.361).close().workplane(offset=0.044).moveTo(-0.941, 0.345).lineTo(-0.941, -0.345).lineTo(0.9... | 15 | 6 | 0.331821 |
train_f3e409ac1c460b91 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.45, -0.131), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, 0.55).threePointArc((0.389, 0.389), (0.55, 0)).threePointArc((0.389, -0.389), (0, -0.55)).threePointArc((-0.389, -0.389), (-0.55, 0)).lineTo(0, 0).lineTo(0, 0.55).close().sweep(cq.Wo... | 4 | 36 | 0.47505 |
train_ff893ba0a3f73392 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.238, 0.12, -0.271), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.152, 0.88).lineTo(0.163, 0.856).lineTo(0.153, 0.128).lineTo(0.661, 0.167).lineTo(0.642, -0.149).lineTo(0.147, -0.177).lineTo(0.172, -0.867).lineTo(-0.152, -0.838).lineTo(-0.14, -0... | 9 | 53 | 0.254849 |
train_216f2120774fa8ca | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.624, -0.152, -0.076), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.153, 1.624).lineTo(0.153, 1.624).lineTo(0.153, 0.094).lineTo(-0.153, -0.412).lineTo(-0.153, 1.624).close().extrude(0.275)
result = result.edges().chamfer(0.041)
result = result.... | 26 | 473 | 0.118787 |
train_28d4419ae7b2f1ce | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.125, -0.911, -0.142), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.082, -0.089).lineTo(0.082, -0.089).threePointArc((0.096, -0.074), (0.082, -0.059)).lineTo(-0.066, -0.059).lineTo(-0.066, 0.089).lineTo(-0.096, 0.089).lineTo(-0.096, -0.059).lin... | 14 | 55 | 0.053304 |
train_dcc5695327732f32 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.026, 0.005, -0.445), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.981, 0.019).lineTo(0.66, 0.703).lineTo(0.009, 0.972).lineTo(-0.667, 0.673).lineTo(-0.974, -0.015).lineTo(-0.704, -0.672).lineTo(-0.019, -0.983).lineTo(0.655, -0.695).close().moveT... | 23 | 235 | 0.726043 |
train_88de01d2e544ef81 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.126, 0.456, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.497, 0.315).lineTo(0.497, -0.282).lineTo(-0.094, -0.282).lineTo(-0.094, -0.312).lineTo(-0.216, -0.312).lineTo(-0.216, -0.282).lineTo(-0.3, -0.282).lineTo(-0.3, -0.315).lineTo(-0.497, -... | 3 | 26 | 0.890597 |
train_81a82e704667d550 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.336, -0.376, 0.318), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.682, 0.603).lineTo(-0.682, 0.603).lineTo(-0.682, -0.13).lineTo(0.682, -0.13).lineTo(0.682, 0.603).close().revolve(angleDegrees=90, axisStart=(0.682, 0.603), axisEnd=(-0.361, 0.603... | 13 | 80 | 0.581163 |
train_5bd87189aea7c643 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.811, -0.104, -0.046), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.028, 0.068).lineTo(-0.189, 0.068).lineTo(-0.189, 0.122).lineTo(-0.028, 0.122).lineTo(-0.028, 0.288).lineTo(0.026, 0.288).lineTo(0.026, 0.122).lineTo(0.189, 0.122).lineTo(0.189,... | 11 | 70 | 0.216522 |
train_c9532e06adfa2fc7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.166, -0.325), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.686, 1.668).extrude(0.715)
result = result.union(cq.Workplane(cq.Plane(origin=(0.211, 0.827, -0.155), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.237, 0.346).extrude(0.077))
result = resu... | 12 | 98 | 1.879209 |
train_9bc496c6fb2ebb64 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.106, -0.04, 0.906), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.553).workplane(offset=0.624).circle(0.574).workplane(offset=0.714).circle(0.454).loft()
result = result.edges().chamfer(0.274)
result = result.union(cq.Workplane(cq.Plane(origin=(... | 17 | 87 | 0.599952 |
train_5008de4a9abe8000 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.734), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.497).extrude(1.469)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.031, 0.522, -0.337), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.063, 0.477).extrude(0.489))
result = result.cut(cq.... | 7 | 206 | 3.57078 |
train_67e623c249089d4b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.646, -0.028, 0.412), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.405).workplane(offset=0.798).circle(0.383).workplane(offset=0.61).circle(0.339).loft()
result = result.edges().fillet(0.226)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.6... | 16 | 80 | 0.482313 |
train_df4748bf02f41f52 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.567, -0.565, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.995).lineTo(-1, 0.462).lineTo(-0.068, 0.298).lineTo(0.602, 0.18).lineTo(1, 0.109).lineTo(1, 0.995).lineTo(-1, 0.995).close().extrude(1.134)
result = result.edges().chamfer(0.118)
... | 8 | 113 | 1.409244 |
train_fdd03a52e7a02cab | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.308, 0.198, 0.112), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.287, 0.432).threePointArc((-0.287, 0.469), (-0.284, 0.506)).threePointArc((0.206, 0.771), (0.324, 0.226)).threePointArc((0.306, 0.206), (0.285, 0.188)).lineTo(-0.324, -0.414).line... | 12 | 68 | 0.352006 |
train_d771c2de924daac2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.481, 0.964, -0.214), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.753, 0.817).threePointArc((0.652, 1.193), (0.376, 1.469)).threePointArc((0, 1.57), (-0.376, 1.469)).threePointArc((-0.652, 1.193), (-0.753, 0.817)).lineTo(-0.753, 0.382).lineTo(-0... | 15 | 70 | 1.342533 |
train_f9b34eb4449e3e39 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.716, 0.003, -0.121), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.053, 0.398).lineTo(0.052, 0.388).lineTo(0.05, 0.05).lineTo(0.28, 0.042).lineTo(0.287, -0.052).lineTo(0.046, -0.043).lineTo(0.044, -0.403).lineTo(-0.054, -0.398).lineTo(-0.04, -0.... | 13 | 205 | 0.091829 |
train_d13fa879da8f528f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.179, -0.15, -0.245), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.643, 1.361).extrude(0.825)
result = result.faces('>Z').shell(-0.033)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.015, -0.288, -0.498), normal=(0, 0, 1), xDir=(1, 0, 0))).... | 27 | 40 | 0.388575 |
train_8ca29b1d8a2c29ae | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.12, -0.12, 0.462), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.075, 0.06).lineTo(-0.075, 0.042).lineTo(0.062, 0.042).lineTo(0.062, 0.036).lineTo(-0.087, 0.036).lineTo(-0.087, 0.077).lineTo(-0.102, 0.077).lineTo(-0.102, 0.118).lineTo(-0.087, 0.... | 8 | 54 | 0.008614 |
train_2b84b0ab59a08943 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.098, 0.015, -0.267), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.547, 0.554).extrude(1.267)
result = result.union(cq.Workplane(cq.Plane(origin=(0, -0.276, 0.492), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.015).extrude(0.176))
result = result.cut... | 11 | 35 | 0.353668 |
train_c727e6b1062420e8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.482, 0, 0.378), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.602, 0.929).lineTo(0.602, -0.929).lineTo(-0.602, -0.929).lineTo(-0.602, 0.929).lineTo(0.602, 0.929).close().workplane(offset=0.276).moveTo(0.486, 0.75).lineTo(0.486, -0.75).lineTo(-0.4... | 7 | 50 | 0.699533 |
train_39a82421f1a015db | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.252, -0.098, 0.118), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.116, -0.525).lineTo(0.116, 0.323).lineTo(0.29, 0.323).lineTo(0.29, 0.525).lineTo(-0.29, 0.525).lineTo(-0.29, 0.323).lineTo(-0.116, 0.323).lineTo(-0.116, -0.323).lineTo(-0.29, -0.32... | 9 | 45 | 0.554244 |
train_35c347178acfcf29 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.033, -0.129, 0.1), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.297).sweep(cq.Workplane('YZ').spline([(-0.63, -0.198), (-0.135, -0.173), (0.361, -0.27), (0.856, -0.491)]))
result = result.edges().chamfer(0.239)
result = result.union(cq.Workplane... | 20 | 65 | 0.270214 |
train_74f15de7342d703d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.155), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.623).extrude(0.377)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.194, -0.114, 0.014), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.052).extrude(0.02))
result = result.cut(cq.Workpla... | 11 | 40 | 1.187106 |
train_e6fc204c290e4963 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.636, -0.259, 0.009), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.108, 0.16).lineTo(0, 0).lineTo(0.108, 0.16).lineTo(0.108, 0.103).lineTo(0.019, -0.029).lineTo(0.108, -0.16).lineTo(-0.108, -0.16).lineTo(-0.108, 0.16).close().sweep(cq.Workplane(... | 9 | 103 | 0.297232 |
train_1d38124a87a821d0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.011, -0.027, 0.03), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.199, -0.001).lineTo(0.142, 0.133).lineTo(-0.005, 0.204).lineTo(-0.14, 0.14).lineTo(-0.194, -0.002).lineTo(-0.144, -0.147).lineTo(0.002, -0.188).lineTo(0.136, -0.13).close().moveTo(... | 16 | 247 | 0.053999 |
train_01639578f6bf46b8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.518, -0.318, -0.523), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.087, 0.523).threePointArc((-0.182, 0.437), (-0.209, 0.311)).lineTo(-0.497, 0.145).threePointArc((-0.46, 0.066), (-0.41, -0.005)).threePointArc((0, -0.199), (0.41, -0.005)).three... | 12 | 99 | 0.58928 |
train_5f531b56333ba76a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.844, -1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.656, 1.585).lineTo(-0.969, 0.646).lineTo(-0.656, 0.104).lineTo(0.969, 1.043).lineTo(0.656, 1.585).close().extrude(1.717)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.081, 0.853,... | 8 | 41 | 1.158493 |
train_de1d63402ddb6544 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.662, 0.034, -0.361), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.373, 0.147).extrude(0.427)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.774, 0.033, 0.007), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.013).extrude(0.679))
result = resul... | 17 | 80 | 0.161698 |
train_f68144db7aa5dafb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.348, -0.394, -0.301), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.946, 1.213).extrude(0.329)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.03, -0.333, 0.043), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.562, -0.657).threePointArc((-0.44,... | 9 | 84 | 1.128716 |
train_40f427bba906c91a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.944, -1, -0.199), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.697, 1.017).lineTo(0.697, 1.414).lineTo(0.271, 1.414).lineTo(0.271, 1.017).lineTo(-0.271, 1.017).lineTo(-0.271, 1.414).lineTo(-0.697, 1.414).lineTo(-0.697, 0.15).lineTo(0.697, 0.15).... | 16 | 112 | 1.575663 |
train_ab9b2fa8448d6b9c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.022, 0.089, -0.144), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.432, 0.007).lineTo(-0.379, 0.06).lineTo(-0.18, 0.06).lineTo(-0.133, 0.106).lineTo(-0.086, 0.06).lineTo(0.432, 0.06).lineTo(0.432, 0.007).lineTo(-0.432, 0.007).close().extrude(0.2... | 11 | 84 | 0.057238 |
train_50497654a13b04d2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.702, 1.906).extrude(0.138)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.426, 0, -0.874), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.083).extrude(0.417))
result = result.union(cq.Workp... | 3 | 11 | 0.480283 |
train_3f534d9092142f4f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.169, -0.455, -0.346), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.124).workplane(offset=0.129).circle(0.251).workplane(offset=0.111).circle(0.12).workplane(offset=0.099).circle(0.11).workplane(offset=0.106).circle(0.175).workplane(offset=0.1).... | 7 | 52 | 0.111539 |
train_14c0999fe9eddc45 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.022, 0, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-1, 0.854).lineTo(-1, -0.81).lineTo(0, -0.81).lineTo(0, -0.264).threePointArc((-0.202, -0.18), (-0.286, 0.022)).threePointArc((-0.202, 0.224), (0, 0.308)).threePointArc((0.202, 0.224), (0.28... | 11 | 82 | 1.675245 |
train_fc0713e3f32c9870 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.282, 0.114, 0.032), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 0.968).lineTo(0, 0.743).lineTo(0.112, 0.743).lineTo(0.112, -0.718).lineTo(-0.112, -0.718).lineTo(-0.112, 0.968).lineTo(0, 0.968).close().extrude(0.228)
result = result.edges().cha... | 19 | 164 | 0.063999 |
train_2e38b036e6242d86 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.556, -0.685, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.039, 0.216).lineTo(-0.724, -0.18).lineTo(-0.645, -0.315).lineTo(0.567, -0.315).lineTo(0.645, -0.18).lineTo(0.724, -0.043).lineTo(0.421, 0.481).lineTo(0.118, 1.006).lineTo(0.118, 1.68... | 5 | 50 | 1.087204 |
train_df33f5c2cd832e92 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.032, 0.027, -0.121), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.45, 1.291).extrude(0.173)
result = result.union(cq.Workplane(cq.Plane(origin=(0.072, 0.027, 0.051), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.369, 1.012).extrude(0.043))
result = re... | 15 | 67 | 0.317246 |
train_d02e0e654a2194d4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.091, 0.374, 0.578), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.08, -0.147).lineTo(0.08, -0.147).lineTo(0.08, 0.344).lineTo(-0.08, 0.344).lineTo(-0.08, -0.147).close().extrude(0.15)
result = result.edges().chamfer(0.039)
result = result.union(... | 7 | 53 | 0.205299 |
train_29594a7e714e8f0a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.481, -0.071, -0.5), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.5, 0.133).lineTo(0.5, -0.012).lineTo(-0.5, -0.012).lineTo(-0.5, 0.133).lineTo(0.5, 0.133).close().extrude(0.962)
result = result.edges().chamfer(0.067)
result = result.union(cq.Wor... | 18 | 321 | 0.092565 |
train_f43ca3a4fb66beae | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, 0.468, 0.542), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.587).workplane(offset=0.519).circle(0.523).workplane(offset=0.565).circle(0.46).loft()
result = result.edges().fillet(0.406)
result = result.union(result.mirror('XZ', basePointVec... | 4 | 12 | 1.402815 |
train_0838d784c92df153 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.043, -0.025, 0.007), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.034, 1.043).lineTo(0.034, -0.957).lineTo(-0.034, -0.957).lineTo(-0.034, 1.043).lineTo(0.034, 1.043).close().extrude(0.051)
result = result.edges().fillet(0.019)
result = result.cu... | 7 | 53 | 0.005594 |
train_acf7adf2075b7a40 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.408, 0.341, 0.007), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.427, -0.592).threePointArc((0.099, 0.038), (-0.604, 0.13)).threePointArc((-0.919, 0.277), (-0.772, 0.592)).threePointArc((0.381, 0.44), (0.919, -0.592)).lineTo(0.427, -0.592).close... | 1 | 6 | 0.169362 |
train_58ae38d24a5e7ad1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.564, 0, -0.122), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.436, 0.312).lineTo(0.436, -0.312).lineTo(-0.436, -0.312).lineTo(-0.436, 0.312).lineTo(0.436, 0.312).close().extrude(0.392)
result = result.edges().fillet(0.028)
result = result.union(... | 11 | 88 | 0.273865 |
train_a012f3737e471d94 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.507, 0.011, 0.001), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.986, 0.102).extrude(0.206)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.464, 0.031, 0.031), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.072, 0.024).extrude(0.075))
result = re... | 11 | 53 | 0.041491 |
train_a2c6b0c9cd0a911f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.412, -0.103, 0.046), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, -0.067).lineTo(-0.024, -0.053).lineTo(-0.024, -0.081).lineTo(-0.048, -0.095).lineTo(-0.024, -0.109).lineTo(-0.024, -0.137).lineTo(0, -0.123).lineTo(0.012, -0.116).lineTo(0.024, -0... | 16 | 136 | 0.242874 |
train_8c89014f84d921fa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.409, 0, -0.003), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.591, -0.063).lineTo(0.591, 0.063).lineTo(-0.555, 0.063).lineTo(-0.555, 0.027).lineTo(-0.591, 0.027).lineTo(-0.591, -0.063).lineTo(-0.555, -0.063).lineTo(-0.555, -0.027).lineTo(0.231, ... | 5 | 50 | 0.000818 |
train_bc66c5ce21c69fd3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.408, -0.609, -0.06), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.391).transformed(offset=(0.19, 0.062, 0.044), rotate=(0, 0, 10)).circle(0.234).transformed(offset=(0.38, 0.067, 0.026), rotate=(0, 0, 60)).circle(0.253).transformed(offset=(0.57, ... | 1 | 4 | 0.013987 |
train_22bbb4bc7b718311 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0, -0.214), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.185).lineTo(-0.203, -0.017).lineTo(-0.203, -0.139).lineTo(-0.325, -0.139).lineTo(-0.325, -0.185).lineTo(-0.122, -0.185).lineTo(-0.122, -0.139).lineTo(0.325, -0.139).lineTo(0, 0.185).c... | 4 | 25 | 0.086518 |
train_581da3607131c7f6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.358, -0.437, -0.619), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.78, 0.854).extrude(0.109)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.869, -0.452, -0.601), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.262, 0.401).extrude(0.042))
result ... | 9 | 80 | 0.477796 |
train_1fde5c8454293d7f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.009, -0.17, -0.041), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.966, 0.038).lineTo(0.486, 0.81).lineTo(-0.479, 0.786).lineTo(-0.948, 0).lineTo(-0.466, -0.818).lineTo(0.474, -0.83).close().moveTo(-0.268, -0.149).lineTo(-0.231, -0.15).lineTo(-0.... | 13 | 143 | 0.473536 |
train_c666a9cd5d46974c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.58, -0.106, -0.413), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.359, -0.568).threePointArc((-0.328, -0.444), (-0.58, 0.206)).threePointArc((0.58, 0.656), (0.359, -0.568)).close().extrude(1.16)
result = result.edges().fillet(0.093)
result = res... | 16 | 84 | 1.476541 |
train_67ec52842c4c2ac5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.281), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.624, -0.958).lineTo(-0.624, -0.958).lineTo(-0.624, 0.958).lineTo(-0.427, 0.958).lineTo(-0.427, 0.619).lineTo(0.624, 0.619).lineTo(0.624, -0.958).close().workplane(offset=0.094).moveTo(0.50... | 6 | 23 | 0.903994 |
train_6f82e186d5079ff3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.152, 0, -0.794), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.178, 2).extrude(1.361)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.367, 0.196, 0.553), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.306, 0.757).extrude(0.241))
result = result.u... | 14 | 130 | 2.782461 |
train_29014f120938789f | 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.821, 1.287).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.149, 0.159, 0.679), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.18).extrude(0.33))
result = result.cut(cq.Workplane(cq.... | 10 | 80 | 1.489846 |
train_18f1c03552f873a8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.841, 0.497, 0.012), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.159, -0.159).lineTo(0.159, -0.103).lineTo(0.113, -0.074).lineTo(-0.113, 0.074).lineTo(-0.081, 0.081).lineTo(-0.159, 0.159).lineTo(-0.159, -0.159).lineTo(0.159, -0.159).close().tra... | 1 | 9 | 0.011838 |
train_fc285dcedc07b720 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.371), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.768, 2).extrude(0.771)
result = result.union(cq.Workplane(cq.Plane(origin=(0.088, 0.1, 0.396), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.796).extrude(0.066))
result = result.union(cq.Workp... | 13 | 113 | 2.530006 |
train_41bf087422344146 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.052), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.168, 2).extrude(0.103)
result = result.union(cq.Workplane(cq.Plane(origin=(0.121, -0.102, 0.051), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.09, 0.139).extrude(0.016))
result = result.cut(cq.... | 12 | 22 | 0.211295 |
train_2b341587604ab9b1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.527, -0.532, -0.081), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.081, 0.991).lineTo(-0.081, 0.262).lineTo(-0.198, -0.264).lineTo(-0.244, -0.468).lineTo(0.244, -0.468).lineTo(0.244, -0.264).lineTo(0.081, -0.264).lineTo(0.081, 0.991).close().ext... | 11 | 140 | 0.289349 |
train_21f2f3bb6bde5945 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.758), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.072, 0.928).threePointArc((-0.391, 0.804), (-0.732, 0.463)).lineTo(-1, 0).lineTo(-0.732, -0.463).lineTo(-0.463, -0.928).lineTo(0.072, -0.928).threePointArc((0.535, -0.804), (0.876, -0.463)... | 18 | 264 | 1.746599 |
train_34656cf171e10bfa | 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.181, 0.808).threePointArc((-0.827, 0.002), (-0.181, -0.806)).threePointArc((0, -0.826), (0.181, -0.806)).threePointArc((0.827, 0.005), (0.174, 0.809)).lineTo(0.064, 0.826).threePointArc((... | 5 | 23 | 3.389441 |
train_65c8bba2e95d5b3b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.45), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.417, 2).extrude(0.899)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.567 + 0.1415, 0.18, -1.75), normal=(0, 1, 0), xDir=(1, 0, 0))).moveTo(0.023, 0.005).lineTo(0.023, -0.005).lineTo(-0... | 17 | 6 | 2.547766 |
train_cdca27c28cf763c6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.108, -0.267, -0.207), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.82, 1.465).extrude(0.126)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.108, -0.267, -0.082), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.617, 1.05).extrude(0.023))
result =... | 7 | 41 | 0.281575 |
train_6ea33820af5cdc8f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.043, -0.818), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.112, 1.486).extrude(1.818)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.235, -0.742, 0.295), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.075, 0.088).extrude(0.18))
result = resul... | 11 | 71 | 3.024608 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.