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_d4991ac6f266efb2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.606, -0.058, -0.236), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.048, -0.034).threePointArc((0, 0.041), (-0.048, -0.034)).threePointArc((-0.046, -0.038), (-0.044, -0.041)).lineTo(0.044, -0.041).threePointArc((0.046, -0.038), (0.048, -0.034)).cl... | 11 | 55 | 0.167323 |
train_35abf7449be01435 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.751), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.845).extrude(1.115)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.317, 0.223, 0.333), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.359).extrude(0.419))
result = result.cut(cq.Work... | 3 | 11 | 3.713976 |
train_936f8d2bbeb070fc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.24, 0.981, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.675).workplane(offset=1.076).circle(0.728).workplane(offset=0.886).circle(0.763).loft()
result = result.edges().fillet(0.103)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.619, ... | 12 | 58 | 2.44426 |
train_cbf2e27d797ee84a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.659, -0.692, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, 0.501).lineTo(-0.499, 0.501).lineTo(-1, 0).lineTo(-1, 1).lineTo(1, 1).lineTo(1, 0.501).lineTo(0, 0.501).close().extrude(1.385)
result = result.edges().fillet(0.224)
result = result.c... | 4 | 37 | 1.322163 |
train_2bece9b3a2b58327 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.01, 0.361, -0.267), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.664, -0.019).lineTo(0.458, 0.445).lineTo(0.012, 0.639).lineTo(-0.443, 0.461).lineTo(-0.643, -0.002).lineTo(-0.455, -0.457).lineTo(0.019, -0.639).lineTo(0.453, -0.454).close().moveT... | 9 | 155 | 0.431023 |
train_a5a9f648d4c2ea4a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.444, -0.011, 0.06), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.37, -0.001).lineTo(0.118, 0.36).lineTo(-0.3, 0.204).lineTo(-0.306, -0.218).lineTo(0.116, -0.338).close().moveTo(0.051, 0.172).lineTo(0.015, 0.219).lineTo(-0.041, 0.203).lineTo(-0.04... | 18 | 244 | 0.1357 |
train_5afb2db02acc0562 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.041, -0.012), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.095, 0.047).lineTo(-0.095, 0.024).lineTo(0.073, 0.024).lineTo(0.073, -0.1).lineTo(0.095, -0.1).lineTo(0.095, 0.024).lineTo(0.09, 0.024).lineTo(0.09, -0.002).threePointArc((0.084, -0... | 4 | 40 | 0.035811 |
train_2d8576bd8d79201d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.414, -0.616, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.324, 1.143).lineTo(0.324, -0.235).lineTo(0.162, -0.235).lineTo(0.162, 0.089).lineTo(-0.162, 0.089).lineTo(-0.162, -0.235).lineTo(-0.324, -0.235).lineTo(-0.324, 1.467).lineTo(-0.162, 1... | 2 | 77 | 0.608501 |
train_55ca30b362623b0d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.053, 0.817), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.387, 0.34).lineTo(-0.387, 0.415).lineTo(0.387, -0.415).lineTo(0.317, -0.415).lineTo(-0.387, 0.34).close().sweep(cq.Workplane('YZ').spline([(-0.053, -0.217), (-0.123, 0.252), (-0.334, ... | 2 | 6 | 0.068819 |
train_45fb75c3985b0fdf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.484, 0.062, -0.141), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.032, 0.657).extrude(0.282)
result = result.faces('>Z').shell(-0.012)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.491, -0.324, -0.005), normal=(0, 0, 1), xDir=(1, 0, 0))).... | 4 | 27 | 0.039035 |
train_bc81e384218acba7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.005, -0.64, -0.052), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.43, 0.006).lineTo(0.204, 0.363).lineTo(-0.201, 0.354).lineTo(-0.42, -0.012).lineTo(-0.211, -0.36).lineTo(0.207, -0.354).close().moveTo(-0.261, 0.109).lineTo(-0.074, 0.109).lineTo(... | 18 | 423 | 0.073942 |
train_a7827ee9670ddaed | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.031, 1, 0.219), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.045, 0.204).threePointArc((0.137, -0.006), (-0.058, -0.204)).threePointArc((-0.068, -0.205), (-0.078, -0.204)).threePointArc((-0.107, -0.201), (-0.137, -0.193)).threePointArc((0, 0), ... | 3 | 19 | 0.139245 |
train_643e29713088c497 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.192, 0.284), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1, -0.081).lineTo(-1, 0.081).lineTo(1, 0.081).lineTo(1, -0.081).lineTo(-1, -0.081).close().sweep(cq.Workplane('YZ').spline([(0.192, 0.08), (0.081, 0.105), (-0.03, 0.081), (-0.091, 0.02),... | 3 | 44 | 0.087777 |
train_ea3fe529464c8d75 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.255, 0.267, -0.122), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.601, -0.731).lineTo(0.602, -0.728).lineTo(0.601, 0.733).lineTo(-0.589, 0.718).close().circle(0.156).extrude(0.324)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.391, 0.4... | 15 | 191 | 0.645732 |
train_ca7de6b898110f98 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.099, 0.144, -0.324), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.839, 0.7).extrude(0.748)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.099, 0.144, 0.228), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.04).extrude(0.201))
result = result.union... | 23 | 177 | 0.393012 |
train_e8522ab59ef3e32a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.776, -0.515), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.157, 0.115).lineTo(0.425, -0.224).lineTo(0.299, -0.159).lineTo(-0.236, 0.111).lineTo(-0.425, 0.207).lineTo(-0.419, 0.215).lineTo(-0.347, 0.188).lineTo(-0.412, 0.224).lineTo(-0.162, ... | 1 | 11 | 0.037894 |
train_a3621a4af23d3928 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.353, -0.583, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.188, 0.562).threePointArc((0, 0.2), (0.188, 0.562)).lineTo(0.596, -0.02).lineTo(0.665, -0.118).threePointArc((0, 1.291), (-0.665, -0.118)).lineTo(-0.596, -0.02).lineTo(-0.188, 0.562)... | 12 | 80 | 0.55535 |
train_00635e1f68fc9d9c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.425, 0.445, -0.272), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.242, 0.849).lineTo(-0.728, 0.849).lineTo(-0.728, 0.04).lineTo(0.728, 0.04).lineTo(0.728, 0.849).lineTo(0.242, 0.849).close().extrude(0.85)
result = result.union(cq.Workplane(cq.Pl... | 3 | 13 | 0.936069 |
train_c0f539d726bc07e2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.006, -0.071, -0.352), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.994, -0.539).lineTo(1.006, -0.546).lineTo(0.982, 0.544).lineTo(-0.978, 0.544).close().moveTo(-0.569, -0.125).lineTo(-0.056, -0.124).lineTo(-0.059, -0.077).lineTo(-0.522, -0.078)... | 19 | 99 | 0.849626 |
train_5b499061e02ff9fe | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.091, -0.002, 0.504), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.501, 0.367).lineTo(-0.501, -0.184).lineTo(0.501, -0.184).lineTo(0.501, 0.367).lineTo(-0.501, 0.367).close().revolve(angleDegrees=270, axisStart=(-0.501, 0.367), axisEnd=(-0.501, ... | 13 | 48 | 0.922893 |
train_8b6ace67def35375 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.084, -0.331, 0.469), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.125, -0.017).threePointArc((0, 0.415), (0.125, -0.017)).threePointArc((0, -0.053), (-0.125, -0.017)).close().extrude(0.192)
result = result.edges().chamfer(0.02)
result = result.... | 5 | 47 | 0.560355 |
train_b62d108745fcdd46 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.217, -0.183, -0.194), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.783, 0.022).lineTo(0.56, 0.563).lineTo(0.013, 0.79).lineTo(-0.554, 0.578).lineTo(-0.783, -0.005).lineTo(-0.567, -0.566).lineTo(0.023, -0.798).lineTo(0.558, -0.577).close().moveTo(... | 19 | 361 | 0.46415 |
train_9bd4d65dc92d0cc1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.157, -0.494), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.951, 1.261).extrude(1.211)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.237, -0.159, -0.7), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.067).extrude(1.454))
result = result.edges... | 10 | 187 | 1.647729 |
train_068f1fd70c58ff69 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.215, 0.281, -0.174), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.595, 0.681).extrude(0.206)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.327, 0.156, -0.031), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.252, 0.119).extrude(0.065))
result = r... | 30 | 139 | 0.13791 |
train_bfc2ea560954328f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.35, 0.036), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.44).sweep(cq.Workplane('YZ').spline([(-0.658, -0.525), (-0.317, -0.336), (0.024, -0.336), (0.365, -0.525)]))
result = result.edges().chamfer(0.128)
result = result.cut(cq.Workplane(cq.P... | 5 | 30 | 0.990292 |
train_c6885554d37c3a75 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.616, 0.595, -0.063), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.035, 0.536).threePointArc((-0.288, 0.7), (-0.304, 1)).lineTo(-0.937, 1.366).threePointArc((-0.921, 1.397), (-0.902, 1.427)).lineTo(-0.268, 1.062).threePointArc((0, 1.198), (0.268... | 23 | 32 | 1.370799 |
train_61d01bb0368ae731 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.087, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.121, 1.464).extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(0.558, 0.211, -0.324), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.179, 0.751).extrude(0.896))
| 2 | 11 | 3.399372 |
train_fec3a826b1fe5adc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.024, 0.004, -0.091), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.976, 0.011).lineTo(0.683, 0.747).lineTo(-0.007, 0.99).lineTo(-0.707, 0.678).lineTo(-1.024, -0.03).lineTo(-0.695, -0.71).lineTo(-0.014, -0.999).lineTo(0.697, -0.733).close().moveTo(... | 9 | 46 | 0.461641 |
train_05f3fe31ff4ad224 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.054, -0.598), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.194, -0.157).lineTo(-0.01, 0.128).lineTo(0, 0.144).lineTo(-0.078, 0.265).lineTo(-0.099, 0.265).lineTo(-0.09, 0.283).lineTo(0.09, 0.283).lineTo(0.078, 0.265).lineTo(0.099, 0.265).line... | 22 | 212 | 0.060745 |
train_b216d5c69c2d7241 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.107, -0.522), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.678, 1.162).extrude(1.438)
result = result.faces('>Z').shell(-0.108)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.534, 0.299, -0.916), normal=(0, 0, 1), xDir=(1, 0, 0))).circl... | 25 | 70 | 1.177997 |
train_35dd55c0b9c86a4e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.012, 1, 0.091), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.186, -0.154).threePointArc((-0.148, -0.187), (-0.102, -0.207)).threePointArc((-0.064, -0.212), (-0.025, -0.208)).threePointArc((0.005, -0.197), (0.033, -0.181)).lineTo(0.177, -0.287).... | 5 | 42 | 0.317734 |
train_b488b9f03751e4ae | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.241, 0, -0.04), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.517, 1.536).extrude(0.066)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.365 + 0.3035, -0.614 + 0.1535, 0.026), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.058, -0.095).lineTo(0... | 10 | 83 | 0.160972 |
train_d7f9b129eaf7c8f2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.073, -0.36, -0.415), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.535, 0.071).lineTo(0.535, 0.071).lineTo(0.535, 0.812).lineTo(0.336, 0.936).lineTo(-0.535, 0.936).lineTo(-0.535, 0.071).close().extrude(1.415)
result = result.edges().fillet(0.214... | 22 | 127 | 1.006392 |
train_5c66d776d26b5583 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.56, -0.111, -0.218), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.11, -0.192).lineTo(-0.11, 0.086).lineTo(0.082, 0.086).lineTo(0.082, 0.25).lineTo(0.11, 0.25).lineTo(0.11, -0.25).lineTo(0.082, -0.25).lineTo(0.082, -0.192).lineTo(-0.11, -0.192).... | 5 | 48 | 0.117558 |
train_41796bd9ffc57d12 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.692), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.813).extrude(1.112)
result = result.union(cq.Workplane(cq.Plane(origin=(0.117, 0.265, 0.404), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.914, 0.921).extrude(0.288))
result = result.edges()... | 3 | 51 | 4.216426 |
train_ef9fa9c9d202d918 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.129), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.408, 2).extrude(0.183)
result = result.union(cq.Workplane(cq.Plane(origin=(0.19, -0.681, 0.053), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.12, 0.151).extrude(0.039))
result = result.union(cq... | 8 | 42 | 0.413856 |
train_af62acd212beb853 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.193, -0.148, 0.749), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.585, 0.882).lineTo(1.058, 0.116).lineTo(0.059, -0.882).lineTo(-1.058, -0.882).lineTo(-0.585, 0.882).close().extrude(1.609)
result = result.edges().fillet(0.349)
result = result.u... | 5 | 43 | 3.040527 |
train_d0e9fbd9187c98e3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.647, 0.003), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.6, 0.045).threePointArc((-0.651, 0.769), (-0.047, 1.171)).threePointArc((0.593, 0.857), (0.651, 0.147)).lineTo(0.302, 0.659).lineTo(-0.6, 0.045).close().extrude(2)
result = result.ed... | 3 | 27 | 1.796801 |
train_c7a5d37c56874dc4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.022, 0.084, -0.888), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.983, 1.832).extrude(1.776)
result = result.union(cq.Workplane(cq.Plane(origin=(0.622, -0.245, -0.001), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.704, 0.66).threePointArc((0.352, 0... | 14 | 30 | 2.590472 |
train_6d708618b1e1ddc1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.224, 0.161, 0.044), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.312, -0.547).lineTo(0.312, 0.902).lineTo(-0.312, 0.902).lineTo(-0.312, -0.547).lineTo(0.312, -0.547).close().extrude(0.461)
result = result.edges().chamfer(0.17)
result = result.cu... | 24 | 171 | 0.261394 |
train_207d399eabc0b301 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.167, -0.084, -0.633), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.666, 1.038).extrude(1.266)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.414, -0.157, -0.111), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.325, 1.246).extrude(0.255))
result =... | 17 | 117 | 1.805276 |
train_64dcbd3cfcc14712 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.127, 0.059, 0.258), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.7, -0.208).lineTo(0.7, -0.208).lineTo(0.7, 0.208).lineTo(-0.7, 0.208).lineTo(-0.7, -0.208).close().workplane(offset=0.217).moveTo(-0.871, -0.26).lineTo(0.871, -0.26).lineTo(0.871,... | 15 | 97 | 0.280172 |
train_aa5d8fe58d10cfb5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.04, 0.105, -0.412), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.337, 0.265).lineTo(0.337, -0.139).lineTo(-0.064, -0.139).lineTo(-0.064, -0.159).lineTo(0.045, -0.159).lineTo(0.045, -0.265).lineTo(-0.158, -0.265).lineTo(-0.158, -0.159).lineTo(-0.... | 13 | 127 | 0.491491 |
train_a905a389d87e64d7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.535, -0.574), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.035).threePointArc((0, 1.036), (-1, 0.035)).lineTo(-0.904, 0.035).threePointArc((0, 0.94), (0.904, 0.035)).lineTo(1, 0.035).close().extrude(1.148)
result = result.cut(cq.Workplane(... | 4 | 61 | 0.32611 |
train_6e2449ef91d1ef38 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.447, 0.108, -0.299), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, -0.206).lineTo(0.064, -0.089).lineTo(0.196, -0.064).lineTo(0.104, 0.034).lineTo(0.121, 0.167).lineTo(0, 0.11).lineTo(-0.121, 0.167).lineTo(-0.104, 0.034).lineTo(-0.196, -0.064).li... | 18 | 163 | 0.339763 |
train_3faccf3af71ef601 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.799, 0, 0.926), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.231).sweep(cq.Workplane('XZ').spline([(0.799, -0.768), (1.065, -0.76), (1.331, -0.706), (1.598, -0.504), (1.864, -0.303), (2.13, -0.249), (2.396, -0.241)]))
result = result.edges().cham... | 2 | 5 | 0.000707 |
train_f491fc47810f1c0e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.113, -0.914, -0.521), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.316, 1.691).lineTo(-0.951, 0.138).lineTo(0.951, 0.138).lineTo(0.951, 1.691).lineTo(-0.316, 1.691).close().extrude(0.944)
result = result.edges().fillet(0.13)
result = result.uni... | 10 | 111 | 2.375183 |
train_1674027c974bc702 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.171, 0, 0.016), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.658, 1.614).extrude(0.16)
result = result.union(cq.Workplane(cq.Plane(origin=(0.822, -0.07, 0.053), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.178).extrude(0.095))
result = result.cut(c... | 11 | 72 | 0.279677 |
train_bcf46f06366c176d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.147, 0.055, -0.569), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.706, 0.97).extrude(0.946)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.403, 0.271, -0.584), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.172).extrude(0.596))
result = result.... | 6 | 29 | 1.499539 |
train_2cd98eaacaf559f5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.354, 0, 0.01), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.062, 0.053).lineTo(-0.062, -0.053).lineTo(-0.028, -0.053).lineTo(-0.028, 0.019).lineTo(0.02, 0.019).lineTo(0.02, -0.053).lineTo(0.062, -0.053).lineTo(0.062, 0.053).lineTo(-0.062, 0.053... | 16 | 156 | 0.166712 |
train_ee3efe9d54a82988 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.074, 0.057, -0.326), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.157, 0.832).extrude(0.522)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.486, -0.038, -0.169), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.291, -0.033).threePointArc((-0.08... | 15 | 89 | 0.328364 |
train_91607a95467e495d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.113, 0, 0.016), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.403, 0.284).threePointArc((-0.725, 0), (-0.403, -0.284)).lineTo(0.725, -0.142).threePointArc((0.564, 0), (0.725, 0.142)).lineTo(-0.403, 0.284).close().sweep(cq.Workplane('XZ').spline... | 5 | 18 | 0.471644 |
train_89b4f275a2e4f125 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.563, 0.198, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.437).sweep(cq.Workplane('XY').spline([(0.563, -0.255), (0.366, -0.126), (0.062, -0.089), (-0.221, -0.158), (-0.365, -0.306), (-0.309, -0.47)]))
result = result.union(cq.Workplane(cq.Pla... | 4 | 12 | 0.429562 |
train_a3e469b56e679799 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.564, 0.117), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.472, 0.116).lineTo(-0.484, 0.116).lineTo(-0.484, -0.116).lineTo(0.484, -0.116).lineTo(0.484, -0.023).lineTo(-0.472, -0.023).lineTo(-0.472, 0.023).lineTo(-0.478, 0.023).lineTo(-0.478... | 4 | 26 | 0.59116 |
train_5e64f6075c6255b3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.204, 0.419, -0.356), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.324, -0.584).lineTo(-0.324, 0.257).lineTo(-0.466, 0.257).lineTo(-0.466, 0.819).lineTo(0.466, 0.819).lineTo(0.466, -0.584).lineTo(-0.324, -0.584).close().extrude(0.563)
result = r... | 13 | 155 | 0.447404 |
train_ee8787abc988db6d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.125, 0.161, -0.428), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.75, 1.168).extrude(0.857)
result = result.faces('>Z').shell(-0.049)
result = result.union(cq.Workplane(cq.Plane(origin=(0.862, 0.186, -0.099), normal=(0, 0, 1), xDir=(1, 0, 0))).rec... | 4 | 21 | 0.369717 |
train_3685aba3c0a9f2c5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.074, 0.126, 0.526), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.437, 0.234).threePointArc((0.265, 0.405), (0.031, 0.468)).lineTo(-0.374, 0.234).threePointArc((-0.437, 0), (-0.374, -0.234)).threePointArc((-0.203, -0.405), (0.031, -0.468)).threeP... | 20 | 106 | 0.667584 |
train_2fabc0e784bd7480 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.102, -0.055, -0.688), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.618, 0.438).extrude(0.154)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.102, -0.055, -0.536), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.169).extrude(0.034))
result = re... | 34 | 208 | 0.377049 |
train_928144094360e037 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.215, 0.837, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 0.442).lineTo(1, 0.442).lineTo(1, 0.042).lineTo(-1, 0.042).lineTo(-1, 0.442).lineTo(0, 0.442).close().extrude(1.485)
result = result.edges().fillet(0.068)
result = result.cut(cq.Workp... | 12 | 66 | 1.152484 |
train_3491eb1b6311117f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.692, -0.654, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.136, 1.511).lineTo(-0.136, -0.308).lineTo(-0.773, -0.308).lineTo(-0.773, -0.126).lineTo(-0.318, -0.126).lineTo(-0.318, 1.692).lineTo(0.773, 1.692).lineTo(0.773, 1.511).lineTo(-0.136,... | 4 | 84 | 0.609543 |
train_8575af8c27a707d2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.101, 0, 0.017), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.067, 0.066).lineTo(0.327, 0.066).lineTo(0.327, -0.066).lineTo(-0.327, -0.066).lineTo(-0.327, 0.066).lineTo(0.067, 0.066).close().sweep(cq.Workplane('XZ').spline([(-0.101, 0.017), (0.2... | 8 | 26 | 0.007046 |
train_1ff9c590505a0ad6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.252, -0.245, -0.635), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.928, 0.122).extrude(0.127)
result = result.union(cq.Workplane(cq.Plane(origin=(0.307, -0.238, -0.77), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.182, 0.055).extrude(0.143))
result = ... | 8 | 88 | 0.701422 |
train_f97399d995e87e07 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.332, -0.13, 0.028), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.127).sweep(cq.Workplane('XZ').spline([(0.332, -0.148), (0.06, 0.029), (-0.272, 0.009), (-0.517, -0.199), (-0.569, -0.505), (-0.405, -0.774), (-0.097, -0.888)]))
result = result.unio... | 9 | 68 | 0.599558 |
train_abf57c6118130fad | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.646, -0.772, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.324, 0.737).lineTo(-0.324, 0.808).lineTo(-0.31, 0.808).lineTo(-0.31, 1.548).lineTo(0.324, 1.548).lineTo(0.324, 0.776).lineTo(0.266, 0.776).lineTo(0.266, 0.769).lineTo(-0.252, 0.769).... | 4 | 38 | 1.204269 |
train_85357428a0999d13 | 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.38, 1.855).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.181, 0.674, -0.432), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.229).extrude(0.399))
| 2 | 9 | 5.054065 |
train_e1fbb99e242b7ee8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.29, 0.238, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.34, 0.471).lineTo(-0.34, 1.29).lineTo(0.006, 1.29).lineTo(0.34, 0.942).lineTo(0.34, -0.71).lineTo(-0.34, -0.71).lineTo(-0.34, 0.471).close().extrude(0.425)
result = result.edges().cham... | 23 | 117 | 0.426619 |
train_2b751d897f907b23 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.273, -0.316), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.348, 0.904).lineTo(-0.348, -0.487).lineTo(0.058, -0.487).threePointArc((0.143, -0.282), (0.348, -0.197)).lineTo(0.348, 0.904).lineTo(-0.348, 0.904).close().extrude(0.777)
result = re... | 27 | 227 | 0.367937 |
train_16a4888b1c56b011 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.34, 0.989, 0.103), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.605, -0.323).lineTo(-0.897, -0.323).lineTo(-0.897, 1.179).lineTo(0.897, 1.179).lineTo(0.897, 0.344).lineTo(0.663, 0.344).lineTo(0.66, -0.323).lineTo(0.605, -0.323).close().extrude(1... | 4 | 88 | 5.017595 |
train_38b8e1d2615e8f92 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.683, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.237, 1.315).threePointArc((-0.675, 0.683), (0.237, 0.051)).threePointArc((0.675, 0.683), (0.237, 1.315)).close().extrude(2)
result = result.edges().chamfer(0.186)
result = result.cut(cq.Wo... | 11 | 46 | 2.448252 |
train_345fe315298af49f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.149, 0.408), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.732, -0.976).lineTo(0, 0.976).lineTo(-0.732, -0.976).lineTo(0.732, -0.976).close().workplane(offset=0.108).moveTo(0.636, -0.848).lineTo(0, 0.848).lineTo(-0.636, -0.848).lineTo(0.636, -... | 11 | 81 | 0.302582 |
train_f9aa544829ee1c47 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.068, 0.198, 0.281), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.105, -0.331).lineTo(0.105, 0.322).lineTo(-0.004, 0.322).threePointArc((-0.214, 0.483), (-0.113, 0.728)).threePointArc((0.105, 0.728), (0.214, 0.539)).lineTo(0.214, -0.331).lineTo(0.... | 18 | 93 | 0.613402 |
train_34c2fdebee0057c1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.185, 0, 0.046), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.441, 0.458).extrude(0.441)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.214, -0.004, 0.365), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.382, 0.058).extrude(0.028))
result = resul... | 6 | 29 | 0.085966 |
train_fe91a3acc31f727c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.195, 0, 0.204), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.124, -0.243).lineTo(-0.166, -0.243).lineTo(-0.166, 0.243).lineTo(-0.124, 0.243).lineTo(0.023, -0.073).lineTo(0.078, -0.047).lineTo(0.149, -0.202).lineTo(0.166, -0.194).lineTo(0.166, -0... | 2 | 15 | 0.111472 |
train_b7fe21a55d56a194 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.038, -0.142, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.054, 1.07).lineTo(0.01, -0.75).lineTo(0.009, -0.786).lineTo(-0.054, -0.786).lineTo(-0.054, -0.549).lineTo(0.054, 1.07).close().workplane(offset=0.03).moveTo(0.056, 1.106).lineTo(0.011... | 7 | 47 | 0.003475 |
train_269c1ce52a1d898c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.13, 0.294, -0.355), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.281).workplane(offset=0.251).circle(0.318).workplane(offset=0.252).circle(0.386).loft()
result = result.edges().fillet(0.223)
result = result.faces('>X').shell(-0.06)
result = res... | 18 | 82 | 0.43232 |
train_595f7d96601d7ace | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.727, -0.256, -0.587), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.284, 0.537).lineTo(-0.284, -0.026).lineTo(0.284, -0.026).lineTo(0.284, 0.537).lineTo(-0.284, 0.537).close().workplane(offset=0.467).moveTo(-0.303, 0.556).lineTo(-0.303, -0.045).... | 12 | 144 | 1.27697 |
train_b4c4ffc1e8279a94 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.159, 0, -0.499), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.683, 1.612).extrude(1.043)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.326, -0.175, 0.523), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.055).extrude(0.257))
result = result.e... | 13 | 62 | 2.421266 |
train_1a2e27fcd25dc376 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.225, 0.112, 0.167), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, 0.02).lineTo(-0.833, 0.02).lineTo(-0.833, 0.436).lineTo(0.833, 0.436).lineTo(0.833, 0.02).lineTo(0, 0.02).close().revolve(angleDegrees=90, axisStart=(0, 0.02), axisEnd=(-0.833, 0.... | 17 | 75 | 0.174095 |
train_38229a7d11a22348 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.122, 0.027, 0.598), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.208, -0.197).lineTo(-0.208, 0.56).lineTo(0.208, 0.56).lineTo(0.208, -0.387).lineTo(0.133, -0.387).lineTo(0.133, -0.197).lineTo(-0.208, -0.197).close().revolve(angleDegrees=360, ax... | 25 | 327 | 0.450627 |
train_5433a7163070972c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.083, 0, -0.335), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.335, 1.039).lineTo(0.335, 1.083).lineTo(-0.335, 1.083).lineTo(-0.335, -0.917).lineTo(0.335, -0.917).lineTo(0.335, 1.039).close().revolve(angleDegrees=270, axisStart=(0.335, 1.039), ax... | 8 | 175 | 2.022538 |
train_c8593359d4f433e9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.639, 0.623, -0.183), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.239, -0.295).lineTo(0.239, -0.361).lineTo(0.305, -0.361).lineTo(0.305, 0.361).lineTo(-0.305, 0.361).lineTo(-0.305, -0.361).lineTo(-0.239, -0.361).lineTo(-0.239, -0.295).lineTo(0.2... | 5 | 36 | 0.428819 |
train_8d3c23bd8d69fd2d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.111, -0.424), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.082, 1.532).extrude(1.424)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.159, 0.14, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.418, 0.278).extrude(0.63))
result = result.uni... | 10 | 100 | 2.086087 |
train_7cef1bf1280edb20 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.496, 0.278, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(1, 0.632).lineTo(1, 0.054).lineTo(-1, 0.054).lineTo(-1, 0.632).lineTo(1, 0.632).close().extrude(1.133)
result = result.edges().chamfer(0.151)
result = result.union(cq.Workplane(cq.Plane(... | 15 | 290 | 0.921076 |
train_9ba9a5cda38faabb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.025, 0, 1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.18, -0.026).threePointArc((-0.155, -0.069), (-0.122, -0.105)).lineTo(-0.197, -0.339).threePointArc((-0.119, -0.372), (-0.035, -0.391)).lineTo(0.04, -0.158).threePointArc((0.089, -0.148), (... | 7 | 63 | 0.553966 |
train_03940435f3de8aa3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.071, -0.742), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.199).extrude(0.169)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.472, 0.062, -0.912), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.394, 0.142).extrude(0.188))
result = result.u... | 4 | 26 | 0.099057 |
train_d1f0344f229e7891 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.099, 0, 0.252), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.036).sweep(cq.Workplane('XZ').spline([(-0.473, -0.027), (-0.033, -0.027), (0.07, -0.133), (0.173, -0.239), (0.275, -0.345)]))
result = result.union(cq.Workplane(cq.Plane(origin=(-0.609... | 8 | 115 | 0.010261 |
train_ca128be5740ba324 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1.185, 0.358, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 0.579).lineTo(0.021, 0.579).lineTo(0.021, 0.604).lineTo(0.072, 0.604).lineTo(0.072, 0.54).lineTo(0.86, 0.54).lineTo(0.86, 1.902).lineTo(-0.86, 1.902).lineTo(-0.86, 0.469).lineTo(-0.07... | 8 | 46 | 2.39939 |
train_51df7ad0bffb1cff | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(3.033, 0.101, 2.077), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.7, -0.033).lineTo(-0.7, 0).threePointArc((0.017, 0.7), (0.7, -0.033)).threePointArc((0.001, -0.7), (-0.699, -0.033)).lineTo(-0.7, -0.033).close().sweep(cq.Workplane('XZ').spline([(... | 14 | 17 | 0.900373 |
train_d7ed3fb2a5160897 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.4, 0.179), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.73, 0.261).threePointArc((0.79, 0.285), (0.821, 0.343)).threePointArc((0.79, 0.4), (0.73, 0.423)).lineTo(0.032, 0.423).lineTo(0.032, 0.562).lineTo(-0.134, 0.562).lineTo(-0.134, 0.423).lin... | 7 | 114 | 0.228812 |
train_24dc8878eba33ebb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.073, -0.012, -0.163), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.042, -0.136).threePointArc((0.08, -0.119), (0.112, -0.091)).threePointArc((0.138, -0.046), (0.148, 0.005)).threePointArc((0.138, 0.057), (0.112, 0.102)).threePointArc((0.08, 0.12... | 9 | 58 | 0.313268 |
train_6cd1ab76caa55abe | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.404, 0.01, -0.406), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.591, 0.017).lineTo(0.415, 0.41).lineTo(0.011, 0.572).lineTo(-0.4, 0.42).lineTo(-0.596, 0.008).lineTo(-0.41, -0.406).lineTo(0.008, -0.592).lineTo(0.395, -0.429).close().moveTo(-0.10... | 17 | 152 | 0.327898 |
train_e5b4ef23297f138f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.367, -0.049, 0.054), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.46, -0.441).lineTo(-0.46, 0.754).lineTo(-0.23, 1.153).lineTo(0.46, 1.153).lineTo(-0.46, -0.441).close().extrude(1.049)
result = result.edges().chamfer(0.026)
result = result.face... | 9 | 112 | 0.532115 |
train_5cfb93a368025661 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.574, 0.028, -0.268), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.853, 0.189).extrude(0.092)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.4, -0.029, -0.245), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.2, 0.037).extrude(0.052))
result = res... | 9 | 40 | 0.10049 |
train_0239b6639a49404a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.001, -0.523, 0.708), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.855, 0.119).lineTo(-0.855, 0.808).threePointArc((-0.798, 0.87), (-0.736, 0.927)).lineTo(-0.444, 0.927).lineTo(0.351, 0.927).threePointArc((0.591, 0.755), (0.763, 0.516)).threePoin... | 6 | 72 | 0.64391 |
train_d2224925e22443ce | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.363, 0.144, -0.2), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.273, 0.306).extrude(0.253)
result = result.union(cq.Workplane(cq.Plane(origin=(0.24, 0.022, 0.123), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.52, 0.284).lineTo(-0.52, 0.263).lineTo... | 8 | 55 | 0.237873 |
train_57c1d3da63a07a71 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.126, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.767, -0.028).threePointArc((-0.768, 0), (-0.767, 0.028)).threePointArc((0.768, 0), (-0.767, -0.028)).close().sweep(cq.Workplane('XZ').spline([(0.126, -1.067), (0.583, -1.349), (1.04, -1.3... | 2 | 8 | 2.173316 |
train_6bae9f735a439163 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.098, -0.564, -0.071), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.121, 0.093).lineTo(-0.121, -0.093).lineTo(-0.096, -0.076).lineTo(-0.088, -0.071).lineTo(-0.058, -0.05).lineTo(-0.025, -0.028).threePointArc((-0.025, -0.036), (-0.027, -0.042)).li... | 9 | 85 | 0.139608 |
train_b88d5ca332395144 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.425, -0.236, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.712, 1.091).threePointArc((0, -0.876), (-0.712, 1.091)).threePointArc((0, 1.349), (0.712, 1.091)).close().workplane(offset=0.463).moveTo(0.602, 0.959).threePointArc((0, -0.705), (-0.6... | 6 | 21 | 2.363411 |
train_fbae98aa523f4e7b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.128, -0.454, -0.141), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.179, 1.454).lineTo(0.179, -0.546).lineTo(-0.099, -0.546).lineTo(-0.099, -0.483).lineTo(0.139, -0.483).lineTo(0.139, -0.046).lineTo(-0.179, -0.046).lineTo(-0.179, 0.017).lineTo(0.... | 6 | 37 | 0.218917 |
train_acad7d34d13ef5d6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.796, -0.317, -0.042), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.04, 0.106).threePointArc((-0.113, 0), (-0.04, -0.106)).threePointArc((0.113, 0), (-0.04, 0.106)).close().sweep(cq.Workplane('XZ').spline([(0.796, -0.042), (0.792, 0.117), (0.685... | 5 | 48 | 0.42825 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.