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_5aab38205df194f3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.356, -0.225), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.829, 0.629).threePointArc((-0.95, 0.578), (-1, 0.457)).lineTo(-1, -0.457).threePointArc((-0.95, -0.578), (-0.829, -0.629)).lineTo(0.829, -0.629).threePointArc((0.95, -0.578), (1, -0... | 9 | 118 | 2.253537 |
train_ced6fe493053def6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.75, -0.953, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.931, 1.433).threePointArc((-1, 1.066), (-0.931, 0.701)).threePointArc((0, 0.066), (0.931, 0.701)).threePointArc((1, 1.066), (0.931, 1.433)).lineTo(-0.931, 1.433).close().extrude(1.905... | 19 | 95 | 3.243761 |
train_b2ffa7b432c782ae | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.08, -0.33), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.287).extrude(0.779)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.14, 0.102, -0.017), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.191).extrude(0.207))
result = result.cut(cq.Work... | 23 | 80 | 1.64558 |
train_775cf6752c7105e9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.323, 0, -0.091), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.172).threePointArc((-0.078, 0.153), (-0.139, 0.101)).threePointArc((-0.164, 0.053), (-0.172, 0)).threePointArc((-0.162, -0.057), (-0.133, -0.108)).threePointArc((0, -0.172), (0.133... | 7 | 28 | 0.120091 |
train_bdca95aa659a67bf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.368, 0.074, -0.147), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.501, 0.373).extrude(0.353)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.462, 0.039, 0.167), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.022).extrude(0.626))
result = resul... | 9 | 75 | 0.261695 |
train_2e2db389b782ecdb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.736, 0.235, 0.657), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.218).transformed(offset=(0.318, 0, 0.164), rotate=(0, 45, 0)).circle(0.192).transformed(offset=(0.501, -0.073, 0.217), rotate=(0, 45, 0)).circle(0.304).transformed(offset=(0.616, -... | 2 | 5 | 0.471678 |
train_92f68db2a1ac5867 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.401, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.555, 0.401).threePointArc((-0.393, 0.794), (0, 0.956)).threePointArc((0.393, 0.794), (0.555, 0.401)).threePointArc((0.393, 0.008), (0, -0.155)).lineTo(0, 0.401).lineTo(-0.555, 0.401).clos... | 4 | 12 | 0.938288 |
train_d006284b97c99eb2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.218, -0.121), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.238, 1.563).extrude(0.493)
result = result.union(cq.Workplane(cq.Plane(origin=(0.062, -0.14, 0.37), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.557).extrude(0.074))
result = result.unio... | 16 | 127 | 0.722248 |
train_37b39eb3c9553cc8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.208, 0, 0.18), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.18, -0.792).lineTo(-0.18, 1.208).lineTo(0.18, 0.575).lineTo(0.18, -0.792).lineTo(-0.18, -0.792).close().revolve(angleDegrees=360, axisStart=(-0.18, -0.792), axisEnd=(-0.18, 1.208))
res... | 3 | 9 | 0.578509 |
train_2bba827f6d852d6c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.177, -0.425, -0.607), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.393, 0.3).lineTo(0.393, 0.2).lineTo(0.231, 0.17).lineTo(-0.354, -0.3).lineTo(-0.393, -0.251).lineTo(0.193, 0.262).lineTo(0.393, 0.3).close().sweep(cq.Workplane('XY').spline([(-0... | 11 | 87 | 0.26438 |
train_c10fa04244a3cc61 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0, -0.122), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.298, 0.018).threePointArc((0.012, -0.066), (-0.274, 0.018)).lineTo(-0.274, 0.024).threePointArc((-0.322, 0.059), (-0.365, 0.099)).lineTo(-0.305, 0.204).threePointArc((-0.313, 0.213), (-0... | 3 | 56 | 0.151208 |
train_f76315859766ad45 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.062, -0.033, -0.282), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.876, 1.21).extrude(0.696)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.129, -0.049, 0.374), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.067).extrude(0.041))
result = result.... | 12 | 32 | 1.662784 |
train_15e37c919aa07659 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.775, 0.026, 0.084), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.376, 0.562).lineTo(-0.188, 0.237).lineTo(-0.376, 0.562).lineTo(-0.376, 1.313).lineTo(0.376, 1.313).lineTo(0.376, 0.562).close().revolve(angleDegrees=90, axisStart=(0.376, 0.562), a... | 10 | 65 | 0.557716 |
train_4333fc0e20125092 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.004, 0.004, 0.002), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.683, -0.976).lineTo(0.689, -1.004).lineTo(0.695, 0.996).lineTo(-0.703, 0.978).close().moveTo(-0.035, 0.164).lineTo(-0.035, -0.164).lineTo(-0.027, -0.169).lineTo(0.035, -0.169).line... | 8 | 60 | 0.98497 |
train_7151c32e98a97b85 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.309, 0.016, 0.18), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.039, -0.024).threePointArc((0.016, -0.041), (-0.013, -0.04)).threePointArc((-0.02, -0.016), (-0.039, -0.001)).threePointArc((-0.029, 0.026), (-0.005, 0.041)).threePointArc((0.007, 0... | 24 | 266 | 0.220365 |
train_ff05da68d2078d62 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.035, -0.122), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.17, 1.009).extrude(1.072)
result = result.faces('>Z').shell(-0.067)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.029, 0.293, -0.398), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(... | 35 | 58 | 0.564851 |
train_ec74b23e1fbb986f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.543, 0, -0.048), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.143, 0.185).threePointArc((0.017, 0.328), (0.143, 0.154)).lineTo(0.143, -0.327).threePointArc((0, -0.304), (-0.143, -0.328)).lineTo(-0.143, 0.183).lineTo(-0.143, 0.185).close().sweep... | 2 | 20 | 0.366205 |
train_d1de532560d7e1a0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.236, 0.026), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.271, -0.195).threePointArc((-0.301, -0.125), (-0.371, -0.095)).lineTo(-0.371, 0.448).threePointArc((-0.301, 0.477), (-0.271, 0.547)).lineTo(0.271, 0.547).lineTo(0.371, 0.547).lineTo(0... | 15 | 99 | 0.949363 |
train_eee00207c08068c8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.726, 0.221), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.142, -0.147).threePointArc((-0.138, -0.115), (-0.127, -0.084)).threePointArc((-0.1, -0.047), (-0.063, -0.02)).lineTo(-0.108, -0.02).threePointArc((-0.118, -0.029), (-0.127, -0.038)).... | 4 | 39 | 0.458129 |
train_1c90f9074c90291b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.013, 0.487, 0.691), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.252).sweep(cq.Workplane('YZ').spline([(-0.203, -0.068), (-0.069, -0.224), (0.077, -0.224), (0.212, -0.068), (0.212, 0.1), (0.077, 0.255), (-0.069, 0.255), (-0.203, 0.1)]))
result =... | 7 | 40 | 0.727744 |
train_e5c1daae79fd7678 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.085, -0.072, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.008, 1.008).extrude(1.816)
result = result.faces('<X').shell(-0.079)
result = result.union(cq.Workplane(cq.Plane(origin=(0.063, 0.051, 0.799), normal=(0, 0, 1), xDir=(1, 0, 0))).circle... | 4 | 15 | 0.683171 |
train_8aaecc5a2fb8fb60 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1, -0.126), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.236, -0.236).lineTo(0.236, 0.236).lineTo(-0.05, 0.236).threePointArc((0.082, -0.082), (-0.236, 0.05)).lineTo(-0.236, -0.236).lineTo(0.236, -0.236).close().sweep(cq.Workplane('YZ').spline... | 5 | 21 | 0.139075 |
train_3c3137c4657974c6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.083, -0.151), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1, 0.005).lineTo(-1, 0.161).lineTo(1, 0.161).lineTo(1, 0.005).lineTo(-1, 0.005).close().extrude(0.282)
result = result.edges().fillet(0.013)
result = result.cut(cq.Workplane(cq.Plane(o... | 9 | 46 | 0.087494 |
train_e88f017edc79dca1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.037, -0.294, 0.121), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.293, -0.26).lineTo(0.293, 0.326).lineTo(0.086, 0.326).threePointArc((0, 0.24), (-0.086, 0.326)).lineTo(-0.293, 0.326).lineTo(-0.293, 0.119).lineTo(-0.293, -0.053).lineTo(-0.293, -... | 15 | 190 | 0.299956 |
train_97e1ef8766a6762b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.244, 0.435, -0.602), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.398, -0.199).lineTo(-0.398, -0.08).lineTo(-0.318, 0.199).lineTo(0.199, 0.199).lineTo(0.199, 0.06).lineTo(0.318, 0.06).lineTo(0.318, -0.08).lineTo(0.199, -0.08).lineTo(0.398, -0.0... | 4 | 32 | 0.228559 |
train_749cd515674c4162 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.36, -0.202, -0.222), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.726, 0.74).extrude(0.136)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.36, -0.193, -0.087), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.538, 0.609).extrude(0.033))
result = ... | 22 | 119 | 0.517543 |
train_f93b52943cef017e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.039, 0.039, -0.443), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.753, 1.923).extrude(0.885)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.039, 0.039, -0.447), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.129, 0.239).extrude(0.189))
result = r... | 14 | 62 | 2.928995 |
train_171d0a5a6c5e9716 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.05, 0.424, -0.447), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.248, 1.152).extrude(0.542)
result = result.union(cq.Workplane(cq.Plane(origin=(0.112, -0.036, 0.111), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.392, 0.786).threePointArc((0.062, 0... | 10 | 51 | 0.66027 |
train_5c37bb13f82608ba | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.321, -0.541, -0.254), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.274, 0.355).threePointArc((0, 0.313), (0.274, 0.355)).threePointArc((0, 0.037), (-0.274, 0.355)).close().extrude(0.837)
result = result.edges().fillet(0.027)
result = result.unio... | 7 | 59 | 0.22522 |
train_15072527762d6baf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.724), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.854, 1.798).extrude(1.373)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.125, 0.361, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.154).extrude(0.304))
result = result.union(cq.W... | 12 | 327 | 2.094992 |
train_91adf6f8094e5f5d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.041, 0.613, 0.213), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.18, -0.302).threePointArc((0.183, -0.291), (0.191, -0.281)).lineTo(0.186, -0.272).lineTo(-0.191, 0.337).lineTo(-0.191, -0.302).lineTo(-0.108, -0.302).threePointArc((-0.073, -0.337),... | 3 | 24 | 0.318427 |
train_d49a4c1aac8d516c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.433, 1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.365, 0.175).threePointArc((-0.405, 0.204), (-0.434, 0.164)).threePointArc((0, -0.204), (0.434, 0.164)).threePointArc((0.405, 0.204), (0.365, 0.175)).threePointArc((0, -0.134), (-0.365, 0.1... | 3 | 9 | 0.05373 |
train_5b302c10e135ad40 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.304), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, -0.19).lineTo(-0.449, -0.19).lineTo(-0.449, 0.19).lineTo(-0.239, 0.19).lineTo(-0.239, 0.16).lineTo(-0.389, 0.16).lineTo(-0.389, 0.07).lineTo(-0.418, 0.07).lineTo(-0.418, -0.109).lineTo(-0... | 2 | 26 | 0.262722 |
train_5f09f41addbc51c2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.459), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.558, 2).extrude(0.918)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.41, 0.343, -0.281), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.176, 0.443).lineTo(0.149, 0.443).lineTo(0.051, 0.... | 30 | 99 | 1.315887 |
train_fd5379d36844e5b2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, 0.001, 0.18), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.491, 1.001).lineTo(-0.198, -0.992).lineTo(0.234, -1.001).lineTo(0.491, 1.001).lineTo(-0.491, 1.001).close().extrude(0.329)
result = result.edges().fillet(0.126)
result = result.cu... | 19 | 130 | 0.412413 |
train_75171454e5c913da | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.09, -0.981, 0.893), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.049, 0.242).lineTo(-0.107, -0.029).lineTo(0.107, -0.242).lineTo(0.107, 0.087).lineTo(-0.049, 0.242).close().sweep(cq.Workplane('YZ').spline([(-0.314, 0.767), (-0.151, 0.464), (0.0... | 3 | 17 | 0.163801 |
train_c19bad97dc7250b6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.125, 0.79, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.927, 0.123).lineTo(-0.898, -0.106).lineTo(-0.927, 0.127).lineTo(0.898, 0.355).lineTo(0.927, 0.123).close().workplane(offset=0.714).moveTo(0.754, 0.123).lineTo(-0.731, -0.063).lineTo(-0.... | 7 | 19 | 0.487706 |
train_1e5d7dd066785b85 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.072), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.338).extrude(0.116)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.8 + 0.2, -0.535 + 0.134, 0.044), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.131, -0.02).lineTo(0.13, -0.018).li... | 17 | 774 | 0.313132 |
train_4484bc822177f686 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.817), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.329, 2).extrude(1.634)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.2, 0.631, -0.029), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.331).extrude(0.356))
result = result.edges().chamfe... | 7 | 38 | 3.657402 |
train_f9c72e39b450fe12 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.66), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.889, 2).extrude(1.418)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.725, 0.14, -0.081), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.031).extrude(0.127))
result = result.cut(cq.Workplan... | 11 | 58 | 4.80866 |
train_aed58660017b9b73 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.693, 0.364), normal=(0, 0, 1), xDir=(1, 0, 0))).lineTo(-0.136, -0.265).threePointArc((-0.147, -0.281), (-0.161, -0.295)).threePointArc((-0.222, -0.305), (-0.267, -0.265)).lineTo(-0.178, -0.169).lineTo(-0.137, -0.126).lineTo(0, 0.02).lineTo(0... | 2 | 12 | 0.009493 |
train_a0fdaafb402f4d86 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.074, 0.439, 0.519), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.926, 0.12).lineTo(0.907, 0.12).lineTo(0.907, 0.185).lineTo(-0.907, 0.185).lineTo(-0.907, -0.185).lineTo(0.907, -0.185).lineTo(0.907, -0.12).lineTo(0.926, -0.12).lineTo(0.926, -0.204... | 2 | 20 | 0.034524 |
train_5429f8c11ed9c82e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.23, -0.307), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.311, -0.77).lineTo(0.311, -0.77).lineTo(0.311, 1.23).lineTo(-0.311, 1.23).lineTo(-0.311, -0.77).close().extrude(0.615)
| 1 | 6 | 0.76506 |
train_3c959c43044774d6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.004, -0.284, -0.382), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.504, 0.755).lineTo(-0.504, 1.292).threePointArc((0.504, 0.284), (-0.504, -0.723)).lineTo(-0.504, -0.186).lineTo(-0.504, 0.755).close().extrude(0.765)
result = result.edges().fil... | 11 | 50 | 1.161009 |
train_e995f8ab630a935d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.303, -0.842, -0.044), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.65, 1.262).threePointArc((0.65, 0.542), (-0.07, -0.756)).lineTo(-0.65, 1.262).close().extrude(1.684)
result = result.edges().fillet(0.176)
result = result.cut(cq.Workplane(cq.Pl... | 9 | 38 | 2.705029 |
train_313b1895a1ef3417 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.29, -0.021, -0.42), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.29, 0.166).lineTo(-0.29, -0.124).lineTo(0.29, -0.124).lineTo(0.29, 0.166).lineTo(0.193, 0.166).lineTo(0.193, 0.069).lineTo(-0.193, 0.069).lineTo(-0.193, 0.166).lineTo(-0.29, 0.166)... | 8 | 27 | 0.221567 |
train_e144a806036c8940 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.279, 0.148, -0.587), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, -0.652).lineTo(0.175, -0.241).lineTo(0.62, -0.202).lineTo(0.283, 0.092).lineTo(0.383, 0.528).lineTo(0, 0.298).lineTo(-0.383, 0.528).lineTo(-0.283, 0.092).lineTo(-0.62, -0.202).lin... | 14 | 73 | 0.555737 |
train_51efc9fd282ce106 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.265, 0.607), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.282).sweep(cq.Workplane('XZ').spline([(-0.253, 0.513), (0.244, 0.319), (0.742, 0.319), (1.24, 0.513)]))
result = result.edges().fillet(0.053)
result = result.union(cq.Workplane(cq.Pl... | 10 | 76 | 0.699069 |
train_f698d80a69339b46 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.002, 0, 0.117), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.884).workplane(offset=0.059).circle(0.982).workplane(offset=0.054).circle(0.964).workplane(offset=0.061).circle(1.002).workplane(offset=0.06).circle(1.013).loft()
result = result.edge... | 8 | 29 | 0.459241 |
train_3b9e6544a351a8d6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.265, 0.143, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.359, -0.745).lineTo(0.359, -0.65).lineTo(-0.3, 0.173).lineTo(-0.3, 1.265).lineTo(-0.359, 1.265).lineTo(-0.359, 0.152).lineTo(0.359, -0.745).close().extrude(0.285)
result = result.edges... | 5 | 45 | 0.035735 |
train_032d96f1bfa6a75e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.245, 0, 0.04), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.259, -0.896).lineTo(0.259, -0.905).lineTo(-0.259, -0.905).lineTo(-0.259, -0.475).lineTo(-0.003, -0.475).lineTo(-0.003, 0.337).lineTo(-0.259, 0.337).lineTo(-0.259, 0.905).lineTo(0.259, 0... | 16 | 22 | 0.665903 |
train_ad9d40a41f031f3c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.492, 0, 0.106), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.122, 0.111).lineTo(-0.128, 0.113).lineTo(-0.127, 0.113).lineTo(-0.399, 0.228).lineTo(-0.327, 0.189).lineTo(-0.405, 0.219).lineTo(-0.502, 0.256).lineTo(-0.412, 0.21).lineTo(-0.508, 0.0... | 6 | 34 | 0.029509 |
train_e70573ce4e11581c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.197, -0.559), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.441, 0.061).lineTo(0.441, 0.09).lineTo(0.424, 0.09).lineTo(0.424, 0.394).lineTo(0.053, 0.126).lineTo(-0.441, 0.126).lineTo(-0.441, 0.061).lineTo(0.441, 0.061).close().revolve(angleDeg... | 8 | 56 | 0.105365 |
train_829ab2057bf9525f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.738, 0.052, 1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.52, 0.035).lineTo(-0.52, 0.361).lineTo(0.52, 0.035).lineTo(0.52, -0.361).lineTo(-0.52, -0.361).lineTo(-0.52, 0.035).close().sweep(cq.Workplane('XZ').spline([(0.738, 0.171), (1.14, 0.36... | 2 | 26 | 0.411223 |
train_06a6acf32539a5e4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.452, -0.914, -0.146), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.597, 1.243).lineTo(0.597, 1.243).lineTo(0.597, 1.124).lineTo(-0.477, 1.124).lineTo(-0.477, -0.548).lineTo(-0.597, -0.548).lineTo(-0.597, 1.243).close().extrude(1.829)
result = r... | 6 | 25 | 0.798104 |
train_7127ed91c4a9e317 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.124), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.998, 2).extrude(0.201)
result = result.union(cq.Workplane(cq.Plane(origin=(0.461, -0.689, 0.075), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.095, 0.116).extrude(0.049))
result = result.cut(cq... | 10 | 38 | 0.713343 |
train_322c98c90180ef4b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.061, -0.702), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.983).extrude(1.404)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.073, 0.104, 0.366), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.071, 0.458).extrude(0.344))
result = result.cut... | 18 | 56 | 2.176475 |
train_7cf562623dc4176f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.279, -0.047, -0.065), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.669, 0.65).extrude(0.104)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.279, 0.116, 0.047), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.131, -0.012).lineTo(0.131, 0.166).t... | 21 | 166 | 0.161806 |
train_f527cc51319d764f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.175, 0.132, -0.179), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.978, 0.658).extrude(0.138)
result = result.union(cq.Workplane(cq.Plane(origin=(0.482, 0.183, -0.11), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.183).extrude(0.023))
result = result... | 17 | 139 | 0.292298 |
train_a16ddfb26f3072c5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.149, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.763, 0.636).extrude(0.812)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0.149, -0.204), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.175).extrude(0.362))
result = result.union(cq.Wo... | 12 | 155 | 0.48708 |
train_1f5d208fd2d7504d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.108, -0.097, -0.634), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.222, 1.203).extrude(1.376)
result = result.faces('<Y').shell(-0.133)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.297, 0.654, 0.276), normal=(-1, 0, 0), xDir=(0, 0, 1))).... | 14 | 126 | 0.739315 |
train_9c3106052f468d22 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.318, 0, -0.049), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.364, 1.409).extrude(0.099)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.544, 0.209, 0.022), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.485, 0.428).extrude(0.028))
result = result.c... | 13 | 73 | 0.140096 |
train_7d37323abe936bdf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.841, 0.009, -0.802), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.025, 0.105).threePointArc((0.084, 0.086), (0.12, 0.035)).lineTo(0.168, -0.092).lineTo(0.148, -0.092).lineTo(-0.167, -0.092).lineTo(-0.167, 0.02).lineTo(-0.168, 0.02).lineTo(-0.151... | 8 | 106 | 1.09106 |
train_9b122215408d5999 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.09, 0, -0.266), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.234, 1.46).extrude(0.749)
result = result.union(cq.Workplane(cq.Plane(origin=(0.838, 0.144, -0.114), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.324, 0.584).extrude(0.141))
result = result.... | 16 | 84 | 1.100802 |
train_b4c1ffbd2054bc26 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.49, 0, 0.453), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.14).sweep(cq.Workplane('XZ').spline([(0.443, -0.045), (0.472, 0.017), (0.376, 0.142), (0.088, 0.214), (-0.241, 0.151), (-0.361, 0.095), (-0.357, -0.067), (-0.161, -0.151), (0.189, -0.1... | 4 | 11 | 0.083216 |
train_57660def0da17af5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.036, 0.044, -0.507), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.058, -0.109).lineTo(-0.058, 0.178).lineTo(0.058, 0.178).lineTo(0.058, -0.109).lineTo(-0.058, -0.109).close().revolve(angleDegrees=90, axisStart=(-0.058, -0.109), axisEnd=(-0.058, ... | 17 | 391 | 0.358612 |
train_fa580b895969dc30 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.005, 0.185, -0.825), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.073, -0.01).lineTo(-0.175, -0.01).lineTo(-0.175, 0.019).lineTo(0.175, 0.019).lineTo(0.175, -0.01).lineTo(0.073, -0.01).close().extrude(0.37)
result = result.edges().fillet(0.009)
... | 12 | 62 | 0.007451 |
train_71720cffd6ccb69c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.136, -0.088, -0.594), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.007, 1.268).extrude(1.024)
result = result.union(cq.Workplane(cq.Plane(origin=(0.491, 0.037, -0.186), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.149).extrude(0.513))
result = resu... | 17 | 50 | 1.214609 |
train_0b03e24a720a27e4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.454, -0.874, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.5, 0.174).lineTo(1, 0.674).lineTo(1, 1.574).lineTo(-1, 1.574).lineTo(-1, 0.174).lineTo(0.5, 0.174).close().workplane(offset=0.125).moveTo(0.476, 0.208).lineTo(0.951, 0.684).lineTo(0.9... | 19 | 227 | 1.557912 |
train_0be04ff7078dd151 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.791).workplane(offset=0.491).circle(0.747).workplane(offset=0.416).circle(0.447).workplane(offset=0.591).circle(0.229).workplane(offset=0.503).circle(0.134).loft()
result = result.edges().cham... | 8 | 25 | 1.657653 |
train_d6c0e4753342a702 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.111, 0.007, -0.352), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.066, -0.002).lineTo(0.343, 0.993).lineTo(-0.844, 0.618).lineTo(-0.835, -0.675).lineTo(0.313, -1.007).close().center(-0.343, 0).rect(0.418, 0.626).center(0.686, 0).rect(0.422, 0.59... | 12 | 69 | 1.140132 |
train_6ca1fffcdd852163 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.357, -0.331, -0.326), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.152, 0.247).lineTo(0.152, -0.08).lineTo(0.114, -0.08).lineTo(0.114, -0.095).lineTo(0.152, -0.095).lineTo(0.152, -0.247).lineTo(-0.152, -0.247).lineTo(-0.152, 0.08).lineTo(0.114,... | 16 | 236 | 0.778799 |
train_5f01745fb2c6886d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.755, 0.569, 0.026), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.275).transformed(offset=(0.187, 0.142, 0.118), rotate=(0, 0, 0)).circle(0.222).transformed(offset=(0.374, 0.257, 0.007), rotate=(0, 20, 0)).circle(0.221).transformed(offset=(0.561... | 3 | 9 | 0.050277 |
train_30b6651eaaaa0aa1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.206, 0.16, -0.321), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.899, 0.517).extrude(0.275)
result = result.union(cq.Workplane(cq.Plane(origin=(0.206, 0.351, -0.021), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.146, 0.41).lineTo(-0.146, 0.191).lin... | 28 | 283 | 0.578795 |
train_0a782c5d643491c0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.622, -0.958, -0.773), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.017, 0.034).threePointArc((0.017, 0), (-0.017, -0.034)).lineTo(-0.017, -0.01).threePointArc((-0.007, 0), (-0.017, 0.01)).lineTo(-0.017, 0.034).close().transformed(offset=(0.023, ... | 1 | 6 | 0.004683 |
train_d04ae66347c7cfd8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.068, 0.399, -0.493), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.607, 1.202).extrude(1.158)
result = result.union(cq.Workplane(cq.Plane(origin=(0.349, 0.113, 0.662), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.064).extrude(0.105))
result = result... | 10 | 44 | 2.244646 |
train_699db2029549b624 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.638, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.24, -0.362).lineTo(0.36, -0.362).lineTo(0.36, 0.918).lineTo(0.24, 0.918).lineTo(0.24, 1.638).lineTo(0.12, 1.638).lineTo(0.12, 0.918).lineTo(-0.36, 0.918).lineTo(-0.36, 0.758).lineTo(0.24,... | 4 | 43 | 0.498796 |
train_ce0b51607ce83af4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.649, 0, 0.683), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.068).sweep(cq.Workplane('XZ').spline([(0.649, 0.683), (0.2, 0.941), (-0.285, 0.813), (-0.606, 0.351), (-0.632, -0.255), (-0.351, -0.755), (0.121, -0.943), (0.589, -0.742)]))
| 1 | 3 | 0.046074 |
train_bc5c2ec15461483a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.98, -0.241, 0.02), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.02, 0.03).lineTo(0, 0.061).lineTo(0, 0.03).lineTo(0.02, 0.03).lineTo(0.02, -0.03).lineTo(0, -0.061).lineTo(0, -0.051).threePointArc((0.005, -0.045), (0, -0.04)).lineTo(0, -0.03).l... | 2 | 17 | 0.001038 |
train_9847107e833ba4d9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.813), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.633, 0.881).extrude(0.017)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.037, 0.054, -0.791), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.222, 0.24).lineTo(-0.044, 0.28).threePoint... | 10 | 90 | 0.144783 |
train_5d31f9063ca9312b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.003, 0.093, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.712, -0.519).threePointArc((0, -0.371), (0.712, -0.519)).lineTo(0.281, 0.415).threePointArc((0.215, 0.491), (0.119, 0.519)).lineTo(0, 0.519).lineTo(-0.119, 0.519).threePointArc((-0.215... | 17 | 66 | 0.32412 |
train_37fb32ee3f741582 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.003, -0.551, 0.179), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.349, -0.342).threePointArc((-0.332, -0.437), (-0.237, -0.421)).lineTo(0.343, 0.363).threePointArc((0.347, 0.367), (0.349, 0.371)).threePointArc((0.335, 0.437), (0.268, 0.427)).lin... | 1 | 8 | 0.021984 |
train_78a7d7115cbe64d0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.331, -0.802), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.438, -0.009).threePointArc((-0.555, 0.331), (-0.438, 0.671)).threePointArc((-0.343, 0.675), (-0.34, 0.77)).threePointArc((0, 0.886), (0.34, 0.77)).threePointArc((0.392, 0.723), (0.43... | 13 | 131 | 1.062609 |
train_63dd23ac74fe963a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.009, 0.011, -0.42), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.892, -0.99).lineTo(0.861, -1.011).lineTo(0.875, 0.989).lineTo(-0.875, 0.982).close().moveTo(-0.199, 0.294).lineTo(-0.199, 0.17).lineTo(-0.213, 0.17).lineTo(-0.213, 0.294).lineTo(-0... | 15 | 109 | 1.892706 |
train_fe406a0a46c50b31 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.544), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.817, 2).extrude(1.304)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.226, 0.134, -0.76), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.69, 1.07).extrude(0.239))
result = result.edges().... | 5 | 61 | 4.425536 |
train_0657a4d55ed1da2e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.478, 0.036), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.302, -0.198).lineTo(-0.159, -0.198).lineTo(0.338, 0.054).lineTo(0.338, 0.198).lineTo(-0.022, 0.198).lineTo(-0.115, 0.156).lineTo(-0.104, 0.132).lineTo(-0.199, 0.09).lineTo(-0.209, 0.11... | 2 | 39 | 0.301141 |
train_9ffd69932bd5b7a5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.271, 0.03, -0.459), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.271, -0.124).lineTo(0.271, 0.124).lineTo(-0.271, 0.124).lineTo(-0.271, -0.124).lineTo(0.271, -0.124).close().revolve(angleDegrees=360, axisStart=(0.271, -0.124), axisEnd=(0.271, 0... | 18 | 388 | 0.518334 |
train_dc5f3e205e8a4b27 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.052, -0.054, -0.063), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.108, -0.049).threePointArc((-0.332, -0.053), (-0.772, -0.066)).threePointArc((-0.665, -0.035), (-0.556, -0.009)).threePointArc((-0.226, 0.047), (0.108, 0.066)).threePointArc((0.4... | 13 | 117 | 0.063802 |
train_9c39d5b615d1241e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.185), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.081, 2).extrude(0.311)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, -0.232), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.582, 1.266).extrude(0.404))
result = result.union(cq.Workpla... | 3 | 30 | 0.51074 |
train_aef38a470e7ff4f0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.06, 0, 0.024), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.081, -0.04).lineTo(-0.077, -0.047).lineTo(-0.086, 0.039).lineTo(-0.039, 0.047).lineTo(0.086, 0.011).lineTo(0.081, -0.04).close().sweep(cq.Workplane('XZ').spline([(-0.978, -0.651), (-0.5... | 1 | 7 | 0.015621 |
train_8ac09e73bd96543f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.457, -0.819, -0.038), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.342, 0.452).threePointArc((-0.658, -0.215), (0.071, -0.33)).threePointArc((0.658, -0.452), (0.62, 0.147)).threePointArc((0.404, 0.21), (0.19, 0.139)).threePointArc((0.106, 0.055... | 5 | 21 | 1.695516 |
train_df97dc66e917a79a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.136, -0.096), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.648).sweep(cq.Workplane('XY').spline([(-0.826, -0.136), (-0.413, -0.448), (0, -0.552), (0.413, -0.448), (0.826, -0.136)]))
result = result.union(cq.Workplane(cq.Plane(origin=(0.284, -... | 3 | 13 | 1.679921 |
train_ba2ba5ef1a813901 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.443, -0.664, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.213, 0.557).lineTo(0.213, -0.557).lineTo(-0.213, -0.557).lineTo(-0.213, 0.557).lineTo(0.213, 0.557).close().sweep(cq.Workplane('XY').spline([(-0.443, -1.444), (0.015, -1.837), (0.473,... | 15 | 70 | 0.556362 |
train_59fec5b725e4bfbb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.966, -0.607, 0.141), normal=(0, -1, 0), xDir=(0, 0, 1))).lineTo(-0.039, -0.034).threePointArc((-0.037, -0.029), (-0.033, -0.025)).close().sweep(cq.Workplane('XY').spline([(0.966, 0.004), (0.875, 0.212), (0.645, 0.311), (0.399, 0.248), (0.267, 0.... | 3 | 48 | 0.04982 |
train_9480c32671d368a6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.1), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.201, 0.963).lineTo(0.201, 0.996).lineTo(-0.201, 0.996).lineTo(-0.201, 0.963).lineTo(-0.115, 0.963).lineTo(0.084, 0.827).lineTo(0.084, -0.78).lineTo(-0.023, -0.963).lineTo(-0.118, -0.963).lin... | 5 | 30 | 0.050353 |
train_83bb6d68691adf7f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.102, 0.03), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.045).lineTo(-0.618, 0.576).lineTo(-0.641, 0.596).threePointArc((-0.598, -0.553), (0.552, -0.596)).threePointArc((0.598, -0.553), (0.641, -0.507)).lineTo(0.618, -0.487).lineTo(0.531,... | 4 | 18 | 1.134135 |
train_f36b9939848831b1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.207, 0, -0.698), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.535, 1.508).extrude(0.091)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.541, 0, -0.624), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.053).extrude(0.263))
result = result.union... | 4 | 81 | 0.351426 |
train_df4ebc1e0755039a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.045, 1, 0.023), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.977, -0.597).lineTo(-0.977, -0.597).lineTo(-0.977, 0.717).lineTo(0.977, -0.597).close().workplane(offset=0.388).moveTo(0.969, -0.592).lineTo(-0.969, -0.592).lineTo(-0.969, 0.712).lineT... | 6 | 26 | 2.09079 |
train_fa5f4a72ee8e9016 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.574, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.363, 0.557).threePointArc((-0.476, 0.781), (-0.712, 0.864)).threePointArc((0.005, 0.93), (0.712, 1.067)).lineTo(-0.187, 0.092).lineTo(-0.32, 0.08).lineTo(-0.363, 0.557).close().workplane(... | 10 | 28 | 0.361979 |
train_1c5f668c73c69770 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.283, -0.031, -0.366), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.433, 0.962).extrude(0.933)
result = result.faces('>Z').shell(-0.042)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.383, 0.261, -0.576), normal=(0, 0, 1), xDir=(1, 0, 0))).... | 4 | 32 | 0.282352 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.