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_66a06c14e6a25b7c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.56, 0.064, 0.25), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.439, 0.776).lineTo(0.439, -0.776).lineTo(-0.439, -0.776).lineTo(-0.439, 0.776).lineTo(-0.299, 0.776).lineTo(-0.299, -0.551).lineTo(0.299, -0.551).lineTo(0.299, 0.776).lineTo(0.439, 0.... | 7 | 140 | 1.498001 |
train_e700e6c72e0b3eaa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.246, 0.258, -0.772), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.705, 0.741).lineTo(0.204, -0.534).lineTo(-0.705, 0.656).lineTo(0.705, 0.741).close().extrude(1.318)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.246, -0.107, 0.546), nor... | 31 | 320 | 2.000173 |
train_7816d28ff2f00a23 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.002, 0.084, -0.166), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.872, 0.229).threePointArc((0.997, 0.104), (0.889, -0.028)).threePointArc((0.874, -0.229), (0.745, -0.05)).lineTo(-0.507, -0.229).threePointArc((-0.997, -0.191), (-0.562, 0.035)).li... | 5 | 27 | 0.19612 |
train_e8445799416e71ea | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.326, -0.176, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.651).threePointArc((0.46, 0.46), (0.651, 0)).lineTo(0.235, 0).threePointArc((0.165, 0.165), (0, 0.235)).lineTo(0, 0.651).close().extrude(2)
result = result.union(cq.Workplane(cq.P... | 8 | 28 | 0.387924 |
train_6e4a45c5c361b42b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.066, 1.372, 0.61), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.223, 0.35).lineTo(0.314, 0.14).lineTo(0.186, -0.35).lineTo(-0.314, -0.172).lineTo(-0.307, 0.081).lineTo(-0.018, 0.228).lineTo(0.08, 0.249).lineTo(0.169, 0.323).lineTo(0.223, 0.35).cl... | 15 | 76 | 0.396671 |
train_e40034353034e9fc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.019, 0, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.17, 0).lineTo(0.168, -0.024).threePointArc((0.197, -0.028), (0.163, -0.047)).lineTo(0.155, -0.07).threePointArc((0.181, -0.082), (0.143, -0.091)).lineTo(0.129, -0.11).threePointArc((0.15, ... | 6 | 93 | 0.179433 |
train_a40a3349cf0574ba | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.07, -0.088, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.058, 0.165).threePointArc((0.084, 0.154), (0.096, 0.127)).threePointArc((0.083, 0.109), (0.092, 0.089)).lineTo(0.108, 0.051).threePointArc((0.091, 0.036), (0.096, 0.013)).threePointArc... | 12 | 10 | 0.079469 |
train_d4e3cf9a526c3bfa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.316, -0.041, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.63).threePointArc((0.445, 0.445), (0.63, 0)).lineTo(0.299, 0).threePointArc((0.212, 0.212), (0, 0.299)).lineTo(0, 0.63).close().extrude(2)
result = result.union(cq.Workplane(cq.Pl... | 8 | 24 | 0.301309 |
train_9b0852918775397e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.085, 0.042), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.87, 0.145).lineTo(1, 0.107).lineTo(0.882, 0.068).lineTo(0.215, -0.029).lineTo(0.206, -0.238).lineTo(-0.207, -0.238).lineTo(-0.217, -0.029).lineTo(-0.855, 0.063).lineTo(-1, 0.102).lineT... | 2 | 28 | 0.043191 |
train_cc99c907615f2bb8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.296, -0.16), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.79, 0.704).lineTo(0.79, -0.704).lineTo(-0.79, -0.704).lineTo(-0.79, 0.235).lineTo(-0.264, 0.235).lineTo(-0.264, 0.704).lineTo(0.79, 0.704).close().extrude(0.149)
result = result.cut(cq... | 20 | 34 | 0.837263 |
train_a9fa5dc2bc3d1415 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.653), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(1).extrude(0.881)
result = result.cut(cq.Workplane(cq.Plane(origin=(1, 0, -0.653), normal=(0, 0, 1), xDir=(1, 0, 0))).pushPoints([(0, 0), (-0.191, 0.587), (-0.691, 0.95), (-1.309, 0.95), (-1... | 5 | 53 | 2.558875 |
train_08081fec2186c11e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.099, 0, -0.033), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.901, 0.742).lineTo(0.901, 0.247).lineTo(0, 0.247).lineTo(0, -0.742).lineTo(-0.451, -0.742).lineTo(-0.451, -0.247).lineTo(-0.901, -0.247).lineTo(-0.901, 0.247).lineTo(-0.451, 0.247).li... | 12 | 118 | 0.301574 |
train_097cda662dcb7943 | import cadquery as cq
import math
result = cq.Workplane('XY').moveTo(0.769, 0.664).threePointArc((0.924, 0.596), (1, 0.436)).lineTo(1, 0.118).threePointArc((0.957, 0.035), (0.873, 0)).lineTo(-0.227, 0).threePointArc((-0.301, -0.031), (-0.332, -0.105)).lineTo(-0.332, -0.52).threePointArc((-0.374, -0.621), (-0.476, -0.66... | 7 | 47 | 1.443919 |
train_8a7e1c0d4f983383 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.19), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.422, 0.251).lineTo(0.422, -0.251).lineTo(-0.422, -0.251).lineTo(-0.422, 0.251).lineTo(0.422, 0.251).close().extrude(0.595, both=True)
result = result.union(cq.Workplane(cq.Plane(origin=(0, ... | 7 | 24 | 0.540802 |
train_38de8cad91776440 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.03, 0, -0.326), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.176, 1).lineTo(0.774, 0.65).lineTo(1.006, 0).lineTo(0.774, -0.65).lineTo(0.176, -1).lineTo(-0.506, -0.872).lineTo(-0.947, -0.346).lineTo(-0.947, 0.346).lineTo(-0.506, 0.872).lineTo(0.1... | 11 | 62 | 1.196193 |
train_074a2997eede34a3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.647), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.15, 0.131).threePointArc((0.158, 0.127), (0.162, 0.118)).lineTo(0.162, -0.083).threePointArc((0.148, -0.117), (0.114, -0.131)).lineTo(-0.129, -0.131).threePointArc((-0.152, -0.121), (-0.16... | 27 | 71 | 0.101729 |
train_74c2fbcf7d0351bb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.179, 0, -0.003), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.558, 0.58).threePointArc((0.71, 0.517), (0.774, 0.364)).lineTo(0.774, -0.484).threePointArc((0.745, -0.552), (0.677, -0.58)).lineTo(0.493, -0.58).threePointArc((0.418, -0.549), (0.387,... | 6 | 64 | 0.677645 |
train_0ada58544ef18556 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.069, 0.016, -0.386), normal=(0, 0, 1), xDir=(1, 0, 0))).workplane(offset=0).moveTo(0.875, 0.747).threePointArc((0.936, 0.727), (0.962, 0.681)).lineTo(0.962, 0.396).threePointArc((0.917, 0.315), (0.811, 0.281)).lineTo(0.421, 0.281).threePointArc... | 4 | 124 | 0.876303 |
train_318392b2d87ac0ca | import cadquery as cq
import math
result = cq.Workplane('XY').moveTo(0.429, 0.498).lineTo(0.429, -0.498).threePointArc((-0.429, 0), (0.429, 0.498)).close().extrude(1, taper=4.71, both=True)
result = result.edges(cq.selectors.NearestToPointSelector((-0.347, 0, 1))).fillet(0.172)
final_result = result
| 2 | 7 | 1.383557 |
train_520912a368a2af81 | import cadquery as cq
import math
result = cq.Workplane('XY').moveTo(0.027, 0.144).lineTo(0.073, 0.127).lineTo(0.096, 0.069).threePointArc((0.123, 0.071), (0.142, 0.052)).lineTo(0.026, -0.149).lineTo(-0.025, -0.119).lineTo(0.072, 0.049).lineTo(0.006, 0.087).lineTo(-0.091, -0.082).lineTo(-0.142, -0.052).lineTo(-0.026, 0... | 4 | 27 | 0.058892 |
train_c09c9298d0a42ce6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.363), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.622, 1).threePointArc((0.712, 0.962), (0.75, 0.872)).lineTo(0.75, -0.225).threePointArc((0.668, -0.418), (0.475, -0.5)).lineTo(-0.159, -0.5).threePointArc((-0.223, -0.527), (-0.25, -0.591)... | 5 | 34 | 1.137787 |
train_39d007da3e518eae | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.008, 0, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.133).lineTo(0.067, 0.114).lineTo(0.114, 0.067).lineTo(0.133, 0).lineTo(0.114, -0.067).lineTo(0.067, -0.114).lineTo(0, -0.133).lineTo(-0.067, -0.114).lineTo(-0.114, -0.067).lineTo(-0.133... | 5 | 24 | 0.150767 |
train_568c81491c642ddc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.467), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.895, 0.909).lineTo(0.895, 0.806).lineTo(1, 0.806).lineTo(1, -0.78).lineTo(0.869, -0.909).lineTo(-0.912, -0.909).threePointArc((-0.974, -0.884), (-1, -0.822)).lineTo(-1, 0.854).lineTo(-0.94... | 12 | 74 | 0.90334 |
train_69b7319b547da1f2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.084, -0.191), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(1, 0.392).lineTo(1, 0).lineTo(-1, 0).lineTo(-1, 0.392).lineTo(-0.595, 0.392).lineTo(-0.595, 0.191).lineTo(0.595, 0.191).lineTo(0.595, 0.392).lineTo(1, 0.392).close().extrude(0.17, both... | 8 | 50 | 0.203587 |
train_d9aab3b69710ac46 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.14), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.985, 0.376).lineTo(0.985, -0.263).threePointArc((0.952, -0.341), (0.872, -0.376)).lineTo(-0.838, -0.376).threePointArc((-0.943, -0.332), (-0.985, -0.229)).lineTo(-0.985, 0.226).lineTo(-0.83... | 6 | 28 | 0.242884 |
train_321218acf704618b | import cadquery as cq
import math
result = cq.Workplane('XY').moveTo(0.076, 0.428).threePointArc((0.113, 0), (0.076, -0.428)).lineTo(-0.076, -0.428).threePointArc((-0.113, 0), (-0.076, 0.428)).lineTo(0.076, 0.428).close().extrude(1, taper=-13.214, both=True)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.038, 0, -... | 5 | 30 | 0.859055 |
train_18d9effbb9a527c6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.003, -0.159), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.655).lineTo(1, -0.655).lineTo(-1, -0.655).lineTo(-1, 0.655).lineTo(1, 0.655).close().extrude(0.317)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.497, -0.003, 0.157), norm... | 15 | 79 | 0.691656 |
train_71c2709ba5ceb618 | import cadquery as cq
import math
result = cq.Workplane('XY').moveTo(0, 0.664).lineTo(0, 0.332).lineTo(0.332, 0.332).lineTo(0.332, 0).lineTo(0.664, 0).lineTo(0.664, -0.664).lineTo(-0.664, -0.664).lineTo(-0.664, -0.332).lineTo(-0.332, -0.332).lineTo(-0.332, 0.664).lineTo(0, 0.664).close().extrude(1, taper=-4.194, both=T... | 1 | 36 | 2.602964 |
train_5426e3485f8635c3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.59, 0, -0.138), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.294, 1).threePointArc((0.376, 0.851), (0.41, 0.769)).lineTo(0.41, -0.784).threePointArc((0.38, -0.855), (0.31, -1)).lineTo(-0.348, -1).threePointArc((-0.392, -0.866), (-0.41, -0.822)).... | 10 | 119 | 0.658792 |
train_573a16d2377b5545 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.277, -0.175, -0.091), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.169, 0.693).threePointArc((0.303, 0.638), (0.359, 0.509)).lineTo(0.359, 0.121).threePointArc((0.396, 0.036), (0.485, 0)).lineTo(0.605, 0).threePointArc((0.685, -0.033), (0.719, -0... | 18 | 284 | 0.643754 |
train_7f94f485996194a7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.719, -0.243, -0.118), normal=(1, 0, 0), xDir=(0, 1, 0))).moveTo(0.027, -0.78).lineTo(0.065, -0.281).lineTo(-0.181, -0.218).lineTo(-0.142, 0.281).lineTo(-0.388, 0.343).lineTo(-0.35, 0.842).lineTo(0.388, 0.655).lineTo(0.273, -0.842).close().moveT... | 11 | 225 | 1.132642 |
train_e825ce15e8577e17 | import cadquery as cq
import math
result = cq.Workplane('XZ').moveTo(1, 0.45).lineTo(0.495, 0).lineTo(1, -0.45).lineTo(0.325, -0.45).lineTo(0.325, 0.45).lineTo(1, 0.45).close().revolve(angleDegrees=360, axisStart=(0, 0, 0), axisEnd=(0, 1, 0))
result = result.cut(cq.Workplane('XY').circle(0.427).extrude(1.791, both=True... | 15 | 83 | 0.657479 |
train_2e5d06fa34a5dad6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.084, 0.123, -0.207), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.514, -0.892).threePointArc((-0.984, -0.028), (0.091, 0.681)).lineTo(0.878, 0.892).lineTo(0.197, 0.288).threePointArc((-0.591, 0.077), (-0.878, -0.422)).threePointArc((-0.38, -0.71)... | 2 | 38 | 0.536224 |
train_0c765a72f9906d26 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.038, 0, -0.481), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.919, 0.62).threePointArc((1.003, 0.599), (1.038, 0.549)).lineTo(1.038, 0.38).threePointArc((1.003, 0.331), (0.921, 0.31)).lineTo(0.71, 0.31).threePointArc((0.576, 0.276), (0.519, 0.19... | 7 | 202 | 0.546687 |
train_476c1e7ba18906dc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.086, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.907).lineTo(0.455, 0.788).lineTo(0.788, 0.455).lineTo(0.907, 0).lineTo(0.788, -0.455).lineTo(0.455, -0.788).lineTo(0, -0.907).lineTo(-0.455, -0.788).lineTo(-0.788, -0.455).lineTo(-0.90... | 7 | 38 | 3.761386 |
train_2aaae50adb5bbcaa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.295, -0.222, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.59).threePointArc((0.417, 0.417), (0.59, 0)).lineTo(0.298, 0).threePointArc((0.209, 0.209), (0, 0.298)).lineTo(0, 0.59).close().extrude(2)
result = result.union(cq.Workplane(cq.Pl... | 9 | 44 | 0.424945 |
train_1e328b8b116ef484 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.295, 0.327).threePointArc((0.358, 0.308), (0.386, 0.261)).lineTo(0.386, 0.124).threePointArc((0.353, 0.07), (0.278, 0.047)).lineTo(-0.222, 0.047).threePointArc((-0.247, 0.039), (-0.257, 0.021)... | 5 | 261 | 0.545526 |
train_efcf75a6651e5678 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.323), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.102).threePointArc((0.267, -0.378), (-1, -0.102)).threePointArc((-0.267, 0.378), (1, 0.102)).close().extrude(0.134)
result = result.union(cq.Workplane(cq.Plane(origin=(0.556, 0, -0.176)... | 5 | 16 | 0.167214 |
train_fd15aa2a3a2cace8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.242), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.745, -0.105).lineTo(0.987, -0.162).lineTo(0.977, -0.213).lineTo(0.734, -0.167).lineTo(0.703, -0.268).lineTo(0.926, -0.378).lineTo(0.906, -0.426).lineTo(0.679, -0.326).lineTo(0.626, -0.418)... | 3 | 116 | 0.987458 |
train_63b2a0eb63890549 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.005), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(1, 0.097).lineTo(0.829, 0).lineTo(1, -0.097).lineTo(0.196, -0.097).lineTo(0.196, 0.097).lineTo(1, 0.097).close().revolve(angleDegrees=360, axisStart=(0, 0, 0), axisEnd=(0, 1, 0))
result = re... | 11 | 68 | 0.293689 |
train_c6dd4f3bde952bc0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.893).extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, 0.391), normal=(0.899, 0, 0.439), xDir=(0.439, 0, -0.899))).circle(0.63).extrude(1.674))
result = result.cut(cq.Workpl... | 7 | 30 | 2.110468 |
train_7793bdc3eb1931ba | import cadquery as cq
import math
result = cq.Workplane('XY').circle(0.48).extrude(0.618, both=True)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.311).extrude(1, both=True))
result = result.cut(cq.Workplane('XY').circle(0.35).extrude(1.848, both=True))
result... | 5 | 26 | 0.460697 |
train_c625d18ae938d19e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.005, -0.565), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.427, 0.35).lineTo(-0.427, -0.147).threePointArc((-0.366, -0.186), (-0.221, -0.202)).lineTo(0.938, -0.202).threePointArc((1.037, -0.214), (1.08, -0.24)).lineTo(1.08, -0.341).threePoint... | 4 | 77 | 0.236863 |
train_9b1e30f07de752fa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.003, -0.676), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.968).extrude(0.756)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.968, 0.003, -0.676), normal=(0, 0, 1), xDir=(1, 0, 0))).pushPoints([(0, 0), (-0.481, 0.838), (-1.455, 0.838), (-... | 10 | 103 | 2.176171 |
train_40499811ad911c06 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.119), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.3, 2).extrude(0.238)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.055, 0.472, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.107, 0.193).threePointArc((0.103, 0.193), (0.11, 0.164))... | 5 | 36 | 0.119285 |
train_68ce6e5c969cd0dd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.002, 0, -0.126), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.653, 0.252).lineTo(0.92, 0.125).lineTo(1, 0.088).lineTo(1, 0).lineTo(0.887, 0).lineTo(0.887, 0.075).lineTo(0.786, 0.125).lineTo(0, 0.138).lineTo(0, 0.252).lineTo(0.653, 0.252).close()... | 8 | 89 | 0.264578 |
train_e847cb8577200b5b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.158, 0.672, 0.55), normal=(0.598, -0.61, -0.52), xDir=(0.714, 0.7, 0))).moveTo(0.11, 0.42).lineTo(0.427, -0.077).lineTo(0.279, -0.171).lineTo(0.024, 0.23).lineTo(-0.219, 0.076).lineTo(0.037, -0.326).lineTo(-0.11, -0.42).lineTo(-0.427, 0.077).lin... | 8 | 96 | 0.882017 |
train_d6b0f8d377114f04 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.491), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.695).lineTo(1, -0.567).lineTo(0.872, -0.695).lineTo(-0.742, -0.695).lineTo(-1, -0.437).lineTo(-1, 0.378).threePointArc((-0.907, 0.602), (-0.683, 0.695)).lineTo(1, 0.695).close().extrude... | 4 | 24 | 0.921099 |
train_80cb91f25a94d0e8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.09), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.772).lineTo(1, 0).lineTo(0.333, 0).lineTo(0.333, -0.772).lineTo(-1, -0.772).lineTo(-1, 0.772).lineTo(1, 0.772).close().extrude(0.18)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.... | 7 | 12 | 0.462999 |
train_2623f972808cfbd2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.114), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.819, 1).threePointArc((0.922, 0.948), (0.967, 0.841)).lineTo(0.967, -0.71).lineTo(0.685, -1).lineTo(-0.737, -1).threePointArc((-0.898, -0.923), (-0.967, -0.762)).lineTo(-0.967, 0.739).line... | 14 | 76 | 0.461289 |
train_9730bd935ecd0a44 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.434, -0.535, 0.304), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.001, 0.319).lineTo(0.265, 0.067).lineTo(0.095, -0.238).lineTo(-0.263, -0.229).lineTo(-0.265, 0.114).lineTo(-0.001, 0.319).close().extrude(0.346)
result = result.cut(cq.Workplane(... | 7 | 57 | 0.381677 |
train_18c21193ffaa41ac | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.197, -0.048, -0.045), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.441, 0.184).lineTo(-0.441, -0.082).threePointArc((-0.37, -0.117), (-0.2, -0.131)).lineTo(0.727, -0.131).threePointArc((0.764, -0.135), (0.779, -0.142)).lineTo(0.779, -0.187).thre... | 16 | 394 | 0.357021 |
train_f7584dd24f330f67 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.181, -0.336), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.668, 0.352).lineTo(0.698, 0.242).lineTo(0.255, 0.121).lineTo(0.285, 0.01).lineTo(0.728, 0.131).lineTo(0.819, -0.201).lineTo(0.265, -0.352).lineTo(0.235, -0.242).lineTo(0.678, -0.121).... | 5 | 202 | 2.796899 |
train_b5c74b27d1be7035 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.012, 0), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(1, 0.096).lineTo(0.845, 0).lineTo(1, -0.096).lineTo(0.248, -0.096).lineTo(0.248, 0.096).lineTo(1, 0.096).close().revolve(angleDegrees=360, axisStart=(0, 0, 0), axisEnd=(0, 1, 0))
result = r... | 14 | 61 | 0.217637 |
train_a91681d859d205da | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.096), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1, 0.567).lineTo(1, -0.567).lineTo(-1, -0.567).lineTo(-1, 0.567).lineTo(-0.846, 0.567).lineTo(-0.846, -0.06).lineTo(-0.692, -0.06).lineTo(-0.692, 0.567).lineTo(-0.538, 0.567).lineTo(-0.538, ... | 34 | 102 | 0.142265 |
train_2c05ed9d51d1a25d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.745, -0.374, -0.301), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.349, 0.978).threePointArc((0.349, 0.978), (0.698, 0.375)).threePointArc((0.349, -0.23), (-0.349, -0.23)).threePointArc((-0.698, 0.375), (-0.349, 0.978)).close().revolve(angleDeg... | 19 | 760 | 1.164325 |
train_f3cf7631b6eb8b31 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.048, -0.165, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.008, 0.056).threePointArc((-0.002, 0.053), (0, 0.047)).lineTo(0, 0.036).threePointArc((0.002, 0.03), (0.008, 0.028)).lineTo(0.023, 0.028).threePointArc((0.026, 0.026), (0.028, 0.023))... | 8 | 73 | 0.026665 |
train_ab8dacaf7c932f9b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.002, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.277, 0.645).threePointArc((0.655, 0.561), (0.815, 0.361)).lineTo(0.815, -0.52).threePointArc((0.745, -0.608), (0.578, -0.645)).lineTo(0.148, -0.645).threePointArc((0.044, -0.622), (0, -0.5... | 8 | 72 | 3.500722 |
train_8d2c0577a17a6f8c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.044, -0.004, -0.455), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.955, 0.444).lineTo(0.955, -0.444).lineTo(-0.955, -0.444).lineTo(-0.955, 0.444).lineTo(-0.657, 0.444).lineTo(-0.657, -0.292).lineTo(0.657, -0.292).lineTo(0.657, 0.444).lineTo(0.955... | 15 | 138 | 0.496859 |
train_3a9522cb892f8f7d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.258), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.698).lineTo(1, -0.361).lineTo(0.657, -0.361).lineTo(0.657, -0.698).lineTo(-0.445, -0.698).threePointArc((-0.829, -0.536), (-1, -0.147)).lineTo(-1, 0.361).lineTo(-0.659, 0.698).lineTo(1,... | 10 | 45 | 0.879577 |
train_e04508d9bd5a06ff | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.151, -0.278), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.2, 0.393).lineTo(-0.078, 0.361).lineTo(-0.108, 0.244).lineTo(0.138, 0.18).lineTo(0.169, 0.299).lineTo(0.292, 0.267).lineTo(0.2, -0.091).lineTo(0.078, -0.059).lineTo(0.108, 0.06).line... | 12 | 214 | 0.514452 |
train_652f055b3051154a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.493, -1.261, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.158, 1.761).lineTo(0.31, 1.331).lineTo(0.612, 0.99).lineTo(0.183, 0.838).lineTo(-0.158, 0.535).lineTo(-0.31, 0.965).lineTo(-0.612, 1.307).lineTo(-0.183, 1.458).lineTo(0.158, 1.761).cl... | 19 | 117 | 0.789144 |
train_bd38603740ae1584 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.003, -0.024, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.382, 0.904).lineTo(0.025, 0.285).threePointArc((0.018, 0.263), (0.021, 0.239)).lineTo(0.041, 0.182).threePointArc((0.049, 0.171), (0.063, 0.169)).lineTo(0.124, 0.18).threePointArc((0.1... | 3 | 71 | 3.291132 |
train_7b8e63a46a6306b7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.483, 0, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.516).extrude(0.855, both=True)
result = result.union(cq.Workplane(cq.Plane(origin=(0.483, 0, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.407).extrude(0.231, both=True))
result = result.... | 7 | 18 | 1.14787 |
train_1587ea5c3f358603 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.338), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.846, 0.716).lineTo(1, 0.57).lineTo(1, -0.488).threePointArc((0.925, -0.649), (0.768, -0.716)).lineTo(-1, -0.716).lineTo(-1, 0.606).threePointArc((-0.96, 0.683), (-0.882, 0.716)).lineTo(0.8... | 8 | 69 | 0.774718 |
train_ffd0aeda324424a8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.105), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.867, 0.989).threePointArc((0.955, 0.958), (1, 0.884)).lineTo(1, 0.59).threePointArc((0.955, 0.518), (0.868, 0.487)).lineTo(0.445, 0.487).threePointArc((0.342, 0.45), (0.3, 0.364)).lineTo(0... | 10 | 69 | 0.370785 |
train_d0f1209a9285b184 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.003, 0, -0.328), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.003, 0.436).lineTo(1.003, -0.128).lineTo(0.693, -0.436).lineTo(-0.776, -0.436).lineTo(-1.003, -0.21).lineTo(-1.003, 0.221).threePointArc((-0.94, 0.374), (-0.788, 0.436)).lineTo(1.003,... | 6 | 35 | 0.58603 |
train_9a4a352556ae91ff | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.41, -0.159, 0.391), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.589, 0.161).lineTo(-0.589, -0.585).threePointArc((0.348, 0.585), (0.589, 0.161)).close().extrude(0.495, both=True)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.261, -0.537, ... | 20 | 277 | 1.319846 |
train_be61f76822864d5e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.073, -0.594, -0.607), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.088, 0.199).lineTo(0.272, 0.103).lineTo(0.522, 0.01).lineTo(0.365, -0.073).lineTo(0.372, -0.109).threePointArc((0.338, -0.157), (0.271, -0.148)).lineTo(0.226, -0.199).lineTo(0.20... | 15 | 138 | 0.427551 |
train_b0264806c7b016f1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.215, 0, 0.206), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.784, 0).threePointArc((0, -0.723), (-0.784, 0)).threePointArc((0, 0.723), (0.784, 0)).close().extrude(0.065, taper=12.202)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.123, -0.0... | 8 | 165 | 0.223267 |
train_143fb0995b42ae59 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.252), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.478, 0.749).lineTo(1, 0.23).lineTo(1, -0.014).threePointArc((0.779, -0.533), (0.262, -0.749)).lineTo(-0.645, -0.749).lineTo(-0.645, -0.398).lineTo(-1, -0.398).lineTo(-1, 0.127).threePointA... | 12 | 98 | 0.660734 |
train_67f33cdfb12d06f4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.397, 0, -0.168), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.522, 0.2).threePointArc((0.58, 0.176), (0.603, 0.118)).lineTo(0.603, -0.139).lineTo(0.543, -0.139).lineTo(0.543, -0.2).lineTo(-0.532, -0.2).threePointArc((-0.583, -0.179), (-0.603, -0.... | 9 | 54 | 0.237775 |
train_2a7a5b3b2f775a6f | import cadquery as cq
import math
result = cq.Workplane('XY').moveTo(1, 0.24).lineTo(1, 0.118).threePointArc((0.971, 0.099), (0.901, 0.09)).lineTo(0.426, 0.09).threePointArc((0.336, 0.08), (0.298, 0.054)).lineTo(0.298, -0.233).threePointArc((0.272, -0.25), (0.21, -0.258)).lineTo(-0.176, -0.258).threePointArc((-0.262, -... | 3 | 26 | 1.205365 |
train_2df60fdf8e2aff70 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.794), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(1, 1.587).lineTo(1, 0.588).lineTo(0.307, 0.588).lineTo(0.307, 0).lineTo(0, 0).lineTo(0, 1.587).lineTo(1, 1.587).close().revolve(angleDegrees=360, axisStart=(0, 0, 0), axisEnd=(0, 1, 0))
res... | 2 | 6 | 3.20917 |
train_cc0964c011ebaf47 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.062), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.363, 0.646).lineTo(1, 0.014).lineTo(1, -0.014).threePointArc((0.81, -0.46), (0.363, -0.646)).lineTo(-0.466, -0.646).lineTo(-1, -0.115).lineTo(-1, 0.275).lineTo(-0.624, 0.646).lineTo(0.363,... | 9 | 104 | 0.159004 |
train_b750126575edf633 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.074, 0.179, 0.156), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.447, 0.544).lineTo(0.925, 0.126).lineTo(0.894, 0.055).lineTo(0.915, -0.031).lineTo(0.124, -0.565).lineTo(-0.904, -0.274).lineTo(-0.925, -0.101).lineTo(0.241, 0.565).lineTo(0.337, 0... | 12 | 79 | 1.021335 |
train_12809618ff588cbb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.012, -0.37), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.114).lineTo(1, -0.057).lineTo(1, -0.114).lineTo(-1, -0.114).lineTo(-1, -0.057).lineTo(-1, 0.114).lineTo(-0.553, 0.114).lineTo(-0.553, -0.057).lineTo(-0.111, -0.057).lineTo(-0.111, 0... | 19 | 182 | 0.075696 |
train_f08488541d7cc25f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.22), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.272, 1.041).threePointArc((-0.081, 0.984), (0, 0.85)).lineTo(0, 0.508).threePointArc((0.068, 0.395), (0.229, 0.347)).lineTo(0.598, 0.347).threePointArc((0.875, 0.265), (0.992, 0.072)).line... | 3 | 100 | 0.987469 |
train_4b7687e4a1ffc306 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.059, -0.902, -0.043), normal=(-0.138, 0.957, -0.254), xDir=(-0.99, -0.143, 0))).moveTo(-0.053, 0.347).threePointArc((0.045, 0.335), (0.136, 0.272)).threePointArc((0.206, 0.167), (0.245, 0.038)).threePointArc((0.247, -0.098), (0.211, -0.218)).thr... | 2 | 28 | 0.31977 |
train_99d548b15fe4e051 | import cadquery as cq
import math
result = cq.Workplane('XY').moveTo(0.913, 0.689).threePointArc((0.954, 0.671), (0.972, 0.629)).lineTo(0.972, 0.377).threePointArc((0.952, 0.33), (0.906, 0.311)).lineTo(0.394, 0.311).threePointArc((0.25, 0.25), (0.189, 0.106)).lineTo(0.189, -0.616).threePointArc((0.167, -0.667), (0.116,... | 3 | 18 | 2.243283 |
train_137d97cc77ddfb00 | import cadquery as cq
import math
result = cq.Workplane('XZ').moveTo(1, 0.299).lineTo(0.68, 0).lineTo(1, -0.299).lineTo(0.337, -0.299).lineTo(0.337, 0.299).lineTo(1, 0.299).close().revolve(angleDegrees=360, axisStart=(0, 0, 0), axisEnd=(0, 1, 0))
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.548, 0, 0), normal=(... | 10 | 93 | 0.571649 |
train_a4ba0461188ff9f5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-2.657, -2.688, -6.613), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.263, 6.709).lineTo(1.631, 3.631).lineTo(4.385, 4.859).lineTo(5.999, 1.254).lineTo(3.228, 0.026).lineTo(4.605, -3.043).lineTo(-0.263, -5.21).lineTo(-1.631, -2.14).lineTo(-4.385, -... | 10 | 20 | 1.18311 |
train_68b78c678dd1df09 | import cadquery as cq
import math
result = cq.Workplane('XY').moveTo(-0.672, 0.173).lineTo(-0.672, -0.125).lineTo(1, -0.125).lineTo(1, -0.173).lineTo(-1, -0.173).lineTo(-1, 0.173).lineTo(-0.672, 0.173).close().extrude(0.26, both=True)
result = result.edges().chamfer(0.016)
result = result.edges(cq.selectors.NearestToPo... | 3 | 39 | 0.099179 |
train_51e4536bddbaf213 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.925, 0.5, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.078, 0.819).threePointArc((0.337, 0.761), (0.554, 0.481)).threePointArc((0.446, 0.143), (0.078, -0.055)).threePointArc((-0.337, 0.004), (-0.554, 0.284)).threePointArc((-0.446, 0.622), (... | 15 | 598 | 1.248719 |
train_e4e607eb1f2049be | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.119, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.027, 0.196).lineTo(0.083, 0.181).threePointArc((0.096, 0.17), (0.111, 0.164)).lineTo(0.16, 0.115).threePointArc((0.168, 0.095), (0.182, 0.078)).lineTo(0.195, 0.029).threePointArc((0.191, ... | 7 | 46 | 0.196864 |
train_b9398d20dbe1b495 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.004, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.14, 0.65).lineTo(0.165, 0.623).threePointArc((0.206, 0.512), (0.374, 0.37)).threePointArc((0.502, 0.123), (0.394, -0.138)).lineTo(0.375, -0.169).threePointArc((-0.017, -0.667), (-0.425, -0.... | 7 | 109 | 1.611328 |
train_221aaa57374494c5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.01, 0.199, 0.181), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.828, -0.14).threePointArc((0.826, -0.194), (0.819, -0.247)).threePointArc((0.807, -0.3), (0.791, -0.352)).threePointArc((0.77, -0.402), (0.745, -0.452)).threePointArc((0.715, -0.499)... | 9 | 135 | 0.474518 |
train_15996a359551d6d6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.355), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 1).lineTo(0.707, 0.707).lineTo(1, 0).lineTo(0.707, -0.707).lineTo(0, -1).lineTo(-0.707, -0.707).lineTo(-1, 0).lineTo(-0.707, 0.707).lineTo(0, 1).close().extrude(0.71)
result = result.cut(... | 4 | 30 | 1.452111 |
train_cfea18924a3a912d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.357, -0.285), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.228, 0.642).threePointArc((0.354, 0.59), (0.406, 0.465)).lineTo(0.406, -0.393).threePointArc((0.333, -0.569), (0.157, -0.642)).lineTo(-0.199, -0.642).threePointArc((-0.345, -0.582), (-... | 6 | 48 | 0.571831 |
train_358ba846d3bb5867 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.249, 0, 0.117), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.266, 0.712).lineTo(0.266, 0.266).lineTo(1.249, 0.266).lineTo(1.249, 0).lineTo(0, 0).lineTo(0, 0.712).lineTo(0.266, 0.712).close().extrude(0.487, both=True)
result = result.cut(cq.Work... | 6 | 38 | 0.552828 |
train_0e52a10979053abf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.039, -0.057, -0.153), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.579, 0.193).threePointArc((-0.964, 0.193), (-0.964, 0.579)).threePointArc((0.193, 0.964), (0.964, -0.193)).threePointArc((0.964, -0.579), (0.579, -0.579)).threePointArc((-0.193, ... | 4 | 79 | 0.161083 |
train_729802fafdeb0179 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.229, -0.142, 0.184), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.433, 0.393).lineTo(0.766, 0.161).lineTo(0.38, -0.393).lineTo(0.269, -0.316).lineTo(0.578, 0.128).lineTo(0.467, 0.205).lineTo(0.158, -0.239).lineTo(0.047, -0.161).lineTo(0.433, 0.3... | 10 | 296 | 0.842284 |
train_eaec844c49809ea5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.334, -0.107), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.333, 1).lineTo(0.333, 0.333).lineTo(1, 0.333).lineTo(1, -0.333).lineTo(-0.333, -0.333).lineTo(-0.333, -1).lineTo(-1, -1).lineTo(-1, 1).lineTo(0.333, 1).close().extrude(0.214, taper=13... | 11 | 20 | 0.282326 |
train_e87ef2496857422a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.125), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.042, 2).extrude(0.25)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, -0.125), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.424, -0.098).lineTo(0.424, -0.902).lineTo(-0.424, -0.902).... | 11 | 53 | 0.167584 |
train_4db81402b091e2d7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.144), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.204, 0.24).threePointArc((0.316, 0.194), (0.362, 0.083)).lineTo(0.362, -0.065).threePointArc((0.311, -0.189), (0.187, -0.24)).lineTo(-0.217, -0.24).lineTo(-0.362, -0.095).lineTo(-0.362, 0.0... | 10 | 59 | 0.312035 |
train_bfcdc13d8ceb1c87 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.324), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.852, 0.507).lineTo(0.91, 0.397).lineTo(1, 0.177).lineTo(1, 0).lineTo(0.857, 0).lineTo(0.857, 0.152).lineTo(0.762, 0.397).lineTo(0, 0.374).lineTo(0, 0.507).lineTo(0.852, 0.507).close().rev... | 12 | 69 | 0.532198 |
train_6f7348eb79cdba44 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.186), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(1, 0.674).lineTo(1, 0).lineTo(-1, 0).lineTo(-1, 0.674).lineTo(-0.828, 0.674).lineTo(-0.828, 0.167).lineTo(0.828, 0.167).lineTo(0.828, 0.674).lineTo(1, 0.674).close().extrude(0.228, both=Tru... | 12 | 103 | 0.210943 |
train_a75e2813771a4c75 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.25), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.654).lineTo(1, -0.622).lineTo(0.958, -0.622).lineTo(0.958, -0.654).lineTo(-1, -0.654).lineTo(-1, 0.625).lineTo(-0.964, 0.625).lineTo(-0.964, 0.654).lineTo(1, 0.654).close().extrude(0.501... | 14 | 54 | 1.220993 |
train_f781c5a810eeff0a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.005, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.162, 0.316).lineTo(0.014, -0.126).threePointArc((0.016, -0.134), (0.029, -0.135)).lineTo(0.212, -0.107).threePointArc((0.383, -0.155), (0.298, -0.319)).lineTo(-0.208, -0.393).threePointAr... | 9 | 14 | 0.67253 |
train_c3993239d6bd87e6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.224, 0, -0.01), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.707, 0.776).threePointArc((0.755, 0.755), (0.776, 0.707)).lineTo(0.776, 0.538).threePointArc((0.754, 0.487), (0.702, 0.465)).lineTo(-0.401, 0.465).threePointArc((-0.447, 0.447), (-0.46... | 9 | 66 | 0.160265 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.