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_fc650b9445861fbe | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.003, -0.044, -0.033), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.055, 1.044).lineTo(-0.055, -0.956).lineTo(0.055, -0.956).lineTo(0.055, 1.044).lineTo(-0.055, 1.044).close().revolve(angleDegrees=270, axisStart=(-0.055, 1.044), axisEnd=(-0.055... | 12 | 133 | 0.119521 |
train_761bc1bd1fd779d5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.294, -0.033, -0.014), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.364, -0.363).lineTo(0.348, -0.378).lineTo(-0.004, -0.025).lineTo(-0.02, -0.01).lineTo(-0.036, 0.006).lineTo(-0.383, 0.353).lineTo(-0.367, 0.369).lineTo(-0.02, 0.022).lineTo(-0.004... | 4 | 38 | 0.152206 |
train_3807bccba550955b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.308, 0.251, 0.14), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.038, -0.749).lineTo(0.156, 0.227).threePointArc((0.055, 0.412), (0.046, 0.623)).threePointArc((0.055, 0.657), (0.065, 0.69)).threePointArc((0.082, 0.678), (0.076, 0.698)).lineTo(0.0... | 4 | 27 | 0.035687 |
train_a8e9ae7870ec2334 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.626, -0.096), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.595, 0.595).extrude(0.567)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0.31, 0.074), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.247, 1.379).extrude(0.227))
result = result.uni... | 5 | 45 | 0.200238 |
train_756d948a5dde6307 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.473, -0.172, 0.087), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.245, 0.134).lineTo(0.123, 0.205).lineTo(0, 0.276).lineTo(-0.123, 0.205).threePointArc((-0.245, -0.007), (-0.123, -0.22)).threePointArc((0, -0.253), (0.123, -0.22)).lineTo(0.245, -... | 12 | 73 | 1.174762 |
train_0ff571db6ea67e20 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.503, 0.537, -0.141), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.196, 0.537).lineTo(-0.31, 0.537).lineTo(-0.31, -0.463).lineTo(0.31, -0.463).lineTo(0.31, 0.537).lineTo(-0.196, 0.537).close().revolve(angleDegrees=180, axisStart=(-0.196, 0.537),... | 30 | 380 | 0.971263 |
train_de5724c6ec65e0fd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.008, -0.113, -0.135), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.204, -0.045).lineTo(-0.204, 0.191).lineTo(-0.102, 0.25).threePointArc((0, 0.277), (0.102, 0.25)).threePointArc((0.177, 0.175), (0.204, 0.073)).threePointArc((0.177, -0.029), (0.... | 15 | 130 | 0.080261 |
train_ef2b416234199e6c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.509, 0.814, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1, 1.509).lineTo(-1, -0.491).lineTo(1, -0.491).lineTo(1, 1.509).lineTo(-1, 1.509).close().extrude(1.628)
result = result.edges().chamfer(0.074)
result = result.cut(cq.Workplane(cq.Plane... | 7 | 44 | 5.913911 |
train_d4faba2b8373b76b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.686, -0.054, -0.073), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.248, 0).lineTo(-0.191, -0.057).lineTo(-0.191, -0.191).lineTo(0.191, -0.191).lineTo(0.191, -0.057).lineTo(0.248, 0).lineTo(0.191, 0.057).lineTo(0.191, 0.191).lineTo(-0.191, 0.191)... | 5 | 28 | 0.130366 |
train_62aa87d0f872dd85 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.125, 0.089, 0.213), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.55, -0.009).lineTo(0.157, 0.531).lineTo(-0.456, 0.319).lineTo(-0.442, -0.325).lineTo(0.166, -0.519).close().moveTo(-0.156, 0.123).lineTo(-0.138, 0.181).lineTo(-0.077, 0.18).lineTo(-... | 11 | 152 | 0.592928 |
train_fa6ce2276bf6b590 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.459, -0.01, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.359, 0.044).lineTo(-0.628, 0.51).lineTo(0.359, 1.081).lineTo(0.628, 0.615).lineTo(-0.359, 0.044).close().extrude(1.013)
result = result.edges().chamfer(0.141)
result = result.union(cq... | 25 | 58 | 1.142409 |
train_c0fae57b2f348d55 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.192, -0.486, -0.211), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.127, 1.027).extrude(0.177)
result = result.union(cq.Workplane(cq.Plane(origin=(0.192, -0.486, -0.034), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.09, 0.114).lineTo(-0.162, 0.081).l... | 15 | 83 | 0.62811 |
train_e9be8dcb6892339c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.225), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.706, 0.412).lineTo(0.509, 0.412).lineTo(0.509, -0.529).lineTo(0, -0.529).lineTo(0, -1).lineTo(-0.706, -1).lineTo(-0.706, -0.529).lineTo(-0.509, -0.529).lineTo(-0.509, 0.412).lineTo(-0.706,... | 23 | 85 | 0.545809 |
train_f9bddcb9727f63a3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.927, 1.757).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, -0.075), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.065, 1.082).extrude(1.103))
| 2 | 11 | 3.181873 |
train_4b63747ae75bf59a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.621, 0, 0.222), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.562).workplane(offset=0.474).circle(0.627).workplane(offset=0.448).circle(0.373).workplane(offset=0.345).circle(0.359).workplane(offset=0.354).circle(0.366).loft()
result = result.unio... | 10 | 43 | 1.075952 |
train_76b82a10851a7c23 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.006, 0.107, -0.248), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1.006, -0.679).lineTo(0.994, -0.668).lineTo(0.975, 0.686).lineTo(-0.95, 0.682).close().moveTo(0.168, -0.002).lineTo(0.113, 0.118).lineTo(0.001, 0.163).lineTo(-0.116, 0.119).lineTo(-... | 14 | 60 | 1.291986 |
train_8f75c2973ada57b3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.07, -0.432), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.175, -0.066).lineTo(0.175, -0.054).lineTo(0.027, -0.054).lineTo(0.027, 0.054).lineTo(0.197, 0.054).lineTo(0.197, 0.066).lineTo(-0.197, 0.066).lineTo(-0.197, 0.054).lineTo(-0.067, 0.054)... | 11 | 120 | 0.025405 |
train_245b474327c5020d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.052, -0.027, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.752, 0.49).extrude(1.727)
result = result.union(cq.Workplane(cq.Plane(origin=(0.018, 0.245, -0.317), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.106, 0.054).extrude(0.294))
result = resu... | 13 | 103 | 0.625105 |
train_ed97da5b74e64367 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.772), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.828, 2).extrude(1.249)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.169, -0.072, -0.787), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.063).extrude(0.585))
result = result.edges().fill... | 20 | 133 | 1.477457 |
train_fa1e054b690a1506 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0, -0.211), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.425).sweep(cq.Workplane('XZ').spline([(-0.528, -0.373), (-0.293, -0.206), (-0.057, -0.151), (0.179, -0.206), (0.415, -0.373)]))
result = result.edges().chamfer(0.038)
result = result.cut... | 9 | 15 | 0.559572 |
train_cb9988d5c1a28356 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.652), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.818).extrude(1.014)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.177, -0.407, 0.343), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.142).extrude(0.309))
result = result.cut(cq.Wor... | 6 | 154 | 3.349237 |
train_4e513a77e0315f05 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.315, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.976, 0.986).lineTo(-0.976, 0.718).lineTo(0.022, 0.718).lineTo(0.022, -0.16).lineTo(0.266, -0.16).lineTo(0.266, 0.718).lineTo(0.732, 0.718).lineTo(0.732, -0.356).lineTo(0.976, -0.356).line... | 4 | 34 | 0.761768 |
train_3559a8463186aaa5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.106, 0.017, -0.533), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.297).lineTo(-0.349, 0.297).threePointArc((-0.432, 0.263), (-0.466, 0.181)).lineTo(-0.466, -0.168).lineTo(0, -0.168).lineTo(0.466, -0.168).lineTo(0.466, 0.181).threePointArc((0.4... | 28 | 206 | 0.637205 |
train_084dd5f8734c7937 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.901, -0.682, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 1.423).lineTo(-1, 0.111).lineTo(1, 0.111).lineTo(1, 1.423).lineTo(-1, 1.423).close().extrude(1.802)
result = result.edges().fillet(0.415)
result = result.cut(cq.Workplane(cq.Plane(o... | 17 | 80 | 3.867445 |
train_b42a52715d7493cf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.886, 0.654, -0.192), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 1.008).threePointArc((-0.233, 0.945), (-0.403, 0.775)).lineTo(-0.537, 0.542).lineTo(-0.403, 0.31).lineTo(-0.269, 0.077).lineTo(0, 0.077).threePointArc((0.233, 0.139), (0.403, 0.3... | 15 | 107 | 0.439256 |
train_29e7afb44cfb8a6c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.007, -0.65, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(1, 0.229).lineTo(1, 0.011).lineTo(-1, 0.011).lineTo(-1, 0.229).lineTo(1, 0.229).close().extrude(0.345)
result = result.edges().fillet(0.018)
result = result.cut(cq.Workplane(cq.Plane(ori... | 10 | 97 | 0.313566 |
train_7094c6aa65c75d03 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.158, 0, -0.376), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.684, 1.555).extrude(0.602)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.829, -0.295, -0.002), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.342, 0.095).extrude(0.082))
result = res... | 8 | 40 | 1.284454 |
train_0eefa5be50d78e32 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.192, 0.174, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.3, 1.192).lineTo(0.3, -0.808).lineTo(-0.3, -0.808).lineTo(-0.3, 1.192).lineTo(0.3, 1.192).close().extrude(0.61)
result = result.edges().fillet(0.071)
result = result.union(cq.Workplane... | 19 | 78 | 0.608431 |
train_4bae45571fb717df | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.055, 0.059, -0.061), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.212, 0.454).extrude(0.039)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.055, 0.079, -0.199), normal=(1, 0, 0), xDir=(0, 1, 0))).rect(0.189, 0.02).moveTo(-0.006, 0.005).lineT... | 16 | 64 | 0.043473 |
train_c9d96291ea3af01d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.094, 0, -0.713), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.012, 0.862).extrude(1.106)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.201, 0.087, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.163).extrude(0.299))
result = result.edges... | 7 | 43 | 1.021407 |
train_3ef43422f6852d35 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.269, 0, 0.046), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.307, -0.85).lineTo(-0.267, -0.886).lineTo(-0.178, -0.85).lineTo(0.258, -0.85).lineTo(0.052, -0.757).lineTo(-0.115, -0.682).lineTo(0.307, -0.314).lineTo(0.133, 0.026).lineTo(-0.307, 0.... | 10 | 77 | 0.815641 |
train_f9ee80a7479086ab | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.461, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.913, 1.374).lineTo(-0.288, 0.749).lineTo(0.667, 0.952).lineTo(0.71, 0.749).lineTo(0.913, -0.206).lineTo(0.71, -0.249).lineTo(-0.245, -0.452).lineTo(0.211, 0.25).lineTo(-0.288, -0.249).lin... | 18 | 38 | 1.192743 |
train_57b93a5db3477108 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.271), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.669).extrude(0.542)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0.072), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.223, -0.016).lineTo(0, 0.016).lineTo(0.223, -0.016).lineTo... | 14 | 48 | 1.466957 |
train_05a235ab80b548b9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.121, -0.186), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.626, -0.398).lineTo(-0.626, -0.398).lineTo(0.626, 0.398).lineTo(0.626, -0.398).close().sweep(cq.Workplane('YZ').spline([(-0.881, -0.644), (-0.493, -0.644), (-0.105, -0.644), (0.238, -0... | 1 | 5 | 0.714118 |
train_3dcc5a66afdedd7a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.492, -0.021, -0.097), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.172, 0.176).extrude(0.191)
result = result.union(cq.Workplane(cq.Plane(origin=(0.466, -0.195, 0.002), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.024, 0.213).extrude(0.028))
result = ... | 7 | 96 | 1.440176 |
train_51dbc0db473a5204 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.962, 0, -0.379), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.055, -0.151).lineTo(-0.055, 0.151).lineTo(0.055, 0.151).lineTo(0.055, -0.151).lineTo(-0.055, -0.151).close().sweep(cq.Workplane('XZ').spline([(-0.962, -0.379), (-0.32, 0.28), (0.32,... | 2 | 26 | 0.07597 |
train_7a6c44328a20cfe1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.072, 0.005, 0.014), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.156, 0.738).lineTo(0.138, 0.745).lineTo(0.154, 0.157).lineTo(0.897, 0.146).lineTo(0.928, -0.162).lineTo(0.149, -0.162).lineTo(0.146, -0.745).lineTo(-0.161, -0.755).lineTo(-0.17, -0... | 9 | 162 | 0.486347 |
train_2d911299d6b7eb43 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.12, -1.106, -0.159), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.848, 1.633).threePointArc((-0.764, 1.106), (-0.848, 0.579)).lineTo(-0.081, 0.33).lineTo(0.685, 0.081).threePointArc((0.848, 1.106), (0.685, 2.132)).lineTo(-0.081, 1.882).lineTo(-... | 10 | 115 | 0.688504 |
train_e2713b0e3aec682e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.056, -0.711, -0.88), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.59, 1.445).lineTo(-0.344, 1.587).threePointArc((-0.737, 1.297), (-0.933, 0.85)).threePointArc((-0.879, 0.364), (-0.59, -0.029)).threePointArc((-0.143, -0.224), (0.344, -0.17)).thr... | 10 | 40 | 1.891233 |
train_c98454429c1ca3cd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.198, -0.712, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.665, -0.444).lineTo(0.665, 0.839).lineTo(-0.665, 0.839).lineTo(-0.665, -0.444).lineTo(0.665, -0.444).close().extrude(1.712)
result = result.edges().fillet(0.248)
result = result.cut(c... | 31 | 31 | 2.719738 |
train_ac9f3127195e2c2c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.421), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.243, -0.86).lineTo(0.392, 0.822).lineTo(0.296, 0.86).lineTo(-0.392, -0.801).lineTo(-0.243, -0.86).close().workplane(offset=0.133).moveTo(-0.19, -0.67).lineTo(0.305, 0.64).lineTo(0.231, 0.... | 3 | 14 | 0.119524 |
train_2a5b83c120dfafdb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.144, -0.501, -0.19), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.616, -0.458).lineTo(0.616, 0.735).lineTo(0.028, 0.735).lineTo(-0.445, -0.142).lineTo(-0.616, -0.458).lineTo(0.616, -0.458).close().extrude(1.149)
result = result.edges().chamfer(0... | 16 | 208 | 1.037162 |
train_d8a8ec15e8987daa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.275, 0.236, -0.085), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.725, -0.015).lineTo(0.353, 0.614).lineTo(-0.373, 0.647).lineTo(-0.717, 0.019).lineTo(-0.351, -0.643).lineTo(0.348, -0.619).close().moveTo(-0.116, 0.22).lineTo(-0.176, 0.302).lineTo... | 18 | 174 | 0.194435 |
train_fc06c4741c28be84 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.2, -0.01, -0.029), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.029, 0.8).lineTo(0.029, -0.72).lineTo(-0.028, -0.72).lineTo(-0.029, 0.8).lineTo(0.029, 0.8).close().revolve(angleDegrees=360, axisStart=(0.029, 0.8), axisEnd=(0.029, -0.72))
result... | 6 | 34 | 0.014309 |
train_d76601d2fde063eb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.923, 0.002), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(1.002, 0.463).threePointArc((-0.186, 0.186), (-1.002, 1.091)).lineTo(-0.643, 1.041).threePointArc((-0.111, 0.511), (0.636, 0.597)).lineTo(1.002, 0.463).close().revolve(angleDegrees=360,... | 6 | 38 | 1.429385 |
train_4adacc30f2eda832 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 1.019, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(1, 1.019).lineTo(-1, 1.019).lineTo(-1, 0.859).lineTo(0.2, 0.859).lineTo(0.2, 0.06).lineTo(1, 0.06).lineTo(1, 1.019).close().revolve(angleDegrees=360, axisStart=(1, 1.019), axisEnd=(-1, 1.019)... | 6 | 39 | 2.369253 |
train_d480f38bc09aa1e1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.12, 0.014, -0.263), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.094, 0.008).lineTo(0.31, 0.986).lineTo(-0.854, 0.611).lineTo(-0.85, -0.625).lineTo(0.292, -1.014).close().center(-0.428, 0).rect(0.523, 0.445).moveTo(0.857, -0.237).lineTo(0.857, 0... | 15 | 99 | 0.784017 |
train_e63dae7489eec14f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.042, -0.03, 0.506), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.036, 0.238).lineTo(-0.024, 0.232).lineTo(-0.039, 0.196).lineTo(0.287, 0.196).lineTo(0.287, -0.238).lineTo(-0.287, -0.238).lineTo(-0.287, 0.196).lineTo(-0.055, 0.196).lineTo(-0.036,... | 7 | 75 | 0.146794 |
train_be11a542b0412d06 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.611, -0.753, -0.007), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.259, 0.621).threePointArc((-0.35, 0.583), (-0.389, 0.492)).lineTo(-0.389, 0.427).threePointArc((-0.35, 0.335), (-0.259, 0.297)).lineTo(0.259, 0.297).threePointArc((0.35, 0.335), ... | 11 | 49 | 0.653387 |
train_95cdb91e5945054b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.006, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.689, 0.414).threePointArc((0.001, 0.609), (0.586, 0.194)).threePointArc((0.663, -0.001), (0.689, -0.208)).threePointArc((0.663, -0.416), (0.586, -0.609)).threePointArc((0.361, -0.462), (0... | 15 | 130 | 0.503727 |
train_17ed17d7890c27ae | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.641, 0.654, 0.267), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.351, 0.089).lineTo(0.451, 0.089).lineTo(0.451, 1.042).lineTo(0.652, 1.042).lineTo(0.652, 1.192).lineTo(-0.652, 1.192).lineTo(-0.652, 0.089).lineTo(0.351, 0.089).close().extrude(1.6... | 11 | 87 | 1.647819 |
train_81b6e7cb282c7365 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.696, 0.696, -0.008), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.336, 1.391).threePointArc((-0.419, 1.191), (-0.62, 1.108)).lineTo(-0.62, 0.031).lineTo(0.053, 0.031).lineTo(0.506, 0.031).lineTo(0.62, 0.031).lineTo(0.62, 0.597).lineTo(0.053, 0.... | 10 | 114 | 0.85547 |
train_0b52cf7cc6fffc79 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.596, 0.709, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.47, 0.677).lineTo(-0.135, 0.677).lineTo(-0.135, 1.596).lineTo(0.47, 1.596).lineTo(0.201, 0.677).lineTo(0.12, 0.407).lineTo(-0.135, 0.407).lineTo(-0.135, -0.463).lineTo(-0.391, 0.407).... | 9 | 121 | 0.832754 |
train_7628636653019982 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.001, 0.062), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.018, -0.999).threePointArc((-0.105, -0.896), (-0.018, -0.793)).lineTo(-0.018, 0.999).lineTo(0.105, 0.999).lineTo(0.105, -0.893).lineTo(0.105, -0.898).threePointArc((0.066, -0.977), (... | 18 | 70 | 0.021236 |
train_61f0675d4aee60a4 | 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.836).workplane(offset=0.361).circle(0.792).workplane(offset=0.303).circle(0.749).workplane(offset=0.287).circle(0.705).workplane(offset=0.404).circle(0.662).workplane(offset=0.279).circle(0.61... | 17 | 5 | 3.021375 |
train_59253f6e6a387b10 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.019, -0.136, 1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.212, -0.212).lineTo(0.212, -0.137).lineTo(0.132, -0.086).lineTo(0.094, 0.094).lineTo(0.212, 0.212).lineTo(-0.212, 0.212).lineTo(-0.094, 0.094).lineTo(0.086, 0.132).lineTo(0, 0).lineTo... | 4 | 30 | 0.175948 |
train_e1b034250b17673d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.245, 0, 0.257), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.237, 0.827).lineTo(-0.237, -0.827).lineTo(0.237, -0.827).lineTo(0.237, 0.827).lineTo(-0.237, 0.827).close().extrude(0.219)
result = result.edges().chamfer(0.103)
result = result.cut(c... | 19 | 101 | 0.227744 |
train_774eb0f6f4d26c5e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.025, 0, -0.829), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.312, 1.221).extrude(1.829)
result = result.union(cq.Workplane(cq.Plane(origin=(0.701, 0.236, 0.5), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.071).extrude(0.154))
result = result.union... | 10 | 49 | 2.625733 |
train_002ab5040c2ab1d7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.003, -0.026, -0.104), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.003, -0.037).lineTo(0.73, 0.721).lineTo(-0.022, 1.022).lineTo(-0.719, 0.712).lineTo(-0.997, 0.029).lineTo(-0.704, -0.701).lineTo(-0.025, -0.97).lineTo(0.719, -0.729).close().move... | 12 | 149 | 0.286504 |
train_18ea901ddc46139e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.372), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.546).extrude(0.744)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.547, 0, -0.149), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.954, 0.185).extrude(0.299))
result = result.cut(cq.Workp... | 11 | 51 | 2.180273 |
train_97a92f0be2304dfa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.269, -0.419, -0.232), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.312, 0.066).lineTo(0.312, 0.69).lineTo(-0.312, 0.69).lineTo(-0.138, 0.517).lineTo(0.126, 0.573).lineTo(0.138, 0.517).lineTo(0.195, 0.252).lineTo(0, 0.378).lineTo(-0.138, 0.24).li... | 19 | 396 | 0.507205 |
train_ce9a462e36cac41f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.434, 0, -0.751), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.249, 0.056).lineTo(0.249, 0.004).lineTo(-0.249, 0.004).lineTo(-0.249, 0.061).lineTo(0.249, 0.061).lineTo(0.249, 0.056).close().revolve(angleDegrees=90, axisStart=(0.249, 0.056), axisEn... | 7 | 80 | 0.052106 |
train_f6c29ed461dc05ab | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.049, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.131, 1.266).extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(0.003, 0.632, -0.09), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.086, 0.101).extrude(0.257))
result = result.edges(... | 8 | 92 | 2.831504 |
train_21b05eaadd591667 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.054, -0.189, 0.31), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.189, -0.189).lineTo(-0.237, -0.189).lineTo(-0.237, 0.189).lineTo(0.237, 0.189).lineTo(0.237, 0.14).lineTo(0.201, 0.14).lineTo(0.195, 0.164).lineTo(0.189, 0.14).lineTo(0.189, -0.189... | 15 | 109 | 0.282337 |
train_f8394a76a7d6bce4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.165, 0.07, 0.044), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.208, 0.26).extrude(0.035)
result = result.union(cq.Workplane(cq.Plane(origin=(0.165, 0.07, 0.079), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.116, 0.144).extrude(0.003))
result = result... | 30 | 180 | 0.344177 |
train_5c7dc43f16be2e71 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.129, -0.143, 0.049), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.355, -0.309).lineTo(-0.355, 0.309).lineTo(0.355, 0.309).lineTo(0.355, -0.309).lineTo(-0.355, -0.309).close().sweep(cq.Workplane('XY').spline([(-0.741, -0.143), (0.018, -0.143), (0... | 4 | 16 | 0.713231 |
train_a25eedc5560e0be0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.664), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.923).extrude(1.329)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.443, -0.11, 0.008), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.258).extrude(0.673))
result = result.cut(cq.Workpl... | 10 | 83 | 2.096871 |
train_dc1c79b8b5271537 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.482, -0.291), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.538, -0.518).lineTo(0.538, 1.482).lineTo(-0.538, 1.482).lineTo(-0.538, -0.518).lineTo(0.538, -0.518).close().extrude(0.582)
result = result.edges().chamfer(0.09)
result = result.cut(c... | 14 | 87 | 0.592404 |
train_5dd121a533a0a43f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(3.614, -1.237, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(1.81, 8.685).lineTo(-1.81, 8.685).lineTo(-1.81, -5.344).lineTo(1.81, -5.344).lineTo(1.81, 8.685).close().extrude(3.829)
result = result.edges().chamfer(1.239)
result = result.cut(cq.Wor... | 20 | 35 | 0.306492 |
train_cf3a8f614ad30ee1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.162, -0.092, 0.036), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, 0.638).lineTo(0, 0).lineTo(-0.634, 0).lineTo(-0.634, -0.433).lineTo(-0.534, -0.536).lineTo(-0.436, -0.638).lineTo(0.436, -0.638).lineTo(0.534, -0.536).lineTo(0.634, -0.433).lineT... | 14 | 52 | 0.11118 |
train_67a90e7f1659ffdc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.749, -0.265, 0.026), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.927, 0.82).lineTo(0.309, 0.82).lineTo(0, 1.354).lineTo(-0.309, 0.82).lineTo(-0.618, 0.284).lineTo(-0.927, 0.82).lineTo(-0.927, -0.251).lineTo(0, -0.786).lineTo(0.927, -0.251).line... | 4 | 79 | 2.438121 |
train_e92e5fd072a652f3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.996, 0.371, -0.137), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.797, 1.32).threePointArc((-0.856, 1.007), (-0.797, 0.694)).threePointArc((0, 0.151), (0.797, 0.694)).threePointArc((0.856, 1.007), (0.797, 1.32)).lineTo(-0.797, 1.32).close().wor... | 6 | 40 | 1.186872 |
train_8923854a1795e44b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.152, 0.394, -0.275), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.609, 0.706).extrude(0.331)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.266, 0.474, -0.242), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.246, 0.297).extrude(0.186))
result = ... | 20 | 208 | 0.428593 |
train_35f07afbc349e93b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.18, -0.76, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1, -0.337).lineTo(0.627, 0.337).lineTo(1, -0.337).lineTo(-1, -0.337).close().sweep(cq.Workplane('XY').spline([(0.18, -0.451), (0.369, -0.578), (0.557, -0.641), (0.745, -0.641), (0.933, -... | 2 | 10 | 0.201961 |
train_0b72902b136e192d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.618, -0.553, -0.002), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.355, 0.664).lineTo(-0.106, -0.001).lineTo(0.319, -0.472).lineTo(0.355, -0.339).lineTo(0.024, 0.048).lineTo(0.154, 0.097).lineTo(-0.101, 0.761).lineTo(-0.228, 0.712).lineTo(-0.35... | 8 | 76 | 0.450374 |
train_b2e7ab9ecaed2986 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.188, 0, -0.063), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.271, 2).extrude(0.095)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.068, -0.042, 0.042), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.465, 0.252).lineTo(0.127, 0.252).lineTo(0.... | 18 | 125 | 0.254679 |
train_c49bd3c91f56220b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.092, 0.488, 0.328), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.112, 0.264).lineTo(-0.112, 0.19).lineTo(0.104, 0.19).lineTo(0.104, -0.264).lineTo(0.112, -0.264).lineTo(0.112, 0.264).lineTo(-0.112, 0.264).close().extrude(0.124)
result = result.... | 11 | 110 | 0.959929 |
train_659411ded9716de3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.356, -0.599), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.406, 0.174).threePointArc((0.444, 0.567), (0.818, 0.439)).lineTo(1, 0.439).lineTo(1, 0.369).lineTo(0.748, 0.369).threePointArc((0.413, 0.356), (0.748, 0.342)).lineTo(1, 0.342).lineTo(... | 5 | 86 | 0.398145 |
train_a2c903972850829a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.413, 1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.013, 0.111).lineTo(0.268, 0.111).lineTo(0.268, 0.301).lineTo(-0.248, 0.301).lineTo(-0.248, 0.144).lineTo(-0.268, 0.111).lineTo(-0.236, 0.111).lineTo(-0.236, -0.111).lineTo(-0.268, -0.111).... | 2 | 20 | 0.184331 |
train_f518c8184002b2c2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.395, -0.183, -0.58), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.295, 0.368).threePointArc((-0.154, 0.125), (-0.018, -0.121)).threePointArc((0.157, 0.112), (0.295, 0.368)).lineTo(-0.295, 0.368).close().extrude(0.668)
result = result.edges().fi... | 13 | 123 | 0.236518 |
train_53dd5c7590a3593c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.068, -0.088, -0.015), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.063, 1.068).lineTo(-0.062, 1.068).lineTo(-0.063, 0.497).lineTo(-0.062, -0.074).lineTo(-0.062, -0.932).lineTo(0.063, -0.932).lineTo(0.063, -0.111).lineTo(0.062, 0.46).lineTo(0.062... | 19 | 103 | 0.026859 |
train_65c75db8f4945105 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.461, -0.176), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.766, 1.013).extrude(0.245)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0.461, 0.068), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.601, 0.667).extrude(0.05))
result = result.unio... | 10 | 110 | 0.37914 |
train_2e851804560d5307 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.825, -0.435, 0.027), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.253, -0.306).threePointArc((-0.197, -0.097), (0.012, -0.153)).threePointArc((0.012, -0.051), (0.1, 0)).threePointArc((0.253, 0.153), (0.1, 0.306)).threePointArc((-0.253, 0.102), (... | 1 | 6 | 0.219111 |
train_1ed2b0b7d8b7387f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.141, -0.665), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.257).extrude(1.331)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.009, 0.17, 0.028), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.315).extrude(0.653))
result = result.union(cq.W... | 3 | 14 | 3.206461 |
train_c2ac907630b34264 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.005, -0.672, -0.399), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.51, -0.328).lineTo(-0.51, -0.128).threePointArc((-0.493, -0.01), (-0.442, 0.096)).lineTo(-0.073, 0.274).lineTo(-0.073, 0.328).lineTo(0.219, 0.328).lineTo(0.51, 0.328).lineTo(0.5... | 5 | 40 | 0.865654 |
train_1b7dcd967280e8a0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.579, 0, -0.007), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.196, -0.415).threePointArc((-0.459, 0), (0.196, 0.415)).threePointArc((0.459, 0), (0.196, -0.415)).close().sweep(cq.Workplane('XZ').spline([(0.139, -0.827), (0.497, -0.802), (0.856, ... | 8 | 31 | 0.457308 |
train_8a29f7880bdca047 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.232, 0.284), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.352, 0.395).threePointArc((0.326, 0.418), (0.3, 0.44)).lineTo(0, 0.268).lineTo(-0.3, 0.44).threePointArc((-0.326, 0.418), (-0.352, 0.395)).lineTo(-0.149, 0.278).threePointArc((-0.166,... | 1 | 18 | 0.836158 |
train_d97d99054b8d1646 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.013, -0.01, -0.059), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.125, -0.99).lineTo(-0.125, 1.01).lineTo(0.125, 1.01).lineTo(0.125, -0.99).lineTo(-0.125, -0.99).close().revolve(angleDegrees=90, axisStart=(-0.125, -0.99), axisEnd=(-0.125, 1.01)... | 10 | 76 | 0.112083 |
train_a789faaaf733fff3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.106, 0.385, -0.443), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.155, -0.146).lineTo(0.378, 0.064).lineTo(-0.139, 0.615).lineTo(-0.378, 0.389).lineTo(-0.332, 0.056).lineTo(-0.154, -0.134).lineTo(0.155, -0.146).close().extrude(0.65)
result = resu... | 3 | 17 | 0.317322 |
train_d5b62228d92b6e8a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.376, -0.306, -0.05), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.207, 1.376).threePointArc((-0.103, 0.142), (0.207, -1.058)).lineTo(0.207, 1.376).lineTo(-0.207, 1.376).close().extrude(0.611)
result = result.edges().fillet(0.078)
result = resul... | 4 | 30 | 0.29143 |
train_76fb285fd16cdc99 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.258, -0.336, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.005, -0.15).lineTo(0.076, -0.15).lineTo(0.082, -0.027).lineTo(0.09, 0.152).lineTo(0.1, 0.366).lineTo(-0.005, 0.366).lineTo(-0.005, 0.152).lineTo(-0.1, 0.152).lineTo(-0.092, -0.027).l... | 8 | 88 | 0.099636 |
train_6ac91e0d67468dac | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.074, -0.426, -0.442), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.135, -0.288).lineTo(-0.262, 0.658).lineTo(0.262, 0.125).threePointArc((0.255, 0.032), (0.217, -0.052)).lineTo(-0.135, -0.288).close().extrude(0.427)
result = result.edges().fille... | 19 | 148 | 0.334555 |
train_760535d0a5187dfc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1.081, -0.006, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-1.001, 1.079).threePointArc((0, 0.078), (1.001, 1.079)).lineTo(0.5, 1.079).lineTo(-0.5, 1.079).lineTo(-1.001, 1.079).close().revolve(angleDegrees=270, axisStart=(1.001, 1.079), axisEnd... | 7 | 64 | 2.933072 |
train_cd415984ca237954 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.636, -0.63), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.63, 0.728).extrude(0.564)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.04, -0.294, -0.309), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.035, 1.411).extrude(0.044))
result = result... | 4 | 18 | 0.263966 |
train_d973ce70ea20b3da | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.491), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.439).extrude(0.982)
result = result.faces('>Z').shell(-0.112)
| 2 | 11 | 0.948875 |
train_8e80b4f43f03f4f2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.063, 0.073), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.32, 0.32).lineTo(0.32, 0.32).lineTo(0.32, -0.32).lineTo(0.203, -0.32).lineTo(0.203, -0.224).lineTo(0.107, -0.224).lineTo(0.107, -0.32).lineTo(-0.32, -0.32).lineTo(-0.32, 0.107).line... | 22 | 177 | 0.588534 |
train_0ac7aa7876bb5cc0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.161, 0, -0.773), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.498, 0.463).extrude(0.236)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.206, -0.069, -0.583), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.144, 0.085).extrude(0.533))
result = re... | 9 | 33 | 0.119205 |
train_55145991f98f3933 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.046, 0.015, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.272, 0.225).extrude(1.129)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.135, -0.028, -0.547), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.047).extrude(0.464))
result = result.u... | 28 | 196 | 0.075325 |
train_1f28ad2b5dcf24c9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.56), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.724, -0.82).threePointArc((0, -0.858), (0.724, -0.82)).lineTo(0.736, -0.1).lineTo(0.711, 0.804).threePointArc((0, 0.858), (-0.711, 0.804)).lineTo(-0.736, -0.1).lineTo(-0.724, -0.82).close(... | 16 | 362 | 2.140885 |
train_fb7ac5027c2c7dbf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.789, 0, 0.444), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.02, 0.047).lineTo(-0.091, 0.047).lineTo(-0.091, 0.049).lineTo(0.091, 0.049).lineTo(0.091, -0.049).lineTo(0.022, -0.049).lineTo(0.022, 0.047).lineTo(0.02, 0.047).close().sweep(cq.Workp... | 3 | 24 | 0.027455 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.