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_ceaefa688847c0b4 | import cadquery as cq
import math
result = cq.Workplane('XY').box(1.564, 1.807, 2)
result = result.edges().fillet(0.344)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.194).extrude(3.128, both=True))
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0), nor... | 5 | 32 | 4.608779 |
train_a6b6b6c797a52f83 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.003, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.48, 0.608).lineTo(0.871, -0.371).threePointArc((0.35, -0.715), (-0.232, -0.571)).threePointArc((-0.625, -0.167), (-0.871, 0.632)).threePointArc((-0.538, 0.715), (-0.145, 0.31)).lineTo(0.48,... | 5 | 43 | 0.890606 |
train_c1763041073f508e | 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.826).extrude(0.463)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.826, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).pushPoints([(0, 0), (-0.082, 0.359), (-0.311, 0.646), (-0.642, 0.806), (... | 4 | 61 | 1.5616 |
train_fa8e54a8cf18194c | import cadquery as cq
import math
result = cq.Workplane('XY').box(2, 1.719, 1.786)
result = result.edges().fillet(0.208)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(1, 0, 0), xDir=(0, 1, 0))).circle(0.346).extrude(4, both=True))
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=... | 8 | 60 | 3.71643 |
train_2cf4ecfecce4bb84 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.035, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.008, 0.394).lineTo(0.2, 0.339).lineTo(0.345, 0.189).lineTo(0.394, 0.004).lineTo(0.336, -0.205).lineTo(0.198, -0.34).lineTo(0.005, -0.394).lineTo(-0.191, -0.344).lineTo(-0.346, -0.188).lin... | 6 | 58 | 0.868864 |
train_4bdc53b9a6161717 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.222, -0.107, -0.486), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.418, 0.229).threePointArc((0.451, 0.215), (0.465, 0.181)).lineTo(0.465, -0.18).threePointArc((0.451, -0.215), (0.417, -0.229)).lineTo(-0.416, -0.229).threePointArc((-0.45, -0.215... | 9 | 70 | 0.676461 |
train_e1e9ae613a349444 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.138), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.948, 0.276).lineTo(0.94, 0.225).lineTo(1, 0.096).lineTo(1, 0).lineTo(0.985, 0).lineTo(0.985, 0.083).lineTo(0.882, 0.225).lineTo(0, 0.239).lineTo(0, 0.276).lineTo(0.948, 0.276).close().rev... | 10 | 36 | 0.215543 |
train_0bc021776f045348 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.012, -0.3, -0.796), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.629, 0.467).threePointArc((0.839, 0), (0.839, -0.467)).lineTo(-0.839, -0.467).lineTo(-0.839, 0).lineTo(-0.839, 0.467).lineTo(-0.629, 0).lineTo(-0.42, 0.467).lineTo(-0.21, 0).lineTo... | 8 | 31 | 1.395432 |
train_b2ee2a0bbe022394 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.043, -0.874), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.269, 1.748).lineTo(0.269, 1.451).lineTo(0.913, 1.451).lineTo(0.913, 1.106).lineTo(1, 1.106).lineTo(1, 0.975).lineTo(0.585, 0.975).lineTo(0.585, 0).lineTo(0, 0).lineTo(0, 1.748).lineTo... | 7 | 45 | 1.537724 |
train_008861515f4f478c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.027, -0.025), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.383, 0.242).lineTo(0.62, 0.005).lineTo(0.62, -0.114).threePointArc((0.582, -0.204), (0.492, -0.242)).lineTo(-0.62, -0.242).lineTo(-0.62, 0.044).threePointArc((-0.561, 0.183), (-0.421,... | 7 | 37 | 0.426352 |
train_8e4e533db32e3c64 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.745, -0.608, -0.839), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 1.608).threePointArc((1.136, 1.136), (1.608, 0)).lineTo(1.01, 0).threePointArc((0.714, 0.714), (0, 1.01)).lineTo(0, 1.608).close().extrude(1.678)
result = result.union(cq.Workpl... | 12 | 298 | 2.693823 |
train_cf2c9cc6793bc4bb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.014, -0.335, -0.085), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, 0.409).threePointArc((0.289, 0.289), (0.409, 0)).threePointArc((0.289, -0.289), (0, -0.409)).threePointArc((-0.289, -0.289), (-0.409, 0)).threePointArc((-0.289, 0.289), (0, 0.4... | 7 | 130 | 0.273681 |
train_f865bf81ca92558a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.318), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.883, 0.405).lineTo(1, 0.287).lineTo(1, -0.126).lineTo(0.721, -0.405).lineTo(-0.845, -0.405).lineTo(-1, -0.249).lineTo(-1, 0.281).lineTo(-0.877, 0.405).lineTo(0.883, 0.405).close().extrude(... | 6 | 96 | 0.142156 |
train_fadab68a1f783cb7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.864, 1, 0.029), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.071, 1.654).threePointArc((0.168, 1.624), (0.385, 1.517)).lineTo(0.933, 0.877).lineTo(0.554, 0.073).threePointArc((0.167, 0.17), (-0.078, 0.29)).threePointArc((-0.314, 0.273), (-0.499... | 6 | 36 | 4.129545 |
train_77c089e1b1c979c1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.051), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.907, 0.303).threePointArc((0.967, 0.278), (1, 0.218)).lineTo(1, -0.145).threePointArc((0.946, -0.257), (0.834, -0.303)).lineTo(-0.794, -0.303).lineTo(-1, -0.103).lineTo(-1, 0.303).lineTo(0.... | 18 | 223 | 0.266348 |
train_963724c03e142df3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.291, 0, -0.408), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.708, 0.636).lineTo(0.708, 0.179).lineTo(0.089, 0.179).lineTo(0.089, 0).lineTo(0, 0).lineTo(0, 0.636).lineTo(0.708, 0.636).close().revolve(angleDegrees=360, axisStart=(0, 0, 0), axisEn... | 11 | 83 | 0.737663 |
train_0ff021d470be0fe2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.034, -0.035, -0.158), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.586, -0.567).threePointArc((-0.115, -0.517), (-0.783, -0.733)).lineTo(-0.829, -0.745).lineTo(-0.871, -0.732).threePointArc((-0.4, 0.745), (0.871, -0.61)).threePointArc((0.839, -0.... | 2 | 14 | 0.109193 |
train_efb5da511477c556 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.606), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(1, 1.211).lineTo(1, 0.566).lineTo(0.758, 0.566).lineTo(0.758, 0).lineTo(0.071, 0).lineTo(0.071, 1.211).lineTo(1, 1.211).close().revolve(angleDegrees=360, axisStart=(0, 0, 0), axisEnd=(0, 1,... | 9 | 51 | 2.182138 |
train_2d42c548965cef94 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.144, 0.091, -0.257), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.893, 0.232).threePointArc((0.893, 0), (-0.893, -0.232)).lineTo(-0.893, 0.232).close().extrude(0.082)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.439, 0.785, -0.225), n... | 11 | 163 | 0.567361 |
train_8ffe3e948b82ed30 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.213), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.851, 0.909).threePointArc((0.95, 0.861), (1, 0.751)).lineTo(1, 0.539).threePointArc((0.97, 0.481), (0.92, 0.457)).lineTo(0.673, 0.457).threePointArc((0.62, 0.43), (0.597, 0.369)).lineTo(0.... | 10 | 86 | 0.922014 |
train_e193e5c8bcb86817 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.089, -0.392), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.298).lineTo(1, 0.1).threePointArc((0.965, 0.073), (0.9, 0.062)).lineTo(0.481, 0.062).threePointArc((0.371, 0.043), (0.326, -0.002)).lineTo(0.326, -0.271).threePointArc((0.284, -0.3... | 12 | 118 | 0.690094 |
train_18749836175fa659 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.943), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.527, 1.885).lineTo(0.527, 1.389).lineTo(1, 1.389).lineTo(1, 0.508).lineTo(0.486, 0.508).lineTo(0.486, 0).lineTo(0, 0).lineTo(0, 1.885).lineTo(0.527, 1.885).close().revolve(angleDegrees=36... | 6 | 62 | 2.115908 |
train_80737d95e2cb36aa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.164), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.444, 1).lineTo(0.746, 0.7).lineTo(0.746, -0.627).threePointArc((0.637, -0.89), (0.373, -1)).lineTo(-0.515, -1).lineTo(-0.746, -0.771).lineTo(-0.746, 0.589).threePointArc((-0.624, 0.879), (... | 14 | 415 | 0.725486 |
train_9312eab20b6adb7f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.297), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.942, 0.602).lineTo(0.942, 0.544).lineTo(1, 0.544).lineTo(1, -0.561).lineTo(0.959, -0.561).lineTo(0.959, -0.602).lineTo(-0.95, -0.602).lineTo(-0.95, -0.552).lineTo(-1, -0.552).lineTo(-1, 0.... | 18 | 153 | 0.675892 |
train_ac343aeead85193d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.056, 0.023, -0.532), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.17, 0.162).lineTo(0.17, -0.162).lineTo(-0.17, -0.162).lineTo(-0.17, -0.054).lineTo(0.122, -0.054).lineTo(0.122, 0.054).lineTo(-0.17, 0.054).lineTo(-0.17, 0.162).lineTo(0.17, 0.162)... | 17 | 133 | 0.11845 |
train_a0997d67f5771409 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.112, 0.35, 0.095), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.65, 0).threePointArc((0, -0.65), (-0.65, 0)).threePointArc((0, 0.65), (0.65, 0)).close().sweep(cq.Workplane(cq.Plane(origin=(-0.112, 0.35, 0.095), normal=(0, -1, 0), xDir=(1, 0, 0))... | 7 | 23 | 2.411106 |
train_e71cbdc66b299cee | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.022, 0.044, -0.162), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.372, 0.638).lineTo(-0.034, 0.172).lineTo(-0.079, -0.115).threePointArc((0.539, -0.406), (0.562, 0.189)).threePointArc((0.375, 0.283), (0.345, 0.444)).lineTo(0.402, 0.502).lineTo(0... | 5 | 59 | 0.325133 |
train_a668342744d92e24 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.138, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.662, 0.664).lineTo(0.662, -0.664).threePointArc((-0.662, 0.664), (0.662, 0.664)).close().extrude(2, taper=13.844)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.468, 0.341, -2.217), ... | 9 | 6 | 3.733059 |
train_b3c54e23aa1fbec2 | 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.194, 0.197).lineTo(0.194, 0.134).lineTo(-0.11, 0.134).lineTo(-0.11, -0.134).lineTo(0.194, -0.134).lineTo(0.194, -0.197).lineTo(-0.194, -0.197).lineTo(-0.194, 0.197).lineTo(0.194, 0.197).close(... | 2 | 23 | 0.135055 |
train_81a20002d23e0afd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.221, -0.081, 0.17), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.384, 0.671).threePointArc((0.438, 0.646), (0.461, 0.586)).lineTo(0.461, 0.428).threePointArc((0.487, 0.363), (0.547, 0.335)).lineTo(0.722, 0.335).threePointArc((0.755, 0.32), (0.76... | 19 | 211 | 0.316632 |
train_1b7d35d7df1b5ea4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.07, -0.002, -0.971), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.19, 0.015).threePointArc((0.18, -0.025), (0.14, -0.015)).threePointArc((0.15, 0.025), (0.19, 0.015)).close().sweep(cq.Workplane(cq.Plane(origin=(-0.07, -0.002, -0.971), normal=(0... | 3 | 20 | 0.143459 |
train_b12861f3993f212c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.024, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.145, 0.821).lineTo(0.637, 0.536).lineTo(0.829, 0).lineTo(0.637, -0.536).lineTo(0.145, -0.821).lineTo(-0.416, -0.722).lineTo(-0.782, -0.284).lineTo(-0.782, 0.284).lineTo(-0.416, 0.722).lin... | 7 | 40 | 0.383809 |
train_62c51256b21d3798 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.106, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.026, 0.278).lineTo(-0.026, 0.03).lineTo(0.121, 0.03).lineTo(0.121, -0.066).lineTo(-0.121, -0.066).lineTo(-0.121, 0.278).lineTo(-0.026, 0.278).close().extrude(2)
result = result.cut(cq.Wor... | 16 | 54 | 0.072046 |
train_22a5cb6c9adb5626 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.101, 0.122, 0.059), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.354, 0.614).threePointArc((0.354, 0.614), (0.709, 0)).threePointArc((0.354, -0.614), (-0.354, -0.614)).threePointArc((-0.709, 0), (-0.354, 0.614)).close().sweep(cq.Workplane(cq.Pl... | 3 | 16 | 1.444926 |
train_0d8b331490846e0c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.307, 0, -0.12), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.692, 0.583).lineTo(0.692, -0.52).lineTo(0.629, -0.583).lineTo(-0.692, -0.583).lineTo(-0.692, 0.536).threePointArc((-0.678, 0.57), (-0.645, 0.583)).lineTo(0.692, 0.583).close().extrude(... | 8 | 217 | 0.466181 |
train_e1d7c7c395091bba | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.332, 0.204), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.481, -0.328).lineTo(-1, 0.328).lineTo(1, 0.328).lineTo(0.481, -0.328).lineTo(-0.481, -0.328).close().extrude(1.438, both=True).intersect(cq.Workplane(cq.Plane(origin=(0, -0.332, 0.204... | 7 | 54 | 0.864658 |
train_1ccbb33b2c18eeea | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.24), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.33).lineTo(1, 0.204).lineTo(-0.605, 0.204).lineTo(-0.605, -0.204).lineTo(1, -0.204).lineTo(1, -0.33).lineTo(-1, -0.33).lineTo(-1, 0.33).lineTo(1, 0.33).close().extrude(0.479)
result = re... | 5 | 10 | 0.395807 |
train_9b95eec3bace237c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.475), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(1.006).extrude(0.949)
result = result.cut(cq.Workplane(cq.Plane(origin=(1.006, 0, -0.475), normal=(0, 0, 1), xDir=(1, 0, 0))).pushPoints([(0, 0), (-0.134, 0.504), (-0.502, 0.872), (-1.006, 1... | 8 | 124 | 2.337672 |
train_cdce0bfdd1fe7eec | 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(0.328, 1).threePointArc((0.384, 0.972), (0.408, 0.926)).lineTo(0.408, 0.456).threePointArc((0.454, 0.368), (0.56, 0.331)).lineTo(0.752, 0.331).threePointArc((0.794, 0.317), (0.812, 0.282)).li... | 3 | 43 | 0.227515 |
train_76c375615b5792df | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.184, -1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.53, 0.558).threePointArc((0.874, 0.214), (0.53, -0.13)).lineTo(0.177, -0.071).lineTo(-0.177, -0.19).lineTo(-0.53, -0.13).threePointArc((-0.874, 0.214), (-0.53, 0.558)).lineTo(0.53, 0.558)... | 11 | 381 | 2.084636 |
train_c5618c72a3b0ca2a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.158, -0.536), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.285, 0.765).lineTo(0.285, -0.081).lineTo(-0.285, -0.081).lineTo(-0.285, 0.765).lineTo(-0.129, 0.765).lineTo(-0.129, 0.389).lineTo(0.129, 0.389).lineTo(0.129, 0.765).lineTo(0.285, 0.7... | 20 | 321 | 0.992523 |
train_ca1a3e52bd2d2428 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.279, 0, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).box(1.441, 1.049, 1.504)
result = result.edges().fillet(0.034)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.279, 0, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.172).extrude(2.882, both=Tr... | 7 | 45 | 1.968346 |
train_c81052ec1baeb435 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.675, 0, -1), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.277, 2).lineTo(0.277, 0.277).lineTo(1.349, 0.277).lineTo(1.349, 0).lineTo(0, 0).lineTo(0, 2).lineTo(0.277, 2).close().extrude(0.71, both=True)
result = result.cut(cq.Workplane(cq.Plane(o... | 6 | 26 | 1.172364 |
train_ae801c0bdeabcc3d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.001, -0.037, 0.239), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.828, 0.198).threePointArc((0.922, 0.163), (0.828, 0.129)).lineTo(0.166, 0.124).lineTo(0.166, -0.203).lineTo(-0.185, -0.203).lineTo(-0.185, -0.045).lineTo(-0.268, -0.031).lineTo(-0.... | 4 | 62 | 0.105787 |
train_c8450dded098f450 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.036, 0.008), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.713, 0.201).threePointArc((0.998, 0.1), (0.856, -0.033)).threePointArc((0.57, -0.134), (0.428, -0.201)).threePointArc((-0.143, -0.234), (-0.57, -0.167)).threePointArc((-0.998, 0), (-0.... | 15 | 117 | 0.124776 |
train_d40ac09b07963ea4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.116, 1.389, -0.428), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.19, 0.454).lineTo(1.128, -0.454).threePointArc((-1.128, -0.367), (-0.19, 0.454)).close().extrude(0.658)
result = result.union(cq.Workplane(cq.Plane(origin=(0.588, 0.954, 0.23), no... | 20 | 113 | 0.252441 |
train_83b462e1624a3f85 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.138, -0.148), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.99, -0.286).lineTo(0.409, -0.687).lineTo(-0.414, -0.686).lineTo(-1, -0.283).lineTo(-0.99, 0.286).lineTo(-0.409, 0.687).lineTo(0.414, 0.686).lineTo(1, 0.283).close().moveTo(0.213, 0.15... | 9 | 128 | 1.719493 |
train_e2360c720b52ead3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.076, 0.006), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.698, 0.131).lineTo(0.923, 0.071).lineTo(0.869, -0.131).lineTo(0.831, -0.121).lineTo(0.84, -0.088).lineTo(0.804, -0.077).lineTo(0.813, -0.044).lineTo(0.775, -0.034).lineTo(0.784, 0).li... | 11 | 139 | 1.341471 |
train_e8d9c8b00f773dcd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.014, 0.26, 0.064), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.085, 0.728).lineTo(0.886, -0.045).threePointArc((-0.886, -0.728), (0.085, 0.728)).close().moveTo(-0.1, -0.022).threePointArc((-0.073, -0.244), (-0.245, -0.078)).lineTo(-0.1, -0.022)... | 5 | 145 | 0.800639 |
train_5bb1b685f6b87ab7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.032, 0.012, -0.969), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.213, 0.015).threePointArc((0.213, -0.015), (0.187, -0.03)).threePointArc((0.161, -0.015), (0.161, 0.015)).threePointArc((0.187, 0.03), (0.213, 0.015)).close().sweep(cq.Workplane(... | 7 | 100 | 0.087039 |
train_b56f0fe519ba7dea | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.611, -0.238, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 1.221).threePointArc((0.863, 0.863), (1.221, 0)).lineTo(0.441, 0).threePointArc((0.313, 0.313), (0, 0.441)).lineTo(0, 1.221).close().extrude(2)
result = result.union(cq.Workplane(cq... | 8 | 48 | 2.229281 |
train_ee6fb582ac701ec7 | 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.365).extrude(1.729)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, 0.21), normal=(0.339, 0, 0.941), xDir=(0.941, 0, -0.339))).circle(0.246).extrude(2.002))
result = result.cut(cq.Wo... | 10 | 8 | 0.264026 |
train_c260ea4f2db52a01 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.2, 0, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.2, 1).lineTo(0.2, 0.6).lineTo(0.6, 0.6).lineTo(0.6, 0.2).lineTo(1, 0.2).lineTo(1, -0.6).lineTo(0.6, -0.6).lineTo(0.6, -1).lineTo(0.2, -1).lineTo(0.2, -0.2).lineTo(-0.6, -0.2).lineTo(-0.6, 0.... | 13 | 38 | 2.621702 |
train_bcb3df9c66f5d458 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.218, 0.029, 0.85), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.219, -0.159).lineTo(0.112, -0.2).lineTo(-0.008, -0.201).lineTo(-0.117, -0.162).lineTo(-0.192, -0.09).lineTo(-0.219, 0).lineTo(-0.192, 0.09).lineTo(-0.117, 0.162).lineTo(-0.008, 0.201... | 10 | 197 | 1.022955 |
train_b74397589ff7fa31 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.625), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.402, 1.249).lineTo(0.402, 0.161).lineTo(1, 0.161).lineTo(1, 0).lineTo(0.05, 0).lineTo(0.05, 1.249).lineTo(0.402, 1.249).close().revolve(angleDegrees=360, axisStart=(0, 0, 0), axisEnd=(0, ... | 3 | 17 | 1.085819 |
train_c4946257de4987ec | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.2), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.139, 2).extrude(0.4)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.569, -0.613, 0.128), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.678, 0.759).lineTo(-0.436, 0.512).lineTo(-0.159, 0.36... | 8 | 33 | 0.686447 |
train_dc8f590ccc07f216 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.119, 0, -0.104), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.442, 0.808).threePointArc((-0.404, 0.792), (-0.388, 0.754)).lineTo(-0.388, -0.126).threePointArc((-0.33, -0.261), (-0.194, -0.318)).lineTo(0.762, -0.318).threePointArc((0.845, -0.353)... | 7 | 292 | 0.375169 |
train_5fd1bafaab4e371c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.116, -0.255, 0.09), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.319, 0.255).threePointArc((0, -0.064), (-0.319, 0.255)).threePointArc((0, 0.573), (0.319, 0.255)).close().extrude(0.902)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.116, -... | 12 | 227 | 0.517434 |
train_b59ddf9e5cb0618f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.197, -0.908), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.979, 0.139).threePointArc((0.775, 0.139), (0.979, 0)).lineTo(0.979, -0.434).lineTo(-0.063, -0.434).lineTo(-0.063, 0).threePointArc((-0.032, 0), (-0.063, 0.139)).threePointArc((-0.063,... | 2 | 43 | 2.580127 |
train_31d8e4deb7647cc1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.203), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.945).threePointArc((0.788, 0.788), (0.945, 0)).threePointArc((0.788, -0.788), (0, -0.945)).threePointArc((-0.788, -0.788), (-0.945, 0)).threePointArc((-0.788, 0.788), (0, 0.945)).close(... | 5 | 6 | 1.421572 |
train_7ce046a47c715eeb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.522, 0.606, 0.217), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.245, 0.655).threePointArc((0.484, 0.556), (0.582, 0.317)).lineTo(0.582, -0.135).threePointArc((0.484, -0.374), (0.245, -0.474)).lineTo(-0.245, -0.474).threePointArc((-0.484, -0.374... | 8 | 64 | 3.692518 |
train_6171dac9e30f1a7c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.006, 0.006), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.199, 0.232).lineTo(0.199, 0.084).threePointArc((0.238, 0.06), (0.33, 0.051)).lineTo(0.518, 0.051).threePointArc((0.573, 0.045), (0.597, 0.03)).lineTo(0.597, -0.134).threePointArc((0.617... | 11 | 124 | 0.095163 |
train_c6cd1f566afad256 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.236, 0.273, -0.102), normal=(0, 0, 1), xDir=(1, 0, 0))).box(1.528, 0.856, 1.583)
result = result.edges().fillet(0.162)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.236, 0.273, -0.102), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.356).extr... | 16 | 105 | 1.002527 |
train_6abb627c04f4316b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.393), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.177, 0.01).threePointArc((0.177, -0.01), (0.163, -0.02)).threePointArc((0.148, -0.01), (0.148, 0.01)).threePointArc((0.163, 0.02), (0.177, 0.01)).close().sweep(cq.Workplane(cq.Plane(origi... | 4 | 30 | 0.059184 |
train_410c535a9dcc5f7e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.184, 0.017), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.833, 0.333).lineTo(1, 0.167).lineTo(1, -0.333).lineTo(-1, -0.333).lineTo(-1, 0.167).lineTo(-1, 0.333).lineTo(-0.833, 0.333).lineTo(-0.667, 0.167).lineTo(-0.667, 0.333).lineTo(-0.5, 0.33... | 3 | 43 | 0.740482 |
train_ac756bd219376e0f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.047, -0.249, 0.199), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.036, 0.295).lineTo(0.009, 0.266).lineTo(0.022, 0.264).lineTo(0.035, 0.279).threePointArc((0.045, 0.274), (0.049, 0.264)).lineTo(0.062, 0.266).threePointArc((0.068, 0.269), (0.075... | 3 | 206 | 0.296513 |
train_fa4bebac749e8eaf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.003, -0.158), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.997).extrude(0.176)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, -0.003, -0.158), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.683).extrude(0.528, both=True))
result = result.u... | 18 | 204 | 0.331227 |
train_2179896d50ac87eb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.176), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.39).lineTo(1, -0.36).threePointArc((0.984, -0.38), (0.962, -0.39)).lineTo(-1, -0.39).lineTo(-1, 0.39).lineTo(1, 0.39).close().extrude(0.245)
result = result.union(cq.Workplane(cq.Plane(... | 8 | 25 | 0.309681 |
train_dfd8ab1c201ac342 | import cadquery as cq
import math
result = cq.Workplane('XY').moveTo(-0.149, 0.333).lineTo(-0.149, -0.102).lineTo(0.38, -0.102).lineTo(0.38, -0.333).lineTo(-0.38, -0.333).lineTo(-0.38, 0.333).lineTo(-0.149, 0.333).close().extrude(1, both=True)
result = result.edges().chamfer(0.037)
final_result = result
| 2 | 38 | 0.543081 |
train_08ee6c25936c1207 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.005, -0.069, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.199, 1.053).threePointArc((0.415, 1.033), (0.596, 0.91)).threePointArc((0.711, 0.72), (0.757, 0.506)).threePointArc((0.761, 0.314), (0.766, 0.16)).threePointArc((0.805, 0.033), (0.88... | 6 | 129 | 3.763507 |
train_ceb9dddb2aa57f39 | import cadquery as cq
import math
result = cq.Workplane('XY').moveTo(0.667, 1).lineTo(0.667, -1).lineTo(-0.667, -1).lineTo(-0.667, 1).lineTo(0.667, 1).close().extrude(0.424, taper=6.025, both=True)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.456, 0, -0.551), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.069, -0... | 12 | 210 | 1.657891 |
train_495dc185267c1dc6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.081, -0.155, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.626, 0.087).threePointArc((0.518, 0.087), (0.626, 0)).lineTo(0.626, -0.278).lineTo(-0.04, -0.278).lineTo(-0.04, 0).threePointArc((-0.015, 0), (-0.04, 0.087)).threePointArc((-0.04, 0.... | 7 | 95 | 1.663098 |
train_55f9a118b038e661 | import cadquery as cq
import math
result = cq.Workplane('XY').moveTo(1, 0.365).lineTo(1, 0.219).lineTo(-0.711, 0.219).lineTo(-0.711, 0.073).lineTo(1, 0.073).lineTo(1, -0.365).lineTo(-1, -0.365).lineTo(-1, -0.219).lineTo(0.711, -0.219).lineTo(0.711, -0.073).lineTo(-1, -0.073).lineTo(-1, 0.365).lineTo(1, 0.365).close().e... | 5 | 146 | 0.881098 |
train_ba21697360c499bf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.176, 0.07), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.71, 0.704).lineTo(-0.71, -0.418).lineTo(1, -0.418).lineTo(1, -0.704).lineTo(-1, -0.704).lineTo(-1, 0.704).lineTo(-0.71, 0.704).close().extrude(0.179, taper=3.566)
result = result.cut(cq... | 5 | 92 | 0.303843 |
train_46f8199e5eda2d36 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.025, 0.276, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.39, 0.682).lineTo(0.798, 0.45).threePointArc((0.821, 0.423), (0.83, 0.377)).lineTo(0.863, -0.45).threePointArc((-0.863, -0.682), (-0.566, 0.319)).threePointArc((-0.3, 0.596), (0.39, 0.6... | 20 | 27 | 1.107036 |
train_daa0c9ac76ec3dca | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.048, 0, -0.594), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.967, 0.071).threePointArc((0.996, -0.027), (0.922, -0.099)).threePointArc((0.82, -0.071), (0.791, 0.027)).threePointArc((0.865, 0.099), (0.967, 0.071)).close().sweep(cq.Workplane(cq.... | 6 | 32 | 0.731275 |
train_fc2d6e682c1b3168 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.001, -0.954), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.176, 0.999).lineTo(-0.186, 0.53).lineTo(0.11, 0.486).lineTo(0.458, 0.387).threePointArc((0.596, 0.277), (0.712, 0.145)).lineTo(0.85, -0.045).lineTo(0.907, -0.224).threePointArc((0.888... | 7 | 99 | 3.05783 |
train_f3b93d9e3e13a62f | import cadquery as cq
import math
result = cq.Workplane('XY').moveTo(0.732, 0.196).threePointArc((0.928, -0.536), (0.196, -0.732)).threePointArc((-0.536, -0.928), (-0.732, -0.196)).threePointArc((-0.928, 0.536), (-0.196, 0.732)).threePointArc((0.536, 0.928), (0.732, 0.196)).close().extrude(0.78, both=True)
result = res... | 8 | 241 | 3.966102 |
train_7287270cab72d736 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.301), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.686, 1).lineTo(0.686, -0.906).lineTo(0.601, -1).lineTo(-0.686, -1).lineTo(-0.686, 0.842).lineTo(-0.538, 1).lineTo(0.686, 1).close().extrude(0.111)
result = result.union(cq.Workplane(cq.Pla... | 16 | 66 | 0.335491 |
train_93fd872eb5ac8e9e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.004, 0.004, -0.546), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.003, 0.659).lineTo(0.454, -0.567).threePointArc((0.401, -0.826), (0.028, -0.804)).lineTo(-0.454, 0.537).threePointArc((-0.287, 0.826), (0.003, 0.659)).close().extrude(1.091, taper... | 13 | 215 | 1.029163 |
train_f930d8b2e585eb1b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.624), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(1.002).extrude(0.784)
result = result.cut(cq.Workplane(cq.Plane(origin=(1.002, 0, -0.624), normal=(0, 0, 1), xDir=(1, 0, 0))).pushPoints([(0, 0), (-0.135, 0.5), (-0.502, 0.867), (-1.002, 1.0... | 6 | 69 | 2.113492 |
train_1ec5820cfe0f5b85 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.788), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.601, 0.709).lineTo(1, 0.313).lineTo(1, -0.158).lineTo(0.449, -0.709).lineTo(-0.377, -0.709).lineTo(-1, -0.089).lineTo(-1, 0.014).lineTo(-0.305, 0.709).lineTo(0.601, 0.709).close().extrude(... | 10 | 80 | 1.845276 |
train_8c002b144a8394e5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.001, -0.254), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.227, 0.349).threePointArc((0.402, 0.331), (0.476, 0.289)).lineTo(0.476, 0.025).threePointArc((0.506, 0.007), (0.578, 0)).lineTo(0.842, 0).threePointArc((0.919, -0.008), (0.951, -0.027... | 5 | 57 | 0.407175 |
train_144e23f75006e734 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.255, -0.055, 1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.744, 0.055).threePointArc((0, -0.69), (-0.744, 0.055)).threePointArc((0, 0.799), (0.744, 0.055)).close().revolve(angleDegrees=90, axisStart=(-1.255, -0.219), axisEnd=(-1.255, 0.219))
r... | 7 | 54 | 2.602527 |
train_3839ffd4f6548c65 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1.095, -0.16, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.37, 1.846).threePointArc((0.501, 1.52), (0.796, 1.373)).threePointArc((0.771, 1.136), (0.886, 0.934)).threePointArc((0.687, 0.755), (0.467, 0.662)).lineTo(0.476, 0.096).lineTo(0.014, 0... | 4 | 62 | 0.653377 |
train_66508e4450afb330 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.151), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.418, 2).extrude(0.302)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, -0.151), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.017, -0.692).lineTo(0.017, -0.808).lineTo(-0.017, -0.808)... | 11 | 66 | 0.227881 |
train_4373c46924958b1d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.024, 0.37, 0.384), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.421, 0.629).lineTo(-0.421, -0.436).lineTo(0.717, -0.436).lineTo(0.717, -0.629).lineTo(-0.717, -0.629).lineTo(-0.717, 0.629).lineTo(-0.421, 0.629).close().extrude(0.133)
result = re... | 15 | 230 | 1.665104 |
train_0b9abba670989ce8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.236, -0.119, -0.597), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.262, 0.32).threePointArc((0.52, 0.264), (0.628, 0.133)).lineTo(0.628, -0.073).threePointArc((0.484, -0.247), (0.144, -0.32)).lineTo(-0.305, -0.32).threePointArc((-0.532, -0.271), ... | 20 | 169 | 1.029357 |
train_acb2194cca784109 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.042, -0.634), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.735, 0.184).threePointArc((0.998, 0.155), (0.752, 0.051)).lineTo(0.107, -0.032).threePointArc((0.047, -0.184), (-0.064, -0.096)).lineTo(-0.06, 0.048).lineTo(-0.016, 0.087).lineTo(0.73... | 16 | 111 | 0.164014 |
train_3023cf1c55a8a87b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.21), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.667, -0.111).lineTo(0.667, -0.222).lineTo(1, -0.333).lineTo(0.889, -0.444).lineTo(0.556, -0.333).lineTo(0.444, -0.444).lineTo(0.778, -0.667).lineTo(0.556, -0.778).lineTo(0.444, -0.556).line... | 6 | 251 | 0.742835 |
train_095b260d1b9d375f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.221, -0.092), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.129, 0.772).threePointArc((0.214, 0.759), (0.295, 0.74)).threePointArc((0.374, 0.713), (0.447, 0.681)).threePointArc((0.515, 0.643), (0.577, 0.601)).threePointArc((0.633, 0.555), (0.6... | 9 | 178 | 0.530926 |
train_075ff8c9d59a6e27 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.042, 0, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.12, 0.498).lineTo(0.941, 0.16).lineTo(0.399, -0.211).lineTo(0.133, -0.126).lineTo(-0.412, -0.498).lineTo(-0.941, -0.329).lineTo(-0.399, 0.042).lineTo(-0.666, 0.126).lineTo(-0.12, 0.498).cl... | 12 | 84 | 0.504583 |
train_4a753c92c80f3df7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.225, -0.077, -0.052), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.774, 0.455).lineTo(0.774, -0.455).lineTo(0, -0.455).lineTo(0, -0.228).lineTo(-0.774, -0.228).lineTo(-0.774, 0.228).lineTo(-0.387, 0.228).lineTo(-0.387, 0.455).lineTo(0.774, 0.455)... | 29 | 113 | 0.34212 |
train_2e7d9b820e5de62c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.132), normal=(0, 0, 1), xDir=(1, 0, 0))).workplane(offset=0).moveTo(0.469, 0.248).threePointArc((1, 0), (0.469, -0.248)).lineTo(-0.469, -0.248).threePointArc((-1, 0), (-0.469, 0.248)).lineTo(0.469, 0.248).close().workplane(offset=0.119).m... | 15 | 105 | 0.125227 |
train_24129bab3a2a7de3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.039, 0.126, -0.445), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.813, -0.69).lineTo(0.288, -0.691).lineTo(-0.205, -0.608).lineTo(-0.607, -0.451).lineTo(-0.87, -0.24).lineTo(-0.961, 0).lineTo(-0.87, 0.24).lineTo(-0.607, 0.451).lineTo(-0.205, 0.60... | 6 | 202 | 0.977414 |
train_d94fb98b2b3adff9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.117, 0.047, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.301, 0.302).lineTo(0.408, 0.209).lineTo(0.661, 0.241).lineTo(0.713, 0.231).threePointArc((0.816, -0.155), (0.233, -0.306)).lineTo(-0.341, -0.302).lineTo(-0.774, -0.256).lineTo(-0.816, ... | 4 | 132 | 0.997023 |
train_c62e9f885731b685 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.055, 0), normal=(0.46, 0.171, 0.871), xDir=(-0.349, 0.937, 0))).moveTo(0.711, 0.68).lineTo(0.711, -0.68).lineTo(-0.711, -0.68).lineTo(-0.711, 0.68).lineTo(0.711, 0.68).close().extrude(0.68, taper=8.351, both=True)
result = result.cut(cq.Workp... | 11 | 134 | 1.945128 |
train_0a0e831fc1eedb3f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.012, 0.444, -0.041), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.278, 0.481).threePointArc((0.537, 0.144), (0.481, -0.278)).threePointArc((0.144, -0.537), (-0.278, -0.481)).threePointArc((-0.537, -0.144), (-0.481, 0.278)).threePointArc((-0.144, ... | 7 | 42 | 0.667592 |
train_b39f499a94703594 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.414), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.34, -0.787).lineTo(0.312, -0.861).lineTo(0.277, -0.922).lineTo(0.235, -0.967).lineTo(0.19, -0.994).lineTo(0.143, -1).lineTo(0.096, -0.987).lineTo(0.052, -0.954).lineTo(0.012, -0.903).lineT... | 3 | 121 | 1.013396 |
train_223f8b8af2b73a4e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.131, 0, 0.08), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.687, 0.043).lineTo(0.687, -0.043).lineTo(-0.687, -0.043).lineTo(-0.687, 0.043).lineTo(-0.433, 0.043).lineTo(-0.433, -0.031).lineTo(0.433, -0.031).lineTo(0.433, 0.043).lineTo(0.687, 0.04... | 13 | 130 | 0.792282 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.