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_14f2b7363e8f5d8f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.032, -0.034, -0.169), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, -0.265).lineTo(-0.531, -0.265).lineTo(-0.531, 0.265).lineTo(-0.265, 0).lineTo(-0.265, 0.265).lineTo(0.531, 0.265).lineTo(0.531, -0.265).lineTo(0.265, -0.265).lineTo(0.265, 0).lin... | 15 | 127 | 0.341899 |
train_7b42bcb9fe8c8413 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.84, 0.117), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.828, -0.335).lineTo(0.828, 0.335).lineTo(0.334, -0.276).lineTo(-0.828, -0.335).close().sweep(cq.Workplane('YZ').spline([(0.674, -0.329), (0.621, -0.225), (0.468, -0.167), (0.289, -0.183... | 4 | 25 | 0.449962 |
train_0caa00cf2d449246 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.066, 0.005, -0.217), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, -0.013).lineTo(0.013, -0.013).lineTo(0.013, -0.01).lineTo(0.002, -0.01).lineTo(0.002, 0.01).lineTo(0, 0.01).lineTo(0, 0.013).lineTo(-0.002, 0.013).lineTo(-0.002, -0.01).lineTo(-... | 4 | 62 | 0.947132 |
train_7cfeee43dfd1666d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.202, -0.083, -0.081), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.301, 0.086).lineTo(-0.208, 0.172).lineTo(-0.086, 0.215).lineTo(0.086, 0.215).lineTo(0.208, 0.172).lineTo(0.301, 0.086).lineTo(0.301, 0).lineTo(0.086, 0.086).lineTo(0.086, -0.17... | 5 | 48 | 0.071093 |
train_6ce4508db275942d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.534, -0.453), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.133, 0.266).threePointArc((0.167, 0.261), (0.199, 0.248)).threePointArc((0.248, 0.199), (0.266, 0.133)).lineTo(0.266, -0.133).lineTo(0.199, -0.133).lineTo(0.199, -0.248).threePointArc(... | 12 | 115 | 0.236731 |
train_9c01cf2dcbfd6258 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.059, -0.401, -0.223), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.941, -0.003).lineTo(0.278, 0.867).lineTo(-0.72, 0.547).lineTo(-0.754, -0.516).lineTo(0.261, -0.903).close().moveTo(-0.448, 0.373).lineTo(-0.189, 0.373).lineTo(-0.187, 0.333).lineT... | 11 | 64 | 0.343107 |
train_fbde8ef088bb675d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.962, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.734, 1.412).lineTo(0, 1.836).lineTo(-0.734, 1.412).lineTo(-0.734, 0.565).threePointArc((-0.424, 0.254), (0, 0.141)).lineTo(0.734, 0.565).lineTo(0.734, 1.412).close().extrude(2)
result = r... | 18 | 144 | 1.186662 |
train_0a07100f8f44e822 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.158, 0.405, -0.512), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.142, 0.163).lineTo(-0.183, 0.163).lineTo(-0.183, -0.122).lineTo(-0.142, -0.122).lineTo(-0.142, -0.163).lineTo(0.183, -0.163).lineTo(0.183, -0.122).lineTo(0.142, -0.122).lineTo(0.... | 24 | 125 | 0.238496 |
train_1812672bac4fa9d0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.169, 0.755, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.291, 0.504).lineTo(0.485, 0.504).lineTo(0.291, 0.168).lineTo(0.097, -0.168).lineTo(-0.097, -0.504).lineTo(-0.291, -0.168).lineTo(-0.485, 0.168).lineTo(-0.291, 0.504).close().sweep(cq.W... | 6 | 20 | 0.010754 |
train_5034a9501981317f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.077, -0.024, 0.062), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.938, 0.322).lineTo(0.938, 0.322).lineTo(0.938, 0.144).lineTo(-0.938, 0.144).lineTo(-0.938, 0.322).close().revolve(angleDegrees=360, axisStart=(0, 0), axisEnd=(0.171, 0))
result ... | 13 | 122 | 0.484016 |
train_4887fef165e43ad1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.391, 0.911, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.53, -0.395).threePointArc((-0.657, -0.373), (-0.784, -0.398)).lineTo(0.366, 0.56).lineTo(0.583, 0.355).lineTo(0.784, 0.167).threePointArc((-0.419, -0.46), (-0.53, -0.395)).close().swe... | 4 | 11 | 1.787248 |
train_d2b18dc2dd13934b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.305, 0, -0.764), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.934, 1.189).extrude(0.608)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.528, 0, -0.496), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.514, 0.651).extrude(0.072))
result = result.cu... | 13 | 109 | 0.603887 |
train_7b43a9c3492480af | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.195, -0.29), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.237, 0.002).threePointArc((0.1, 0.109), (-0.041, 0.211)).lineTo(-0.237, 0.051).lineTo(-0.023, -0.211).lineTo(0.237, 0.002).close().sweep(cq.Workplane('YZ').spline([(-0.195, -0.29), (-... | 26 | 233 | 0.326441 |
train_59031a476c505cbd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.825, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.683, 0.454).threePointArc((-0.382, 0.204), (0, 0.113)).threePointArc((0.382, 0.204), (0.683, 0.454)).threePointArc((0.855, 0.967), (0.683, 1.48)).threePointArc((0.382, 1.731), (0, 1.821))... | 14 | 74 | 3.4886 |
train_4568433c4dfe0b97 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.012), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.096, -1).lineTo(-0.096, 0.994).threePointArc((0, 1), (0.096, 0.994)).lineTo(0.096, -0.45).lineTo(0.096, -1).lineTo(0, -1).lineTo(-0.096, -1).close().workplane(offset=0.012).moveTo(-0.064,... | 15 | 40 | 0.003191 |
train_4e1939f56020a3ad | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.499), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.809, 2).extrude(0.507)
result = result.union(cq.Workplane(cq.Plane(origin=(0.09, 0.1, 0.004), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.814).extrude(0.084))
result = result.union(cq.Workpl... | 6 | 40 | 2.034422 |
train_283ee4f48e73d465 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.657, 0.592, 0.004), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.226).sweep(cq.Workplane('XY').spline([(0.657, 0.267), (0.778, 0.376), (0.899, 0.363), (1.019, 0.305), (1.14, 0.229), (1.261, 0.171), (1.381, 0.158), (1.502, 0.196), (1.623, 0.267), ... | 16 | 97 | 0.250723 |
train_8c3bd6d7706316bf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.412, -0.094, 0.013), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.355, 0.03).extrude(0.04)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.071, -0.092, 0.022), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.4, 0.011).extrude(0.019))
result = res... | 8 | 63 | 0.043204 |
train_d635b4f014cebbba | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1.562, 0.52, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.771, 3.044).lineTo(-0.771, 2.332).lineTo(-0.771, 0.078).lineTo(0.771, 0.79).lineTo(0.771, 3.044).close().workplane(offset=0.504).moveTo(0.535, 2.59).lineTo(-0.535, 2.096).lineTo(-0.535,... | 12 | 48 | 1.258114 |
train_bc738b5995461e5e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.287, -0.253, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.553).lineTo(1, 0.553).lineTo(1, 0.289).lineTo(0.158, 0.289).lineTo(0.158, -0.553).lineTo(-0.158, -0.553).lineTo(-0.158, 0.289).lineTo(-1, 0.289).lineTo(-1, 0.553).lineTo(0, 0.553)... | 4 | 17 | 0.017961 |
train_9417216592354a99 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.07, -0.219, 0.069), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.001, 0.01).lineTo(0.003, 0.001).threePointArc((-0.001, 0), (-0.006, 0.001)).lineTo(-0.01, -0.008).threePointArc((-0.001, -0.01), (0.008, -0.008)).threePointArc((0.009, -0.008), (0.... | 10 | 192 | 0.685027 |
train_dccc6856b90bf28d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.614, -0.083, -0.001), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.211, 0.65).lineTo(0.102, -0.326).threePointArc((0.263, -0.467), (0.152, -0.65)).lineTo(-0.263, 0.54).lineTo(-0.211, 0.65).close().sweep(cq.Workplane('XY').spline([(0.011, -0.3)... | 2 | 8 | 0.149137 |
train_da4877ca78d994e8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.635), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.69).extrude(1.27)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.026, 0.298, 0.424), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.167).extrude(0.216))
result = result.cut(cq.Workplan... | 5 | 94 | 2.908771 |
train_0cf6a6da415ed2b7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.131, 0.674, -0.229), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.418, 0.652).extrude(0.016)
result = result.union(cq.Workplane(cq.Plane(origin=(0.082, 0.679, -0.214), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.076).extrude(0.019))
result = result... | 7 | 76 | 0.074226 |
train_1cb7cce0a3a23de0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.196, -0.005, -0.211), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.804, -0.015).lineTo(0.441, 0.708).lineTo(-0.436, 0.724).lineTo(-0.823, 0.021).lineTo(-0.449, -0.711).lineTo(0.406, -0.714).close().moveTo(0.204, 0).lineTo(0.101, 0.177).lineTo(-0.... | 8 | 46 | 0.511167 |
train_462330ac504003b8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.317, 0.016, 0.305), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.377, 0.112).lineTo(-0.377, 0.031).lineTo(0.269, 0.031).threePointArc((0.345, 0.062), (0.377, 0.138)).lineTo(0.377, 0.381).lineTo(0.296, 0.381).lineTo(0.296, 0.138).threePointArc((... | 9 | 159 | 0.127752 |
train_1ba27390851c4731 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.715), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.574, -0.994).threePointArc((-0.639, 0.367), (0.574, 0.994)).threePointArc((0.639, -0.367), (-0.574, -0.994)).close().extrude(0.759)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.07... | 13 | 108 | 2.179366 |
train_d63feee5b39e3057 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.353, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.461, 0.353).lineTo(0.276, 0.034).lineTo(-0.461, 0.034).lineTo(-0.276, 0.353).lineTo(-0.461, 0.672).lineTo(0.276, 0.672).lineTo(0.461, 0.353).close().extrude(2)
result = result.cut(cq.Workp... | 3 | 15 | 0.835097 |
train_201746a9e28d09a9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.264, -0.053, -0.057), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.049, 0.194).threePointArc((0, 0.146), (0.049, 0.194)).lineTo(0.049, 0.089).threePointArc((0.126, 0.024), (0.143, -0.075)).threePointArc((0.126, -0.122), (0.095, -0.159)).threePo... | 12 | 171 | 0.282525 |
train_6e7bfadba65e877c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.326, -0.15, 0.741), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.364, 1.222).lineTo(0.048, 0.584).threePointArc((0, 0.555), (-0.048, 0.584)).lineTo(-0.364, 1.222).lineTo(-0.364, 1.009).lineTo(-0.364, -1.222).lineTo(-0.095, -0.679).threePointArc(... | 20 | 144 | 1.352914 |
train_545e9f18ccdd1e93 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.373, 0, -0.737), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.175, 2).extrude(1.475)
result = result.union(cq.Workplane(cq.Plane(origin=(0.372, -0.422, -0.083), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.396, 0.711).extrude(0.632))
result = result.... | 13 | 98 | 2.511454 |
train_697cfa10c531e876 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.176, 0.178, -0.01), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.082, -0.822).lineTo(0.082, 0.822).lineTo(-0.082, 0.822).lineTo(-0.082, -0.822).lineTo(0.082, -0.822).close().sweep(cq.Workplane('XZ').spline([(0.176, -0.01), (0.104, 0.037), (0.014... | 9 | 49 | 0.118522 |
train_31b92fc4b0a7d6dd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.421, -0.133, 0.166), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.339, -0.098).lineTo(-0.339, 0.247).lineTo(0.339, 0.247).lineTo(0.339, -0.098).lineTo(-0.339, -0.098).close().extrude(0.793)
result = result.edges().fillet(0.119)
result = result.... | 29 | 237 | 0.347058 |
train_8c5ef4d1b3a1a9d8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.078, -0.741, 0.056), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.69, 0.623).lineTo(-0.611, 0.29).lineTo(0.596, 0.574).lineTo(0.69, 0.178).lineTo(0.539, -0.403).lineTo(0.038, -0.521).lineTo(-0.395, -0.623).lineTo(-0.61, 0.289).lineTo(-0.611, 0.... | 12 | 48 | 0.470365 |
train_240c7238d94034c3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.328, -0.294, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.036).lineTo(-1, 0.552).lineTo(1, 0.552).lineTo(1, 0.036).lineTo(-1, 0.036).close().extrude(0.656)
result = result.edges().chamfer(0.023)
result = result.cut(cq.Workplane(cq.Plane(... | 12 | 133 | 0.576313 |
train_ccbb7571876ddfe9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.509, 0.544, -0.085), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.586, 1.262).lineTo(0.586, 0.676).threePointArc((0, 0.09), (-0.586, 0.676)).threePointArc((-0.414, 1.091), (0, 1.262)).lineTo(0.586, 1.262).close().extrude(1.509)
result = result.u... | 11 | 50 | 1.176853 |
train_5afa03e821c672d7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.417, -0.559, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.83).sweep(cq.Workplane('XY').spline([(-0.417, 0.183), (0.193, 0.458), (0.804, 0.559), (1.414, 0.485)]))
result = result.edges().fillet(0.225)
| 2 | 5 | 1.953505 |
train_2e3eff183b51e339 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, 0, 0.096), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.398).workplane(offset=0.431).circle(0.407).workplane(offset=0.372).circle(0.386).workplane(offset=0.373).circle(0.4).workplane(offset=0.475).circle(0.397).workplane(offset=0.349).circle(0.... | 10 | 104 | 0.644389 |
train_3fa5438805e0d78c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.38, -0.032), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.68, 0.781).extrude(0.065)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.044, -0.339, 0.005), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.053).extrude(0.028))
result = result.cut(c... | 15 | 98 | 0.054948 |
train_2d97183b6c289bf3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.766, -0.564, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 1.125).lineTo(-1.122, 1.125).threePointArc((0, 0.003), (1.122, 1.125)).lineTo(0.561, 1.125).lineTo(0.393, 1.125).lineTo(0, 1.125).close().extrude(1.533)
result = result.edges().chamf... | 10 | 27 | 1.137204 |
train_f71f501b2b6e4059 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.075, 0.627, 0.891), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.04, 0.104).lineTo(-0.009, 0.161).lineTo(-0.033, 0.104).lineTo(-0.082, 0.161).lineTo(-0.087, 0.104).threePointArc((-0.113, 0.074), (-0.124, 0.035)).lineTo(-0.151, -0.013).lineTo(-0.1... | 8 | 67 | 0.436543 |
train_ae3a040ceede4ba6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.298, -0.025, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.306, 0.254).threePointArc((-0.148, 0.457), (-0.153, 0.714)).lineTo(0.153, 0.714).threePointArc((0.148, 0.457), (0.306, 0.254)).lineTo(0.306, -0.665).lineTo(-0.306, -0.665).lineTo(-0.... | 1 | 8 | 0.461234 |
train_2665508a0a8dfe81 | 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.12).workplane(offset=0.784).circle(0.089).workplane(offset=0.656).circle(0.063).workplane(offset=0.561).circle(0.014).loft()
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.097 + 0.0325, ... | 11 | 67 | 0.041849 |
train_1a0a43edb9c6bd1d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.048, -0.611, -0.517), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.483, 0.289).lineTo(-0.483, 0.048).lineTo(-0.322, 0.048).lineTo(-0.322, -0.194).lineTo(-0.483, -0.194).lineTo(0.349, -0.194).lineTo(0.349, 0.128).lineTo(0.483, 0.128).lineTo(0.48... | 13 | 180 | 0.630313 |
train_79d80140fce0d180 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.013, -0.463), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.482, 0.876).extrude(0.818)
result = result.union(cq.Workplane(cq.Plane(origin=(0, -0.013, 0.348), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.328, 0.505).extrude(0.264))
result = result.u... | 13 | 84 | 0.554938 |
train_2028b86c19c2e880 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.203, 0.665, -0.565), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.69, 0.669).extrude(0.007)
result = result.union(cq.Workplane(cq.Plane(origin=(0.186, 0.432, -0.557), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.075, 0.086).lineTo(0.064, 0.05).line... | 10 | 118 | 0.524796 |
train_aa9039cc8d8cf50f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.036, -0.331, -0.259), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.262, -0.082).lineTo(-0.262, -0.04).lineTo(0.22, -0.04).lineTo(0.22, 0.082).lineTo(0.262, 0.082).lineTo(0.262, -0.082).lineTo(-0.262, -0.082).close().revolve(angleDegrees=90, ax... | 8 | 63 | 0.051631 |
train_bc2cb9bab3e28126 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.103, 0.625, -0.306), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.73, 0.428).extrude(0.189)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.246, 0.629, -0.375), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.064).extrude(0.073))
result = resul... | 27 | 276 | 0.406921 |
train_6645c636ade24135 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.169, 0.184), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.171, 0).lineTo(-0.091, -0.219).threePointArc((-0.171, 0), (-0.091, 0.219)).lineTo(0.171, 0).close().sweep(cq.Workplane('YZ').spline([(-0.029, -0.007), (0.016, -0.095), (0.061, -0.095)... | 12 | 265 | 0.217674 |
train_78d776ad2588fd69 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.075, -0.015, -0.843), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.176, 0.315).extrude(0.815)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.071, 0, -0.761), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.179).workplane(offset=0.114).circle(0... | 25 | 120 | 0.055151 |
train_f29b8cea4e0c180f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.355, 0.802, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.222, 1.355).lineTo(-0.222, 0.355).lineTo(-0.382, -0.445).lineTo(-0.469, -0.545).lineTo(-0.778, -0.645).lineTo(-0.355, -0.645).lineTo(-0.182, -0.445).lineTo(-0.022, 0.355).lineTo(0.778... | 31 | 15 | 1.909494 |
train_1eb5d8240f6170bf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.01, -0.15, -0.038), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.39, 0.089).lineTo(0.3, 0.318).lineTo(-0.064, 0.3).lineTo(-0.308, 0.446).lineTo(-0.741, 0.082).lineTo(-0.755, -0.041).lineTo(-0.58, -0.064).close().moveTo(0, -0.147).lineTo(0.035, -0... | 9 | 55 | 0.096933 |
train_9cf7e1627c841d01 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.277, 0.393), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.072, 0.453).threePointArc((-0.024, 0.501), (0.024, 0.453)).lineTo(0.087, 0.167).lineTo(0.143, 0.111).lineTo(0.429, 0.048).threePointArc((0.477, 0), (0.429, -0.048)).lineTo(0.143, -0.... | 12 | 81 | 0.35382 |
train_8ef19a9736974b73 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.249, 0.075, 0.037), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.1, 0.349).lineTo(-0.1, 1.249).lineTo(0.1, 1.249).lineTo(0.1, -0.751).lineTo(-0.1, -0.751).lineTo(-0.1, 0.349).close().revolve(angleDegrees=90, axisStart=(-0.1, 0.349), axisEnd=(-0... | 6 | 32 | 0.079732 |
train_122f390611447844 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.636, 0.947, 0.093), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.565, 1.829).threePointArc((-0.664, 1.768), (-0.755, 1.696)).threePointArc((-0.904, 0.362), (0.409, 0.082)).threePointArc((0.506, 0.146), (0.596, 0.221)).threePointArc((0.904, 0.85... | 10 | 77 | 2.233344 |
train_a0afe2fbb7abaa64 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.749, 0.528, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.455, 1.749).lineTo(-0.455, 1.567).lineTo(0.273, 1.567).lineTo(0.273, -0.069).lineTo(-0.273, -0.069).lineTo(-0.273, -0.251).lineTo(0.455, -0.251).lineTo(0.455, 1.749).lineTo(-0.455, 1.... | 6 | 116 | 0.538376 |
train_66aa39bfd891c485 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.101, 0.5), normal=(0, 0, -1), xDir=(1, 0, 0))).lineTo(-0.994, 0.202).lineTo(-1, 0.202).close().revolve(angleDegrees=180, axisStart=(0, 0), axisEnd=(0, 0.263))
| 1 | 5 | 0.001265 |
train_b323b4a8ebc9a210 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.394, 0.096, -0.16), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.112, 0.963).extrude(0.154)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.483, -0.25, -0.074), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.405, 0.285).extrude(0.036))
result = resu... | 27 | 166 | 0.396132 |
train_32a7856a06b514ab | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.052, 0.096, 0.047), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.139, 0.139).extrude(0.199)
result = result.union(cq.Workplane(cq.Plane(origin=(0.052, 0.278, 0.104), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.059, 0.269).extrude(0.086))
result = res... | 10 | 122 | 0.152012 |
train_bfbc7b56eff074ea | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.477, -0.693, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.65, 1.237).threePointArc((0, 1.477), (-0.65, 1.237)).lineTo(-0.65, -0.284).threePointArc((0, -0.523), (0.65, -0.284)).lineTo(0.65, 1.237).close().extrude(1.386)
result = result.cut(cq... | 4 | 9 | 3.086796 |
train_83fbfd306fa31100 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.856, -0.002, -0.024), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.144, -0.054).lineTo(-0.144, -0.04).lineTo(-0.124, -0.04).threePointArc((0.015, 0.054), (0.144, -0.054)).lineTo(-0.102, -0.054).lineTo(-0.128, -0.054).lineTo(-0.144, -0.054).clos... | 11 | 62 | 0.003376 |
train_89d470cf52398153 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.198, -0.059, -0.029), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.25, 0.354).extrude(0.047)
result = result.union(cq.Workplane(cq.Plane(origin=(0.204, -0.056, 0.018), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.106).extrude(0.009))
result = result... | 25 | 137 | 0.163568 |
train_c1a1020de5b4e389 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.119, 0, 0.99), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.132, 0.18).lineTo(0.451, -0.054).lineTo(0.318, -0.234).lineTo(0.212, -0.379).lineTo(0.185, -0.414).lineTo(0.137, -0.379).lineTo(-0.132, -0.18).lineTo(-0.446, 0.05).lineTo(-0.451, 0.054)... | 3 | 26 | 0.173321 |
train_d8a00684f583df43 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.347), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.097).extrude(0.695)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.282, 0.247, -0.113), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.318).extrude(0.338))
result = result.cut(cq.Workp... | 11 | 61 | 1.142405 |
train_ec9de8b36f4adb07 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.77), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.663, 2).extrude(1.54)
result = result.cut(cq.Workplane(cq.Plane(origin=(0 + 0.451 * math.cos(4.78 + 2 * math.pi * 0 / 5), 0.77 + 0.451 * math.sin(4.78 + 2 * math.pi * 0 / 5), -1.851), normal=... | 14 | 91 | 5.002509 |
train_d4441bc0b264fdf8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.105, -0.649, 0.323), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.263, -0.351).lineTo(0.263, -0.238).lineTo(0.138, -0.238).lineTo(0.138, -0.312).lineTo(-0.224, -0.312).lineTo(-0.224, 0.351).lineTo(-0.263, 0.351).lineTo(-0.263, -0.351).lineTo(0.... | 4 | 23 | 0.09618 |
train_b616f777142b5936 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1.159, 0.41, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1, 2.159).lineTo(-0.25, 2.159).lineTo(1, 0.943).lineTo(1, 0.159).lineTo(0.215, 0.159).lineTo(-1, 1.409).lineTo(-1, 2.159).close().extrude(0.92)
result = result.edges().fillet(0.176)
resu... | 12 | 161 | 2.022873 |
train_2078fee769498ce6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.489, -0.482, 0.301), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.002, 0.806).extrude(0.249)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.418, -0.55, 0.428), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.092).extrude(0.056))
result = result.... | 25 | 140 | 0.685786 |
train_0426f1ae3f9e8744 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.183, 0, -0.242), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.104, 0.333).extrude(0.349)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.858, -0.004, -0.071), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.283, 0.151).extrude(0.104))
result = re... | 16 | 433 | 0.125904 |
train_5d1515f6cf1593fb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.082, 0.023, 0.151), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.182, 0.723).lineTo(0.182, -0.558).lineTo(-0.182, -0.558).lineTo(-0.182, -0.046).lineTo(-0.125, -0.046).lineTo(-0.125, 0.438).lineTo(-0.182, 0.438).lineTo(-0.182, 0.723).lineTo(0.18... | 23 | 204 | 0.451227 |
train_1684ece0f7bcbd25 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.272, 0.808, -0.195), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.805, 0.664).lineTo(-0.805, 0.664).lineTo(-0.805, 0.08).lineTo(-0.394, 0.08).lineTo(-0.369, -0.042).lineTo(-0.261, -0.586).lineTo(0.554, -0.586).lineTo(0.663, -0.042).lineTo(0.688,... | 14 | 81 | 2.12632 |
train_4b023a255a17efe6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.241, 0.397, 0.142), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.858, 0.756).lineTo(-0.858, 0.587).lineTo(-0.638, 0.587).threePointArc((-0.484, 0.517), (-0.417, 0.362)).lineTo(-0.417, 0.033).lineTo(0.417, 0.033).lineTo(0.417, 0.362).threePointA... | 14 | 134 | 0.442315 |
train_ea8babb095fe64f6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.172, 0.302, -0.075), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.321, 1.395).extrude(0.149)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.357 + 0.176, -0.256 + 0.279, -0.097), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.053, 0.135).lineTo(-... | 17 | 269 | 0.234059 |
train_f3bcb8428dfacf97 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.086, -0.327, -0.231), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 0).lineTo(0.16, 0).threePointArc((0.149, -0.059), (0.117, -0.109)).threePointArc((0.064, -0.147), (0, -0.16)).threePointArc((-0.059, -0.149), (-0.109, -0.117)).threePointArc((-0... | 14 | 120 | 0.213718 |
train_f2d2519bb04b4e57 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.122, 0.141, 0.283), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.81, 0.945).extrude(0.717)
result = result.union(cq.Workplane(cq.Plane(origin=(0.272, 0.158, 0.287), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.034, 0.024).lineTo(-0.005, 0).lineTo(0... | 8 | 95 | 0.683665 |
train_4e6ce2ae325e13b7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.033, -0.427), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.117).extrude(1.242)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.393, -0.617, -0.135), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.142, 0.211).extrude(0.12))
result = result.u... | 12 | 67 | 2.195801 |
train_1650eb1c1a28362f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.037, 0.402, -0.198), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.113, -0.163).lineTo(-0.113, 0.185).lineTo(-0.026, 0.185).lineTo(-0.026, 0.054).lineTo(0.043, 0.054).lineTo(0.043, 0.12).lineTo(0.113, 0.12).lineTo(0.113, -0.032).lineTo(-0.026, -... | 14 | 183 | 0.076966 |
train_5d17b115d021b1ff | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.026, -0.029, 0.403), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.925, -1.029).lineTo(-0.615, -1.029).lineTo(0.925, 0.685).lineTo(0.925, 1.029).lineTo(0.755, 0.84).lineTo(-0.771, -0.858).lineTo(-0.925, -1.029).close().extrude(0.961)
result = r... | 12 | 110 | 0.720137 |
train_afd8eb611c4fb24d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.381, 1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.256).sweep(cq.Workplane('XY').spline([(0.381, 0.249), (0.559, 0.276), (0.737, 0.54), (0.915, 0.804), (1.094, 0.83)]))
result = result.edges().chamfer(0.091)
result = result.cut(cq.Workplane... | 7 | 27 | 0.005624 |
train_4f4fa40f3796a5f8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.098, -0.835, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.42, -0.63).lineTo(0.28, -0.49).lineTo(0.234, -0.484).lineTo(0.115, -0.47).lineTo(0, -0.456).lineTo(0.049, -0.259).lineTo(0.092, -0.085).lineTo(0, 0.138).lineTo(-0.246, -0.456).lineTo... | 1 | 26 | 23.976097 |
train_2afdd056f67f20ca | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.882, 0.432, 0.096), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.904, 0.923).lineTo(-0.904, 1.593).lineTo(0.904, 1.593).lineTo(0.904, 0.172).lineTo(-0.317, 0.172).lineTo(-0.317, 0.923).lineTo(-0.904, 0.923).close().extrude(0.865)
result = resul... | 13 | 114 | 1.651547 |
train_e34009196597428f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, 0, -0.001), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.531).workplane(offset=0.541).circle(0.621).workplane(offset=0.39).circle(0.65).workplane(offset=0.537).circle(0.635).workplane(offset=0.532).circle(0.555).loft()
result = result.edges().f... | 9 | 26 | 1.682604 |
train_3750bae500232501 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.09, 0, 0.359), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.317, 0.279).extrude(0.225)
result = result.union(cq.Workplane(cq.Plane(origin=(0.153, 0, 0.409), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.19, 0.156).extrude(0.125))
result = result.union... | 7 | 72 | 0.031492 |
train_9eee8dd9eb442714 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.027, 0, -0.895), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.179, 0.027).threePointArc((0.094, 0), (0.007, -0.015)).lineTo(0.007, -0.04).threePointArc((-0.086, -0.044), (-0.179, -0.033)).lineTo(-0.179, -0.008).lineTo(-0.179, 0.027).lineTo(-0.179... | 9 | 82 | 0.059063 |
train_b8b69c28c65d67c8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.05, -0.159, -0.904), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.552, 0.454).extrude(0.086)
result = result.union(cq.Workplane(cq.Plane(origin=(0.123, 0.143, -0.887), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.088).extrude(0.026))
result = result... | 27 | 372 | 0.168386 |
train_d138941ca7687bc6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.028, -0.221, -0.183), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.044, 0.332).threePointArc((-0.107, 0.29), (-0.148, 0.228)).threePointArc((-0.162, 0.156), (-0.148, 0.084)).threePointArc((0.162, 0.021), (0.1, 0.332)).lineTo(-0.044, 0.332).clos... | 4 | 30 | 0.041387 |
train_f7ddb4d3043791a4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.69, 0.026, 0.024), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.103, 0.266).threePointArc((-0.296, 0.318), (-0.154, 0.176)).lineTo(0.019, -0.125).threePointArc((0.071, -0.318), (0.123, -0.125)).lineTo(0.296, 0.176).threePointArc((0.258, 0.214)... | 3 | 24 | 0.020381 |
train_025e562a70191492 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.269, 1.471).threePointArc((0.111, 1.851), (-0.269, 2.009)).lineTo(-0.269, 0.186).lineTo(0.129, 0.186).threePointArc((0.228, 0.227), (0.269, 0.326)).lineTo(0.269, 1.471).close().revolve(angleDe... | 4 | 28 | 1.190861 |
train_01cfdb9a992b1118 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.244, 0.226, 0.047), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.016, -0.014).lineTo(-0.016, 0.014).lineTo(-0.012, 0.014).lineTo(-0.012, -0.01).lineTo(0.012, -0.01).lineTo(0.012, 0.014).lineTo(0.016, 0.014).lineTo(0.016, -0.014).lineTo(-0.016, ... | 16 | 215 | 0.574676 |
train_ee92fa957a66a7b0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.006, 0.051, -0.33), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.846, 1.898).extrude(0.49)
result = result.union(cq.Workplane(cq.Plane(origin=(0.087, 0.146, 0.158), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.831).extrude(0.029))
result = result.u... | 16 | 121 | 1.987828 |
train_25cd402d6c2e06b0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.432, 0.004, 0.028), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.106, 0.633).lineTo(-0.106, -0.549).lineTo(0.106, -0.549).lineTo(0.106, 0.633).lineTo(-0.106, 0.633).close().workplane(offset=0.014).moveTo(-0.097, 0.583).lineTo(-0.097, -0.499).l... | 11 | 222 | 0.028646 |
train_65914f2f5ffa97c2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.221, -0.137, -0.195), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.679, 0.723).extrude(0.911)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.213, -0.047, 0.381), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.528, 0.122).lineTo(0.39, 0.122).li... | 14 | 130 | 0.38506 |
train_3abd5ac9b575b264 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.022, -0.935, -0.52), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.062, 0.06).lineTo(-0.062, 0.065).lineTo(0.089, 0.065).lineTo(0.089, -0.065).lineTo(-0.089, -0.065).lineTo(-0.089, -0.005).lineTo(-0.084, -0.005).lineTo(-0.084, -0.06).lineTo(0.08... | 5 | 31 | 0.016086 |
train_7f416ba3d92597ec | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.448), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.086, 2).extrude(0.895)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.388, -0.421, -0.358), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.325, 0.392).extrude(0.534))
result = result.cut(cq.... | 10 | 47 | 1.045994 |
train_909bb056af2845fc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.009, -0.001, -0.436), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.009, -0.029).lineTo(0.477, 0.876).lineTo(-0.485, 0.849).lineTo(-0.991, -0.016).lineTo(-0.482, -0.874).lineTo(0.515, -0.843).close().moveTo(-0.245, 0.305).lineTo(-0.504, 0.396).li... | 12 | 83 | 1.584059 |
train_a15b79c0bc620d19 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.096, 0, -0.142), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.808, 1.403).extrude(0.283)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.235, -0.438, -0.15), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.155, 0.133).extrude(0.339))
result = result... | 13 | 61 | 0.69467 |
train_93fc2770b42ff017 | 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.679, 1.072).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.001, 0.296, -0.472), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.252).extrude(1.021))
result = result.cut(cq.Workplane... | 5 | 28 | 3.056694 |
train_be35c46170e3e71b | 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.242).workplane(offset=0.444).circle(0.338).workplane(offset=0.428).circle(0.325).workplane(offset=0.377).circle(0.457).workplane(offset=0.309).circle(0.444).workplane(offset=0.441).circle(0.49... | 1 | 3 | 0.949546 |
train_a719bcdec962fefc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.028, 0.116, -0.169), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.083).sweep(cq.Workplane('YZ').spline([(0.408, -0.293), (0.561, -0.19), (0.714, -0.124), (0.867, -0.111), (1.02, -0.134)]))
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.01... | 10 | 38 | 0.030983 |
train_9758fd37ba872938 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.102, 0, -0.57), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.181, 2).extrude(1.139)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.221, -0.14, 0.065), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.088, 2.4).extrude(0.123))
result = result.edges().... | 9 | 72 | 2.637461 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.