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_ec0616272e45491b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.393), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.798, 2).extrude(0.786)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.073, -0.14, 0.074), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.021).extrude(0.055))
result = result.cut(cq.Workpl... | 12 | 95 | 1.167008 |
train_546eb184d78b483b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.813, -0.577), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.715, 1.512).threePointArc((-1, 0.813), (0.715, 0.114)).threePointArc((1, 0.813), (0.715, 1.512)).close().extrude(1.246)
result = result.edges().chamfer(0.083)
result = result.cut(cq.W... | 15 | 69 | 3.361712 |
train_30ca592c618c9dbc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.395, 0, -0.419), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.21, 1.362).extrude(0.618)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.48, 0.19, 0.24), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.192, 0.87).lineTo(-0.192, 1.026).lineTo(-0... | 12 | 242 | 0.455399 |
train_e4c2f505703f9228 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.219, -0.341, 0.033), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.277, 0.349).threePointArc((-0.134, 0.642), (-0.277, 0.158)).threePointArc((0.068, 0.056), (0.277, 0.349)).close().extrude(0.437)
result = result.edges().chamfer(0.151)
result = re... | 11 | 67 | 0.094663 |
train_4caa2a50d86a5cfa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.869), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.499).extrude(1.3)
result = result.union(cq.Workplane(cq.Plane(origin=(0.324, 0.232, 0.393), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.485, 0.508).extrude(0.476))
result = result.edges().f... | 3 | 51 | 3.939894 |
train_f16a63a38fd62b61 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.04, -0.007, -0.096), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.96, -0.003).lineTo(0.323, 0.904).lineTo(-0.756, 0.539).lineTo(-0.78, -0.538).lineTo(0.294, -0.889).close().moveTo(0.178, 0).lineTo(0.059, 0.172).lineTo(-0.146, 0.105).lineTo(-0.145... | 11 | 75 | 0.65576 |
train_91a146804916412d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.785, 1, 0.079), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.638, 0.785).lineTo(-0.467, 0.147).threePointArc((-0.638, 0.785), (-0.467, 1.423)).lineTo(0.638, 0.785).close().extrude(2)
result = result.edges().chamfer(0.183)
result = result.cut(cq.... | 3 | 25 | 1.463666 |
train_cf8fe7dd9abe16ed | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.204, -0.235, -0.171), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.038, 1.531).extrude(1.097)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.035, -0.342, 0.24), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.275, 1.837).extrude(0.3))
result = resu... | 22 | 83 | 1.495602 |
train_236bd971b72ef2e9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.716, 0.748, -0.023), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(1.741, 0.11).lineTo(0.059, 1.399).threePointArc((-0.803, 0.974), (-1.741, 0.772)).threePointArc((-1.116, 0.617), (-0.719, 0.11)).lineTo(1.741, 0.11).close().extrude(1.496)
result = ... | 4 | 30 | 2.297206 |
train_06ac888bdd9bba1c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.238, -0.576, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.045, 1.576).lineTo(1.045, -0.131).lineTo(-1.045, -0.131).lineTo(1.045, 1.576).close().extrude(2)
result = result.edges().fillet(0.264)
result = result.cut(cq.Workplane(cq.Plane(origi... | 24 | 78 | 1.888248 |
train_400e9e5dc99d3b5d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.793, -0.624, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.932, 1.556).lineTo(0.932, -0.308).threePointArc((-0.377, 0.248), (-0.932, 1.556)).lineTo(-0.504, 1.556).lineTo(-0.008, 1.556).lineTo(0.488, 1.556).lineTo(0.558, 1.556).lineTo(0.932, 1... | 12 | 48 | 3.757804 |
train_df6fce1d253a32de | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.264, 0.083, 0.5), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.5, 0.308).lineTo(-0.5, -0.342).lineTo(-0.15, -0.342).lineTo(0, -0.492).lineTo(0.15, -0.342).lineTo(0.5, 0.008).lineTo(0.5, 0.308).lineTo(0.15, 0.658).lineTo(-0.15, 0.658).lineTo(-0.... | 8 | 29 | 1.268205 |
train_908844d431dd18a1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.354, -0.347, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 1.292).lineTo(0.16, 1.292).lineTo(0.308, 1.206).lineTo(0.308, 1.021).lineTo(0, 1.199).lineTo(0, -0.653).lineTo(-0.308, -0.653).lineTo(-0.308, 1.292).lineTo(-0.16, 1.292).lineTo(-0.08... | 18 | 159 | 0.350781 |
train_20c38b16e42e4c00 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.925, 0.222, -0.479), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.085).transformed(offset=(0.113, 0.099, 0.139), rotate=(0, 90, 0)).circle(0.08).transformed(offset=(0.226, 0.137, 0.48), rotate=(0, 0, 30)).circle(0.072).transformed(offset=(0.339... | 2 | 5 | 0.033299 |
train_b1d60677d2cf189c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.002, -0.331), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.984, 1.063).extrude(0.663)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.178, 0.756, -0.246), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.226, 0.488).extrude(0.268))
result = res... | 4 | 64 | 0.740399 |
train_431e4e01185a49e8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.016, -0.027, -0.355), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.759, 1.477).extrude(0.716)
result = result.union(cq.Workplane(cq.Plane(origin=(0.929, 0.477, 0.149), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.142, 0.174).extrude(0.029))
result = ... | 7 | 31 | 1.863731 |
train_bd4e97f8672f4638 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.662, 0.218, -0.247), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.457, 0.355).extrude(0.037)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.941, 0.276, -0.236), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.118, 0.168).extrude(0.02))
result = ... | 11 | 150 | 0.104285 |
train_dfb6a5a2188794bb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.14, 0.149, 0.413), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.444, 0.069).lineTo(0.444, -0.035).lineTo(0.295, -0.035).threePointArc((0.26, -0.069), (0.225, -0.035)).lineTo(0.078, -0.035).lineTo(0.009, -0.035).lineTo(-0.142, -0.035).threePointA... | 5 | 78 | 0.176302 |
train_77b316c24aeaf195 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.262, -0.093, 0.268), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.461, 0.191).lineTo(0.743, 0.191).lineTo(0.743, -0.005).lineTo(-0.743, -0.005).lineTo(-0.743, 0.191).lineTo(0.461, 0.191).close().workplane(offset=0.257).moveTo(0.345, 0.167).lineT... | 22 | 91 | 0.056204 |
train_4efaaba60f6ec9e6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.238, -0.004, 0.356), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.042, 0.237).threePointArc((-0.21, 0.168), (-0.279, 0)).threePointArc((-0.21, -0.168), (-0.042, -0.237)).lineTo(0.209, -0.237).threePointArc((0.259, -0.217), (0.279, -0.167)).line... | 22 | 258 | 0.168211 |
train_9e60a7142aff86a9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.271), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.667, 1).lineTo(-0.667, 0.867).lineTo(-0.533, 0.867).lineTo(-0.533, -1).lineTo(0.667, -1).lineTo(0.667, 1).lineTo(-0.667, 1).close().moveTo(0.096, 0.106).lineTo(0.085, 0.107).lineTo(-0.088... | 12 | 103 | 0.850292 |
train_6fbe3db8431a5028 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.345, -0.274, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.34, -0.726).lineTo(0.161, -0.726).lineTo(0.161, -0.479).lineTo(-0.344, -0.479).lineTo(-0.344, 0.022).lineTo(0.157, 0.022).lineTo(0.157, 1.274).lineTo(0.161, 1.274).lineTo(0.161, -0.38... | 5 | 49 | 0.1375 |
train_0940cb2b8afcb997 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.022, 0.019, -0.391), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.551, 0.823).extrude(0.562)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.022, -0.279, -0.268), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.067, 0.24).extrude(0.317))
result = res... | 28 | 185 | 0.265438 |
train_1c3745e636590ed6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.143, -0.38, -0.133), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.115, -0.115).lineTo(0.115, 0.089).threePointArc((0.091, 0.084), (0.071, 0.071)).lineTo(0.115, 0.115).lineTo(0.049, 0.115).lineTo(-0.115, -0.049).lineTo(-0.082, -0.082).lineTo(-0.04... | 12 | 68 | 0.073756 |
train_596a56ba4080ed2d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.319, 0.202, 0.505), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.384).workplane(offset=0.268).circle(0.5).workplane(offset=0.181).circle(0.592).workplane(offset=0.224).circle(0.681).workplane(offset=0.209).circle(0.615).workplane(offset=0.248).... | 9 | 75 | 2.230702 |
train_c1161783e95751aa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.011, -0.568, -0.732), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, -0.017).lineTo(1.139, 1.078).threePointArc((0.57, 1.134), (0, 1.154)).threePointArc((-0.57, 1.134), (-1.139, 1.078)).lineTo(0, -0.017).close().revolve(angleDegrees=90, axisStart=... | 2 | 17 | 1.130025 |
train_e9e0cff1bafe7e5c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.819, 0.006, -0.687), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.181).sweep(cq.Workplane('XZ').spline([(-0.819, -0.687), (-0.393, -0.54), (0.033, -0.491), (0.459, -0.54), (0.885, -0.687)]))
result = result.union(cq.Workplane(cq.Plane(origin=(0... | 13 | 60 | 0.270573 |
train_69bca44ef2b71917 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.477, -0.007, 0.111), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.504, -0.001).lineTo(0.268, 0.441).lineTo(-0.27, 0.431).lineTo(-0.523, 0).lineTo(-0.243, -0.435).lineTo(0.268, -0.423).close().moveTo(-0.161, 0.236).lineTo(0.163, 0.235).lineTo(0.1... | 10 | 209 | 0.345663 |
train_bc9f7eee2d71924a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1.022, 0.678, 0.002), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.691, 0.209).threePointArc((-0.695, 0.221), (-0.706, 0.225)).lineTo(-0.706, 1.803).threePointArc((-0.717, 1.83), (-0.691, 1.818)).lineTo(0.701, 1.818).threePointArc((0.706, 1.808),... | 17 | 89 | 1.869678 |
train_ddfd926010fafd24 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.093, 0, 0.796), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.349, -0.119).lineTo(-0.277, 0.242).lineTo(0.072, 0.362).lineTo(0.349, 0.119).lineTo(0.353, 0.12).lineTo(0.072, 0.366).lineTo(-0.281, 0.246).lineTo(-0.353, -0.12).lineTo(-0.072, -0.366... | 1 | 24 | 0.017336 |
train_57fe135dd31844d9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.023, -1.095), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1.825, 0.217).lineTo(1.71, 1.127).threePointArc((1.825, 0.228), (1.716, -0.672)).lineTo(-1.825, 0.217).close().extrude(2)
result = result.edges().fillet(0.636)
result = result.union(c... | 16 | 55 | 2.881761 |
train_c28dabbc155b7b03 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.186, -0.034), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.29).lineTo(1, 0.014).lineTo(0.6, 0.014).threePointArc((0.541, 0.031), (0.5, 0.076)).threePointArc((0.488, 0.106), (0.482, 0.138)).threePointArc((0.472, 0.157), (0.452, 0.164)).line... | 14 | 132 | 0.027312 |
train_709622212396cea9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.383, -0.109), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.36, 0.392).extrude(0.426)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.103, -0.184, 0.198), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.05, 0.79).extrude(0.054))
result = result.... | 5 | 20 | 0.058785 |
train_b0987505be742392 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, 0.077, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.288, -0.283).lineTo(-0.22, -0.149).lineTo(-0.003, 0.283).lineTo(0.11, 0.064).lineTo(0.204, -0.119).lineTo(0.288, -0.283).lineTo(0.078, -0.283).lineTo(-0.055, -0.223).lineTo(-0.204, -0.283)... | 2 | 17 | 0.206148 |
train_434b6c5ec8fc1909 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.273, -1.232, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.537, 0.329).lineTo(0.879, 0.329).lineTo(0.879, 0.524).lineTo(0.601, 0.524).lineTo(0.604, 1.305).lineTo(0.537, 1.305).lineTo(0.537, 2.134).lineTo(-0.879, 2.134).lineTo(-0.879, 0.329).l... | 3 | 20 | 2.199476 |
train_96dceb107ccafc12 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.791, 0.73, 0.131), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.872, 1.699).threePointArc((-0.75, 0.082), (0.872, 0.077)).lineTo(0.833, 1.699).lineTo(-0.872, 1.699).close().extrude(1.7)
result = result.edges().fillet(0.214)
result = result.cut(... | 17 | 82 | 5.492822 |
train_5af9e2a6b5808e2b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.369, -0.553, 0.062), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.972, 0.849).threePointArc((-0.972, 1.28), (-0.542, 1.28)).threePointArc((-0.518, 1.252), (-0.497, 1.222)).lineTo(-0.069, 0.677).lineTo(0.857, -0.119).lineTo(0.972, -0.219).lineTo... | 9 | 71 | 1.233952 |
train_2b8b5691aa0264b5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.253, 0.576), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.188, -0.721).threePointArc((-0.746, 0.004), (0.193, 0.721)).lineTo(0.746, 0.721).lineTo(0.746, -0.721).lineTo(0.188, -0.721).close().extrude(1.152)
result = result.union(cq.Workplane(... | 8 | 41 | 1.975612 |
train_69af70c48c722bbe | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.271, -0.028, 0.138), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.725, 0.07).threePointArc((0.88, 0.225), (0.725, 0.381)).lineTo(0.137, 0.381).lineTo(-0.137, 0.381).lineTo(-0.725, 0.381).threePointArc((-0.88, 0.225), (-0.725, 0.07)).lineTo(-0.13... | 13 | 143 | 0.475089 |
train_99b43976065028a8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.584), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.928, 0.64).extrude(1.584)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.105, -0.017, -0.598), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.054).extrude(0.565))
result = result.cut(cq.W... | 24 | 141 | 0.455991 |
train_d4ec2a9166b23d9c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.274, -0.162, -0.345), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.895, 0.531).extrude(0.564)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.1045, -0.106 + 0.0565, -0.927), normal=(1, 0, 0), xDir=(0, 1, 0))).moveTo(0.001, 0.015).lineTo(-0.001,... | 28 | 35 | 0.666948 |
train_c2f99ebb8968d0d9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.094, 0, -0.055), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.381, 0.658).extrude(0.54)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.887, -0.02, 0.239), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.227, 0.142).extrude(0.192))
result = resul... | 14 | 108 | 0.845103 |
train_28bd173505549fcc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.602, -0.008, 0.188), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.452, -0.451).threePointArc((-0.592, -0.249), (-0.588, -0.003)).threePointArc((-0.552, 0.075), (-0.501, 0.143)).threePointArc((-0.207, 0.269), (0.086, 0.143)).threePointArc((0.49... | 5 | 21 | 0.159738 |
train_483768ee22528641 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.641, -0.416, 0.062), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.25, -0.281).lineTo(-0.168, -0.356).lineTo(-0.25, 0.109).threePointArc((-0.078, 0.356), (0.168, 0.183)).lineTo(0.25, -0.281).close().sweep(cq.Workplane('XY').spline([(-0.641, -0.0... | 4 | 17 | 0.002428 |
train_de2b8360b424fe94 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.015, -0.465, 0.353), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.701, 0.027).lineTo(0.01, 0.719).lineTo(-0.133, 0.554).lineTo(-0.701, -0.107).lineTo(-0.125, -0.684).lineTo(0.536, -0.115).lineTo(0.701, 0.027).close().extrude(0.929)
result = resu... | 16 | 245 | 0.676629 |
train_f5d11df494535696 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.039, -0.517), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.274).extrude(1.035)
result = result.edges().chamfer(0.118)
result = result.cut(cq.Workplane(cq.Plane(origin=(0 + 0.189 * math.cos(4.232 + 2 * math.pi * 0 / 4), 0.478 + 0.189 * math.s... | 11 | 35 | 2.524528 |
train_1d5ac5e2512d90cd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.505), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.247).extrude(1.01)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.237, -0.534, -0.006), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.619, 0.42).lineTo(-0.619, 0.468).threePointArc(... | 9 | 36 | 2.223883 |
train_ce60cd56297526d2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.127, 0.266, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.168, 0.127).lineTo(0.168, 0.959).threePointArc((0, 1.127), (-0.168, 0.959)).lineTo(-0.168, 0.127).lineTo(-0.168, -0.705).threePointArc((0, -0.873), (0.168, -0.705)).lineTo(0.168, 0.127... | 7 | 63 | 0.329713 |
train_1f78f47394d9126a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.023, 0.009, -0.135), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.533, 0.007).lineTo(0.272, 0.463).lineTo(-0.264, 0.461).lineTo(-0.552, -0.017).lineTo(-0.277, -0.464).lineTo(0.277, -0.482).close().moveTo(-0.084, 0.066).lineTo(0.084, 0.067).lineT... | 20 | 183 | 0.175668 |
train_1f79b7565db106fb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.388, -0.286, -0.367), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.31, 0.673).lineTo(0.31, 0.673).lineTo(0.31, 0.053).lineTo(-0.31, 0.053).lineTo(-0.31, 0.673).close().revolve(angleDegrees=90, axisStart=(-0.31, 0.673), axisEnd=(-0.229, 0.673))
... | 13 | 187 | 0.158334 |
train_c9ceadf2027d1d28 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.503, 0.42, -0.503), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.503, 0.779).lineTo(0.503, 0.062).lineTo(-0.359, 0.062).lineTo(-0.359, 0.277).threePointArc((-0.503, 0.42), (-0.359, 0.564)).lineTo(-0.359, 0.779).lineTo(0.503, 0.779).close().revolv... | 4 | 119 | 0.901425 |
train_36f67187593c5a28 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.229, -0.076, -0.378), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.542, 0.797).extrude(0.756)
result = result.faces('>Z').shell(-0.031)
result = result.union(cq.Workplane(cq.Plane(origin=(0.238, 0.395, 0.051), normal=(0, 0, 1), xDir=(1, 0, 0))).cir... | 5 | 22 | 0.208543 |
train_55320c3da412353a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.98, -0.265, -0.009), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.227, 0.44).lineTo(0.046, 0.259).lineTo(-0.227, -0.014).lineTo(0.183, -0.014).lineTo(0.227, 0.44).close().extrude(0.518)
result = result.edges().chamfer(0.05)
result = result.cut(c... | 11 | 106 | 0.119384 |
train_b23a10c2def0b649 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.121, 0.928, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.033).sweep(cq.Workplane('XY').spline([(1.609, 0.928), (0.787, 1.83), (-0.309, 1.933), (-1.231, 1.193), (-1.605, -0.087), (-1.278, -1.387)]))
| 1 | 3 | 0.009238 |
train_61c9def1c1bdf9a6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.808, 0.319), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.164, 0.155).lineTo(0.164, 0.185).threePointArc((0, 0.203), (-0.164, 0.185)).lineTo(-0.164, 0.155).lineTo(-0.164, -0.203).lineTo(-0.134, -0.203).threePointArc((-0.116, -0.024), (-0.134, ... | 1 | 9 | 0.013695 |
train_cabe442d108d72a1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.231, 0, -0.201), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.396, 0.396).extrude(0.414)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.205, -0.234, -0.025), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.086, 0.085).extrude(0.059))
result = re... | 9 | 55 | 0.467791 |
train_d3303a8e31edc47e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.935, 0.014, 0.119), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.065).sweep(cq.Workplane('XZ').spline([(-0.935, -0.305), (-0.772, -0.461), (-0.609, -0.461), (-0.446, -0.305)]))
result = result.union(cq.Workplane(cq.Plane(origin=(-0.088, 0.006, -... | 7 | 62 | 0.021866 |
train_76226dd6ea24b6c3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.375), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.167).workplane(offset=0.181).circle(0.32).workplane(offset=0.139).circle(0.167).workplane(offset=0.144).circle(0.375).workplane(offset=0.16).circle(0.311).loft()
result = result.edges().f... | 5 | 16 | 0.23427 |
train_a3a707e8d3a0c5a7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.65, 0, 0.12), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.286, -0.108).threePointArc((-0.223, -0.137), (-0.158, -0.158)).threePointArc((-0.073, -0.173), (0.013, -0.175)).threePointArc((0.024, -0.175), (0.036, -0.174)).threePointArc((0.093, -0.... | 7 | 39 | 0.143709 |
train_9e51fa7b9e0ec801 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.338), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.58).extrude(0.706)
result = result.cut(cq.Workplane(cq.Plane(origin=(0 + 0.205 * math.cos(1.304 + 2 * math.pi * 0 / 5), 0 + 0.205 * math.sin(1.304 + 2 * math.pi * 0 / 5), -0.444), normal=... | 25 | 240 | 1.969545 |
train_7c3ecbb5a510a8d9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.24, 0.131, -0.658), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.52, 1.598).extrude(1.315)
result = result.faces('>Z').shell(-0.101)
result = result.union(cq.Workplane(cq.Plane(origin=(0.573, -0.792, -0.126), normal=(0, 0, 1), xDir=(1, 0, 0))).rect... | 4 | 22 | 1.136113 |
train_0e11f6a11daa046c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.029, 0.103, -0.015), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.015, 1.037).lineTo(0.015, 0.962).lineTo(-0.09, 0.962).lineTo(-0.075, 0.947).lineTo(0, 0.871).lineTo(0.015, 0.856).lineTo(0.015, -0.856).lineTo(0.09, -0.856).lineTo(0.09, 0.962).li... | 5 | 102 | 0.029817 |
train_06af6afbf018467e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.551, -0.085, -0.31), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.433, 0.485).lineTo(0.433, 0.615).lineTo(-0.433, 0.615).lineTo(-0.433, -0.398).lineTo(0, -0.398).lineTo(0, -0.224).lineTo(0.433, -0.224).lineTo(0.433, 0.485).close().workplane(offs... | 17 | 114 | 0.888211 |
train_99e708744e9ceb47 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.813, 0.184, -0.301), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.155, 0.101).lineTo(0.155, -0.101).lineTo(-0.026, -0.101).lineTo(-0.026, -0.07).lineTo(-0.155, -0.07).lineTo(-0.155, 0.101).lineTo(0.155, 0.101).close().transformed(offset=(0.174, ... | 2 | 12 | 0.279521 |
train_b10b469b4bd38c01 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.105, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.528, 0.829).lineTo(-0.528, 0.829).lineTo(-0.953, -0.618).lineTo(0.953, -0.618).lineTo(0.528, 0.829).close().extrude(1.698)
result = result.edges().chamfer(0.095)
result = result.union(cq.... | 6 | 37 | 3.270371 |
train_b7e49683bc88b1f8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.565, -0.245, -0.295), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.535, 0.551).lineTo(-0.535, 0.551).lineTo(-0.305, 0.016).lineTo(0.305, 0.016).lineTo(0.535, 0.551).close().extrude(1.351)
result = result.edges().fillet(0.169)
result = result.cut... | 37 | 180 | 0.59952 |
train_cbaa17c48f032129 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.027, 0, -0.189), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.212, 1.13).extrude(0.797)
result = result.union(cq.Workplane(cq.Plane(origin=(0.647, -0.167, 0.287), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.145, 0.1).extrude(0.048))
result = result.... | 11 | 93 | 1.411841 |
train_7d1e74077975c128 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.642, 0.41, 0.61), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.147, 0.315).lineTo(-0.248, -0.189).lineTo(-0.358, -0.315).lineTo(-0.273, -0.315).lineTo(-0.252, -0.21).lineTo(-0.21, -0.252).lineTo(0.358, 0.315).lineTo(-0.147, 0.315).close().tran... | 1 | 9 | 0.049916 |
train_3ce8a824bd25e130 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.156, 0.434, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.41).sweep(cq.Workplane('XY').spline([(0.156, -0.213), (0.075, 0.196), (-0.324, 0.457), (-0.837, 0.438)]))
result = result.cut(cq.Workplane(cq.Plane(origin=(0.186, -0.254, -0.55), normal... | 4 | 30 | 0.673693 |
train_99efc32719501754 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.183, 0.37, -0.409), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.409, 0.37).lineTo(0.409, 0.14).lineTo(-0.409, 0.14).lineTo(-0.409, 0.6).lineTo(0.409, 0.6).lineTo(0.409, 0.37).close().revolve(angleDegrees=360, axisStart=(0.409, 0.37), axisEnd=(0... | 3 | 11 | 0.930737 |
train_1a7f1b6a966b372b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1.453, 0, -0.5), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.5, 1.767).lineTo(0.5, 1.894).lineTo(-0.5, 1.894).lineTo(-0.5, 1.044).lineTo(-0.388, 1.013).lineTo(0.5, 1.767).close().revolve(angleDegrees=270, axisStart=(0.5, 1.767), axisEnd=(0.5, 1.8... | 7 | 79 | 1.363658 |
train_d74f9d9c269088f7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.671, 0, 0.313), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.329, 0.778).lineTo(-0.082, 0.147).lineTo(0.084, 0.175).lineTo(-0.177, -0.245).lineTo(-0.07, -0.176).lineTo(0.158, -0.124).lineTo(-0.329, -0.778).lineTo(0.03, -0.212).lineTo(-0.09, -0.... | 5 | 73 | 0.169481 |
train_bb0cd75c8311dc75 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.626), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.296, 1.447).extrude(1.108)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.287, -0.549, 0.07), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.076, 0.411).lineTo(-0.066, 0.43).lineTo(-1.0... | 19 | 74 | 1.698082 |
train_0a39ee44fc851621 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.097), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.357, 2).extrude(0.194)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0.048), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.576, 1.002).center(0.023, 0.006).rect(0.167, 0.29).extrude(0.... | 14 | 57 | 0.397908 |
train_b444f8bd009ee8ca | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.235, 0.006, -0.793), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.121, 0.454).lineTo(-0.121, 0.109).lineTo(-0.207, 0.109).lineTo(-0.207, -0.098).lineTo(-0.121, -0.098).lineTo(-0.121, -0.442).lineTo(0.121, -0.442).lineTo(0.121, -0.098).lineTo(0.... | 8 | 54 | 0.452789 |
train_1ddef08d5e91a0aa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.462, -1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.221, 0.167).lineTo(0.401, 0.167).lineTo(0.401, -0.017).lineTo(0.221, -0.017).lineTo(-0.188, -0.108).lineTo(-0.184, -0.124).lineTo(-0.133, -0.118).lineTo(-0.132, -0.135).lineTo(-0.399, -0.... | 1 | 14 | 0.142233 |
train_95e9686929071918 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.04, 0, -0.729), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.801, 1.41).extrude(1.457)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.108, 0.835, 0.134), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.381, 0.717).threePointArc((-0.499, 0.835... | 20 | 62 | 1.633301 |
train_739bbfac95cda3f6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.259, -0.115, 0.308), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.299).transformed(offset=(0.024, 0.083, 0.053), rotate=(10, 0, 0)).circle(0.169).transformed(offset=(0.001, 0.16, 0.011), rotate=(0, 0, 30)).circle(0.554).transformed(offset=(-0.07... | 1 | 5 | 0.119073 |
train_b6884d3a3240da3e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.193, 0, 0.328), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.314, 0).lineTo(-0.942, 0).lineTo(-0.314, 0.628).lineTo(0.942, 0.628).lineTo(0.942, -0.628).lineTo(0.314, -0.628).lineTo(0.314, 0).lineTo(-0.314, 0).close().extrude(0.657)
result = re... | 4 | 46 | 0.701061 |
train_2b2268b8ae9946fd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.289), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.451, 2).extrude(0.579)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.289, -1.232), normal=(1, 0, 0), xDir=(0, 1, 0))).moveTo(0.095, 0.122).lineTo(0.068, 0.122).lineTo(0.068, -0.068)... | 17 | 151 | 1.305821 |
train_bf8fde155e47d34c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.191, -0.191, 0.372), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.647, 0.867).threePointArc((-0.867, -0.867), (0.867, -0.647)).threePointArc((-0.085, -0.085), (-0.647, 0.867)).close().extrude(0.744)
result = result.edges().chamfer(0.105)
result... | 5 | 26 | 1.498506 |
train_d03059bf1470febd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 1, 0.2), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, -0.174).lineTo(0, -0.227).lineTo(0.401, -0.227).lineTo(0.401, -0.174).lineTo(0.052, -0.174).lineTo(0.052, 0.227).lineTo(-0.052, 0.227).lineTo(-0.052, -0.123).lineTo(-0.401, -0.123).lineTo(-0... | 1 | 12 | 0.129429 |
train_d5b63a8806ab7855 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.31, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.425, 0.992).extrude(1.545)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.639, 0.31, -0.228), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.045, 1.06).threePointArc((0, 1.04), (0.045, ... | 6 | 53 | 1.988311 |
train_db069cc84471fe98 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.13, 0.081, -0.133), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.143, 0.754).extrude(0.111)
result = result.union(cq.Workplane(cq.Plane(origin=(0.13, 0.081, -0.022), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.426, 0.213).lineTo(-0.426, -0.03).li... | 15 | 249 | 0.194782 |
train_404c78baa35726e7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.423, -0.511, -0.097), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-1.247, 0.928).lineTo(0.737, 0.045).lineTo(1.247, 0.54).lineTo(-1.247, 0.928).close().extrude(1.023)
result = result.edges().fillet(0.131)
result = result.union(cq.Workplane(cq.Pla... | 10 | 105 | 0.31983 |
train_73b0a69c03a592df | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.287, 0.127, -0.207), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.282, -0.873).lineTo(0.282, 1.127).lineTo(-0.282, 1.127).lineTo(-0.084, 0.989).lineTo(-0.084, -0.873).lineTo(0.282, -0.873).close().extrude(0.591)
result = result.edges().fillet(0.... | 12 | 105 | 0.375218 |
train_97686b53c7c91780 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.08, -0.003, -0.586), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.025, -0.004).lineTo(0.34, 1.003).lineTo(-0.864, 0.614).lineTo(-0.848, -0.608).lineTo(0.294, -0.997).close().moveTo(0.006, 0.151).lineTo(-0.006, 0.151).lineTo(-0.006, 0.457).lineTo... | 12 | 119 | 2.095994 |
train_e26acf5e8d7949ed | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.469, -0.318, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.295, 0.518).lineTo(-0.346, 0.518).lineTo(-0.363, 0.468).lineTo(-0.544, -0.091).lineTo(-0.502, -0.123).lineTo(-0.519, -0.171).lineTo(-0.042, -0.518).lineTo(0, -0.487).lineTo(0.042, -... | 10 | 69 | 1.007248 |
train_d7bbb9d65c4f45fe | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.105, 0.231, 0.422), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.599, 0.428).lineTo(0.599, 0.769).lineTo(-0.599, 0.769).lineTo(-0.599, -0.769).lineTo(0.599, -0.769).lineTo(0.599, -0.428).lineTo(-0.256, -0.428).lineTo(-0.256, 0.428).lineTo(0.599,... | 16 | 87 | 0.879355 |
train_9e7c159de5fc39f4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0, -0.114), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.126, 0.051).lineTo(-0.018, -0.027).threePointArc((0.064, 0.022), (0.126, -0.051)).lineTo(-0.126, -0.051).lineTo(-0.126, 0.051).close().sweep(cq.Workplane('XZ').spline([(0, -0.587), (0.3... | 13 | 86 | 0.034983 |
train_7e6a9f39607005a6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.24, -0.092, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.214, -0.514).lineTo(-0.214, -0.585).lineTo(0.214, -0.585).lineTo(0.214, 0.908).lineTo(-0.214, 0.908).lineTo(-0.214, -0.514).close().extrude(0.48)
result = result.edges().chamfer(0.014... | 10 | 105 | 0.105198 |
train_b9e7a5efcf2707ca | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.768, 0.481, 0.525), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.35, 0.074).threePointArc((0.043, 0.16), (-0.175, 0.396)).threePointArc((-0.135, 0.44), (-0.09, 0.479)).threePointArc((-0.095, 0.498), (-0.099, 0.519)).threePointArc((-0.148, 0.477... | 2 | 22 | 0.405651 |
train_b4ffdef9a13dd5ae | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.4, -0.188, -0.626), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.586, 1.188).threePointArc((-0.414, 0.188), (-0.586, -0.812)).lineTo(0.586, -0.812).lineTo(0.586, 1.188).lineTo(-0.586, 1.188).close().extrude(1.097)
result = result.edges().chamfe... | 6 | 51 | 2.341472 |
train_7d619dd0ad01cb28 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0, 0.368), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.014, -0.009).lineTo(0.011, 0.014).lineTo(-0.014, 0.023).lineTo(-0.009, -0.023).lineTo(0.014, -0.009).close().sweep(cq.Workplane('XZ').spline([(-0.27, 0.351), (0.578, 0.351), (0.782, 0.53)... | 1 | 6 | 0.00119 |
train_f0aa31d98cf47bcc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.26, 0.892), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.834, 0.249).lineTo(-0.834, 0.249).lineTo(-0.785, 0.05).lineTo(-0.739, -0.138).lineTo(-0.4, -0.249).lineTo(0.4, -0.249).lineTo(0.739, -0.138).lineTo(0.785, 0.05).lineTo(0.834, 0.249).clos... | 1 | 10 | 0.792126 |
train_57adef1494c04250 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.66, 0, 0.28), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.015, -0.324).threePointArc((-0.287, -0.178), (-0.313, 0.13)).threePointArc((-0.015, 0.324), (0.282, 0.13)).threePointArc((0.309, 0), (0.282, -0.13)).lineTo(0.309, -0.13).lineTo(0.313, -... | 2 | 14 | 0.077407 |
train_7a48f758f6a52111 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.339, 0, 1.054), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.035, -0.651).threePointArc((-1.262, 0.651), (0.573, 0.546)).threePointArc((0.603, 0.419), (0.618, 0.288)).lineTo(1.175, 0.386).lineTo(1.262, -0.105).lineTo(0.035, -0.651).close().sweep(... | 17 | 102 | 0.917824 |
train_99fbeb2c4340f704 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.079, -0.205, -0.432), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.998, 1.59).extrude(0.858)
result = result.union(cq.Workplane(cq.Plane(origin=(0.055, 0.698, -0.28), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.286, 0.239).extrude(0.332))
result = r... | 26 | 93 | 1.12567 |
train_ce81153f802f6966 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.255, -0.145, -0.431), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.24, -0.24).lineTo(-0.135, -0.135).lineTo(-0.123, -0.19).lineTo(0, 0).lineTo(-0.19, 0.123).lineTo(-0.135, 0.135).lineTo(0.123, 0.19).lineTo(0.135, 0.135).lineTo(0.24, 0.24).lineT... | 12 | 232 | 0.34514 |
train_e8c7f43e1ea605a7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.168, 0.335, 0.169), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.166, 0.335).lineTo(-0.494, 0.335).lineTo(-0.494, 0.003).lineTo(0.494, 0.003).lineTo(0.494, 0.335).lineTo(0.112, 0.335).lineTo(0.112, 0.609).lineTo(-0.166, 0.609).lineTo(-0.166, 0.3... | 7 | 41 | 0.42476 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.