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_91973212772e7232 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.002, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.611).workplane(offset=0.282).circle(0.658).workplane(offset=0.273).circle(0.677).workplane(offset=0.408).circle(0.625).workplane(offset=0.327).circle(0.683).workplane(offset=0.331).circle... | 12 | 111 | 1.62994 |
train_ced7be7c7ab718f9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.188, 0.103, -0.083), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.813, 0.01).lineTo(0.587, 0.554).lineTo(0.012, 0.799).lineTo(-0.558, 0.57).lineTo(-0.812, -0.007).lineTo(-0.563, -0.57).lineTo(0, -0.812).lineTo(0.56, -0.571).close().moveTo(-0.297... | 7 | 85 | 0.335027 |
train_1c313c86dd0ff1f8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.95, -0.377, -0.108), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.178, -0.05).lineTo(-0.178, 0.007).lineTo(-0.004, 0.007).lineTo(-0.004, 0.05).lineTo(0.004, 0.05).lineTo(0.004, 0.007).lineTo(0.178, 0.007).lineTo(0.178, -0.05).lineTo(-0.178, -0... | 3 | 21 | 0.006617 |
train_a1ddc7d601b0a3fc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.221, -0.158, 0.015), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.329, -0.294).threePointArc((0, 0.035), (0.329, -0.294)).lineTo(0.329, 0.129).lineTo(0.329, 0.294).lineTo(0.164, 0.294).lineTo(0, 0.294).lineTo(-0.164, 0.294).lineTo(-0.329, 0.129... | 7 | 138 | 0.255823 |
train_e75700dda1d8597a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.04, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.12, 0.77).extrude(1.618)
result = result.union(cq.Workplane(cq.Plane(origin=(0.559, -0.042, -0.623), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.082, 0.115).extrude(0.111))
result = result.cut... | 14 | 217 | 1.467119 |
train_c0f1a79961877b28 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.065, -0.293), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.605, 1.87).extrude(0.033)
result = result.union(cq.Workplane(cq.Plane(origin=(0.117, 0.061, -0.261), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.391).extrude(0.021))
result = result.unio... | 5 | 22 | 0.356767 |
train_0261c9dc9a9ca6ab | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.021, 0.477, -0.347), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.499, -0.007).lineTo(0.388, 0.364).lineTo(0.017, 0.523).lineTo(-0.375, 0.355).lineTo(-0.541, 0.015).lineTo(-0.349, -0.381).lineTo(0.016, -0.516).lineTo(0.393, -0.381).close().moveTo... | 13 | 118 | 0.339428 |
train_820b30d21322bae9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.756, -0.58, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-1, 1.756).lineTo(-1, 0.756).threePointArc((0, -0.244), (1, 0.756)).threePointArc((0.707, 1.463), (0, 1.756)).lineTo(-1, 1.756).close().extrude(1.212)
result = result.edges().chamfer(0.1... | 12 | 31 | 3.80626 |
train_1230f62efbeb2298 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.298, 0, -0.354), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.225, -0.252).threePointArc((0.093, -0.384), (0.225, -0.702)).lineTo(0.225, 1.298).lineTo(-0.225, 1.298).lineTo(-0.225, -0.252).close().revolve(angleDegrees=360, axisStart=(0.225, -0.... | 2 | 6 | 1.042409 |
train_e62e67b3ea62a83b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.714, 0.051, -0.088), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.152, -0.545).threePointArc((0.26, -0.104), (0.587, 0.211)).lineTo(0.587, 1.064).threePointArc((-0.435, 0.298), (-0.587, -0.971)).lineTo(0.152, -0.545).close().extrude(1.141)
resul... | 21 | 177 | 1.609006 |
train_25c533de4c39e762 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.391, -0.144, 0.663), normal=(-1, 0, 0), xDir=(0, 0, 1))).lineTo(0.337, 0.131).lineTo(-1.663, 0.056).close().workplane(offset=0.148).lineTo(0.303, 0.157).lineTo(-1.495, 0.09).close().workplane(offset=0.143).lineTo(0.269, 0.183).lineTo(-1.327, 0.1... | 4 | 16 | 0.075002 |
train_6a97d83a9b13f17d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.434, -0.384, -0.35), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.534, 0.534).extrude(0.672)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.743, -0.441, -0.027), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.09, 0.117).extrude(0.156))
result =... | 19 | 187 | 0.819129 |
train_a4524b40343d05f6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.236, -0.726), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.808, 1.527).extrude(1.453)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.127, -0.142, 0.132), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.084).extrude(0.345))
result = result.cut(... | 19 | 151 | 3.393145 |
train_3b523e643b764602 | 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.626, 0.693).extrude(0.388)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, -0.621), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.172).extrude(0.243))
result = result.union(cq.Workplane(... | 14 | 49 | 0.203986 |
train_c76a75e6138bee60 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.648, 0, 0.464), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.598).workplane(offset=0.652).circle(0.501).workplane(offset=0.643).circle(0.512).loft()
result = result.edges().fillet(0.306)
result = result.faces('>Z').shell(-0.077)
result = result.... | 18 | 90 | 1.561244 |
train_4a6bfa8a1c6c8267 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.74, 0.03, -0.042), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.374, 0.341).lineTo(-0.374, 0.026).lineTo(0.374, 0.026).lineTo(0.374, 0.341).lineTo(-0.374, 0.341).close().extrude(0.615)
result = result.edges().chamfer(0.033)
result = result.unio... | 20 | 223 | 0.433909 |
train_68288308706eb669 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.179, -0.403), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.435).extrude(1.351)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.341, 0.021, -0.948), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.237).extrude(0.604))
result = result.union... | 4 | 43 | 4.022754 |
train_6d9ed5b651108468 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.234, 0.236, -0.104), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.768, 0.003).lineTo(0.362, 0.649).lineTo(-0.396, 0.657).lineTo(-0.766, -0.008).lineTo(-0.383, -0.649).lineTo(0.375, -0.659).close().moveTo(0.136, 0).lineTo(-0.006, 0.175).lineTo(-0... | 23 | 131 | 0.172869 |
train_5ac51428c93219b6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.384, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.111, -0.2).lineTo(0.45, -0.005).lineTo(0.562, 0.579).lineTo(0.111, 0.968).lineTo(-0.45, 0.772).lineTo(-0.562, 0.189).lineTo(-0.111, -0.2).close().extrude(2)
result = result.edges().fillet... | 20 | 63 | 1.530274 |
train_bc7ee03a95ce7eff | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.5, 0), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1, 0.5).lineTo(1, 0.5).lineTo(0, -0.5).lineTo(-0.5, 0).lineTo(-0.5, -0.5).lineTo(-1, -0.5).lineTo(-1, 0.5).close().revolve(angleDegrees=270, axisStart=(-1, 0.5), axisEnd=(-0.5, 0.5))
| 1 | 7 | 2.650719 |
train_3c440cc96f831dd8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.028, -0.185), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.335).extrude(0.371)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.491, 0.802, -0.112), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.423, 0.234).extrude(0.169))
result = result.u... | 15 | 55 | 0.693072 |
train_cfea5dd833f7f704 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.037, -0.169, -0.536), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.357, 1.377).extrude(0.676)
result = result.faces('<X').shell(-0.031)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.021, 0.675, -0.219), normal=(0, 0, 1), xDir=(1, 0, 0))).r... | 9 | 69 | 0.309981 |
train_d8ca68b280348994 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.14), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.083, 2).extrude(0.28)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.14, -0.844), normal=(1, 0, 0), xDir=(0, 1, 0))).circle(0.072).center(-0.037, -0.002).circle(0.027).moveTo(0.036, -... | 13 | 51 | 0.422745 |
train_e3e40476bae72188 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.777, 0.024, -0.852), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.203, 0.142).threePointArc((0.164, 0), (0.06, -0.104)).lineTo(0.06, -0.062).lineTo(0.06, 0.142).lineTo(-0.223, 0.142).lineTo(-0.223, -0.062).lineTo(-0.223, -0.104).threePointArc((-... | 4 | 169 | 0.25275 |
train_ffe6552840b0709b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.11, -0.404, 0.058), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.015, -0.02).threePointArc((0, 0.02), (0.015, -0.02)).lineTo(-0.015, -0.02).close().extrude(0.033)
result = result.edges().fillet(0.005)
result = result.union(cq.Workplane(cq.Plane... | 5 | 70 | 0.026432 |
train_b2ced38a777adf0a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.768, -0.68, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.733, -0.32).lineTo(-0.733, 1.413).lineTo(1, 1.413).lineTo(1, 1.68).lineTo(-1, 1.68).lineTo(-1, -0.32).lineTo(-0.733, -0.32).close().extrude(1.536)
result = result.edges().chamfer(0.12... | 2 | 38 | 1.381834 |
train_3dc2beae6f7ac5fc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.482), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.268, 2).extrude(0.876)
result = result.union(cq.Workplane(cq.Plane(origin=(0.063, 0.1, 0.391), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.141, 1.8).extrude(0.106))
result = result.union(cq.Wo... | 15 | 88 | 1.871415 |
train_a98b9cfeb6c05784 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.004, 0.021, -0.067), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.019, 0.128).threePointArc((-0.008, 0.123), (-0.033, 0.111)).lineTo(-0.033, 0.064).lineTo(-0.08, 0.064).threePointArc((-0.091, 0.039), (-0.096, 0.013)).lineTo(-0.045, 0.013).lineTo(... | 14 | 96 | 0.369835 |
train_8916163744a690bc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.565, 0.082), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.209, 0.031).threePointArc((-0.184, -0.225), (-0.112, -0.472)).threePointArc((-0.57, 0.8), (0.57, 1.527)).threePointArc((0.003, 1.027), (-0.209, 0.301)).lineTo(-0.209, 0.031).close().e... | 31 | 108 | 0.75412 |
train_f21058c5b1562952 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.111), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.335, 1).lineTo(-0.411, 1).lineTo(-0.411, 0.569).lineTo(-0.271, 0.65).lineTo(-0.271, -1).lineTo(0.195, -0.731).lineTo(0.411, -0.607).lineTo(0.411, 0.857).lineTo(0.335, 0.814).lineTo(0.195, ... | 23 | 171 | 0.259222 |
train_a13e6cebbd24bb52 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.256, 0.013, -0.594), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.488, 1.108).extrude(1.189)
result = result.faces('>Z').shell(-0.101)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.205, 0.758, -0.371), normal=(0, 0, 1), xDir=(1, 0, 0))).c... | 8 | 53 | 0.841566 |
train_4e90ae4edccf94b9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.014), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1, 0.028).lineTo(-1, 0.01).lineTo(1, 0.01).lineTo(1, 0.028).lineTo(-1, 0.028).close().revolve(angleDegrees=180, axisStart=(0, 0), axisEnd=(0.005, 0))
result = result.edges().chamfer(0.001)
... | 9 | 75 | 0.00204 |
train_a8999b7b2fbdda19 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.638, -0.478), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.536, 0.536).extrude(0.816)
result = result.union(cq.Workplane(cq.Plane(origin=(0.022, -0.948, -0.279), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.052).extrude(0.177))
result = result.e... | 14 | 157 | 0.319233 |
train_37486b2c30f7b066 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.02, 0, -0.087), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.98, -0.869).lineTo(0.979, -0.868).lineTo(0.98, 0.826).lineTo(-0.964, 0.869).close().moveTo(0.064, 0.115).lineTo(-0.084, 0.095).lineTo(-0.091, -0.108).lineTo(-0.03, -0.151).lineTo(0.022... | 13 | 172 | 0.706865 |
train_d8c202d01c10ad2c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.033, 0.035, -0.127), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.993, 1.249).extrude(0.279)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.033, -0.284, -0.048), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.056, 0.643).extrude(0.121))
result = ... | 21 | 189 | 0.343817 |
train_4f4c692f4d022824 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.621, -0.043, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.186, 0.29).lineTo(-0.194, 0.29).lineTo(-0.194, 0.023).lineTo(0.011, 0.023).lineTo(0.011, 0.029).lineTo(0.035, 0.029).lineTo(0.035, 0.023).lineTo(0.194, 0.023).lineTo(0.194, 0.29).li... | 10 | 53 | 0.07117 |
train_1cf1b0ccb1556a5c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.203, -0.007, -0.07), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.041, -0.041).lineTo(-0.052, -0.041).lineTo(-0.052, -0.04).lineTo(-0.053, -0.04).lineTo(-0.053, 0.035).lineTo(0.053, 0.035).lineTo(0.053, -0.038).lineTo(0.067, -0.038).lineTo(0.06... | 17 | 296 | 0.201695 |
train_1840d4c6ebabd68c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.007, 0.246, 0.4), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.328, 0.661).lineTo(-0.422, 0.661).lineTo(-0.422, 0.754).lineTo(0.422, 0.754).lineTo(0.422, -0.09).lineTo(0.328, -0.09).lineTo(0.328, 0.004).lineTo(-0.328, 0.004).lineTo(-0.328, 0.66... | 29 | 133 | 0.529177 |
train_8430af96a45c9214 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.322, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.577, 0.507).threePointArc((0.546, 0.586), (0.503, 0.66)).threePointArc((-0.607, 0.322), (0.503, -0.017)).threePointArc((0.546, 0.058), (0.577, 0.137)).threePointArc((0.599, 0.228), (0.607,... | 7 | 40 | 1.578823 |
train_dc91d5c0ce160aba | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.626, -0.251, 0.034), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.239).sweep(cq.Workplane('XY').spline([(0.215, -0.251), (0.327, -0.153), (0.319, -0.035), (0.192, 0.057), (-0.003, 0.088)]))
result = result.union(cq.Workplane(cq.Plane(origin=(0.87... | 9 | 59 | 0.122625 |
train_d3b0b859d2f62a63 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.004, 0, -0.235), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.475, 0.013).lineTo(0.351, 0.339).lineTo(-0.004, 0.494).lineTo(-0.337, 0.34).lineTo(-0.483, -0.011).lineTo(-0.349, -0.349).lineTo(0.012, -0.475).lineTo(0.348, -0.351).close().moveTo(0, ... | 18 | 223 | 0.20615 |
train_070d7428ee11fa3c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.085, -0.004, 0.107), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.009, 0.261).threePointArc((0.261, 0), (-0.009, -0.261)).threePointArc((-0.195, -0.175), (-0.261, 0.018)).lineTo(-0.009, 0.018).lineTo(-0.009, 0.261).close().extrude(0.06)
result ... | 10 | 64 | 0.116934 |
train_f5760cd59e7e21d0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.192, -0.182, 0.003), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.091, 1.084).extrude(0.997)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.29, -0.258, 0.297), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.183).extrude(0.237))
result = result.... | 26 | 147 | 1.003828 |
train_92b8b1076b489895 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.631, -0.623, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.905, 1.314).threePointArc((0.735, 0.679), (0.27, 0.214)).threePointArc((-0.036, 0.087), (-0.365, 0.044)).threePointArc((-0.694, 0.087), (-1, 0.214)).lineTo(-1, 0.105).lineTo(-1, 0.044... | 2 | 18 | 0.308307 |
train_1ac50f1c9f2051fa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.159, 0.121, -0.57), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.577, 0.007).lineTo(0.402, 0.405).lineTo(0.002, 0.585).lineTo(-0.434, 0.427).lineTo(-0.578, 0.009).lineTo(-0.423, -0.398).lineTo(-0.013, -0.603).lineTo(0.423, -0.416).close().moveTo... | 13 | 127 | 0.924662 |
train_a1a47ea5cba98521 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.465, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.712, -0.425).lineTo(-0.722, -0.409).lineTo(-0.6, -0.336).lineTo(-0.591, -0.352).lineTo(0.582, 0.352).lineTo(0.704, 0.425).lineTo(0.722, 0.425).lineTo(0.722, 0.283).lineTo(0.704, 0.283).li... | 1 | 14 | 0.56352 |
train_c956a6b048f23565 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.695, -0.279, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.39, -0.279).lineTo(0.501, -0.279).lineTo(0.501, 0.279).lineTo(-0.501, 0.279).lineTo(-0.501, -0.279).lineTo(-0.39, -0.279).close().sweep(cq.Workplane('XY').moveTo(0.467, -0.717).spline... | 2 | 10 | 0.913692 |
train_7ececc18017d482a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.031, -0.153, 0.354), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.071, -0.212).threePointArc((0.141, 0), (0.071, 0.212)).lineTo(-0.141, 0).lineTo(0.071, -0.212).close().extrude(0.251)
result = result.edges().chamfer(0.009)
result = result.union... | 6 | 70 | 0.042855 |
train_2972d560f6587982 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.011, -0.001, -0.148), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.011, 0.023).lineTo(0.703, 0.682).lineTo(0.011, 0.999).lineTo(-0.69, 0.744).lineTo(-0.989, 0.016).lineTo(-0.719, -0.683).lineTo(-0.002, -0.997).lineTo(0.714, -0.69).close().moveTo... | 7 | 38 | 0.624208 |
train_fe76acb2b9204937 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.233, -0.225, 0.01), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.119, 1.082).lineTo(0.31, 1.082).lineTo(0.19, 1.225).lineTo(-0.31, 1.225).lineTo(-0.31, 0.166).threePointArc((-0.274, 0.163), (-0.239, 0.154)).lineTo(-0.239, -0.489).lineTo(-0.239, ... | 6 | 53 | 0.393117 |
train_63294002aef1816d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.585, 0.899, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.866, 0.085).threePointArc((-0.866, 0.085), (0, 1.585)).threePointArc((0.866, 1.085), (0.866, 0.085)).close().extrude(1.798)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.105, -0... | 9 | 41 | 5.263705 |
train_6ae93bbcb87c6263 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.477, 0.018), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.965, 0.469).lineTo(-0.965, -0.469).lineTo(-0.689, -0.469).lineTo(-0.689, -0.579).lineTo(0.965, -0.579).lineTo(0.965, 0.579).lineTo(-0.689, 0.579).lineTo(-0.689, 0.469).lineTo(-0.965, ... | 4 | 22 | 2.244732 |
train_01feb7feb86b4c0b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, 1, 0.039), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.383, 1.721).lineTo(-0.383, 2).lineTo(-0.383, 0.532).lineTo(0.383, 0.811).lineTo(0.383, 1.721).close().revolve(angleDegrees=90, axisStart=(0, 0), axisEnd=(0.706, 0))
result = result.cut(cq.... | 18 | 129 | 1.213115 |
train_a98c16f9f739422e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.632, 0, 0.616), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.435).sweep(cq.Workplane('XZ').spline([(0.632, -0.059), (1.077, 0.19), (1.522, 0.367), (1.967, 0.473)]))
result = result.edges().chamfer(0.073)
result = result.cut(cq.Workplane(cq.Plane(... | 3 | 10 | 0.42295 |
train_dd4d5276eb768d9a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.034, 0.173, -0.534), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.19).workplane(offset=0.073).circle(0.177).workplane(offset=0.066).circle(0.179).workplane(offset=0.074).circle(0.184).workplane(offset=0.055).circle(0.188).workplane(offset=0.07)... | 12 | 176 | 0.191527 |
train_708d19b5753a312c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.552, 0, 0), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.448, 0.14).lineTo(-0.448, -0.14).lineTo(0.448, -0.14).lineTo(0.448, 0.14).lineTo(-0.448, 0.14).close().revolve(angleDegrees=360, axisStart=(-0.448, 0.14), axisEnd=(-0.448, -0.14))
result ... | 9 | 86 | 0.691145 |
train_a8005106c3df4b81 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1, -0.19), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.337).sweep(cq.Workplane('YZ').spline([(-0.591, -0.838), (-0.361, -0.833), (-0.132, -0.802), (0.098, -0.68), (0.327, -0.464), (0.557, -0.343), (0.786, -0.312), (1.015, -0.306)]))
result = ... | 4 | 15 | 0.57945 |
train_798a24a78480488c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.163, -0.405, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.216, 0.352).lineTo(-0.216, -0.837).lineTo(0.108, -0.837).lineTo(0.108, -0.188).lineTo(0.216, -0.188).lineTo(0.216, 0.352).lineTo(0.108, 0.352).lineTo(0.108, 1.001).threePointArc((-0.... | 26 | 188 | 0.550083 |
train_424fe3a1f8635092 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.092, 0, -0.456), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.817, 1.85).extrude(0.911)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.635 + 0.3635, 0.2125, -1.658), normal=(0, 1, 0), xDir=(1, 0, 0))).circle(0.078).extrude(2.405))
result = re... | 28 | 33 | 2.907568 |
train_e5449c8e56265e91 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.019, -0.145, -0.042), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.156, 0.198).lineTo(-0.156, -0.03).lineTo(-0.099, -0.03).lineTo(-0.099, 0.008).lineTo(0.156, 0.008).lineTo(0.156, 0.046).lineTo(-0.099, 0.046).lineTo(-0.099, 0.16).lineTo(0.156, ... | 36 | 156 | 0.637096 |
train_b51ea602f31dbbc7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(2.186, -0.871, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 1.315).lineTo(-1, 1.315).lineTo(-1, 3.057).lineTo(-0.871, 3.057).lineTo(-0.871, 2.046).lineTo(-0.847, 1.814).lineTo(-0.871, 1.814).lineTo(-0.871, 1.446).lineTo(0.871, 1.446).lineTo(0... | 2 | 27 | 0.585065 |
train_f0e94b0e3a1b50cc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.282, -0.196, -0.318), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.208, 0.87).extrude(0.927)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.029, -0.808, -0.14), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.192).extrude(0.421))
result = resu... | 15 | 56 | 0.932826 |
train_c02495207188cf32 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.308, -0.996, 0.019), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.109, -0.27).threePointArc((0.064, 0.069), (0.356, 0.245)).threePointArc((-0.356, 0.27), (0.109, -0.27)).close().sweep(cq.Workplane('XY').spline([(-0.308, -0.16), (-0.11, 0.114), ... | 1 | 4 | 0.146863 |
train_d139e89e3e5e3352 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.005, 0.053), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, -0.492).lineTo(-0.09, -0.543).lineTo(-0.178, -0.594).lineTo(-0.178, -1.005).lineTo(0, -0.903).lineTo(0.09, -0.852).lineTo(0.178, -0.8).lineTo(0.178, 1.005).lineTo(0, 1.005).lineTo(0, ... | 12 | 67 | 0.035809 |
train_fa9169b2276511c1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.047), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.412, 2).extrude(0.073)
result = result.union(cq.Workplane(cq.Plane(origin=(0.253, 0.696, 0.025), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.14, 0.185).extrude(0.022))
result = result.cut(cq.W... | 7 | 30 | 0.158561 |
train_fb86795cbf9e1b62 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.18, -0.162, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.179, 1.162).lineTo(-0.179, -0.838).lineTo(-0.127, -0.838).lineTo(-0.127, 0.876).lineTo(0.127, 0.876).lineTo(0.127, -0.838).lineTo(0.179, -0.838).lineTo(0.179, 1.162).lineTo(-0.179, 1.... | 4 | 122 | 0.372496 |
train_1b5a5daab38e7033 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.231, -0.287), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1, 0.43).lineTo(0.404, 0.43).lineTo(0.404, 0.231).lineTo(1, 0.231).lineTo(1, 0.032).lineTo(0.205, 0.032).lineTo(0.205, 0.231).lineTo(-1, 0.231).lineTo(-1, 0.43).close().extrude(0.574)
... | 7 | 219 | 0.224656 |
train_7c956313cf93474b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.5, 0.001), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.336).sweep(cq.Workplane('YZ').spline([(0.936, -0.397), (0.458, -0.348), (0.015, -0.446), (-0.207, -0.65)]))
result = result.edges().chamfer(0.198)
result = result.union(cq.Workplane(cq.P... | 12 | 119 | 0.231186 |
train_6d266c0058bb4eb8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.102, -0.471), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.941, 1.797).extrude(0.724)
result = result.union(cq.Workplane(cq.Plane(origin=(0.097, -0.011, 0.25), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.747, 1.618).extrude(0.066))
result = resul... | 10 | 42 | 2.197371 |
train_b36a070762f2a1e4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.301, -1, -0.125), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.012, 0.391).lineTo(0.075, 0.156).lineTo(0.159, 0.156).lineTo(0.232, 0.114).lineTo(0.274, 0.042).lineTo(0.274, -0.042).lineTo(0.232, -0.114).lineTo(0.159, -0.156).lineTo(0.222, -0.391)... | 2 | 25 | 0.46734 |
train_bef4e8933c1fcc50 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.973, -0.708, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.965, 1.34).threePointArc((-1, 1.076), (-0.965, 0.812)).threePointArc((0, 0.075), (0.965, 0.812)).threePointArc((1, 1.076), (0.965, 1.34)).lineTo(0.669, 1.34).threePointArc((0.719, 1.... | 14 | 12 | 1.740516 |
train_5abf3d177d20581d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.289, -0.006, -0.08), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.716, 0.055).extrude(0.075)
result = result.union(cq.Workplane(cq.Plane(origin=(0.811, 0, -0.063), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.378, 0.017).extrude(0.028))
result = resul... | 7 | 29 | 0.003158 |
train_06d6abbade4210b6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.188, -0.18, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.497, -0.82).lineTo(-0.497, 1.18).lineTo(0.497, 1.18).lineTo(0.497, 1.147).lineTo(0.464, 1.147).lineTo(0.464, -0.82).lineTo(-0.497, -0.82).close().workplane(offset=0.193).moveTo(-0.326... | 3 | 17 | 0.346224 |
train_2ea006f6c39fd6f0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.271, 0.145, 0.007), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.844, -0.366).lineTo(-0.422, 0.366).lineTo(0, 0.121).lineTo(0.422, 0.366).lineTo(0.844, -0.366).lineTo(-0.844, -0.366).close().sweep(cq.Workplane('XZ').spline([(-0.712, -0.515), (-... | 2 | 10 | 0.62677 |
train_2737259234d3bf96 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.335, -1, -0.227), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, -0.174).lineTo(-0.008, -0.165).lineTo(-0.017, -0.174).lineTo(-0.328, 0.137).lineTo(-0.365, 0.174).lineTo(-0.348, 0.191).lineTo(0, -0.157).lineTo(0.348, 0.191).threePointArc((0.357,... | 6 | 67 | 0.144429 |
train_94eaf3580f026f71 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.325, -0.068), normal=(-1, 0, 0), xDir=(0, 0, 1))).lineTo(0.648, 0.548).lineTo(0.648, 0.028).close().extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(0.28, 0.159, 0.574), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.108, 0.016).ext... | 3 | 16 | 0.338588 |
train_7ef1be36ddf4b14e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.13, -0.203), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.185, -0.87).threePointArc((0.193, 0.13), (-0.185, 1.13)).lineTo(-0.193, 1.13).threePointArc((0.187, 0.13), (-0.193, -0.87)).lineTo(-0.185, -0.87).close().extrude(0.406)
result = resul... | 2 | 6 | 0.005323 |
train_64bda6f5554ec310 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.557, 0.666, 0.001), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.786, 0.131).lineTo(-0.786, 0.593).lineTo(-0.999, 0.593).lineTo(-0.999, 1.333).lineTo(0.999, 1.333).lineTo(0.999, 0.131).lineTo(-0.786, 0.131).close().revolve(angleDegrees=90, axis... | 11 | 89 | 2.012617 |
train_a02a331a8c93f63d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.293, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.489, -0.211).threePointArc((0.354, 0.209), (0, 0.473)).threePointArc((-0.354, 0.209), (-0.489, -0.211)).lineTo(-0.814, -0.211).threePointArc((-0.586, 0.437), (0, 0.799)).threePointArc((0.5... | 26 | 204 | 1.207728 |
train_d03a387b976ec48c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.036, 0.121, -0.326), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.928, 1.385).extrude(0.516)
result = result.union(cq.Workplane(cq.Plane(origin=(0.302, -0.867, -0.001), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.674, 0.453).lineTo(-1.302, 0.453).... | 9 | 73 | 1.486568 |
train_885eb56b016e4065 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.068, -0.027, -0.118), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.435, 0.303).extrude(0.161)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.068 + 0.034 * math.cos(2.693 + 2 * math.pi * 0 / 5), 0.053 + 0.034 * math.sin(2.693 + 2 * math.pi * ... | 27 | 233 | 0.07104 |
train_be6d7e878286660b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.492, 0.01, 0.259), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.483, 0.01).lineTo(-0.484, -0.993).threePointArc((0.484, 0.01), (-0.483, 1.012)).lineTo(-0.483, 0.01).close().extrude(0.984)
result = result.edges().chamfer(0.047)
result = result.c... | 12 | 79 | 1.226072 |
train_becc5c7965d73aa3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.868, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.742, 1.212).threePointArc((0.725, 1.333), (0.674, 1.443)).threePointArc((0.616, 1.518), (0.541, 1.577)).lineTo(-0.607, 1.577).threePointArc((-0.682, 1.517), (-0.742, 1.442)).lineTo(-0.742,... | 21 | 66 | 3.779104 |
train_9f3ed36ba91ec0c6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.641, 0.799, 0.986), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.034, 0.143).lineTo(0.034, 0.094).threePointArc((-0.115, 0.048), (-0.23, -0.059)).lineTo(0.034, -0.097).lineTo(0.034, -0.143).lineTo(0.23, -0.143).lineTo(0.23, 0.143).lineTo(0.034, ... | 1 | 9 | 0.382015 |
train_6955b429badacca8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.132, 0.303, -0.221), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.804, -0.701).lineTo(0.782, -0.675).lineTo(0.823, 0.67).lineTo(-0.795, 0.697).close().moveTo(-0.182, -0.19).lineTo(0.18, -0.19).lineTo(0.179, -0.107).lineTo(-0.1, -0.103).lineTo(-0... | 13 | 89 | 0.495306 |
train_01511712e00f02d0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.045, -1, -0.091), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.583, -0.13).threePointArc((0.594, -0.091), (0.601, -0.05)).threePointArc((-0.601, 0.232), (0.544, -0.232)).threePointArc((0.566, -0.182), (0.583, -0.13)).close().sweep(cq.Workplane('... | 2 | 7 | 1.228806 |
train_7aa4da89c7ad6ef8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.152, -0.362), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.115).sweep(cq.Workplane('YZ').spline([(-0.265, -0.685), (-0.232, -0.564), (-0.337, -0.451), (-0.522, -0.441), (-0.627, -0.562), (-0.584, -0.712), (-0.426, -0.757)]))
result = result.e... | 4 | 14 | 0.051617 |
train_ce1bc5006efd8e39 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.205, -0.124, -0.171), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.09, -0.001).lineTo(0.047, 0.075).lineTo(-0.047, 0.078).lineTo(-0.086, -0.003).lineTo(-0.045, -0.077).lineTo(0.048, -0.077).close().moveTo(-0.029, 0.01).lineTo(0.029, 0.011).lineT... | 12 | 130 | 0.177376 |
train_9c2e1d0a71fd6c00 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.723, 0.723, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(1, 1.456).lineTo(1, 0.673).lineTo(-1, 0.673).lineTo(-1, 1.456).lineTo(1, 1.456).close().revolve(angleDegrees=90, axisStart=(0, 0), axisEnd=(0.567, 0))
result = result.edges().chamfer(0.1... | 9 | 54 | 1.411924 |
train_3ff9bf657d6756b4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.144, -0.129, -0.621), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.844, 0.34).extrude(0.44)
result = result.union(cq.Workplane(cq.Plane(origin=(0.02, -0.362, -0.538), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.074).extrude(0.276))
result = result.... | 26 | 98 | 0.649596 |
train_9282377740253695 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.043, -0.7, -0.519), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.468, 0.468).extrude(0.515)
result = result.union(cq.Workplane(cq.Plane(origin=(0.076, -0.968, -0.213), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.108, 0.073).extrude(0.057))
result = r... | 9 | 102 | 0.453343 |
train_e8015449cb760c78 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.094, -0.37, 0.012), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.864, 1.075).extrude(0.212)
result = result.union(cq.Workplane(cq.Plane(origin=(0.111, -0.37, 0.222), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.725, 0.802).extrude(0.028))
result = res... | 20 | 167 | 0.381812 |
train_b8742df81f0e0fc1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1, 0.447), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.169, 0.123).threePointArc((0.186, 0.116), (0.194, 0.098)).lineTo(0.194, -0.098).threePointArc((0.186, -0.116), (0.169, -0.123)).lineTo(-0.169, -0.123).threePointArc((-0.186, -0.116), (-0.... | 4 | 17 | 0.066225 |
train_ecc1c418966055b7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.031, 0, 0.097), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.087, -0.791).threePointArc((0.046, -0.774), (0.006, -0.754)).threePointArc((-0.081, -0.703), (-0.162, -0.642)).lineTo(-0.162, -0.816).threePointArc((-0.08, -0.865), (0.006, -0.908)).li... | 10 | 57 | 0.239434 |
train_051ccaeb13a01027 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.099, 0.028, -0.073), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.391, 1.944).extrude(0.147)
result = result.union(cq.Workplane(cq.Plane(origin=(0.086, -0.97, -0.032), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.097, 0.06).extrude(0.008))
result = r... | 22 | 382 | 0.30007 |
train_fbd6d36c3ec318ac | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.268, 0.153, -0.638), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.539, 0.788).extrude(1.638)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, -0.019), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.095, 0.583).lineTo(-0.087, 0.583).lineTo(-0... | 6 | 23 | 0.853705 |
train_99c2e5207a3618a5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.694, -0.104, 0), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.306, 0.187).lineTo(-0.306, -0.187).lineTo(0.306, -0.187).lineTo(0.306, 0.187).lineTo(-0.306, 0.187).close().revolve(angleDegrees=270, axisStart=(-0.306, 0.187), axisEnd=(-0.306, -0.1... | 7 | 50 | 0.253651 |
train_3827f5be5ed8f880 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.201, -0.257, -0.861), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.565, 0.598).threePointArc((-0.573, 0.512), (-0.565, 0.427)).threePointArc((-0.113, 0.053), (0.339, 0.427)).lineTo(0.573, 0.427).lineTo(0.573, 0.598).lineTo(0.339, 0.598).lineTo(... | 9 | 74 | 0.764769 |
train_bd99825dd9aa3767 | 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.731, 0.689).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.045, -0.313, -0.288), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.064, 0.066).extrude(0.176))
result = result.edges().cha... | 11 | 143 | 0.889388 |
train_69bd8b6738d2cb10 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.191, -0.085), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.895, 1.618).extrude(0.063)
result = result.union(cq.Workplane(cq.Plane(origin=(0.057, -0.392, -0.023), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.781, 0.409).extrude(0.031))
result = res... | 8 | 40 | 0.199231 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.