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_0963583a006664c8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.545), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.305, 1.534).extrude(0.874)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, 0.298), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.276).extrude(0.341))
result = result.union(cq.Workpla... | 12 | 76 | 2.34366 |
train_30a07d65b2a0b751 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.856, 0, 0.048), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.096, 0.154).lineTo(0.096, 0.116).threePointArc((0.124, 0.104), (0.135, 0.077)).lineTo(0.135, -0.077).lineTo(0.135, -0.144).threePointArc((0.116, -0.152), (0.096, -0.154)).lineTo(-0.05... | 5 | 44 | 0.037603 |
train_71b75643ca8ca53a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.001, -0.898, -0.156), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.844, 0.335).lineTo(-0.844, 0.124).lineTo(-0.555, 0.124).threePointArc((0, -0.335), (0.555, 0.124)).lineTo(0.844, 0.124).lineTo(0.844, 0.335).lineTo(0.555, 0.335).lineTo(-0.555, ... | 10 | 57 | 0.537746 |
train_071489b54fa80144 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.646), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.782).extrude(1.292)
| 1 | 6 | 2.020688 |
train_73de6d43ff6e2fca | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.055, 0.346, 0.129), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.362).workplane(offset=0.144).circle(0.295).workplane(offset=0.164).circle(0.208).workplane(offset=0.137).circle(0.305).workplane(offset=0.146).circle(0.212).workplane(offset=0.149... | 15 | 48 | 0.247619 |
train_1531fba85a95d6e6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.01, 0.36, -0.429), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.229, 0.302).extrude(0.215)
result = result.union(cq.Workplane(cq.Plane(origin=(0.003, 0.359, -0.422), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.015, 0.082).lineTo(0.015, 0.007).line... | 33 | 160 | 0.149562 |
train_271c9c8d8e9cc44f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.455, -0.896, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(1, 1.703).lineTo(1, 0.089).lineTo(-1, 0.089).lineTo(-1, 1.703).lineTo(1, 1.703).close().extrude(0.91)
result = result.edges().chamfer(0.389)
result = result.cut(cq.Workplane(cq.Plane(or... | 11 | 59 | 1.609258 |
train_3f334156bcc4f7ce | 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.207).workplane(offset=0.331).circle(0.323).workplane(offset=0.419).circle(0.325).workplane(offset=0.333).circle(0.383).workplane(offset=0.467).circle(0.29).workplane(offset=0.45).circle(0.444)... | 8 | 24 | 0.612207 |
train_7496bd7034b3403d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.034, -0.786), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.523, 0.644).extrude(1.786)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.069, -0.321, 0.415), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.038, 0.069).extrude(0.175))
result = resu... | 12 | 115 | 0.582375 |
train_ec21989d3bcea151 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1, -0.267), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.242, -0.029).lineTo(-0.242, 0.029).lineTo(-0.184, 0.029).lineTo(-0.184, 0.588).lineTo(0.242, 0.588).lineTo(0.242, -0.588).lineTo(-0.184, -0.588).lineTo(-0.184, -0.002).lineTo(-0.231, -0... | 1 | 12 | 0.519737 |
train_2fc32a4762ab319c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.036, -0.562, -0.55), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.862, 0.876).extrude(0.393)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.052, -0.831, -0.441), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.149).extrude(0.245))
result = result... | 18 | 124 | 0.499723 |
train_865eeaf33338fd05 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.777), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.514, 0.726).extrude(1.777)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.125, 0.162, -0.346), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.246, 0.424).extrude(0.507))
result = result.edge... | 30 | 250 | 1.30812 |
train_5dee952671c1b722 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.908), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.991).extrude(1.816)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.093, 0.549, -0.26), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.479, 0.936).extrude(0.575))
result = result.cut(cq.Wo... | 10 | 49 | 5.212359 |
train_95c241f489937559 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.219), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.391, 0.289).threePointArc((-0.361, 0.361), (-0.289, 0.391)).lineTo(0.289, 0.391).lineTo(0.391, 0.289).lineTo(0.391, -0.289).threePointArc((0.361, -0.361), (0.289, -0.391)).lineTo(-0.289, -... | 2 | 10 | 1.129005 |
train_73d109a68c6906b3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.025, -0.602, -0.002), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.228, -0.398).lineTo(-0.231, 0.398).lineTo(-0.225, 0.398).lineTo(0.231, -0.393).lineTo(0.228, -0.398).close().sweep(cq.Workplane('YZ').spline([(-0.602, -0.002), (-0.361, -0.048), ... | 3 | 16 | 0.004631 |
train_ab554a78599c9056 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.062, -0.401, -0.356), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.072, -0.397).lineTo(-0.072, 0.397).threePointArc((0.03, 0.355), (0.072, 0.253)).lineTo(0.072, -0.325).lineTo(0.072, -0.397).lineTo(-0.072, -0.397).close().extrude(0.351)
result ... | 19 | 97 | 0.143645 |
train_5771eb93996ac76a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.642), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.474).extrude(1.284)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.085, 0.409, -0.396), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.258, 0.691).extrude(0.494))
result = result.cut(cq.W... | 27 | 97 | 1.893858 |
train_07bb5e43d1cf0cf5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.454, -0.421, 0.126), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.464, 0.314).threePointArc((0.482, 0.269), (0.527, 0.251)).lineTo(0.527, -0.296).threePointArc((0.482, -0.314), (0.464, -0.359)).lineTo(-0.42, -0.359).lineTo(-0.482, -0.359).lineT... | 7 | 45 | 0.669833 |
train_dd15a77753e8b94f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.46, -0.076, -0.124), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.772, 0.237).extrude(0.171)
result = result.union(cq.Workplane(cq.Plane(origin=(0.019, -0.083, -0.084), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.058).extrude(0.052))
result = resul... | 11 | 70 | 0.064045 |
train_2f4ccda7512fdee7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.011, 0, -0.209), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1.209, 0.011).lineTo(1.209, 0.011).lineTo(1.209, 0.096).lineTo(-1.209, 0.011).close().revolve(angleDegrees=270, axisStart=(-1.209, 0.011), axisEnd=(1.209, 0.011))
result = result.edges... | 7 | 23 | 0.00995 |
train_8ae605e92ed4aa2b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, 0, -0.006), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.975, -0.944).lineTo(1.001, -0.968).lineTo(0.996, 0.949).lineTo(-0.999, 0.968).close().moveTo(-0.251, 0.208).lineTo(0.25, 0.208).lineTo(0.25, 0.146).lineTo(0.031, 0.142).lineTo(0.035,... | 14 | 215 | 1.903832 |
train_ca71118fbdfb4231 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.243, -0.166, -0.55), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.514, 0.774).extrude(1.1)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.358, -0.287, -0.057), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.002, 0.382).threePointArc((0.041, 0.52... | 19 | 56 | 1.127603 |
train_5917cc367431758f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.364, -0.343, -0.405), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.383, 0.483).lineTo(0.177, 0.601).lineTo(0.355, 0.908).threePointArc((-0.109, 0.86), (-0.383, 0.483)).lineTo(-0.028, 0.483).lineTo(-0.028, 0.245).lineTo(-0.383, 0.245).threePointA... | 19 | 303 | 0.375119 |
train_5fe2c6048dc2c148 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.389), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.562, 2).extrude(0.084)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.086, 0, -0.314), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.074).extrude(0.179))
result = result.union(cq.Workp... | 3 | 11 | 0.268565 |
train_66581799a7802a7f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.458, 0.015, -0.084), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.711, 0.068).extrude(0.12)
result = result.union(cq.Workplane(cq.Plane(origin=(0.568, 0.014, 0.032), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.187, 0.052).extrude(0.07))
result = resu... | 10 | 75 | 0.006027 |
train_1277864f51696c8d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.223, 0.141, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.027, 1.051).extrude(1.537)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.308, 0.388, -0.78), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.097).extrude(0.649))
result = result.edges(... | 25 | 178 | 1.198061 |
train_bad3f3cd24a3e239 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.165, 0, -0.169), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.633, 1.438).extrude(1.169)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.405, 0.101, 0.347), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.091).extrude(0.278))
result = result.union(... | 6 | 43 | 2.780345 |
train_d98e68f4c3692842 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.128, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.795, 0.691).lineTo(-0.795, -0.691).lineTo(0.795, 0.691).lineTo(-0.795, 0.691).close().sweep(cq.Workplane('XY').spline([(-0.128, 1.717), (0.4, 2.106), (0.928, 2.236), (1.456, 2.106), (1.9... | 10 | 33 | 1.732534 |
train_68e3e87516618823 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.202, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.031, -0.067).threePointArc((0, 0.068), (0.031, -0.067)).lineTo(0.031, -0.084).threePointArc((0.036, -0.082), (0.041, -0.079)).threePointArc((0.087, -0.005), (0.045, 0.072)).threePointAr... | 1 | 10 | 0.012476 |
train_20d1ccea690480dd | 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.382).workplane(offset=0.374).circle(0.471).workplane(offset=0.334).circle(0.255).workplane(offset=0.424).circle(0.246).workplane(offset=0.423).circle(0.281).workplane(offset=0.444).circle(0.19... | 3 | 5 | 0.667578 |
train_19c2a36fabf76ef9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.707), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.843).extrude(1.415)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.122, 0.484, -0.562), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.285).extrude(0.435))
result = result.edges().fill... | 6 | 77 | 4.64706 |
train_d29e18826bf98689 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.257, 0.552, -0.065), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.66, 0.904).lineTo(0.22, 0.904).lineTo(0.44, 0.522).lineTo(0.22, 0.141).lineTo(-0.66, 0.141).lineTo(-0.44, 0.522).lineTo(-0.66, 0.904).lineTo(-0.22, 0.904).lineTo(0, 1.285).lineTo(... | 10 | 99 | 0.794025 |
train_398381ceec8abab8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.923), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.931, 2).extrude(1.847)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.124, -0.202, 0.495), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.301, 1.196).extrude(0.44))
result = result.edges().... | 5 | 60 | 3.187859 |
train_4cb44df461e62b83 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.22, 0.323, -0.296), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.319, 0.599).extrude(0.166)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.174, 0.332, -0.347), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.066).extrude(0.057))
result = resul... | 25 | 218 | 0.670953 |
train_7285cbfab6a816ef | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.684), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.013, -0.87).lineTo(-0.985, -0.633).threePointArc((-1, -0.429), (-0.985, -0.224)).lineTo(-0.013, 0.013).lineTo(0.224, 0.985).threePointArc((0.429, 1), (0.633, 0.985)).lineTo(0.87, 0.013).l... | 9 | 60 | 1.761394 |
train_3e7044b1d76c14da | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.667, -0.864, -0.059), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1.059, 1.746).lineTo(0.53, -0.018).lineTo(1.059, -0.018).lineTo(1.059, 1.746).lineTo(-1.059, 1.746).close().extrude(1.335)
result = result.edges().chamfer(0.176)
result = result.c... | 9 | 49 | 2.749459 |
train_7a9ab30cb2479e5d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.33, 0.132, 0.035), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.813, 1.217).extrude(0.448)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.274, 0.283, 0.022), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.304, 0.325).extrude(0.538))
result = resu... | 23 | 114 | 1.012818 |
train_f24cfa9027b24d3b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.389, 0.549, -0.206), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.611, 0.127).lineTo(0.279, 0.273).lineTo(0.246, 0.449).lineTo(-0.053, 0.385).lineTo(-0.11, 0.419).lineTo(-0.553, -0.126).lineTo(0.359, -0.414).lineTo(0.279, -0.291).close().moveTo(-... | 30 | 402 | 1.788761 |
train_cb1cd33d4c1226b3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1, -0.134), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.44).sweep(cq.Workplane('YZ').spline([(-0.466, -0.902), (-0.261, -0.853), (-0.056, -0.866), (0.148, -0.97), (0.353, -1.136)]))
result = result.edges().fillet(0.228)
result = result.cut(cq... | 13 | 58 | 0.941525 |
train_3497f56e5d87c62f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.604), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.989).extrude(1.152)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.418, -0.076, 0.174), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.367, 0.638).extrude(0.383))
result = result.edges()... | 18 | 139 | 2.089587 |
train_85411e2cb6dcc83b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.167, -0.032, -0.054), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.842, 0.15).lineTo(-0.842, 0.015).lineTo(0.842, 0.015).lineTo(0.842, 0.15).lineTo(0.757, 0.234).lineTo(0.673, 0.15).lineTo(0.589, 0.234).lineTo(0.505, 0.15).lineTo(0.337, 0.15).l... | 14 | 251 | 0.029945 |
train_06eb7f4581bca3ef | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.061, 0.487, -0.014), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.327, 0.077).lineTo(-0.036, 0.159).lineTo(-0.327, 0.391).lineTo(0.327, 0.912).lineTo(0.327, 0.077).close().extrude(1.061)
result = result.union(result.mirror('YZ', basePointVector=... | 3 | 26 | 0.600185 |
train_93a3c2d615ec23a1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.013, -0.497, 0.501), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.087).sweep(cq.Workplane('YZ').spline([(0.249, 0.076), (0.231, 0.309), (-0.034, 0.424), (-0.277, 0.231), (-0.277, -0.08), (-0.034, -0.273), (0.231, -0.157)]))
result = result.edge... | 9 | 49 | 0.168713 |
train_0ee2eb5037937386 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.275, -0.461, 0.031), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.127, 0.098).lineTo(-0.127, -0.047).lineTo(-0.018, -0.047).threePointArc((0.106, -0.098), (0.054, 0.026)).lineTo(0.054, 0.062).lineTo(0.127, 0.062).lineTo(0.127, 0.098).lineTo(0.... | 3 | 18 | 0.027384 |
train_4c874f737de05b00 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.039, 0.515, 0.132), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.868).workplane(offset=0.623).circle(0.603).workplane(offset=0.709).circle(0.002).loft()
result = result.union(cq.Workplane(cq.Plane(origin=(0.111, 0.651, 0.079), normal=(0, 0, 1),... | 11 | 69 | 1.364818 |
train_6d20a0b4befed5a7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.362, 0.336, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.224, 0.967).lineTo(-0.224, 0.925).lineTo(-0.182, 0.925).lineTo(-0.127, 0.875).lineTo(-0.127, -0.638).lineTo(-0.087, -0.638).lineTo(-0.087, 0.925).lineTo(-0.059, 0.925).lineTo(-0.059, ... | 4 | 117 | 0.064799 |
train_5792d47c55d459c3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.133, 0.644, -0.194), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.29, 0.094).lineTo(-0.29, -0.534).lineTo(0.29, -0.534).lineTo(0.29, 0.094).lineTo(0.516, 0.225).lineTo(0.833, 0.408).lineTo(0.785, 0.491).lineTo(0.592, 0.826).lineTo(0, 0.485).lin... | 7 | 88 | 1.675141 |
train_1a55c2cba96c7822 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.099, 0.086), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.829, 1.128).extrude(0.914)
result = result.union(cq.Workplane(cq.Plane(origin=(0.396, -0.099, 0.543), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.313, 0.762).lineTo(-0.313, 0.152).line... | 11 | 89 | 1.074696 |
train_b924c3cbf0bb7411 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.191, 0.754).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.127, 0.167, 0.499), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.135).extrude(0.514))
result = result.cut(cq.Workplane(c... | 7 | 26 | 1.69567 |
train_d74d682391d19f28 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.185, -0.162), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.495, 1.63).extrude(0.202)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.105, 0.53, -0.046), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.794, 0.133).extrude(0.063))
result = result.ed... | 20 | 202 | 0.393155 |
train_b2b6a6dfd64cbb30 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.369, 0).lineTo(0.369, -0.426).lineTo(-0.369, 0).lineTo(0.369, 0.426).lineTo(0.369, 0).close().sweep(cq.Workplane('XY').spline([(-0.674, -0.277), (-0.482, -0.271), (-0.289, -0.239), (-0.096, -0.... | 8 | 47 | 0.146936 |
train_04f5793ede136d85 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1, -0.058), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.177, -0.057).lineTo(0.177, -0.046).lineTo(0.036, -0.046).lineTo(0.036, 0.057).lineTo(-0.053, 0.057).lineTo(-0.053, -0.046).lineTo(-0.16, -0.046).lineTo(-0.16, 0.057).lineTo(-0.177, 0.057... | 1 | 12 | 0.029514 |
train_9f4eda4803fb8869 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.511, -0.894), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.109, 0.046).threePointArc((-0.154, 0), (-0.109, -0.046)).lineTo(0.154, -0.046).lineTo(0.154, -0.019).lineTo(0.036, -0.019).lineTo(0.036, 0.018).lineTo(0.154, 0.018).lineTo(0.154, 0.04... | 1 | 10 | 0.055617 |
train_a7d13515aeb57243 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.069, 0.12, -0.089), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.62, 0.73).extrude(0.195)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.096, -0.188, -0.046), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.057).extrude(0.057))
result = result.cut... | 27 | 131 | 0.105492 |
train_91788c5cac9af595 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.119), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.728, 2).extrude(0.189)
result = result.union(cq.Workplane(cq.Plane(origin=(0.414, -0.4, 0.068), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.135, 0.107).extrude(0.051))
result = result.cut(cq.W... | 6 | 21 | 0.534704 |
train_8b9fe0fb8ece580f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.068, 0.151, -0.168), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.024, -0.021).lineTo(-0.018, -0.012).lineTo(-0.023, 0.016).lineTo(-0.024, 0.021).lineTo(0.024, 0.021).lineTo(0.024, -0.021).close().sweep(cq.Workplane('XY').spline([(-0.987, 0.151)... | 3 | 31 | 0.08168 |
train_2d034b33a57269f7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.037, 0.524, -0.447), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.217, 0.165).threePointArc((-0.141, 0.146), (-0.082, 0.095)).threePointArc((-0.112, 0), (-0.082, -0.095)).threePointArc((-0.023, -0.146), (0.052, -0.165)).threePointArc((0.217, 0)... | 1 | 7 | 0.067552 |
train_55a15fd4885e7fb0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.814, -0.325, -0.271), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.132).sweep(cq.Workplane('YZ').spline([(-0.325, -0.271), (-0.14, -0.15), (0.044, -0.11), (0.229, -0.15), (0.413, -0.271)]))
result = result.edges().chamfer(0.062)
result = result... | 8 | 37 | 0.159153 |
train_c4d23f66f3817508 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.886, 0.161, -0.13), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.114, -0.136).threePointArc((0, -0.1), (-0.114, -0.136)).threePointArc((-0.086, 0.008), (-0.008, 0.132)).threePointArc((0, 0.136), (0.008, 0.132)).threePointArc((0.086, 0.008), (0.... | 1 | 6 | 0.009173 |
train_c213b38bdf68c1cc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.25, 0.087, -0.682), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.182, 0.145).lineTo(-0.182, 0.182).lineTo(-0.218, 0.182).lineTo(-0.218, -0.182).lineTo(-0.182, -0.145).lineTo(-0.182, -0.182).lineTo(0.218, -0.182).lineTo(0.218, 0.182).lineTo(0.182... | 6 | 38 | 0.225957 |
train_7d949715f8438010 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.889, 0.317, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).threePointArc((0.286, 0.778), (0.541, 0.842)).lineTo(0.6, 0.842).lineTo(0.6, 0.917).lineTo(1, 0.917).lineTo(1, 0.842).lineTo(1, 0.542).lineTo(1, 0.467).lineTo(0.6, 0.467).lineTo(0.6, 0.542).lin... | 7 | 39 | 1.50296 |
train_c297cc4f6cf9731e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.482, -0.033, 0.194), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.244, 0.244).lineTo(0.244, -0.244).lineTo(-0.244, -0.244).lineTo(-0.244, 0.244).lineTo(0.028, 0.244).lineTo(0.028, 0.226).lineTo(0.039, 0.224).lineTo(0.037, 0.21).lineTo(0.029, 0.2... | 7 | 64 | 0.608583 |
train_75c0c803313fb0a9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.127, -0.167, -0.215), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.242).sweep(cq.Workplane('XY').spline([(-0.902, -0.167), (-0.643, 0.018), (-0.385, -0.372), (-0.127, -0.351), (0.132, 0.039), (0.39, 0.018), (0.649, -0.167)]))
result = result.edg... | 7 | 23 | 0.288431 |
train_fed656528a6c9cdd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.253, -0.203, 0.142), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.081, 0.257).lineTo(-0.081, -0.768).lineTo(0.081, -0.768).lineTo(0.081, 0.768).lineTo(-0.081, 0.768).lineTo(-0.081, 0.257).close().sweep(cq.Workplane('XZ').spline([(0.125, 0.035), ... | 4 | 77 | 0.077258 |
train_8de6c40caf09ca2b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.267, 0.219, -0.01), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.634, 0.673).lineTo(-0.634, -0.304).lineTo(0.371, -0.304).lineTo(0.371, 0.546).lineTo(0.634, 0.546).lineTo(0.634, 0.673).lineTo(-0.634, 0.673).close().workplane(offset=0.12).moveTo... | 17 | 74 | 0.279234 |
train_78e0a9a9f2c31676 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.34, -0.001, -0.013), normal=(1, 0, 0), xDir=(0, 0, 1))).threePointArc((-0.053, -0.095), (-0.056, -0.108)).lineTo(-0.044, -0.108).threePointArc((-0.09, -0.124), (-0.109, -0.108)).lineTo(-0.109, -0.085).lineTo(-0.109, 0.124).lineTo(0.109, 0.124).c... | 5 | 51 | 0.058979 |
train_6c42e598b827f690 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.004, -0.001, -0.027), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.004, 0.005).lineTo(0.497, 0.871).lineTo(-0.525, 0.902).lineTo(-0.996, 0.027).lineTo(-0.498, -0.887).lineTo(0.483, -0.901).close().moveTo(0.226, -0.001).lineTo(0.112, 0.201).lineT... | 10 | 130 | 1.434057 |
train_f888504aeaa0209d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.153, 0, 0.561), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.228).workplane(offset=0.135).circle(0.192).workplane(offset=0.101).circle(0.193).workplane(offset=0.103).circle(0.293).workplane(offset=0.147).circle(0.199).workplane(offset=0.119).ci... | 11 | 94 | 0.159488 |
train_80862fff2984a1f7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.173, -0.152, -0.658), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.655, 0.861).extrude(0.97)
result = result.union(cq.Workplane(cq.Plane(origin=(0.817, -0.22, -0.459), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.365, 0.242).extrude(0.368))
result = ... | 16 | 305 | 0.718191 |
train_1ebb368327c005a8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.499, -0.119, -0.011), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.501, 0.028).lineTo(0.501, 0.211).lineTo(-0.501, 0.211).lineTo(-0.501, 0.028).lineTo(0.501, 0.028).close().revolve(angleDegrees=360, axisStart=(0.501, 0.028), axisEnd=(0.501, 0.21... | 23 | 98 | 0.245302 |
train_66814492768d6305 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.32, 0.119), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.372, 0.68).lineTo(0.372, 0.68).lineTo(0.372, 0.227).lineTo(0.041, -0.68).lineTo(-0.185, -0.68).lineTo(-0.027, 0.227).lineTo(-0.372, 0.68).close().extrude(0.317)
result = result.union(c... | 6 | 72 | 0.062371 |
train_151a4121157765c3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.142, -0.377), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.219, 1.196).extrude(0.766)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.085, 0.227, -0.277), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.057).extrude(0.236))
result = result.cut(c... | 18 | 186 | 1.266952 |
train_c60404229f46ec49 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.039, -0.693, 0.136), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.283, -0.515).lineTo(0.283, 0.515).lineTo(-0.18, 0.515).lineTo(-0.18, -0.051).lineTo(-0.232, -0.051).lineTo(-0.232, 0.051).lineTo(-0.283, 0.051).lineTo(-0.283, -0.515).lineTo(0.283... | 6 | 42 | 0.512158 |
train_8c4d01a1ddf1380d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.303, 0.612, -0.196), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.804, -0.019).lineTo(-0.804, 0.47).lineTo(0.804, 0.47).lineTo(0.804, -0.284).lineTo(-0.538, -0.284).lineTo(-0.538, -0.019).lineTo(-0.804, -0.019).close().extrude(1.224)
result = r... | 27 | 137 | 1.10107 |
train_e9d5bb177b0a6754 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.767), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.298).extrude(1.534)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.03, -0.232, -0.351), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.346).extrude(0.757))
result = result.cut(cq.Workp... | 7 | 30 | 3.424711 |
train_a63a9ac74934bf06 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.059, 0.425, -0.234), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.43, 0.296).lineTo(0.228, 0.575).lineTo(-0.479, 0.211).lineTo(-0.366, -0.319).lineTo(-0.229, -0.47).lineTo(0.598, -0.395).close().moveTo(0.168, 0.001).lineTo(0.118, 0.119).lineTo(-... | 17 | 97 | 0.225042 |
train_8cb7f291b98c4258 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.086, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.031).workplane(offset=0.697).circle(0.031).workplane(offset=0.728).circle(0.034).workplane(offset=0.575).circle(0.031).loft()
result = result.union(cq.Workplane(cq.Plane(origin=(0.019, 0.1... | 15 | 35 | 0.009525 |
train_650c53ecd226eb43 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.018, 0.012, -0.222), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.018, -0.029).lineTo(0.474, 0.842).lineTo(-0.503, 0.824).lineTo(-0.982, -0.025).lineTo(-0.505, -0.849).lineTo(0.526, -0.865).close().moveTo(-0.136, 0.414).lineTo(-0.178, 0.517).lin... | 12 | 88 | 0.899931 |
train_169bdeed3a5f52a8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.326, -0.149, -0.303), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.293, -0.092).lineTo(0.293, 0.069).threePointArc((0.336, 0.172), (0.439, 0.215)).lineTo(0.468, 0.215).lineTo(0.468, 0.391).lineTo(0.439, 0.391).threePointArc((0.287, 0.353), (0.17... | 16 | 79 | 0.035697 |
train_a3bec2c3677fe26e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.168, 0, 0.041), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.145, -0.218).lineTo(0.097, -0.17).lineTo(0.081, -0.168).lineTo(0.04, -0.163).lineTo(0, -0.158).lineTo(0.085, -0.158).lineTo(0, -0.073).lineTo(-0.085, -0.158).lineTo(-0.145, -0.218).lin... | 16 | 59 | 0.131384 |
train_1b01cfa811119d56 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.336), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.157, 1).lineTo(0.47, 1).lineTo(0.47, -1).lineTo(0.157, -1).lineTo(0.157, 0.88).lineTo(-0.47, 0.88).lineTo(-0.47, 1).lineTo(0.157, 1).close().extrude(0.671)
result = result.cut(cq.Workplane... | 7 | 45 | 0.462836 |
train_cacb1edf62eb82f3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.319, 0.101, 0.617), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.681, -0.227).lineTo(0.681, 0.227).lineTo(-0.681, 0.227).lineTo(-0.681, -0.227).lineTo(-0.619, -0.227).lineTo(-0.619, -0.187).lineTo(-0.484, -0.187).lineTo(-0.484, 0.187).lineTo(-0.... | 1 | 16 | 0.196567 |
train_3795ad7b1685d3da | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.405, 0.155, -0.3), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.672, 0.728).lineTo(0.672, 0.083).lineTo(0.537, 0.212).lineTo(0.537, 0.312).lineTo(-0.537, 0.312).lineTo(-0.537, 0.083).lineTo(-0.672, 0.083).lineTo(-0.672, 0.728).lineTo(-0.537, 0.5... | 3 | 99 | 0.127697 |
train_657d21f7cc5147d5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.582, 0.06, 0.283), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.222, -0.94).lineTo(-0.222, 1.06).lineTo(-0.111, 1.06).threePointArc((0, 0.949), (0.111, 1.06)).lineTo(0.222, 1.06).lineTo(0.222, -0.94).lineTo(0.111, -0.94).threePointArc((0, -0.82... | 23 | 186 | 0.635024 |
train_3da97d06aec16ced | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.07), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.751, 2).extrude(0.057)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.495, 0, -0.017), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.121, 0.964).extrude(0.087))
result = result.cut(cq.Wor... | 5 | 99 | 0.188118 |
train_b3f62e3ec429e6b0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.5, 0, 0.026), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.298, 0.409).extrude(0.219)
result = result.union(cq.Workplane(cq.Plane(origin=(0.515, 0.02, 0.244), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.134).extrude(0.013))
result = result.union(cq... | 11 | 66 | 0.331943 |
train_f9b56df7c8a00b53 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.742, -0.001, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 0.743).lineTo(-1, 0.743).lineTo(-1, 1.243).lineTo(0, 1.243).lineTo(0, 1.743).lineTo(0.5, 1.243).lineTo(1, 1.743).lineTo(1, 0.743).lineTo(0, 0.743).close().revolve(angleDegrees=270, a... | 6 | 62 | 1.119933 |
train_9a2fb00d70eecaeb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.521), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.915, 2).extrude(0.961)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.417, 0.155, -0.684), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.201, 0.226).extrude(1.154))
result = result.edges()... | 13 | 91 | 3.517467 |
train_f4c22efe2d26adc2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.181, -0.209, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-1, 0.332).lineTo(-1, 0.031).lineTo(1, 0.031).lineTo(1, 0.332).lineTo(-1, 0.332).close().extrude(0.419)
result = result.edges().fillet(0.117)
result = result.cut(cq.Workplane(cq.Plane(o... | 8 | 52 | 0.216636 |
train_cb276eeb85f9ecb0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.556, 0, -0.086), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.888, 0.096).extrude(0.182)
result = result.union(cq.Workplane(cq.Plane(origin=(0.403, -0.016, -0.005), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.194, 0.034).extrude(0.083))
result = res... | 7 | 51 | 0.037176 |
train_9454c2f393528d8a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.124, 0.127, -0.329), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.496, 1.745).extrude(0.659)
result = result.union(cq.Workplane(cq.Plane(origin=(0.051, -0.862, 0.097), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.665, 0.276).extrude(0.134))
result = r... | 9 | 95 | 0.435949 |
train_723dc46bbd128bd4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.057, -0.313, -0.794), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.176, -0.104).lineTo(-0.176, 0.211).lineTo(0.176, 0.211).lineTo(0.176, -0.104).lineTo(-0.176, -0.104).close().extrude(0.466)
result = result.edges().chamfer(0.033)
result = resul... | 19 | 85 | 0.075795 |
train_15d92834e5a947e7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.004, 0, -0.539), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.032, 0.644).lineTo(0.067, 0.609).lineTo(-0.067, -0.198).lineTo(-0.067, -0.099).lineTo(0.032, 0.644).close().revolve(angleDegrees=270, axisStart=(0.032, 0.644), axisEnd=(0.067, 0.609)... | 11 | 83 | 0.821759 |
train_48771d4957780f16 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.094, 0, -0.476), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.38, 0.34).lineTo(-0.38, -0.04).lineTo(0.38, -0.04).lineTo(0.38, 0.719).lineTo(-0.302, 0.719).threePointArc((-0.343, 0.683), (-0.38, 0.642)).lineTo(-0.38, 0.34).close().extrude(0.897)
... | 7 | 59 | 0.971675 |
train_422864e51bd89252 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.769, 0, -0.426), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.462, 0.462).extrude(0.851)
result = result.union(cq.Workplane(cq.Plane(origin=(-1.07, 0.001, 0.047), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.161, 0.085).extrude(0.099))
result = resul... | 13 | 82 | 0.16548 |
train_4d001a8b4df49c91 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.929), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.498, -0.505).lineTo(-0.498, -0.054).lineTo(-0.738, -0.054).lineTo(-0.738, 0.505).lineTo(0.738, 0.505).lineTo(0.738, -0.505).lineTo(-0.498, -0.505).close().workplane(offset=0.342).moveTo(-... | 7 | 17 | 1.776081 |
train_7a8c8cbdbdc393ba | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.73, -0.101, -0.035), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.27, 0.157).lineTo(-0.27, -0.157).lineTo(0.27, -0.157).lineTo(0.27, 0.157).lineTo(-0.27, 0.157).close().transformed(offset=(0.53, 0.11, 0.016), rotate=(60, 0, 0)).moveTo(-0.245, 0... | 3 | 14 | 0.004792 |
train_bebb459b572710b5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.536, 0, -0.304), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.464).sweep(cq.Workplane('XZ').spline([(0.536, -1.154), (1.242, -1.154), (1.574, -1.033), (1.906, -0.913), (2.238, -0.792)]))
| 1 | 3 | 0.402582 |
train_128f09a2f008c657 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.604, -0.73, -0.022), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.544, 1.148).lineTo(0.078, 1.148).lineTo(0.078, 0.682).lineTo(0.544, 0.682).lineTo(0.544, 0.06).lineTo(-0.544, 0.06).lineTo(-0.544, 1.148).close().extrude(1.131)
result = result.e... | 16 | 148 | 1.141765 |
train_4269dd62dc9d99be | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1, -0.12), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.055, 0.175).threePointArc((-0.221, 0.054), (-0.243, -0.152)).threePointArc((-0.221, -0.202), (-0.189, -0.246)).threePointArc((0, -0.329), (0.189, -0.246)).threePointArc((0.221, -0.202), ... | 2 | 14 | 0.402888 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.