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_12510641da0f328a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.02, 0.009, -0.284), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.02, 0.035).lineTo(0.499, 0.891).lineTo(-0.488, 0.865).lineTo(-0.98, 0.007).lineTo(-0.494, -0.909).lineTo(0.526, -0.907).close().center(-0.283, 0.33).rect(0.29, 0.372).center(0.565,... | 12 | 88 | 0.997016 |
train_cdc65d986706cdf4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.03, -0.031, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.676, 0.8).extrude(1.779)
result = result.union(cq.Workplane(cq.Plane(origin=(0.337, -0.211, 0.04), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.031).extrude(0.264))
result = result.union... | 10 | 108 | 0.959552 |
train_1b861901f019cdb0 | 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.963, 1.095).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.021, -0.257, 0.574), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.181).extrude(0.437))
result = result.edges().chamfer(0... | 6 | 44 | 3.957381 |
train_1c05b77d40f071c4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.137, -0.167, 0.259), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.365, 1.202).lineTo(-0.239, -0.177).lineTo(0.365, -0.589).lineTo(0.365, 0.528).lineTo(0.041, 0.736).lineTo(0.041, 0.966).lineTo(-0.365, 1.202).close().workplane(offset=0.095).mov... | 6 | 56 | 0.486793 |
train_6c01170ba19b1434 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.007, 0.11, -0.03), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.085, -0.88).lineTo(0.019, -0.88).lineTo(0.028, -0.993).lineTo(-0.028, -0.993).lineTo(-0.019, -0.88).lineTo(-0.085, -0.88).lineTo(-0.085, 0.818).lineTo(-0.047, 0.818).lineTo(-0.047, ... | 7 | 424 | 0.065427 |
train_be19356aa77d478b | 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.531, 1.429).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.146, 0.238, -1.022), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.281).extrude(0.874))
result = result.cut(cq.Workplane... | 17 | 88 | 2.48278 |
train_ad902c81e34ad8c8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.085, 1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1, 0.032).lineTo(-1, 0.172).lineTo(1, 0.172).lineTo(1, 0.107).lineTo(0.947, 0.107).lineTo(0.947, 0.032).lineTo(-1, 0.032).close().revolve(angleDegrees=90, axisStart=(-1, 0.032), axisEnd=(-1... | 8 | 76 | 0.380297 |
train_a4cdc1e19f9db88f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.381, 0.377, -0.049), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.406, 0.397).lineTo(-0.406, 0.277).lineTo(-0.602, 0.277).lineTo(-0.602, 0.036).lineTo(0.602, 0.036).lineTo(0.602, 0.397).lineTo(-0.406, 0.397).close().extrude(0.754)
result = resu... | 11 | 101 | 0.236084 |
train_b0fb30d62c138b32 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.002, 0.004, -0.21), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.837, -0.999).lineTo(0.82, -1.004).lineTo(0.84, 0.996).lineTo(-0.798, 0.967).close().moveTo(-0.439, -0.167).lineTo(-0.087, -0.167).lineTo(-0.088, -0.099).lineTo(-0.37, -0.099).line... | 14 | 154 | 0.724086 |
train_6596de13bdc40bae | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.51, 0.047, -0.263), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.471, -0.433).lineTo(0.473, -0.425).lineTo(0.47, 0.42).lineTo(-0.476, 0.426).close().moveTo(-0.062, -0.001).lineTo(-0.087, 0.062).lineTo(-0.147, 0.088).lineTo(-0.21, 0.061).lineTo(... | 9 | 115 | 0.292489 |
train_7d324476005bf485 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.066), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.014).lineTo(1, 0.132).lineTo(-1, 0.132).lineTo(-1, 0.014).lineTo(1, 0.014).close().revolve(angleDegrees=180, axisStart=(0, 0), axisEnd=(0.026, 0))
result = result.edges().fillet(0.019)
... | 10 | 96 | 0.05291 |
train_5c49a89b2f9cfbe1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.177, 0.045, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.276, -0.179).lineTo(-0.276, 0.179).lineTo(0.276, 0.179).lineTo(0.276, -0.179).lineTo(-0.276, -0.179).close().sweep(cq.Workplane('XY').spline([(-0.627, 0.045), (-0.091, 0.132), (0.445, ... | 2 | 12 | 0.326518 |
train_38affc4e1ca77716 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.322, 0.812, 0.037), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.412, -0.152).threePointArc((0.269, 0.508), (-0.074, 1.393)).threePointArc((0.931, 0.134), (-0.56, -0.476)).threePointArc((-0.771, -0.307), (-0.931, -0.088)).threePointArc((-0.677,... | 2 | 17 | 1.989934 |
train_fe8b45abe40203f1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.67, 0.123, -0.618), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.66, 0.338).extrude(0.604)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.8, 0.094, -0.042), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.049).extrude(0.767))
result = result.u... | 12 | 76 | 0.260222 |
train_df12c7bf22fee8a7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.397, -0.187, -0.144), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.299, 0.027).threePointArc((0, 0.326), (-0.299, 0.027)).lineTo(-0.352, 0.027).threePointArc((0, -0.326), (0.352, 0.027)).lineTo(0.299, 0.027).close().extrude(0.742)
result = resul... | 11 | 68 | 0.535826 |
train_d8827a52c507f488 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.21, 0.972), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.496, 0).threePointArc((-0.392, 0.304), (-0.124, 0.48)).threePointArc((0.304, 0.392), (0.496, 0)).threePointArc((0.304, -0.392), (-0.124, -0.48)).threePointArc((-0.032, -0.248), (0, 0))... | 3 | 15 | 0.2213 |
train_e7087de199c6c64e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.171, -0.897), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.98).extrude(1.444)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.481, -0.083, 0.135), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.256).extrude(0.423))
result = result.cut(cq.W... | 28 | 119 | 1.360937 |
train_4947277ff261c81d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.386, 0.006, -0.085), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.552, 1.006).extrude(0.533)
result = result.union(cq.Workplane(cq.Plane(origin=(0.023, 0.186, 0.115), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.19, 0.16).extrude(0.08))
result = resul... | 19 | 554 | 0.750008 |
train_691178e29ba319f2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.222, -0.18, -0.457), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, 0.176).lineTo(-0.185, 0.176).lineTo(-0.24, -0.176).lineTo(0.24, -0.176).lineTo(0.185, 0.176).lineTo(0, 0.176).close().sweep(cq.Workplane('YZ').spline([(-0.18, -0.457), (0.048, -... | 35 | 197 | 0.380787 |
train_6661680fe1b955e8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.321, -0.174), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.038, -0.014).lineTo(-0.047, -0.014).lineTo(0.047, 0.014).threePointArc((0.046, 0.013), (0.045, 0.011)).threePointArc((0.041, -0.001), (0.039, -0.014)).lineTo(-0.038, -0.014).close(... | 9 | 41 | 0.145377 |
train_d8ef1ae38839a936 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.85, 0.519, 0.157), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-1.289, 0.139).threePointArc((0, 0.111), (1.289, 0.139)).lineTo(1.031, 0.585).threePointArc((0, 1.181), (-1.031, 0.585)).lineTo(-1.289, 0.139).close().extrude(1.7)
result = result.edg... | 14 | 78 | 1.317398 |
train_025e238ea3d96ebb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.019), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.238, 0.623).lineTo(-0.541, 0.623).lineTo(-0.541, 0.499).lineTo(-0.46, 0.31).lineTo(-0.048, 0.234).lineTo(-0.015, 0.31).threePointArc((0.541, 0.787), (-0.177, 0.643)).lineTo(-0.198, 0.623... | 10 | 59 | 1.77297 |
train_6536e87bb1056a04 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.001, -0.056, -0.089), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.834, 0.866).extrude(0.267)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.141, 0.096, -0.091), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.111).extrude(0.095))
result = result... | 32 | 188 | 0.120894 |
train_e4856447c901b652 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.815, 0.066, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.926, -0.749).lineTo(-0.481, -0.749).lineTo(-0.481, -0.601).lineTo(-0.926, -0.601).lineTo(-0.926, 0.214).lineTo(0.926, 0.214).lineTo(0.926, -0.601).lineTo(1, -0.601).lineTo(1, 0.807).t... | 7 | 59 | 2.679771 |
train_22790b6c8cf72a42 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.172, -0.688, -0.332), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.201, 0.572).threePointArc((-0.447, 0.172), (-0.201, -0.227)).lineTo(-0.176, -0.239).threePointArc((0.447, 0.172), (-0.176, 0.583)).threePointArc((-0.189, 0.577), (-0.201, 0.572)... | 12 | 63 | 0.597612 |
train_17cec56a439abe30 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.014, -0.021, -0.38), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.014, -0.05).lineTo(0.498, 0.915).lineTo(-0.48, 0.821).lineTo(-0.986, 0.055).lineTo(-0.516, -0.846).lineTo(0.481, -0.873).close().rect(0.346, 0.746).extrude(0.481)
result = result.... | 6 | 48 | 1.116868 |
train_28223e59afbcc643 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.167, 0.348, 0.246), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.754, 0.034).lineTo(-0.754, 0.003).lineTo(0.754, 0.003).lineTo(0.754, 0.034).lineTo(-0.754, 0.034).close().extrude(0.138)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.098, ... | 15 | 195 | 0.379131 |
train_acd5aeff5889dab5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.207, 0.051, -0.105), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.028, 0.108).lineTo(0.028, 0.108).lineTo(0.028, -0.108).lineTo(-0.028, -0.108).lineTo(-0.028, -0.082).threePointArc((0.012, -0.032), (-0.028, 0.019)).lineTo(-0.028, 0.108).close().... | 17 | 198 | 0.061614 |
train_1290a5360f0488c8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.035), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.576).extrude(0.07)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.8 + 0.267, -0.631 + 0.126, -0.046), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.031, 0.062).lineTo(0.031, 0).lineT... | 16 | 51 | 0.216604 |
train_e46e9720618f32d5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.09, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.365).workplane(offset=0.551).circle(0.435).workplane(offset=0.574).circle(0.331).workplane(offset=0.425).circle(0.463).loft()
result = result.edges().chamfer(0.251)
result = result.union(c... | 6 | 21 | 0.580184 |
train_f1642cf55031f98e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.105, -0.452), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.171, 1.789).extrude(0.904)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.241, 0.231, 0.275), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.019).extrude(0.026))
result = result.cut(c... | 14 | 86 | 1.740315 |
train_ee09a18b9fadc95c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.584, 0.054, -0.293), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.833, 0.907).extrude(0.574)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.858, 0.142, -0.136), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.15).extrude(0.206))
result = result.cu... | 6 | 22 | 0.491145 |
train_e978cfe31abc988f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.055, 0.575, -0.014), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.742, -0.416).threePointArc((0.073, -0.886), (0.888, -0.416)).threePointArc((1.014, 0.055), (0.888, 0.525)).lineTo(0.616, 0.996).lineTo(0.073, 0.996).threePointArc((-0.397, 0.87),... | 10 | 125 | 3.041428 |
train_72ca5868725a97e1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.739, 0, -0.001), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.889).workplane(offset=0.48).circle(0.858).workplane(offset=0.44).circle(0.979).workplane(offset=0.557).circle(0.943).loft()
result = result.edges().fillet(0.316)
result = result.faces... | 5 | 29 | 3.479548 |
train_278fd7d17f942a75 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.374, -0.686, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.916, 0.087).lineTo(0.916, 0.82).lineTo(-0.916, 0.82).lineTo(-0.916, 0.087).lineTo(0.916, 0.087).close().extrude(1.374)
result = result.edges().chamfer(0.121)
result = result.union(cq.... | 10 | 70 | 2.285752 |
train_8f0869b360a92d26 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.508), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.132).extrude(0.862)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.078, -0.208, 0.345), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.123).extrude(0.163))
result = result.cut(cq.Wor... | 8 | 37 | 1.218338 |
train_212214b192d6c6b3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.06, 0, -0.137), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.808, 1.154).extrude(0.401)
result = result.faces('>Z').shell(-0.041)
result = result.union(cq.Workplane(cq.Plane(origin=(0.043, 0.002, -0.263), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.... | 4 | 30 | 0.144726 |
train_e84d909a2f79ab9f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.494), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.154, 0.105).lineTo(0.103, 0.126).lineTo(0.042, 0.066).lineTo(0.064, 0.015).lineTo(-0.064, 0.015).lineTo(-0.154, 0.105).lineTo(-0.154, 0.233).lineTo(-0.103, 0.211).lineTo(-0.042, 0.271).lin... | 14 | 102 | 0.140038 |
train_b4a3fdc27d0b5f7b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.622), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.133, 0.238).extrude(0.25)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, -0.378), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.089, 0.182).extrude(0.132))
result = result.union(cq.Wo... | 14 | 55 | 0.012872 |
train_ba65f76d3fd53bc4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.385, -0.843, -0.084), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.23, 0.097).extrude(0.131)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.078, -0.859, 0.043), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.37, 0.03).extrude(0.072))
result = r... | 4 | 23 | 0.026559 |
train_15def77a74a91e87 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.039, -0.105, 0.343), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.192, 0.098).lineTo(0.179, 0.098).lineTo(0.179, 0.01).lineTo(0.252, 0.01).lineTo(0.252, 0.199).lineTo(-0.252, 0.199).lineTo(-0.252, 0.132).lineTo(-0.192, 0.132).lineTo(-0.192, 0.0... | 8 | 34 | 0.014099 |
train_14fb094bcf7c9a9c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.059, -0.054, -0.839), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.889, 0.889).extrude(1.662)
result = result.faces('<X').shell(-0.062)
result = result.union(cq.Workplane(cq.Plane(origin=(0.102, 0.058, 0.811), normal=(0, 0, 1), xDir=(1, 0, 0))).cir... | 6 | 36 | 0.707981 |
train_94e69b0e6d466048 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.029, 0.135, -0.225), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.221, -0.135).lineTo(0.221, -0.135).lineTo(0.221, 0.641).lineTo(-0.221, 0.641).lineTo(-0.221, -0.135).close().revolve(angleDegrees=360, axisStart=(-0.221, -0.135), axisEnd=(0.221,... | 20 | 121 | 0.73994 |
train_25740188f4b72445 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.948, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(1.098).workplane(offset=1.043).circle(0.59).workplane(offset=0.852).circle(0.299).loft()
result = result.edges().chamfer(0.191)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.758 + 0.1... | 7 | 25 | 2.594041 |
train_c9f4aa79b8e5d6bb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.264), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.599).extrude(0.527)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.8 + 0.2, 0.1585, -1.303), normal=(0, 1, 0), xDir=(1, 0, 0))).circle(0.084).extrude(2.078))
result = result.cut(cq.... | 15 | 6 | 1.685346 |
train_8848e645e930cc66 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.369, 0.312, -0.12), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.261, 0.245).threePointArc((0.128, 0.323), (-0.024, 0.351)).lineTo(-0.024, 0.494).lineTo(-0.063, 0.494).lineTo(-0.127, 0.329).threePointArc((-0.207, 0.274), (-0.261, 0.192)).threePoi... | 18 | 157 | 0.402158 |
train_a2745f7b3606507f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.057, 0, -0.539), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.702, 1.232).extrude(1.539)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.214, -0.086, 0.314), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.109).extrude(0.43))
result = result.unio... | 18 | 61 | 1.213775 |
train_a1b50cd48ae17e43 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.183), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1, -0.068).threePointArc((0.918, 0.291), (0.689, 0.579)).lineTo(0.564, 0.662).threePointArc((0.133, 0.76), (-0.287, 0.623)).lineTo(-1, 0.151).lineTo(-0.781, -0.068).lineTo(-1, -0.288).lineTo... | 8 | 41 | 0.667699 |
train_f9383fa14c02cfeb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.943), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.638, 2).extrude(1.885)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.656 + 0.2185, -0.8 + 0.2, -1.225), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.093, -0.067).lineTo(0.093, 0.016).l... | 22 | 281 | 4.477953 |
train_4eb721da4817b57e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.252, -0.484, -0.304), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.343, -0.269).lineTo(0.2, -0.516).lineTo(-0.048, -0.373).lineTo(-0.13, -0.325).lineTo(-0.039, -0.167).lineTo(0.016, -0.072).lineTo(-0.413, -0.072).lineTo(-0.413, 0.31).lineTo(-0.0... | 8 | 79 | 0.649544 |
train_f91a68b309aa6319 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.436, -0.614, 0.002), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.054, 1.255).threePointArc((0.229, 1.202), (0.401, 1.142)).lineTo(-0.164, -0.408).threePointArc((-0.281, -0.367), (-0.401, -0.33)).lineTo(0.054, 1.255).close().extrude(1.38)
result... | 6 | 54 | 0.877064 |
train_a116c1b04ca3d3f5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.736, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.94, 1.398).lineTo(-0.94, 1.113).lineTo(0.384, 1.113).lineTo(0.655, 1.008).lineTo(0.655, 0.074).lineTo(0.94, 0.074).lineTo(0.94, 0.869).threePointArc((0.785, 1.243), (0.411, 1.398)).lineTo... | 4 | 57 | 1.323794 |
train_d27445821ad7c271 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.463, -0.08, -0.234), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.589, 0.568).threePointArc((-0.751, -0.07), (-0.355, -0.595)).threePointArc((-0.176, -0.66), (0.014, -0.679)).threePointArc((0.751, 0.046), (0.083, 0.834)).threePointArc((-0.287, ... | 8 | 28 | 1.245021 |
train_e2cf0046817d3fd3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.04, -0.426, 0.011), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.133).sweep(cq.Workplane('YZ').spline([(-0.319, -0.108), (-0.355, -0.09), (-0.391, -0.111), (-0.397, -0.133), (-0.379, -0.161), (-0.338, -0.16), (-0.315, -0.137)]))
result = result.... | 10 | 125 | 0.33448 |
train_385dfce0ecb7dcbf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.206, -0.864), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.159).workplane(offset=0.086).circle(0.089).workplane(offset=0.087).circle(0.136).workplane(offset=0.083).circle(0.117).workplane(offset=0.071).circle(0.133).workplane(offset=0.085).ci... | 17 | 229 | 0.030237 |
train_c79397cb25761a62 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.053, -0.297, 0.548), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.256, 0.583).threePointArc((0.474, -0.365), (-0.474, -0.583)).lineTo(0.256, 0.583).close().sweep(cq.Workplane('YZ').spline([(-0.297, 0.278), (-0.117, 0.284), (0.064, 0.315), (0.245... | 6 | 14 | 0.671985 |
train_39e23a95bf8489ff | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.694, -0.446, -0.067), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.306, -0.137).lineTo(0.306, 0.124).lineTo(0.299, 0.124).lineTo(0.299, 0.137).lineTo(-0.306, 0.137).lineTo(-0.306, 0.124).lineTo(-0.292, 0.124).lineTo(-0.292, -0.124).lineTo(0.299... | 3 | 19 | 0.11501 |
train_b93310343724043a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.444, -0.539, -0.009), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.065).sweep(cq.Workplane('XY').spline([(-0.527, -0.43), (-0.184, -0.392), (-0.088, -0.191), (-0.135, 0.058), (-0.465, 0.175), (-0.803, 0.099), (-0.904, -0.102), (-0.817, -0.33)])... | 4 | 30 | 0.023419 |
train_ddc8654cf673fc2b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.279, -0.234, -0.316), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.526, 0.871).lineTo(0.526, -0.312).lineTo(-0.526, -0.312).lineTo(-0.526, 0.871).lineTo(0.526, 0.871).close().extrude(0.632)
result = result.edges().chamfer(0.146)
result = result.... | 19 | 128 | 0.499442 |
train_61d9c3ece00f32b1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.671), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1, -0.182).threePointArc((0, 0.818), (-1, -0.182)).lineTo(0, -0.182).lineTo(0, -0.818).lineTo(0.6, -0.818).threePointArc((0.626, -0.808), (0.636, -0.782)).lineTo(0.636, -0.182).lineTo(0.818,... | 6 | 41 | 1.93336 |
train_862730bb146f994c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1.099, -0.587, -0.027), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.406, 1.339).lineTo(0.258, 1.26).lineTo(0.58, 0.411).lineTo(0.084, 0.045).lineTo(-0.58, 0.661).lineTo(-0.406, 1.339).close().revolve(angleDegrees=90, axisStart=(-0.406, 1.339), a... | 11 | 51 | 0.816642 |
train_b7ca340b8efebcf5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.897, -0.828, -0.04), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.582, 1.485).lineTo(-0.98, 0.794).lineTo(-0.582, 0.104).lineTo(0.215, 0.104).lineTo(0.614, 0.794).threePointArc((0.98, 1.466), (0.215, 1.485)).lineTo(-0.582, 1.485).close().extrud... | 7 | 67 | 2.984927 |
train_8c7bfd50f544c84a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.613, 0.748, -0.178), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(1.178, 1.968).lineTo(-1.178, -0.387).lineTo(1.178, -0.387).lineTo(1.178, 1.968).close().extrude(1.497)
result = result.edges().fillet(0.251)
result = result.cut(cq.Workplane(cq.Plan... | 17 | 88 | 2.566956 |
train_5333122a951e49c1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.201, 1, -0.307), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.461, 0.657).lineTo(-0.461, 0.052).lineTo(0.461, 0.052).lineTo(0.461, 0.657).lineTo(-0.461, 0.657).close().extrude(0.687)
result = result.edges().fillet(0.214)
result = result.union(c... | 6 | 86 | 0.818373 |
train_4970d89f83db55c3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.36, -0.475, -0.279), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.712, 0.901).lineTo(0.178, -0.282).lineTo(0.712, -0.282).lineTo(0.178, 0.43).lineTo(0.029, 0.627).lineTo(-0.178, 0.901).lineTo(-0.712, 0.901).close().revolve(angleDegrees=90, axis... | 18 | 97 | 0.552054 |
train_01a464d3882e0516 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.141, -0.246, 0.065), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.496, 1.508).extrude(0.144)
result = result.union(cq.Workplane(cq.Plane(origin=(0.141, -0.246, 0.209), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.231).moveTo(-0.056, 0.125).lineTo(-0... | 13 | 200 | 0.626134 |
train_8d91061420306132 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.005, -0.015, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1.003, 0.027).threePointArc((0, 0.001), (1.003, 0.027)).lineTo(-1.003, 0.027).close().extrude(0.011)
result = result.edges().chamfer(0.002)
result = result.cut(cq.Workplane(cq.Plane(or... | 9 | 47 | 0.000344 |
train_b325f2e96d29ffa1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.082, -0.541, -0.788), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.07).lineTo(0.918, 0.07).lineTo(0.918, 1.071).lineTo(-0.918, 1.071).lineTo(-0.918, 0.07).lineTo(0, 0.07).close().extrude(1.409)
result = result.edges().chamfer(0.058)
result = r... | 6 | 44 | 2.567848 |
train_d2e2267a0a38266f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.002, 0, -0.217), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.783, 0.021).lineTo(-0.689, 0.373).lineTo(-0.644, 0.361).lineTo(0.783, -0.021).lineTo(0.689, -0.373).lineTo(-0.738, 0.009).lineTo(-0.783, 0.021).close().sweep(cq.Workplane('XY').spline... | 4 | 15 | 0.146785 |
train_c91a67cae02b0fbc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.218, 0.23, 0.533), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.265, 0.997).lineTo(-0.265, 0.267).lineTo(-0.066, -0.07).lineTo(-0.066, -0.441).threePointArc((0, -0.507), (0.066, -0.441)).lineTo(0.066, -0.07).lineTo(0.265, 0.267).lineTo(0.265, 0... | 7 | 83 | 0.392852 |
train_78a78f3929739e7f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.076, 0.528, 0.117), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.75, 0.531).extrude(0.633)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.078, 0.834, 0.434), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.048).extrude(0.205))
result = result.u... | 18 | 67 | 0.548793 |
train_6804281fc5bb7e7b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.83, -0.036, 0.017), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.256, 0.415).lineTo(0.256, 0.415).lineTo(0.256, -0.173).lineTo(-0.256, -0.173).lineTo(-0.256, 0.415).close().revolve(angleDegrees=270, axisStart=(-0.256, 0.415), axisEnd=(-0.136, 0... | 8 | 69 | 0.294858 |
train_f33c97a0d4a35ca2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.231).workplane(offset=0.42).circle(0.204).workplane(offset=0.496).circle(0.218).workplane(offset=0.358).circle(0.198).workplane(offset=0.365).circle(0.235).workplane(offset=0.361).circle(0.257... | 4 | 14 | 0.059173 |
train_48f54d716dddfa0b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.216, 0, 0.008), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.271, 0.766).lineTo(-0.271, -0.766).lineTo(0.271, -0.766).lineTo(0.271, 0.766).close().workplane(offset=0.112).moveTo(0.257, 0.726).lineTo(-0.257, -0.726).lineTo(0.257, -0.726).lineTo(... | 20 | 115 | 0.350917 |
train_c401641d75a32efa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.01, 0.145, 0.009), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.572, 0.745).threePointArc((-0.73, 0.167), (-0.724, -0.431)).threePointArc((-0.238, -0.65), (0.286, -0.742)).threePointArc((0.392, -0.745), (0.498, -0.742)).lineTo(0.73, -0.338).lin... | 7 | 53 | 0.879495 |
train_e9990af1e4be18a7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.133, -0.174, 0.14), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, 0.232).lineTo(-0.481, 0.232).lineTo(-0.481, 0.006).lineTo(0.481, 0.006).lineTo(0.481, 0.232).lineTo(0, 0.232).close().extrude(0.245)
result = result.edges().chamfer(0.079)
result ... | 33 | 247 | 0.069168 |
train_65d6440b9cd33cab | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.005, -0.207), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.212, -0.07).threePointArc((0.224, -0.005), (0.217, 0.061)).lineTo(0.318, 0.117).threePointArc((0.341, 0.199), (0.259, 0.223)).lineTo(0.157, 0.167).threePointArc((-0.008, 0.235), (-0.... | 2 | 19 | 0.231218 |
train_eb38a1d58e38424a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.53, -0.407, -0.442), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.559, -0.373).threePointArc((0.559, 0.277), (-0.559, 0.927)).threePointArc((-0.325, 0.277), (-0.559, -0.373)).close().extrude(0.775)
result = result.edges().fillet(0.1)
result = r... | 18 | 120 | 0.951452 |
train_2047027461a5261f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.097, 0.016, -0.036), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.249, 0.251).extrude(0.009)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.082, 0.005, -0.028), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.055).extrude(0.008))
result = resu... | 10 | 125 | 0.008974 |
train_95363e71eebabe2f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.304, 1).lineTo(0.304, 0.762).lineTo(0.066, 0.762).lineTo(0.066, 0.709).lineTo(0.304, 0.709).lineTo(0.304, 0.597).lineTo(0.066, 0.597).lineTo(0.066, 0.402).lineTo(0.104, 0.365).lineTo(0.013, 0.3... | 4 | 32 | 0.343361 |
train_eb7ca8332361f120 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.014, -0.07, -0.96), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.313, 1.07).threePointArc((-0.504, 1.051), (-0.687, 0.997)).lineTo(-0.313, 0.069).lineTo(-0.687, -0.857).threePointArc((-0.504, -0.912), (-0.313, -0.93)).threePointArc((0.687, 0.06... | 10 | 67 | 2.39306 |
train_d81b7f26673d7424 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.851, 0.18, -0.68), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.086, 0.048).lineTo(-0.118, 0.051).lineTo(-0.136, 0.025).lineTo(-0.136, 0).lineTo(-0.13, 0.01).lineTo(-0.118, 0.027).lineTo(-0.086, 0.024).lineTo(-0.074, 0.023).lineTo(-0.072, 0.019)... | 5 | 48 | 0.147219 |
train_035bf2716e65fcf2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.769, 0.222, 0.122), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.227, 0.133).threePointArc((-0.208, 0.06), (-0.227, -0.012)).lineTo(0.048, -0.012).threePointArc((0.119, -0.1), (0.227, -0.133)).lineTo(0.227, -0.085).threePointArc((0.155, -0.065... | 2 | 16 | 0.010974 |
train_a754993c862e241f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.15, -0.251, 0.166), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.351, -0.171).lineTo(-0.351, 0.196).lineTo(0, 0.563).lineTo(0.351, 0.196).lineTo(0, -0.171).lineTo(-0.351, -0.171).close().extrude(0.493)
result = result.edges().chamfer(0.03)
resu... | 16 | 231 | 0.264001 |
train_cbff61c860c6d874 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.066, 0, 0.02), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.262, 0.223).extrude(0.136)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.098, -0.001, 0.077), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.083, 0.089).extrude(0.066))
result = result... | 7 | 75 | 0.033293 |
train_d104bf27684f276f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.007, 0.08, -0.073), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.195, -0.057).threePointArc((0.1, -0.072), (0.021, -0.017)).threePointArc((-0.001, 0.055), (0.021, 0.127)).threePointArc((-0.083, 0.22), (-0.222, 0.207)).threePointArc((-0.002, 0.3... | 17 | 122 | 0.137311 |
train_de83f061195e0c2a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.016, -0.005, -0.436), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.984, -0.001).lineTo(0.533, 0.868).lineTo(-0.535, 0.894).lineTo(-1.016, -0.023).lineTo(-0.54, -0.857).lineTo(0.536, -0.883).close().center(-0.44, 0.284).rect(0.318, 0.297).center(0... | 13 | 81 | 1.158878 |
train_ec67a21a8e60d74d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.15, -0.221, 0.02), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.272, -0.183).threePointArc((0, 0.579), (0.272, -0.183)).threePointArc((0, -0.28), (-0.272, -0.183)).close().extrude(0.429)
result = result.edges().chamfer(0.049)
result = result.fa... | 6 | 53 | 0.400223 |
train_8e7162adc4b6c739 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1.116, 0.501, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.602, 1.116).lineTo(-0.602, 1.116).lineTo(-0.602, 0.113).lineTo(0.602, 0.113).lineTo(0.602, 1.116).close().revolve(angleDegrees=180, axisStart=(0.602, 1.116), axisEnd=(-0.602, 1.116))
r... | 8 | 22 | 1.835327 |
train_c84738895735f193 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.788, 0.699, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.567, -0.345).threePointArc((0.567, 0.788), (-0.567, 1.922)).lineTo(-0.567, 1.632).lineTo(-0.567, -0.088).lineTo(-0.567, -0.345).close().extrude(1.398)
result = result.edges().chamfer(... | 3 | 17 | 1.06504 |
train_1743a07a6aed2382 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.794, -0.465, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.325, 1.159).lineTo(0.568, -0.039).lineTo(-0.289, -0.213).lineTo(-0.568, 1.159).lineTo(0.325, 1.159).close().extrude(0.929)
result = result.union(cq.Workplane(cq.Plane(origin=(0.666, -... | 4 | 96 | 1.179298 |
train_a54e31a16646054f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.004, 0.163, -0.812), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.188, -0.04).lineTo(-0.103, 0.025).lineTo(-0.031, 0.025).threePointArc((0, -0.006), (0.031, 0.025)).lineTo(0.029, 0.047).lineTo(0.103, 0.025).lineTo(0.188, -0.04).lineTo(-0.188, -... | 9 | 66 | 0.010649 |
train_12bb4f946629b381 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.097, -0.163), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.122).moveTo(0.175, 0.041).lineTo(0.057, 0.069).lineTo(-0.131, -0.047).lineTo(-0.107, -0.041).lineTo(-0.062, -0.059).lineTo(0.101, -0.019).close().extrude(0.326)
result = result.cut(cq... | 8 | 47 | 0.589382 |
train_9eb4c3197fc89c38 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.023, -0.315, -0.316), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.194, 1.37).extrude(1.251)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.304, -0.411, 0.281), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.182, 1.644).extrude(0.161))
result = r... | 15 | 96 | 2.176228 |
train_445caa065b523993 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.058, -0.728, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.477, -0.942).lineTo(0.857, -0.942).lineTo(-0.857, 1.058).lineTo(-0.477, -0.942).close().extrude(1.456)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.8 + 0.2, -0.582 + 0.194, -... | 13 | 53 | 1.872637 |
train_f4e640af51d3fd7c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1, -0.071), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.725, -0.246).lineTo(0.725, -0.198).lineTo(0.047, -0.198).lineTo(0.047, 0.246).lineTo(-0.217, 0.246).lineTo(-0.217, -0.198).lineTo(-0.265, -0.198).lineTo(-0.265, 0.246).lineTo(-0.532, 0.2... | 4 | 29 | 0.239797 |
train_968700a69dd4a4b3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.026, -0.4, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.467, 1.026).lineTo(0.083, 1.026).lineTo(0.083, 0.959).lineTo(0.4, 0.959).lineTo(0.4, 0.693).lineTo(-0.467, 0.693).lineTo(-0.467, -0.641).lineTo(0.4, -0.641).lineTo(0.4, -0.907).lineTo(0... | 1 | 14 | 1.065112 |
train_f7f2443d3bd4aa0f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.532, 0.372, -0.623), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.377, -0.117).lineTo(0.126, -0.117).lineTo(0.126, 0.386).lineTo(0.377, 0.386).lineTo(0.377, -0.148).lineTo(0.157, -0.148).lineTo(0.157, -0.368).lineTo(-0.377, -0.368).lineTo(-0.37... | 8 | 98 | 0.48122 |
train_fef509bf7ec12e9b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.011, 0, -0.01), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.223, 0.94).threePointArc((0.333, 0.792), (0.354, 0.608)).lineTo(0.13, 0.329).lineTo(-0.223, 0.382).lineTo(-0.354, 0.716).threePointArc((-0.279, 0.885), (-0.13, 0.995)).lineTo(0.223, 0... | 13 | 96 | 1.814488 |
train_71c2ba7131e3f930 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.489, 0.701, -0.141), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.195, 0.309).lineTo(0.099, 0.102).lineTo(0.394, 0.309).lineTo(0.889, 1.015).threePointArc((0.099, 1.31), (-0.69, 1.015)).threePointArc((-0.797, 0.911), (-0.889, 0.795)).lineTo(-0.... | 11 | 44 | 1.538304 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.