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_88ea2045edd987cd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.113, 0, -0.457), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.773, 1.014).extrude(0.915)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.752, 0.381, -0.485), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.14, 0.05).extrude(1.098))
result = result.... | 14 | 191 | 1.586403 |
train_9a51d923df2d8d00 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.457, -1.138, 0.02), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.368, 2.116).threePointArc((-0.811, 1.154), (-0.889, 0.099)).threePointArc((-0.002, 0.194), (0.889, 0.216)).threePointArc((0.674, 1.252), (0.109, 2.147)).lineTo(-0.368, 2.116).clos... | 5 | 37 | 2.103858 |
train_ee3f009f9744a2ad | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.513, 0.804, 0.001), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.026, 1.235).lineTo(-1.096, -0.221).lineTo(-0.026, -0.149).lineTo(1.096, 1.235).lineTo(-0.026, 1.235).close().extrude(1.608)
result = result.edges().fillet(0.088)
result = result.c... | 4 | 45 | 2.30641 |
train_4a9fc783de76254f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 1, -0.271), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.954).sweep(cq.Workplane('YZ').spline([(0.384, -0.831), (0.206, -0.686), (-0.118, -0.584), (-0.526, -0.546)]))
result = result.edges().chamfer(0.246)
result = result.cut(cq.Workplane(cq.Pla... | 8 | 60 | 2.160807 |
train_20d4f8dc344ddc22 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.492), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.892, 2).extrude(0.983)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.068, -0.628, -0.521), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.013).extrude(1.18))
result = result.cut(cq.Workpl... | 11 | 31 | 1.613723 |
train_123a0a08042a6b07 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.025, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.628, 0.931).lineTo(0, 0).lineTo(0.113, -0.167).lineTo(0.628, 0.599).lineTo(0.628, -0.931).lineTo(0.404, -0.931).lineTo(0, -0.332).lineTo(-0.404, -0.931).lineTo(-0.628, -0.931).lineTo(-0.... | 6 | 80 | 2.270608 |
train_64c039d266071a0b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.051, -0.323, -0.636), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.143, 1.354).extrude(1.273)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.494, -0.5, -0.482), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.135).extrude(0.544))
result = result... | 23 | 140 | 1.672603 |
train_ee6eb08ab2131b5e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.125, 0.537, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.891, 0.383).lineTo(0.297, 0.383).lineTo(0, 0.897).lineTo(-0.891, 0.383).lineTo(-0.891, -0.646).lineTo(0.891, -0.646).lineTo(0.891, 0.383).close().revolve(angleDegrees=90, axisStart=(0.... | 8 | 40 | 1.867603 |
train_3c1dde0ceba71077 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1.139, 0.504, 0.081), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.396, 0.405).lineTo(-0.396, 1.066).lineTo(-0.343, 1.066).lineTo(-0.035, 1.911).threePointArc((0.066, 1.959), (0.113, 1.857)).lineTo(-0.175, 1.066).lineTo(-0.013, 1.066).lineTo(0.39... | 6 | 37 | 1.06397 |
train_6c3aa1bf17965cac | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.001, 0, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.069, -0.031).lineTo(0.069, -0.025).lineTo(-0.01, -0.025).lineTo(-0.011, -0.029).lineTo(-0.014, -0.028).lineTo(-0.012, -0.022).lineTo(-0.011, -0.019).lineTo(-0.06, 0.031).lineTo(-0.069, 0.02... | 1 | 12 | 0.001706 |
train_b26cee72a6c289e6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.195, -0.665), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.264, 0).lineTo(-0.264, -0.032).lineTo(0.264, -0.032).lineTo(0.264, 0.032).lineTo(0, 0.032).lineTo(0, 0).lineTo(-0.032, 0).lineTo(-0.032, 0.032).lineTo(-0.264, 0.032).lineTo(-0.264,... | 2 | 15 | 0.088008 |
train_761eebbed082a731 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.452, 0, 0.062), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.045, 0.048).threePointArc((0, -0.066), (0.045, 0.048)).threePointArc((0, 0.066), (-0.045, 0.048)).close().sweep(cq.Workplane('XZ').spline([(-0.452, -0.054), (0.411, 0.041), (1.274, -0... | 1 | 4 | 0.010031 |
train_ee9f7831427d3b38 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.01, -0.006, -0.002), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.006, 1.006).lineTo(0.006, -0.994).lineTo(-0.006, -0.994).lineTo(-0.006, 1.006).lineTo(0.006, 1.006).close().extrude(0.015)
result = result.edges().fillet(0.003)
result = result.cu... | 14 | 66 | 0.000395 |
train_4a7a687788fe9a80 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.039, 0, 0.067), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, -0.075).threePointArc((0.199, -0.158), (0.117, 0.041)).threePointArc((0.034, 0.075), (0, 0.158)).threePointArc((-0.034, 0.075), (-0.117, 0.041)).threePointArc((-0.199, -0.158), (0, -0... | 11 | 87 | 0.114756 |
train_e829de4db0f6571a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.182), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.224).extrude(0.364)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.182, -1.482), normal=(1, 0, 0), xDir=(0, 1, 0))).moveTo(-0.063, 0.022).lineTo(-0.066, -0.009).lineTo(-0.059, -0.... | 14 | 200 | 0.520298 |
train_82a2bde19530e49d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.712, -0.564, 0.06), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.625, -0.352).lineTo(0.625, 1.564).lineTo(-0.625, 1.564).lineTo(-0.625, -0.436).lineTo(0.625, -0.436).lineTo(0.625, -0.352).close().revolve(angleDegrees=90, axisStart=(0.625, -0.352... | 13 | 72 | 1.465684 |
train_5f0490a59b7283e2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.66, 0.229, -0.166), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.329, 0.261).extrude(0.377)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.66 + 0.053 * math.cos(2.945 + 2 * math.pi * 0 / 3), 0.418 + 0.053 * math.sin(2.945 + 2 * math.pi * 0 /... | 17 | 141 | 0.415835 |
train_0e46c12246408988 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.493, -1, 0.286), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.898, 0.073).lineTo(-0.898, 0.913).lineTo(0.457, 0.913).lineTo(0.898, 0.073).lineTo(-0.898, 0.073).close().extrude(2)
result = result.edges().fillet(0.284)
result = result.union(cq.Wo... | 13 | 76 | 2.289413 |
train_7811d874eb111587 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.623, -0.695, -0.608), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.446, 0.414).lineTo(0, -0.185).lineTo(-0.446, 0.414).lineTo(0.446, 0.414).close().extrude(1.086)
result = result.edges().chamfer(0.09)
result = result.union(cq.Workplane(cq.Plane(... | 12 | 84 | 0.978742 |
train_10009b8e25a97c2c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.049, -0.251), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.749, 0.569).lineTo(0.749, 0.943).lineTo(0.749, 0.195).lineTo(-0.749, 0.569).close().revolve(angleDegrees=270, axisStart=(0, 0), axisEnd=(0.539, 0))
result = result.faces('<Y').shell(... | 5 | 65 | 0.793839 |
train_ce8186b07a65e26d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.227, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.717, -0.49).lineTo(-0.717, 0.753).threePointArc((-0.853, 1.08), (-0.526, 0.944)).lineTo(0.526, 0.944).lineTo(0.717, 0.944).lineTo(0.717, 0.753).lineTo(0.717, -0.299).threePointArc((0.853... | 12 | 114 | 3.772121 |
train_7789b1b843e02c24 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.681, -0.678, 0.194), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.45, 0.909).lineTo(-0.45, 0.447).lineTo(0.45, -0.454).lineTo(0.45, 1.809).lineTo(-0.45, 0.909).close().extrude(1.681)
result = result.edges().chamfer(0.194)
result = result.faces(... | 8 | 78 | 0.787345 |
train_744f4575678385e8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.118, 0, -0.35), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.828, 2).extrude(0.886)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.407, 0.392, -0.124), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.25, 0.817).extrude(0.297))
result = result.cut... | 15 | 106 | 1.409524 |
train_e71eb52e72a75d97 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.87, -0.912), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.848, 1.399).threePointArc((0.651, 1.629), (0.393, 1.789)).threePointArc((-0.759, 1.521), (-0.848, 0.341)).threePointArc((-0.651, 0.111), (-0.393, -0.049)).threePointArc((0.759, 0.219),... | 17 | 14 | 5.496908 |
train_e7bf3f4f8ada07ee | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.502, -0.274, 0.502), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.502, 0.692).lineTo(0.502, -0.479).lineTo(0.167, -0.479).lineTo(0.167, 0.692).lineTo(-0.502, 0.692).lineTo(-0.502, 1.026).lineTo(0.502, 1.026).lineTo(0.502, 0.692).close().revolve(... | 4 | 55 | 0.581108 |
train_3ce3ec47d7f7b59a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.112, 0.467, -0.08), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.363, 0.191).lineTo(0.102, 0.533).lineTo(-0.22, 0.417).lineTo(-0.422, 0.226).lineTo(-0.428, 0.166).lineTo(-0.588, 0.075).lineTo(-0.207, -0.388).lineTo(-0.118, -0.497).close().moveTo(... | 8 | 131 | 0.138676 |
train_7b6daff3cb53f328 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.063, 0.027, -0.026), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.014, 0.015).lineTo(-0.014, 0).lineTo(0.014, 0).lineTo(0.014, 0.015).lineTo(-0.014, 0.015).close().revolve(angleDegrees=270, axisStart=(-0.014, 0.015), axisEnd=(-0.014, 0))
result... | 10 | 77 | 0.001727 |
train_3693be2ff75de1af | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.601, 1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.216).sweep(cq.Workplane('XY').spline([(0.601, 0.113), (0.86, 0.132), (1.119, 0.296), (1.378, 0.725), (1.637, 0.888), (1.896, 0.907)]))
result = result.edges().fillet(0.092)
result = result.... | 4 | 11 | 0.01684 |
train_5e6fb9bec39f066c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.041, 0, -0.613), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.917, 1.594).extrude(1.363)
result = result.union(cq.Workplane(cq.Plane(origin=(0.427, -0.448, -0.75), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.124, 0.062).extrude(0.141))
result = resul... | 14 | 35 | 3.929851 |
train_a6c30f94d58a5cdc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.67, -0.133, -0.331), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.588, 0.169).threePointArc((0.498, 0.327), (0.406, 0.483)).threePointArc((-0.385, 0.686), (-0.588, -0.106)).threePointArc((-0.503, -0.251), (-0.419, -0.398)).threePointArc((0.368, ... | 21 | 198 | 1.797051 |
train_43e0c2a28f828843 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1.157, 0.575, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.967, 1.126).lineTo(0.323, 0.009).lineTo(-0.967, 2.243).lineTo(0.967, 1.126).close().extrude(1.151)
result = result.edges().chamfer(0.171)
result = result.cut(cq.Workplane(cq.Plane(orig... | 11 | 69 | 0.697818 |
train_9ec5616409b07603 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.125, -0.262), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.339, 1.139).extrude(0.524)
result = result.faces('>Z').shell(-0.025)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.021, -0.838, -0.113), normal=(0, 0, 1), xDir=(1, 0, 0))).rect... | 5 | 27 | 0.153112 |
train_73736caeb5318401 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.542, 0.315, 0.659), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.285).workplane(offset=0.111).circle(0.23).workplane(offset=0.113).circle(0.316).workplane(offset=0.152).circle(0.272).workplane(offset=0.161).circle(0.251).workplane(offset=0.16).c... | 10 | 23 | 0.305761 |
train_aa3d848bbfd18516 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.126, -0.091), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.169, 0.126).lineTo(0.169, -0.705).threePointArc((0, -0.874), (-0.169, -0.705)).lineTo(-0.169, 0.126).lineTo(-0.169, 0.957).threePointArc((-0.119, 1.077), (0, 1.126)).threePointArc((0.... | 22 | 92 | 0.075832 |
train_53e2a675e46481ef | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.07, -0.642), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.346, 1.208).extrude(1.642)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.187, -0.161, -0.691), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.359, 0.184).extrude(1.97))
result = result.e... | 15 | 101 | 1.641064 |
train_db72a686e7f75bd4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.1, 0.075, -0.267), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.312, 1.407).extrude(1.155)
result = result.union(cq.Workplane(cq.Plane(origin=(0.128, -0.797, -0.09), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.513, 0.406).extrude(0.565))
result = res... | 26 | 294 | 1.08968 |
train_7221c7f64b4a9685 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.463, -0.071, -0.444), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.031, 0.445).lineTo(0.286, 0.445).lineTo(0.22, 0.396).threePointArc((0.076, 0.202), (-0.031, -0.015)).lineTo(-0.158, 0.317).lineTo(-0.286, 0.445).lineTo(-0.031, 0.445).close().ex... | 24 | 182 | 0.464 |
train_f9c7e1d2ec600205 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.111, 0, -0.518), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.157, 0.635).extrude(0.654)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.783, 0.01, -0.169), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.105).extrude(0.239))
result = result.un... | 20 | 101 | 0.377205 |
train_e255760b84fcddba | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.472), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.445).extrude(0.944)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.32, 0.101, -0.005), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.079).extrude(0.109))
result = result.edges().fille... | 9 | 260 | 2.696849 |
train_f1d8def0f87d6819 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.013, -0.507, -0.674), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.548, 0.608).lineTo(-0.008, 0.947).lineTo(0.548, 0.082).lineTo(-0.331, 0.082).lineTo(-0.548, 0.608).close().extrude(1.565)
result = result.edges().fillet(0.043)
result = result.cu... | 12 | 92 | 0.901884 |
train_e96249c2f6560e19 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.21, 0.125, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.092, -0.473).lineTo(-0.092, -0.305).threePointArc((-0.072, -0.183), (-0.092, -0.06)).lineTo(-0.092, 0.491).lineTo(-0.217, 0.491).lineTo(-0.217, 0.875).lineTo(0.217, 0.875).lineTo(0.217... | 19 | 90 | 0.154256 |
train_fb4ebec2be771eb3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.599, -0.341), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.522, 0.401).lineTo(0.522, 0.401).lineTo(0.522, 0.057).lineTo(0.511, 0.057).lineTo(0.511, -0.351).lineTo(0.522, -0.351).lineTo(0.522, -0.401).lineTo(-0.522, -0.401).lineTo(-0.522, 0.... | 9 | 42 | 0.452941 |
train_4c6a0d26351e2473 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.26, 0.091, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.189, 0.77).lineTo(-0.189, -0.909).lineTo(0.189, -0.909).lineTo(0.189, 0.77).lineTo(0.062, 0.77).lineTo(0.062, 1.091).lineTo(-0.062, 1.091).lineTo(-0.062, 0.77).lineTo(-0.189, 0.77).clo... | 34 | 33 | 0.295717 |
train_2b07ca24848ab6af | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.45, 0.519, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.514, 1.547).threePointArc((-0.514, 0.519), (0.514, -0.509)).lineTo(0.514, 0.108).threePointArc((0.103, 0.519), (0.514, 0.931)).lineTo(0.514, 1.547).close().extrude(0.9)
result = result.... | 5 | 35 | 1.05396 |
train_6583a1a9bea2b33b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.278), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.263, -0.048).lineTo(0.263, 0.048).lineTo(-0.263, 0.048).lineTo(-0.263, -0.048).lineTo(0.263, -0.048).close().sweep(cq.Workplane('XZ').spline([(-1.078, -0.337), (-0.359, -0.64), (0.36, -0.6... | 18 | 306 | 0.099798 |
train_42026677aec4e85e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.003, 0.01, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(1, -0.024).lineTo(-1, -0.024).lineTo(-1, 0.024).lineTo(0.998, 0.024).lineTo(1, -0.024).close().sweep(cq.Workplane('XY').spline([(-0.028, 0.01), (-0.015, 0.01), (-0.002, 0.01), (0.016, -0.0... | 4 | 12 | 0.005465 |
train_dc24673a83ac9962 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.118, 0.209, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.767, 0.032).lineTo(-0.767, 0.16).lineTo(0.767, 0.16).lineTo(0.767, 0.032).lineTo(-0.767, 0.032).close().workplane(offset=0.076).moveTo(-0.998, 0.012).lineTo(-0.998, 0.18).lineTo(0.998... | 15 | 114 | 0.072438 |
train_93031ea66fbd212c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.891, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.595).workplane(offset=0.945).circle(0.449).workplane(offset=0.945).circle(0.529).loft()
result = result.edges().chamfer(0.086)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.46, -0.28... | 11 | 35 | 1.344748 |
train_d95464203d0a4acc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.385, -0.434), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.887, 0.61).lineTo(-0.887, -0.15).lineTo(0.169, -0.61).threePointArc((-0.046, -0.423), (-0.127, -0.15)).lineTo(0.887, -0.15).lineTo(0.887, 0.61).lineTo(-0.887, 0.61).close().sweep(cq... | 1 | 8 | 3.02861 |
train_f44b3bd5f3762d91 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.024, -0.069, -0.358), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.951, 0.791).extrude(0.717)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.642, 0.106, -0.056), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.048, 0.353).lineTo(0.048, 0.292).l... | 3 | 23 | 0.577237 |
train_a72341fe3f522a57 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.5), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.33, 0.341).lineTo(0.33, 0.696).lineTo(0.025, 0.696).lineTo(0.025, 1).lineTo(-0.33, 1).lineTo(-0.33, 0.038).lineTo(0.025, 0.038).lineTo(0.025, 0.341).lineTo(0.33, 0.341).close().revolve(angle... | 9 | 68 | 0.633711 |
train_ae5f8678a16b013e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.179, 0.154, -0.266), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.25, 0.299).lineTo(0.054, 0.299).lineTo(0.054, 0.342).lineTo(0.011, 0.342).lineTo(0.011, 0.299).lineTo(-0.25, 0.299).lineTo(-0.25, 0.199).threePointArc((-0.175, 0.116), (-0.227, 0.... | 4 | 28 | 0.086705 |
train_7bf858893c52d51b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.371, -0.244, -0.215), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.139, 0.452).lineTo(0.139, 0.452).lineTo(0.139, 0.036).lineTo(-0.111, 0.036).lineTo(-0.111, 0.063).lineTo(-0.139, 0.063).lineTo(-0.139, 0.452).close().workplane(offset=0.077).mo... | 9 | 45 | 0.166497 |
train_e4b3a9bbeb99f532 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.824, 0.079, -0.172), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.867, -0.184).threePointArc((0.867, -0.616), (0.435, 1.118)).lineTo(0.435, 0.859).threePointArc((0.13, 0.121), (-0.608, -0.184)).lineTo(-0.867, -0.184).close().extrude(1.453)
resu... | 34 | 63 | 2.783425 |
train_8a14c988c29c6263 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.138, -0.051, -0.016), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.057, 0.086).threePointArc((0, 0.08), (-0.057, 0.086)).lineTo(0, -0.018).lineTo(0.057, 0.086).close().extrude(0.14)
result = result.edges().chamfer(0.005)
result = result.cut(cq.W... | 22 | 173 | 0.003085 |
train_3ee9f61521dafe50 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.581, 0, -0.225), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.419, -0.273).lineTo(-0.419, 0.273).lineTo(-0.141, 0.273).threePointArc((-0.155, 0.261), (-0.172, 0.251)).threePointArc((0.031, 0.178), (0.104, -0.025)).threePointArc((0.114, -0.009)... | 7 | 53 | 0.44942 |
train_f99cc614afda20e5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.548, 0.074), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.207, 0.895).lineTo(-0.207, 0.224).lineTo(0.463, 0.224).lineTo(0.463, -0.242).lineTo(-0.207, -0.242).lineTo(-0.207, -0.895).lineTo(-0.463, -0.895).lineTo(-0.356, -0.792).lineTo(-0.356, ... | 6 | 61 | 0.54707 |
train_d934635cc48a65d0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, 0, -0.353), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.06, 0.696).extrude(0.615)
result = result.union(cq.Workplane(cq.Plane(origin=(0.747, 0.003, -0.176), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.505, 0.126).extrude(0.164))
result = resul... | 6 | 23 | 0.454047 |
train_7cffb49da3cbdad5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.093, 0.002, -0.296), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.046, 0.198).threePointArc((-0.071, 0.209), (-0.074, 0.181)).lineTo(-0.131, 0.083).threePointArc((-0.153, 0.067), (-0.131, 0.051)).lineTo(-0.074, -0.048).threePointArc((-0.071, -0... | 17 | 103 | 0.217255 |
train_b15e5805ae3871cc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.287, -0.212), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.37, 0.766).threePointArc((-0.039, 0.687), (0.222, 0.47)).threePointArc((0.37, 0.026), (0.222, -0.417)).threePointArc((-0.039, -0.635), (-0.37, -0.713)).lineTo(-0.37, -0.417).threePoi... | 17 | 27 | 0.234916 |
train_fe703e2a2b66aec0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.038, -0.232), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.073).extrude(0.464)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.429 + 0.2145, 0.178, -1.533), normal=(1, 0, 0), xDir=(0, 1, 0))).moveTo(0.087, 0.017).lineTo(0.019, 0.017).lin... | 12 | 83 | 0.934801 |
train_44b4cb1ae1f5521a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.576, 0.902, 0.042), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.427, -0.424).lineTo(0.804, -0.424).lineTo(0.804, 0.315).lineTo(0.035, 0.852).lineTo(0.035, 1.114).threePointArc((-0.567, 1.554), (-0.804, 0.848)).lineTo(-0.427, 0.315).lineTo(-0.4... | 6 | 55 | 3.056167 |
train_f3f2814e7bb68bc8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.456, 0.001, 0.425), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.112).sweep(cq.Workplane('XZ').spline([(0.456, 0.045), (0.559, 0.183), (0.662, 0.182), (0.765, 0.118), (0.867, 0.019), (0.97, -0.067), (1.073, -0.101), (1.176, -0.066), (1.279, 0.021... | 6 | 22 | 0.039461 |
train_2df28dfc1cb975e9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.337, 0.325, 0.075), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.346, 0.228).threePointArc((0, 0.678), (0.346, 0.228)).lineTo(0, 0.228).lineTo(-0.346, 0.228).close().revolve(angleDegrees=90, axisStart=(0, 0), axisEnd=(0.236, 0))
result = result... | 12 | 91 | 0.27568 |
train_1290d630015c0730 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.371, -0.418, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(1, -0.065).lineTo(0.573, -0.065).lineTo(0.573, 0.046).lineTo(0.547, 0.046).threePointArc((0.511, -0.002), (0.462, -0.038)).lineTo(0.462, -0.065).lineTo(0.252, -0.065).lineTo(0.252, -0.0... | 9 | 88 | 0.36601 |
train_e7ee1627596c0e0d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.006, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.038, 0.645).extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.161, 0.368, -0.602), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.12, 0.085).extrude(0.192))
result = result.union(... | 13 | 98 | 1.243077 |
train_ff61ea5f5fc547c9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.122, 0, -0.586), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.414, 0.411).lineTo(0.414, 0.537).lineTo(-0.414, 0.537).lineTo(-0.414, -0.292).lineTo(0.414, -0.292).lineTo(0.414, 0.411).close().revolve(angleDegrees=360, axisStart=(0.414, 0.411), ax... | 4 | 10 | 1.692928 |
train_6c8b045d5bb17465 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.605, -0.16, -0.001), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.141, -0.365).threePointArc((0.001, -0.205), (-0.139, -0.365)).lineTo(-0.157, -0.235).lineTo(-0.16, -0.213).lineTo(-0.17, -0.135).lineTo(-0.173, -0.113).lineTo(-0.209, 0.155).thre... | 3 | 22 | 0.000857 |
train_a23d2519c896ead0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.531, 0.892, -0.003), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.377, 0.304).lineTo(-0.458, -0.165).lineTo(-0.091, -0.469).threePointArc((0.154, -0.446), (0.355, -0.304)).threePointArc((0.458, -0.081), (0.435, 0.165)).threePointArc((0.292, 0.36... | 1 | 8 | 0.21489 |
train_425661f77a296ef9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.593, -0.254), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.735, -0.407).threePointArc((-0.639, -0.043), (-0.375, 0.225)).threePointArc((-0.639, 0.494), (-0.735, 0.858)).threePointArc((0, 1.593), (0.735, 0.858)).threePointArc((0.639, 0.494), ... | 15 | 66 | 1.595785 |
train_442c207cab2f2894 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.052), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.895).extrude(0.08)
result = result.union(cq.Workplane(cq.Plane(origin=(0.419, 0.599, 0.027), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.129, 0.09).extrude(0.026))
result = result.cut(cq.Wo... | 9 | 26 | 0.285768 |
train_c435e41bc952707b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.275, 0.213, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-1.05, 0.387).threePointArc((0, 0.039), (1.05, 0.387)).lineTo(-1.05, 0.387).close().extrude(0.551)
result = result.edges().fillet(0.023)
result = result.cut(cq.Workplane(cq.Plane(origin=... | 17 | 36 | 0.272068 |
train_9fe6a0e1f7e74de6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.434, 0, 0.133), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.366, -0.395).lineTo(0.267, 0.395).lineTo(-0.366, -0.086).lineTo(0.366, -0.395).close().sweep(cq.Workplane('XZ').spline([(-1.08, -0.724), (-0.822, -0.704), (-0.564, -0.536), (-0.305, -0... | 2 | 6 | 0.194592 |
train_9548774bd0eca4ae | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.548, 0.396, -0.181), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.819, 0.062).lineTo(-0.819, 0.253).lineTo(-0.095, 0.253).lineTo(-0.095, 1.033).lineTo(0.819, 1.033).lineTo(0.819, 0.062).lineTo(-0.819, 0.062).close().extrude(0.792)
result = resu... | 7 | 58 | 0.710403 |
train_84a27b8e7c2b19e2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.125, 0.003), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.036, 0.144).lineTo(-0.042, 0.144).threePointArc((-0.231, 0.289), (-0.14, 0.509)).lineTo(-0.209, 0.509).lineTo(-0.209, 0.538).lineTo(-0.179, 0.538).lineTo(-0.179, 0.734).lineTo(0.094,... | 4 | 49 | 0.241262 |
train_584d42113bfa2572 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.371, -0.367, -0.118), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.751, 0.386).lineTo(-0.751, 0.745).lineTo(0.751, 0.745).threePointArc((0.882, 0.614), (0.751, 0.482)).lineTo(0.751, 0.386).lineTo(0.751, 0.29).threePointArc((0.882, 0.158), (0.75... | 23 | 179 | 0.403835 |
train_343434f78837c571 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.28, 0.041, -0.568), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.465, -0.783).lineTo(0.465, 0.807).lineTo(-0.465, 0.807).lineTo(0.465, -0.783).close().extrude(0.56)
result = result.edges().chamfer(0.066)
result = result.union(cq.Workplane(cq.Pla... | 8 | 59 | 0.389083 |
train_8f4d6645550aefe2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.25, 0, -0.285), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.5, 0.636).extrude(0.57)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.736, -0.013, -0.035), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.528, 0.277).extrude(0.169))
result = result.... | 4 | 74 | 0.451713 |
train_9fd8eb6560e45a5c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.317, -0.088, -0.165), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.367, 0.215).extrude(0.288)
result = result.union(cq.Workplane(cq.Plane(origin=(0.675, -0.076, -0.081), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.651, 0.095).extrude(0.13))
result =... | 14 | 95 | 0.135536 |
train_711be1f816545d62 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.562, -0.415), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.061, -0.009).lineTo(-0.061, 0.009).lineTo(-0.011, 0.009).lineTo(-0.011, 0.108).lineTo(-0.004, 0.108).lineTo(-0.004, 0.009).lineTo(0.061, 0.009).lineTo(0.061, -0.009).lineTo(0.004, -0... | 6 | 55 | 0.092232 |
train_c6b8b9ad0826cfe0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.362, -0.496), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.667).lineTo(1, 0.607).lineTo(0.137, 0.607).lineTo(0.137, 0.057).lineTo(-0.281, 0.057).lineTo(-0.281, 0.607).lineTo(-0.711, 0.607).lineTo(-0.711, 0.057).lineTo(-0.91, 0.057).lineTo(... | 27 | 247 | 0.285367 |
train_21b3737a3868c3e5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.475, 0.242, -0.232), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.05, 1.05).extrude(0.412)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.475, 0.242, 0.178), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.615, 0.615).extrude(0.054))
result = re... | 16 | 156 | 0.398396 |
train_7eadcf524e9953b7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.011, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.327, -0.214).lineTo(-0.233, -0.214).lineTo(0.327, 0.095).lineTo(0.327, 0.237).lineTo(-0.327, 0.237).lineTo(-0.327, -0.214).close().extrude(0.728)
result = result.edges().fillet(0.052)
re... | 8 | 52 | 0.140867 |
train_c73cf7fd4fa9a38b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.247, 0.61, -0.128), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.562, -0.109).lineTo(0.562, 1.014).lineTo(-0.562, 1.014).lineTo(-0.562, -0.109).lineTo(0.562, -0.109).close().revolve(angleDegrees=90, axisStart=(0.562, -0.109), axisEnd=(0.562, 0.3... | 7 | 47 | 1.03303 |
train_fbc47a772a5ccd01 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.014, -0.006, -0.191), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.673, -0.463).lineTo(0.698, -0.46).lineTo(0.705, 0.461).lineTo(-0.688, 0.475).close().moveTo(0, -0.113).lineTo(0.023, -0.04).lineTo(0.098, -0.057).lineTo(0.046, 0).lineTo(0.098, ... | 10 | 74 | 0.359748 |
train_e8c5c566e50aa611 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.23), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, -0.167).lineTo(-1, -0.167).lineTo(-1, 0.167).lineTo(1, 0.167).lineTo(1, -0.167).lineTo(0, -0.167).close().extrude(0.459)
result = result.edges().chamfer(0.13)
result = result.union(cq.Work... | 3 | 64 | 0.237279 |
train_28eee63fdbec2042 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.293, -0.841), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.2, -0.215).threePointArc((0.617, 0.195), (0.721, 0.772)).threePointArc((0.15, 0.9), (-0.39, 0.673)).threePointArc((-0.665, 0.286), (-0.721, -0.186)).threePointArc((-0.264, -0.318), (0... | 4 | 28 | 2.19808 |
train_492920f077924142 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.118, -0.204, -0.77), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.04, 0.261).lineTo(0.035, 0.261).lineTo(0.033, 0.267).lineTo(0.04, 0.267).lineTo(0.042, 0.261).lineTo(0.064, 0.192).lineTo(0.066, 0.186).lineTo(0.061, 0.183).lineTo(0.003, 0.14).l... | 15 | 177 | 0.037323 |
train_8b0e89fc7778f5f8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.473, 0, 0.118), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.314, 0.158).lineTo(-0.314, 0.155).threePointArc((-0.418, 0.14), (-0.49, 0.063)).threePointArc((-0.5, 0.032), (-0.503, 0)).lineTo(-0.503, -0.158).lineTo(-0.44, 0).threePointArc((-0.434... | 26 | 67 | 0.032437 |
train_410bbc3ec88267f2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.519, -0.013), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.036, -0.506).lineTo(-0.976, -0.506).lineTo(-0.976, 0.506).lineTo(0.976, 0.506).lineTo(0.976, -0.506).lineTo(0.036, -0.506).close().revolve(angleDegrees=270, axisStart=(0.036, -0.506)... | 10 | 45 | 4.431158 |
train_a4359f86384bfc27 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.276, 0.13, -0.568), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.448, 1.105).extrude(1.136)
result = result.faces('>Z').shell(-0.087)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.715, 0.016, -0.455), normal=(0, 0, 1), xDir=(1, 0, 0))).rec... | 5 | 24 | 0.628594 |
train_d83c16c180c7c79c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.471, -0.724), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.241, -0.41).threePointArc((-0.397, -0.287), (-0.578, -0.205)).lineTo(0.036, 0.41).lineTo(0.578, 0.41).lineTo(-0.241, -0.41).close().sweep(cq.Workplane('YZ').spline([(-0.471, -1.219)... | 4 | 31 | 0.521691 |
train_7e421b27c104ea51 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.778, -0.298, 0.166), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.173, 0.074).lineTo(-0.222, 0.025).lineTo(-0.173, 0.025).lineTo(-0.173, -0.025).lineTo(-0.222, -0.025).lineTo(-0.222, -0.074).lineTo(-0.173, -0.074).lineTo(-0.173, -0.043).lineTo... | 5 | 37 | 0.043705 |
train_e3890ba278824a3f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.165, -0.447, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.768, 0.054).threePointArc((0.134, 0.525), (0.148, 1.315)).threePointArc((-0.768, 0.082), (0.768, 0.054)).close().extrude(2)
result = result.edges().chamfer(0.371)
result = result.face... | 6 | 35 | 1.186899 |
train_5db766a7cb551566 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.437, 0.213, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.438, 0.417).lineTo(-0.438, -0.46).lineTo(0.324, -0.46).lineTo(0.438, -0.345).lineTo(0.438, 0.302).lineTo(0.324, 0.417).lineTo(0.167, 0.417).lineTo(0.167, 0.563).lineTo(-0.167, 0.563)... | 17 | 262 | 0.567679 |
train_593ff032229f3b1d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.834, 0.024), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.397, 0.232).lineTo(0.286, 0.232).lineTo(0.286, -0.297).lineTo(0.397, -0.297).lineTo(0.397, -0.563).lineTo(0, -0.563).lineTo(0, -0.297).lineTo(-0.286, -0.297).lineTo(-0.286, 0.232).lineT... | 9 | 48 | 1.100823 |
train_9facb3e01d320a8f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.163, -0.194, -0.025), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.207, 0).threePointArc((-0.214, -0.053), (-0.207, -0.106)).threePointArc((-0.002, -0.265), (0.203, -0.106)).lineTo(0.311, -0.106).threePointArc((0.316, -0.053), (0.311, 0)).thre... | 13 | 54 | 0.183233 |
train_16b321165e547a94 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.673, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.4, 1.289).threePointArc((-0.478, 1.257), (-0.511, 1.178)).lineTo(-0.511, 0.02).threePointArc((-0.478, -0.059), (-0.4, -0.091)).lineTo(0.4, -0.091).threePointArc((0.478, -0.059), (0.511, ... | 29 | 47 | 2.42405 |
train_5eae895916ca3f02 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.131, 0.976, 0.027), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-1.027, 1.853).threePointArc((0.074, 1.085), (1.027, 0.14)).lineTo(-1.027, 0.14).lineTo(-1.027, 1.853).close().extrude(0.723)
result = result.edges().chamfer(0.083)
result = result.c... | 17 | 57 | 1.278686 |
train_8af89c8f09dd5a7f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.197, 0.397, -0.313), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.361, 1.01).extrude(0.181)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.239, 0.611, -0.318), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.306, 0.166).extrude(0.217))
result = resu... | 15 | 148 | 0.699461 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.