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_7d1ba9b178f7efc5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.181, 0.058, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.243, -0.093).lineTo(0.243, 1.124).threePointArc((0, -0.787), (-0.243, 1.124)).lineTo(-0.243, -0.093).lineTo(0.243, -0.093).close().extrude(0.686)
result = result.edges().chamfer(0.191)... | 10 | 89 | 1.101677 |
train_8069fd580393e1e4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.049, -0.019, -0.028), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.131, 0.09).extrude(0.248)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.143, -0.027, 0.034), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.067, 0.057).extrude(0.1))
result = r... | 13 | 54 | 0.028785 |
train_ac44dc38bdabd812 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.68, -0.9, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.9, 0.13).lineTo(-0.9, 0.43).lineTo(-1, 0.43).lineTo(-1, 0.83).lineTo(-0.9, 0.83).lineTo(-0.9, 1.13).lineTo(-0.6, 1.13).lineTo(-0.6, 1.23).lineTo(-0.2, 1.23).lineTo(-0.2, 1.13).lineTo(0.... | 2 | 32 | 0.832874 |
train_8cec348beaf2f666 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.754, 1.605).extrude(1.394)
result = result.union(cq.Workplane(cq.Plane(origin=(0.094, -0.092, 0.369), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.415, 0.846).extrude(0.316))
result = result.union(... | 8 | 49 | 1.209462 |
train_fedf855a94a2cef7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.515, 0.23, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.119, 0.176).lineTo(-0.03, 0.063).lineTo(0, 0.063).lineTo(0, 0.025).lineTo(0.041, -0.026).lineTo(0.041, 0.063).lineTo(0.03, 0.063).lineTo(0.119, 0.176).lineTo(0.119, -0.176).lineTo(-0.... | 4 | 36 | 0.073544 |
train_99966edd018ebb1a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0, 0.005), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.002, 0.186).threePointArc((0.186, 0), (-0.002, -0.186)).threePointArc((-0.186, 0), (-0.002, 0.186)).close().sweep(cq.Workplane('XZ').spline([(-0.001, -0.219), (0.328, -0.219), (0.656, -0... | 5 | 44 | 0.202445 |
train_b527462330719277 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.451, 0, 0.5), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.43, 0.717).threePointArc((-0.479, 0.697), (-0.5, 0.647)).lineTo(-0.5, 0.255).threePointArc((-0.479, 0.206), (-0.43, 0.185)).lineTo(0.5, 0.185).lineTo(0.5, 0.717).lineTo(-0.43, 0.717).cl... | 9 | 27 | 1.482253 |
train_e970ce1cd039db20 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.041, -0.063, -0.157), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.14, 0.056).lineTo(0.082, -0.045).lineTo(-0.019, 0.013).lineTo(-0.053, 0.033).lineTo(-0.016, 0.097).lineTo(-0.169, 0.097).lineTo(-0.169, 0.136).lineTo(0.007, 0.136).lineTo(0.007, ... | 8 | 64 | 0.429397 |
train_4bc2a45f2cd982de | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.319, 0, -0.457), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.16, 0.81).extrude(0.61)
result = result.union(cq.Workplane(cq.Plane(origin=(0.377, 0.04, 0.148), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.044, 0.729).extrude(0.106))
result = result.uni... | 17 | 58 | 0.761088 |
train_f1e0e2bf3626e632 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.194, -0.066, 0.124), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.021, -0.095).lineTo(-0.021, -0.07).lineTo(-0.042, -0.07).lineTo(-0.042, 0.095).lineTo(-0.032, 0.095).lineTo(-0.032, 0.03).lineTo(0.032, 0.03).lineTo(0.032, 0.095).lineTo(0.042, 0... | 15 | 215 | 0.093216 |
train_c4072c36a19e21c1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.29, -0.058, -0.35), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.78, 0.801).extrude(0.178)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.129, -0.018, -0.247), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.106).extrude(0.077))
result = result.cu... | 14 | 247 | 0.273917 |
train_825ef339163e9477 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.125, -0.032, -0.116), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.184, -0.875).lineTo(0.184, 1.185).lineTo(-0.184, 0.498).lineTo(-0.184, -0.875).lineTo(0.184, -0.875).close().extrude(0.338)
result = result.edges().chamfer(0.066)
result = result... | 12 | 240 | 0.320935 |
train_f09d20437ecb8a4d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.209, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.297, 0.408).lineTo(-0.297, 0.023).lineTo(-0.285, 0.023).lineTo(-0.285, 0.011).lineTo(0.271, 0.011).lineTo(0.271, 0.023).lineTo(0.282, 0.023).lineTo(0.282, 0.011).lineTo(0.297, 0.011).line... | 10 | 57 | 0.316041 |
train_74478345c56445c0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.238, -0.091, -0.003), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.269, 0.519).threePointArc((-0.018, 0.821), (0.269, 0.552)).lineTo(0.269, -0.422).threePointArc((0.038, -0.76), (-0.269, -0.489)).lineTo(-0.269, 0.519).close().extrude(0.527)
res... | 17 | 241 | 0.466648 |
train_07e37fb2ce0aa898 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.29, 0.388, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.689, 0.169).threePointArc((-0.603, 0.369), (-0.689, 0.568)).lineTo(-0.476, 0.369).lineTo(-0.184, 0.642).lineTo(0.877, 0.642).threePointArc((0.602, 0.369), (0.877, 0.095)).lineTo(-0.184... | 14 | 120 | 0.410139 |
train_7738db4657a11772 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.165, -0.2, -0.628), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.579, 1.599).extrude(0.455)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.253, -0.298, -0.759), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.909, 0.457).extrude(0.136))
result =... | 24 | 136 | 0.980229 |
train_9550cb806e337377 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.059, -0.381, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(1, -0.325).threePointArc((-0.106, -0.325), (-1, 0.325)).lineTo(1, -0.325).close().sweep(cq.Workplane('XY').spline([(-0.059, 0.277), (0.45, 0.543), (0.959, 0.368)]))
result = result.uni... | 8 | 32 | 0.239509 |
train_be3892a05b800729 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.449, 0.581, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1, 0.063).lineTo(-1, 0.166).lineTo(0, 0.809).lineTo(1, 0.166).lineTo(1, 0.063).lineTo(0, 0.704).lineTo(-1, 0.063).close().extrude(1.162)
result = result.edges().fillet(0.042)
| 2 | 38 | 0.234798 |
train_df3a2aeebf013c8c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.132, -0.644, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.733, -0.835).threePointArc((-0.661, -0.509), (-0.47, -0.235)).threePointArc((0.132, 0.008), (0.734, -0.235)).threePointArc((0.472, 1.185), (-0.734, 0.388)).lineTo(-0.734, 0.387).lin... | 11 | 80 | 3.27616 |
train_4cc895d25cf52829 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.008, 0.206, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.809, 0.809).extrude(1.683)
result = result.faces('>Z').shell(-0.083)
result = result.union(cq.Workplane(cq.Plane(origin=(0.04, 0.299, 0.672), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0... | 6 | 38 | 0.567878 |
train_55a429cce4ba3b1b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.099, 0.36, -0.538), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.838, 0.838).extrude(0.994)
result = result.union(cq.Workplane(cq.Plane(origin=(0.099, 0.638, -0.041), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 0.272).lineTo(0.61, 0.722).lineTo(-... | 10 | 63 | 1.092639 |
train_6d8f3b1c83783bf8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.23, 0, -0.532), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.541, 1.717).extrude(1.064)
result = result.faces('>Z').shell(-0.123)
result = result.union(cq.Workplane(cq.Plane(origin=(0.75, 0.105, -0.289), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.5... | 11 | 136 | 0.986871 |
train_bf7c2410e8a8db50 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.041, 0.033, -0.242), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.117).sweep(cq.Workplane('XZ').spline([(0.041, -0.242), (0.24, 0.083), (0.24, 0.504), (0.04, 0.829), (-0.268, 0.909), (-0.544, 0.708), (-0.662, 0.318)]))
result = result.union(cq.W... | 19 | 108 | 0.161048 |
train_f708e7659b78f47e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.646), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.09, 1.026).extrude(0.863)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.362, -0.061, -0.441), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.386, 0.404).extrude(0.44))
result = result.edges... | 19 | 99 | 0.854968 |
train_801105da92d1be12 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.137, 0.011, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(1, 0.013).lineTo(1, 0.12).threePointArc((0, 0.227), (-1, 0.12)).lineTo(-1, 0.013).lineTo(1, 0.013).close().extrude(0.64)
result = result.union(cq.Workplane(cq.Plane(origin=(0.045, 0.07, ... | 9 | 36 | 0.311734 |
train_e403ce3ed9bed7f9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.571, 0.036), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, -0.325).lineTo(0.049, -0.325).lineTo(0.049, 0.429).lineTo(0, 0.429).lineTo(0, 0.134).lineTo(-0.049, 0.134).lineTo(-0.049, -0.325).lineTo(0, -0.325).close().revolve(angleDegrees=270, a... | 5 | 27 | 0.031656 |
train_526abd952bd58774 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.077, -0.087, 0.233), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.915, -0.004).lineTo(0.321, 0.93).lineTo(-0.762, 0.581).lineTo(-0.741, -0.551).lineTo(0.29, -0.913).close().moveTo(-0.243, -0.172).lineTo(0.247, -0.174).lineTo(0.244, -0.091).lineT... | 12 | 138 | 1.416474 |
train_e28f3883636672a1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.007, -0.162, -0.255), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.944, 0.027).lineTo(0.496, 0.803).lineTo(-0.475, 0.814).lineTo(-0.958, -0.005).lineTo(-0.486, -0.838).lineTo(0.452, -0.818).close().moveTo(-0.018, 0.186).lineTo(-0.069, 0.137).line... | 9 | 58 | 0.970881 |
train_dfef3072c23c9da8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.206, 0.398, -0.222), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, 0.583).threePointArc((0.412, 0.412), (0.583, 0)).threePointArc((0, -0.583), (-0.583, 0)).lineTo(-0.583, 0.214).threePointArc((-0.475, 0.475), (-0.214, 0.583)).lineTo(0, 0.583).cl... | 35 | 245 | 1.322506 |
train_6055514aa013d188 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.103, -0.438, -0.184), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.654, 0.653).extrude(0.543)
result = result.faces('>Z').shell(-0.031)
result = result.union(cq.Workplane(cq.Plane(origin=(0.265, -0.237, -0.36), normal=(0, 0, 1), xDir=(1, 0, 0))).re... | 8 | 72 | 0.148687 |
train_acc7923d9eaf41a2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.016, 0.095, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.088, 0.218).lineTo(-0.44, 0.218).lineTo(-0.44, -0.134).lineTo(-0.44, 0.042).lineTo(0.264, 0.042).lineTo(0.264, -0.134).lineTo(0.44, -0.134).lineTo(0.44, 0.57).lineTo(0.264, 0.57).lineT... | 16 | 105 | 0.322908 |
train_bd39586f97fa17de | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.407, -0.839, 0.004), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.504, 1.772).threePointArc((0.451, 1.838), (0.376, 1.799)).threePointArc((-0.009, 1.053), (-0.497, 0.371)).threePointArc((-0.504, 0.296), (-0.437, 0.262)).threePointArc((0.029, 0.1... | 15 | 156 | 0.626691 |
train_8ee8260a0e6986c1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.458, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.02, 0.017).lineTo(-0.02, -0.009).lineTo(-0.025, -0.009).lineTo(-0.025, -0.017).lineTo(-0.023, -0.017).lineTo(-0.021, -0.016).lineTo(-0.021, -0.015).lineTo(-0.023, -0.015).lineTo(-0.023, ... | 1 | 13 | 0.00128 |
train_5354740c41c3e495 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.431, -0.357, -0.376), normal=(0, 1, 0), xDir=(0, 0, 1))).lineTo(0.782, 0.351).lineTo(0.782, 0.017).close().extrude(0.503)
result = result.edges().fillet(0.023)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.302, -0.064, -0.003), normal=(0... | 17 | 107 | 0.180261 |
train_c4ec56adb51b53f1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.126, -0.167, -0.393), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.749, 1.1).extrude(0.466)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.126, -0.167, -0.132), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.056).extrude(0.21))
result = result.... | 31 | 138 | 0.594955 |
train_ed8d7aa26a0533fe | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.68, -0.1, 0.219), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.219, 1.406).lineTo(-0.219, 0.553).lineTo(0.182, 0.553).lineTo(0.182, -0.292).lineTo(-0.182, -0.292).lineTo(-0.182, 0.534).lineTo(-0.219, 0.534).lineTo(-0.219, -0.32).lineTo(0.219, -... | 9 | 57 | 0.480716 |
train_ed772b72354b5c11 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.032, 0.274, -0.101), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.886, -0.005).lineTo(0.473, 0.726).lineTo(-0.444, 0.724).lineTo(-0.821, 0.01).lineTo(-0.431, -0.768).lineTo(0.457, -0.74).close().moveTo(0.194, -0.002).lineTo(0.102, 0.167).lineTo(... | 7 | 64 | 0.849066 |
train_63c7c66628aa4aba | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.4, -0.966, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.385, 1.496).threePointArc((0.815, 0.96), (-0.385, 0.423)).threePointArc((-0.506, 0.37), (-0.627, 0.423)).threePointArc((-0.566, 0.605), (-0.748, 0.665)).lineTo(-0.801, 0.665).threePoin... | 13 | 164 | 1.180013 |
train_d0e83ada4dabf8bf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.218, 0, 0.476), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.377, 0.31).threePointArc((0.286, 0.299), (0.199, 0.269)).threePointArc((-0.314, 0.288), (-0.782, 0.5)).threePointArc((-0.413, -0.08), (0.17, -0.444)).threePointArc((0.27, -0.486), (0.... | 21 | 118 | 0.280708 |
train_7a913160aeb1cbae | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.747, 0.041, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.315, -0.617).threePointArc((0.692, 0), (-0.315, 0.617)).lineTo(-0.315, 0.403).lineTo(-0.563, 0.403).threePointArc((-0.692, 0), (-0.563, -0.403)).lineTo(-0.315, -0.403).lineTo(-0.315, -... | 1 | 8 | 0.430873 |
train_4b8066808724ea72 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.004, -0.009, -0.448), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.942, 0.966).lineTo(0.921, 1.01).lineTo(0.95, 0.553).lineTo(0.235, 0.556).lineTo(0.221, -0.992).lineTo(-0.229, -0.973).lineTo(-0.222, 0.538).lineTo(-0.91, 0.57).close().moveTo(0.... | 12 | 203 | 0.938205 |
train_433d83e405252492 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.042, -0.85, -0.264), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.123, -0.05).lineTo(0.123, -0.07).lineTo(-0.123, -0.07).lineTo(-0.123, -0.05).lineTo(-0.105, -0.05).lineTo(-0.012, 0.05).lineTo(0.007, 0.07).lineTo(0.123, 0.07).lineTo(0.123, 0.05... | 15 | 209 | 0.206977 |
train_c78c0789f1a672c4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.063, -0.033, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.11, 1.11).extrude(1.765)
result = result.faces('<X').shell(-0.081)
result = result.union(cq.Workplane(cq.Plane(origin=(0.085, 0.056, 0.748), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0... | 4 | 20 | 0.744359 |
train_cd5f86b19400d972 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.5, -0.5), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, -0.5).lineTo(-0.5, -0.5).lineTo(-0.5, 0).lineTo(-1, 0).lineTo(-1, 0.5).lineTo(1, 0.5).lineTo(1, 0).lineTo(0.5, 0).lineTo(0.5, -0.5).lineTo(0, -0.5).close().revolve(angleDegrees=180, axi... | 7 | 54 | 2.165717 |
train_456a0bb484890e3f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.379, 0.179, -0.111), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.947, 1.009).extrude(0.189)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.921, 0.029, -0.051), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.079).extrude(0.039))
result = resu... | 26 | 128 | 0.150949 |
train_f36820cd5c095fc8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.163, -0.15, 0.466), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.768).workplane(offset=0.325).circle(0.749).workplane(offset=0.356).circle(0.679).workplane(offset=0.357).circle(1.054).loft()
result = result.edges().chamfer(0.252)
result = result... | 11 | 63 | 0.667601 |
train_e9026f478d7de730 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.196, -0.08, -0.37), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.609, 1.197).extrude(0.449)
result = result.union(cq.Workplane(cq.Plane(origin=(0.276, -0.02, 0.077), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.539).extrude(0.031))
result = result.u... | 4 | 50 | 0.985962 |
train_4ecaccbd3f93953f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.044, 0.006, -0.427), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.912, 1.371).extrude(0.882)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.315, 0.177, 0.451), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.06, 0.089).extrude(0.096))
result = re... | 6 | 27 | 2.316908 |
train_5b21ca0d1e959877 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.025, 0.491, -0.007), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.199, 0.623).lineTo(0.199, 0.032).lineTo(0.043, -0.211).lineTo(0.043, -0.502).threePointArc((-0.078, -0.623), (-0.199, -0.502)).lineTo(-0.199, -0.211).lineTo(-0.13, -0.211).lineTo... | 7 | 81 | 0.248342 |
train_dac440521314f550 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.004, -0.093, 0.086), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.604, 0.006).lineTo(0.437, 0.42).lineTo(0.003, 0.606).lineTo(-0.437, 0.422).lineTo(-0.611, 0.007).lineTo(-0.423, -0.453).lineTo(-0.008, -0.615).lineTo(0.428, -0.454).close().moveTo(... | 6 | 68 | 0.365264 |
train_c313e4b0b8850efe | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.016, 0.005, 0.562), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.911, 0.599).lineTo(-0.8, 0.407).lineTo(-0.504, -0.107).lineTo(-0.207, -0.621).lineTo(-0.096, -0.812).lineTo(0.015, -0.621).lineTo(0.311, -0.107).lineTo(0.609, 0.407).threePointAr... | 6 | 51 | 0.735735 |
train_b2d5b44c2d7b2fc9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.298, 0, -0.31), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.403, 0.317).extrude(0.444)
result = result.union(cq.Workplane(cq.Plane(origin=(0.671, -0.009, -0.266), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.657, 0.135).extrude(0.234))
result = resu... | 9 | 68 | 0.183033 |
train_c49b59de8a57dd7e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.113, 0.17, -0.393), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.268, 0.273).lineTo(0.268, 0.067).lineTo(-0.08, 0.067).lineTo(-0.08, 0.084).lineTo(-0.174, 0.084).lineTo(-0.174, 0.067).lineTo(-0.268, 0.067).lineTo(-0.268, 0.273).lineTo(0.268, 0.2... | 16 | 146 | 0.144876 |
train_54c740eb919f122a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.95, -0.996, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).lineTo(-0.95, -0.004).lineTo(-0.95, 1.996).close().revolve(angleDegrees=360, axisStart=(-0.95, 1.996), axisEnd=(-0.95, -0.004))
result = result.edges().chamfer(0.655)
result = result.cut(cq.Work... | 7 | 23 | 0.860233 |
train_59cb06b271b02123 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.742, -0.348, -0.212), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.479, 0.475).threePointArc((0.788, 0.603), (0.661, 0.294)).lineTo(0.661, 0.221).threePointArc((0.532, 0.169), (0.479, 0.04)).lineTo(-0.607, 0.04).lineTo(-0.788, 0.04).lineTo(-0.78... | 16 | 164 | 0.642206 |
train_d31ef6f9d4902835 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.028, 0.106, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.678, 1.762).extrude(1.867)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.256, -0.879, -0.269), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.051, 0.215).extrude(0.142))
result = re... | 6 | 27 | 5.528717 |
train_37d8f4e96e01df6f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.107, 0.258, -0.787), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.52, 1.165).extrude(0.889)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.376, 0.825, -0.4), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.259, 0.624).lineTo(-0.259, 0.446).l... | 14 | 68 | 1.149742 |
train_f3a64b3fca52977c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.745, 0.446, -0.188), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.097, 0.959).threePointArc((-0.237, 0.975), (-0.378, 0.959)).lineTo(-0.378, -0.24).threePointArc((-0.237, -0.255), (-0.097, -0.24)).threePointArc((0.378, 0.36), (-0.097, 0.959)).c... | 5 | 35 | 0.729287 |
train_c9a25ce1c3541d0e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.51, -0.202, 0.005), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.049, 0.968).lineTo(-0.059, 0.968).threePointArc((-0.32, 1.169), (-0.195, 1.474)).threePointArc((-0.059, 1.51), (0.077, 1.474)).lineTo(0.051, 1.429).lineTo(0.037, 1.406).threePointA... | 9 | 30 | 0.18123 |
train_62498c4758d836c4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.008, 0, 0.171), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.554, 0.792).lineTo(1.147, -0.792).lineTo(-1.147, -0.792).lineTo(-1.147, 0.792).lineTo(0.554, 0.792).close().workplane(offset=0.181).moveTo(0.4, 0.571).lineTo(0.828, -0.571).lineTo(-0.8... | 12 | 106 | 0.375118 |
train_e34ac21c18c483d9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.308, 0.004), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.037, 0.008).threePointArc((0.037, -0.037), (-0.007, 0.037)).lineTo(-0.007, 0.008).lineTo(-0.037, 0.008).close().sweep(cq.Workplane('XY').spline([(-0.153, 0.308), (0.649, 0.308), (1.0... | 2 | 13 | 0.010921 |
train_d534fd56a37656ae | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.132, -0.339, -0.222), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.868, 0.319).lineTo(-0.868, 0.129).lineTo(-0.804, 0.018).lineTo(0.804, 0.018).lineTo(0.868, 0.129).lineTo(0.868, 0.319).lineTo(0.779, 0.407).lineTo(-0.779, 0.407).lineTo(-0.868, 0... | 5 | 74 | 0.338908 |
train_ef707f762cc05180 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.135, 0.007, -0.107), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.18).workplane(offset=0.323).circle(0.164).workplane(offset=0.263).circle(0.162).loft()
result = result.edges().chamfer(0.093)
result = result.union(cq.Workplane(cq.Plane(origin=(... | 29 | 186 | 0.122436 |
train_f281ce3a8c47d095 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.525, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.677, 1.003).lineTo(-0.677, 0.046).lineTo(0.677, 0.046).lineTo(0.04, 0.496).lineTo(-0.677, 1.003).close().extrude(1.095)
result = result.union(cq.Workplane(cq.Plane(origin=(0.253, -0.279,... | 3 | 12 | 0.685018 |
train_6e62de33cb77604e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.458), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.33).extrude(0.916)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.571, -0.327, -0.367), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.195).extrude(0.467))
result = result.edges().chamf... | 10 | 84 | 2.154379 |
train_358225bc01c3a55d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.876, 0.457, 0.054), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.095).transformed(offset=(0.087, 0.085, 0.002), rotate=(60, 0, 0)).circle(0.13).transformed(offset=(0.174, -0.07, 0.068), rotate=(0, 0, 0)).circle(0.09).transformed(offset=(0.261, -... | 2 | 5 | 0.031732 |
train_cd93bd7ffaa771ce | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.282, -0.429, -0.262), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.731, 0.586).extrude(0.524)
result = result.union(cq.Workplane(cq.Plane(origin=(-1.026, -0.181, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.145, 0.188).lineTo(-0.201, 0.164).li... | 9 | 120 | 0.34327 |
train_3ad468f902fcbb4e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.77, 0.378, 0.094), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.187, 0.217).threePointArc((0.217, 0.205), (0.23, 0.175)).lineTo(0.23, -0.175).threePointArc((0.217, -0.205), (0.187, -0.217)).lineTo(-0.187, -0.217).threePointArc((-0.217, -0.205), ... | 1 | 10 | 0.034009 |
train_3a404b2ca1a95d4b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.206, 0, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.646).workplane(offset=0.687).circle(0.469).workplane(offset=0.598).circle(0.576).workplane(offset=0.715).circle(0.864).loft()
result = result.edges().chamfer(0.49)
result = result.union(c... | 9 | 64 | 1.202612 |
train_d1a2b14fe0e7c78e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.49, 0.705, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(1.052, 1.097).lineTo(0.526, 1.401).lineTo(0, 1.704).lineTo(-0.526, 1.401).lineTo(-1.052, 1.097).lineTo(-1.052, -0.118).lineTo(-0.526, -0.421).lineTo(0, -0.725).lineTo(0.526, -0.421).lineT... | 21 | 272 | 2.813906 |
train_cd26c17e0a6ef296 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.115, 0.031, -0.097), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.61, 0.77).extrude(0.409)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.157, 0.184, 0.003), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.04).extrude(0.071))
result = result.cut... | 29 | 267 | 0.547723 |
train_a47b9004bd31fd02 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.711, -0.06, 0.643), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.241, 0.024).lineTo(0.241, 0.193).lineTo(0.289, 0.241).lineTo(-0.289, 0.241).lineTo(-0.241, 0.193).lineTo(-0.241, -0.193).lineTo(-0.289, -0.241).lineTo(0.289, -0.241).lineTo(0.241, ... | 1 | 11 | 0.062527 |
train_695418b976be0921 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.541, 0.002, -0.106), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.047, 0.346).lineTo(0.415, 0.45).threePointArc((0.358, 0.411), (0.337, 0.346)).lineTo(0.444, 0.346).lineTo(0.39, 0.253).lineTo(0.246, 0.002).lineTo(0.151, -0.369).threePointArc((0... | 3 | 22 | 0.239463 |
train_6dc4a1d0a99526b0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.257, 0, -0.161), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.486, 1.265).extrude(0.322)
result = result.union(cq.Workplane(cq.Plane(origin=(0.719, -0.23, -0.122), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.561, 0.552).extrude(0.193))
result = resu... | 13 | 39 | 0.493637 |
train_6d92f847bb0d512f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.319, 0.154, 0.008), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.746, 1.692).extrude(0.409)
result = result.union(cq.Workplane(cq.Plane(origin=(0.332, -0.846, 0.17), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.154).extrude(0.16))
result = result.un... | 17 | 63 | 0.587164 |
train_8712e143bb2a7d77 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.037, -0.457), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.639).extrude(0.636)
result = result.union(cq.Workplane(cq.Plane(origin=(0.1, 0.045, 0.178), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.8, 1.475).extrude(0.082))
result = result.union(... | 20 | 97 | 1.586435 |
train_fa7ac854994e89b2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.157, 0, 0.244), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.556, 0.366).lineTo(-0.556, 0.217).lineTo(-0.307, 0.217).lineTo(-0.307, -0.181).lineTo(-0.556, -0.181).lineTo(-0.556, -0.366).lineTo(0.556, -0.366).lineTo(0.556, 0.366).lineTo(-0.556, ... | 17 | 151 | 0.255683 |
train_efdb81151891202a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.687, -1.324, -0.303), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.329, 0.636).lineTo(-0.423, 0.636).lineTo(-0.423, 1.201).lineTo(-0.141, 1.201).lineTo(-0.141, 2.011).lineTo(0.141, 2.011).lineTo(0.141, 1.201).lineTo(0.423, 1.201).lineTo(0.423,... | 10 | 88 | 1.318463 |
train_2d87766201420630 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.04, 0.038, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.275, 0.944).extrude(1.658)
result = result.union(cq.Workplane(cq.Plane(origin=(0.094, -0.471, -0.204), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.039).extrude(0.194))
result = result.uni... | 13 | 93 | 2.004607 |
train_72ff9de6c44bbe02 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.406, -0.03, -0.188), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.406, 0.406).lineTo(-0.406, -0.406).lineTo(0, -0.406).lineTo(0, 0).lineTo(0.406, -0.406).lineTo(0.406, 0.406).lineTo(-0.406, 0.406).close().revolve(angleDegrees=360, axisStart=(-0... | 15 | 137 | 1.09904 |
train_1d157cd6467c1ea6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.276, -0.052, 0.515), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.219, -0.305).lineTo(-0.219, 0.652).lineTo(0.219, 0.652).lineTo(0.219, -0.305).lineTo(-0.219, -0.305).close().workplane(offset=0.228).moveTo(-0.22, -0.307).lineTo(-0.22, 0.655).l... | 7 | 117 | 0.287955 |
train_3b96ede6af6cf5d5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.001, 0.064, 0.174), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.219, -0.271).lineTo(0.228, -0.259).lineTo(0.217, 0.26).lineTo(-0.224, 0.262).close().moveTo(-0.063, 0.048).lineTo(-0.057, 0.064).lineTo(-0.04, 0.061).lineTo(-0.051, 0.074).lineTo(-... | 16 | 183 | 0.616024 |
train_9090d20c80fbdc3a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.459, 0.442, -0.29), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.442, 0.884).extrude(0.694)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.482, 0.59, -0.079), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.154, 0.617).extrude(0.414))
result = resul... | 24 | 386 | 0.472482 |
train_3a265740a5fa92ea | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.081, 0, 0.224), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.328, -0.283).lineTo(-0.503, -0.108).lineTo(-0.919, 0.308).lineTo(-0.156, -0.108).lineTo(0.919, -0.108).lineTo(0.744, -0.283).lineTo(0.296, -0.283).lineTo(0.296, -0.26).lineTo(0.253, ... | 4 | 21 | 0.114885 |
train_c794e2c98a8f4b1a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.285, 0.285, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.267, -0.715).lineTo(-0.104, -0.535).lineTo(0.001, -0.419).lineTo(0.059, -0.355).lineTo(0.059, 1.285).lineTo(0.267, 1.285).lineTo(0.267, -0.715).lineTo(-0.267, -0.715).close().extrude(... | 8 | 49 | 0.242156 |
train_edeb139790367e98 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.419, 0, 0.749), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.517, 0.66).lineTo(-0.517, 0.105).threePointArc((0.018, -0.122), (0.239, -0.66)).lineTo(0.517, -0.66).lineTo(0.517, 0.66).lineTo(-0.517, 0.66).close().workplane(offset=0.854).moveTo(-... | 5 | 27 | 1.589182 |
train_82fb52cf01683fa4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.968, -0.784, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.087, -0.021).threePointArc((-0.073, -0.028), (-0.058, -0.03)).threePointArc((-0.048, -0.03), (-0.04, -0.025)).threePointArc((-0.015, -0.03), (0.004, -0.012)).threePointArc((0.014, -... | 1 | 13 | 0.010903 |
train_e950c9619daa719b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.77, -0.645, -0.167), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.178, 0.178).lineTo(0.178, 0.178).lineTo(0.178, 0.23).lineTo(0.23, 0.23).lineTo(0.23, -0.23).lineTo(-0.23, -0.23).lineTo(-0.23, 0.178).lineTo(-0.178, 0.178).close().sweep(cq.Work... | 9 | 56 | 0.329652 |
train_33a07431e507bdb8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.141, 0.073, -0.487), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.719, 1.158).extrude(0.973)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.261, -0.348, 0.003), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.042).extrude(0.106))
result = result... | 12 | 65 | 1.883946 |
train_d284db30845786ea | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.468, 0.069, -0.079), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.191, 0.182).extrude(0.159)
result = result.union(cq.Workplane(cq.Plane(origin=(0.51, -0.084, -0.027), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.012, 0.151).extrude(0.015))
result = r... | 6 | 28 | 0.005704 |
train_c7f2ca518acfc382 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.407, 0.104), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.906, -0.499).lineTo(-0.906, 1.314).lineTo(0.906, 1.314).lineTo(0.388, -0.499).lineTo(-0.906, -0.499).close().workplane(offset=0.845).moveTo(-0.825, -0.418).lineTo(-0.825, 1.232).line... | 6 | 35 | 2.217174 |
train_ac57d27ac5f477cf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.225, -0.049, -0.489), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, 0.028).lineTo(0, 0.225).lineTo(-0.198, 0.225).lineTo(-0.198, 0.423).lineTo(0.085, 0.423).lineTo(0.085, 0.31).lineTo(0.198, 0.31).lineTo(0.198, 0.028).lineTo(0, 0.028).close().ex... | 3 | 29 | 0.059325 |
train_43c4764308d16e39 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.589, 0.14, 0.113), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.387, 0.815).lineTo(-0.387, 0.815).lineTo(-0.387, 0.041).lineTo(0.387, 0.041).lineTo(0.387, 0.815).close().revolve(angleDegrees=360, axisStart=(0.387, 0.815), axisEnd=(0, 0.815))
res... | 16 | 82 | 1.116145 |
train_4d19d9a60c4ebab2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.184, -0.299, -0.088), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.124, 0.399).lineTo(-0.124, 0.014).lineTo(0.124, 0.014).lineTo(0.124, 0.399).lineTo(-0.124, 0.399).close().extrude(0.479)
result = result.edges().fillet(0.064)
result = result.un... | 10 | 64 | 0.143351 |
train_58c95ba0bdbcb558 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.022, 0, -0.249), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.113, 1.687).extrude(0.597)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.207, -0.023, -0.257), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.26).extrude(0.335))
result = result.uni... | 28 | 134 | 0.742406 |
train_a9fe16eab1ab1487 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.281), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(1.258).workplane(offset=0.322).circle(0.51).workplane(offset=0.276).circle(0.575).workplane(offset=0.246).circle(0.675).loft()
result = result.edges().chamfer(0.267)
result = result.faces('<... | 21 | 39 | 0.904847 |
train_c768a4fd4560f45d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.194, 0.332, 0.536), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.069, -0.37).lineTo(0.069, -0.434).lineTo(0.05, -0.46).lineTo(0.218, -0.46).lineTo(0.218, 0.46).threePointArc((-0.218, 0.142), (-0.05, -0.372)).lineTo(-0.05, -0.296).threePointArc(... | 7 | 17 | 1.330589 |
train_1a3f12f334899538 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.597, -0.333), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.113, 0.039).threePointArc((-0.002, 0.12), (0.112, 0.044)).threePointArc((0.114, 0.038), (0.116, 0.033)).threePointArc((0.12, 0), (0.116, -0.033)).lineTo(0.116, -0.115).lineTo(0.112... | 9 | 89 | 0.375613 |
train_e81a3cba2342674f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.279, -0.087), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.341, -0.37).lineTo(0.341, -0.409).lineTo(0.38, -0.409).lineTo(0.38, 0.331).lineTo(0.341, 0.331).lineTo(0.341, 0.37).lineTo(0.302, 0.37).lineTo(0.302, 0.409).lineTo(-0.38, 0.409).lineTo... | 8 | 35 | 0.491151 |
train_b2db3ff0e537292c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.312, 0.07, -0.366), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.948, 0.754).extrude(0.892)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.199, 0.124, -0.392), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.207, 0.077).extrude(1.071))
result = resu... | 22 | 188 | 0.876883 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.