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 |
ARCADE
CadQuery programs with their geometry, released with StepCAD: Mesh-to-CAD Code Generation via LLM Policy and Geometry-Guided Search (paper, code, model).
3,543,874 programs (3,527,534 train, 16,340 validation) and 34,813,149 intermediate CAD states (one per
result = ... operation), each with STEP, mesh and 10K-point cloud. Every program is in a canonical step-by-step
CadQuery format, re-executes to a valid single solid, and is unique (deduplicated by canonical program).
| ARCADE | |
|---|---|
| programs | 3,543,874 |
| operations per program | 108.3 (68) |
| max operations | 6,115 |
| workplanes | 10.4 (9) |
| sketch primitives | 78.6 (38) |
| solid operations | 10.5 (9) |
| Booleans | 8.9 (7) |
| B-rep faces | 91.3 (63) |
| intermediate states | 34,813,149 |
| coverage: extrude | 94.7% |
| coverage: revolve | 28.3% |
| coverage: sweep | 18.6% |
| coverage: loft | 13.8% |
| coverage: fillet | 34.2% |
| coverage: chamfer | 25.6% |
| coverage: shell | 5.5% |
| coverage: mirror | 21.1% |
An operation is a modelling action: a workplane, a sketch primitive (line, arc, circle, rectangle, spline, ...), a
solid operation (extrude, revolve, sweep, loft, fillet, chamfer, shell, mirror) or a Boolean (union, cut,
intersect); selectors, moveTo, close etc. are not counted. Faces are B-rep faces of the final solid read back
from its STEP file. Coverage is the % of programs with at least one instance. Values are mean (median).
All numbers are in release_metrics.json.
Layout
code/ (default config, about 2 GB): one row per program.
| column | |
|---|---|
id |
train_<16 hex>, hash of the canonical program |
code |
CadQuery program |
num_ops |
number of result = ... operations |
face_count, volume |
B-rep faces and volume of the final solid |
geometry/ (about 3.4 TB): one row per program, joined to code/ on id. Files are named after their code shard
and first row.
| column | |
|---|---|
step |
final solid as a STEP file (bytes) |
step_faces, volume |
faces as read back from the STEP, volume |
mesh_vertices, mesh_faces |
triangle mesh: float32 (V, 3) and uint32 (F, 3), row-major bytes |
points, normals |
10K surface points with normals of the final solid: float16 (10000, 3) bytes |
state_points, state_normals |
the same after every operation (list, one entry per state) |
state_faces |
B-rep face count after every operation |
import numpy as np
from datasets import load_dataset
code = load_dataset("DeCoDELab/ARCADE", "code", split="train")
geom = load_dataset("DeCoDELab/ARCADE", "geometry", split="train", streaming=True)
r = next(iter(geom))
pts = np.frombuffer(r["points"], np.float16).reshape(-1, 3)
License
CC-BY-4.0.
- Downloads last month
- 36
