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_1877d83e2393e1f8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.722, -0.702, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.079, 1.372).lineTo(0.127, 1.68).lineTo(0.199, 1.316).lineTo(0.507, 1.522).lineTo(0.435, 1.159).lineTo(0.799, 1.231).lineTo(0.592, 0.923).lineTo(0.956, 0.851).lineTo(0.648, 0.644).lin... | 13 | 23 | 1.292114 |
train_3c9171ccc43e9e31 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.424, -0.57, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.621, 1.139).lineTo(0, 0.78).lineTo(0.621, 1.139).lineTo(0.956, 0.56).threePointArc((1, 0.394), (0.956, 0.229)).threePointArc((0.834, 0.107), (0.669, 0.063)).lineTo(0, 0.063).lineTo(-0... | 13 | 92 | 1.152515 |
train_fe5432aabda7d9d5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.996, 0.003, 0.485), normal=(-1, 0, 0), xDir=(0, 0, 1))).lineTo(0.079, -0.055).threePointArc((-0.125, -0.223), (-0.13, -0.253)).lineTo(-0.105, -0.253).threePointArc((-0.212, -0.291), (-0.255, -0.253)).lineTo(-0.17, -0.162).threePointArc((-0.194,... | 1 | 11 | 0.014239 |
train_761c0785ab318224 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.681, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.766, 0.633).lineTo(-0.456, 1.298).lineTo(0.766, 0.728).lineTo(0.456, 0.063).lineTo(-0.766, 0.633).close().extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.209, -0.36, -0.81... | 7 | 35 | 1.908787 |
train_c12dd9e968ecbff8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.425), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.391).extrude(0.8)
result = result.union(cq.Workplane(cq.Plane(origin=(0.1, 0.069, 0.372), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.626).extrude(0.09))
result = result.union(cq.Workplan... | 16 | 151 | 2.104099 |
train_44a4187a7bf3aa3f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.382, 0, -0.517), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.237, 1.051).extrude(0.928)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.53, -0.073, 0.063), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1.031, 0.515).lineTo(-1.031, -0.627).line... | 18 | 145 | 1.139635 |
train_294c024dd8b80211 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.163, 0.457, -0.422), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.076, 1.086).extrude(0.844)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.231, 0.255, -0.448), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.067).extrude(1.013))
result = result.e... | 22 | 156 | 1.602485 |
train_0ac29656d8f8d319 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.252, -0.063, -0.097), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.364, -0.405).lineTo(0.371, -0.391).lineTo(0.363, 0.397).lineTo(-0.366, 0.41).close().moveTo(-0.143, -0.049).lineTo(-0.053, -0.049).lineTo(-0.053, -0.065).lineTo(-0.09, -0.064).li... | 7 | 110 | 0.761768 |
train_5ab12ec02480af63 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.164, -0.278, -0.482), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.073, 0.489).lineTo(-0.12, 0.46).lineTo(-0.217, 0.29).lineTo(-0.145, 0.109).lineTo(0.042, 0.052).lineTo(0.203, 0.162).lineTo(0.217, 0.357).lineTo(0.073, 0.489).close().extrude(0.6... | 11 | 312 | 0.056301 |
train_2f3bf6ae534af961 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.222, -0.411, -0.662), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.71, -0.542).lineTo(0.723, -0.535).lineTo(0.722, 0.539).lineTo(-0.734, 0.544).close().moveTo(-0.2, 0.117).lineTo(0.199, 0.119).lineTo(0.195, 0.06).lineTo(0.028, 0.057).lineTo(0.03... | 10 | 108 | 0.677853 |
train_99b9d9bda24661ac | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.547, 0, 0.455), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.183).workplane(offset=0.274).circle(0.18).workplane(offset=0.342).circle(0.175).workplane(offset=0.295).circle(0.18).loft()
result = result.edges().fillet(0.119)
result = result.union(... | 4 | 25 | 0.109413 |
train_db1e7ccffd7bac30 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.509, 0.661, -0.308), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 0.034).lineTo(0.643, 0.034).threePointArc((0, 0.983), (-0.643, 0.034)).lineTo(0, 0.034).close().extrude(1.322)
result = result.edges().fillet(0.272)
result = result.union(cq.Work... | 12 | 66 | 0.780159 |
train_eef1a1b872aa24f5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.108, 0.706, -0.002), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-1.336, 0.06).threePointArc((-0.047, 0.807), (1.336, 1.359)).threePointArc((0.053, 0.599), (-1.336, 0.06)).close().extrude(0.217)
result = result.edges().fillet(0.057)
result = resu... | 3 | 17 | 0.083746 |
train_6588923cf31e697e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.079), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.666).extrude(0.104)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.492, 0.076, 0.024), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.075).extrude(0.027))
result = result.union(cq.Wo... | 10 | 59 | 0.317389 |
train_2e6063e99053d937 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.202, -0.501, -0.195), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.228, 0.217).lineTo(0.228, -0.152).lineTo(-0.228, -0.152).lineTo(-0.228, 0.198).lineTo(-0.21, 0.198).lineTo(-0.21, -0.134).lineTo(0.21, -0.134).lineTo(0.21, 0.198).lineTo(0.228, ... | 13 | 75 | 0.295019 |
train_c31650caf5568631 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.971, 0.018, -0.002), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.015, -0.06).threePointArc((-0.018, -0.004), (-0.029, 0.06)).threePointArc((0.003, -0.006), (0.029, -0.048)).lineTo(0.015, -0.06).close().sweep(cq.Workplane('XZ').spline([(-0.971,... | 2 | 8 | 0.004991 |
train_dbf1ca03a80d01c7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.374, 0.14, -0.733), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.39, 0.342).extrude(0.034)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.179, 0.157, -0.697), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.096, -0.257).lineTo(0.13, -0.257).l... | 7 | 89 | 0.489021 |
train_8bffe65cfb5b178f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.015, -0.187, -0.345), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.345, 0.836).lineTo(0.345, 0.136).lineTo(-0.345, -0.074).lineTo(-0.345, 1.045).lineTo(0.345, 0.836).close().revolve(angleDegrees=360, axisStart=(0.345, 0.836), axisEnd=(0.345, 0.1... | 16 | 142 | 2.715615 |
train_d1b9b54d2c05e42a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.484, 0.967, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1, 0.035).threePointArc((-0.974, 0.262), (-0.897, 0.476)).lineTo(-0.897, 0.801).lineTo(-0.897, 0.933).lineTo(-0.765, 0.933).lineTo(-0.441, 0.933).lineTo(0.441, 0.933).lineTo(0.765, 0.93... | 3 | 14 | 2.947008 |
train_07fa1c44de5f9327 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.409, 0, -0.265), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.6, -0.005).lineTo(0.201, 0.586).lineTo(-0.497, 0.353).lineTo(-0.47, -0.35).lineTo(0.171, -0.557).close().moveTo(0.131, 0).lineTo(0.04, 0.126).lineTo(-0.108, 0.078).lineTo(-0.109, -0.08... | 13 | 269 | 0.602229 |
train_f2478f2921647120 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.215, -0.875), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.64, 1.57).extrude(1.75)
result = result.union(cq.Workplane(cq.Plane(origin=(0.032, -0.771, 0.202), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.837, 0.457).extrude(0.455))
result = result.c... | 4 | 55 | 4.4157 |
train_29c7362c96084f09 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.306, -0.758, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.75, 1.056).threePointArc((-1, 0.306), (-0.75, -0.444)).lineTo(0.25, -0.444).threePointArc((1, 0.306), (0.25, 1.056)).lineTo(-0.75, 1.056).close().extrude(1.516)
result = result.cut(c... | 22 | 44 | 3.55763 |
train_d612adb2c5bf995b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.377, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.602, 0.88).lineTo(-0.602, -0.022).lineTo(-0.477, -0.022).lineTo(-0.477, -0.126).lineTo(0.489, -0.126).lineTo(0.489, -0.022).lineTo(0.602, -0.022).lineTo(0.602, 0.694).lineTo(-0.477, 0.69... | 8 | 86 | 1.937565 |
train_323c116d896354dd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.486, 0, -0.032), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.19).lineTo(0, 0.287).lineTo(-0.194, 0.287).lineTo(-0.194, -0.004).lineTo(-0.194, 0.093).lineTo(0.194, 0.093).lineTo(0.194, 0.19).lineTo(0, 0.19).close().revolve(angleDegrees=360, a... | 9 | 178 | 0.275843 |
train_9e8823a490f6e62a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.281, 0.37, -0.262), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.796, 0.616).extrude(0.098)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.245, 0.123, -0.158), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.048, 0.302).lineTo(-0.193, 0.218)... | 11 | 169 | 0.194617 |
train_13bc491cbcedbc24 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.073), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.124, -0.558).lineTo(0.993, -0.558).lineTo(0.745, -0.311).lineTo(0.621, -0.435).lineTo(0.042, 0.145).threePointArc((-0.035, 0.196), (-0.124, 0.213)).threePointArc((-0.213, 0.196), (-0.289,... | 6 | 44 | 0.071272 |
train_b272c296c4c878c2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.194, -0.919, 0.425), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 0.698).lineTo(-0.289, 0.531).lineTo(-0.289, -0.149).lineTo(-0.23, -0.114).lineTo(-0.23, -0.698).lineTo(0.289, -0.698).lineTo(0.289, -0.149).lineTo(0.23, -0.114).lineTo(0.23, -0.... | 3 | 25 | 1.690183 |
train_af59f3f40dfdfdf8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.351, 0.406, -0.465), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.535, -0.184).lineTo(0.535, 0.886).lineTo(-0.535, 0.886).lineTo(-0.535, -0.058).lineTo(-0.409, -0.184).lineTo(0.535, -0.184).close().extrude(0.812)
result = result.edges().fillet(0... | 16 | 90 | 1.423516 |
train_9cce7ee2c939934f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.463), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1, 0.875).lineTo(1, -0.875).lineTo(-0.25, -0.875).lineTo(-0.25, -0.125).lineTo(-1, -0.125).lineTo(-1, 0.875).lineTo(1, 0.875).close().extrude(0.926)
result = result.edges().chamfer(0.283)
re... | 3 | 81 | 0.743812 |
train_0e5877ca3a2fe954 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.017, -0.251, -0.469), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.78, -0.749).lineTo(0.796, -0.746).lineTo(0.768, 0.781).lineTo(-0.785, 0.756).close().moveTo(-0.241, 0.314).lineTo(-0.193, 0.315).lineTo(-0.193, 0.238).lineTo(-0.126, 0.238).line... | 23 | 190 | 1.025102 |
train_d48faa069749ef6f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.855, -0.502, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.599, 0.204).lineTo(-0.477, 0.253).lineTo(-0.291, 0.329).lineTo(-0.104, 0.406).lineTo(0.066, 0.475).lineTo(0.267, 0.557).lineTo(0.468, 0.638).lineTo(0.599, 0.691).lineTo(0.599, 0.8).l... | 2 | 20 | 0.383355 |
train_3efe074b25880596 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.136, -0.019, -0.009), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.094, 0.31).lineTo(-0.378, 0.31).lineTo(0, 0.027).lineTo(0.378, 0.31).lineTo(-0.094, 0.31).close().extrude(0.699)
result = result.edges().fillet(0.103)
result = result.cut(cq.Wor... | 16 | 100 | 0.071705 |
train_0601fb6d7dbeb437 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.024, 0.47, -0.016), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.026, 0.046).threePointArc((-0.005, 0.06), (0.019, 0.068)).threePointArc((0.137, 0.115), (0.133, -0.012)).threePointArc((0.095, -0.105), (-0.004, -0.115)).threePointArc((-0.137, -0.... | 13 | 140 | 0.047168 |
train_192f3b18ab5e20af | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.027, -1, -0.164), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.136).sweep(cq.Workplane('YZ').spline([(-0.644, -0.708), (-0.244, -0.697), (0.156, -0.603), (0.556, -0.357), (0.956, -0.263), (1.356, -0.252)]))
result = result.edges().chamfer(0.064... | 8 | 52 | 0.139439 |
train_ec8722186750cde7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.162, -0.329, 0.21), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.21, 0.337).lineTo(-0.21, 0.234).lineTo(-0.11, 0.06).lineTo(0.05, 0.06).lineTo(0.151, 0.234).lineTo(0.21, 0.337).lineTo(-0.21, 0.337).close().revolve(angleDegrees=360, axisStart=(-... | 14 | 85 | 0.197697 |
train_85820ea1bc764b83 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.196, 0, 0.097), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.303, 0.804).threePointArc((-0.111, 0.636), (-0.303, 0.232)).lineTo(-0.303, 0.804).lineTo(0.303, 0.804).close().revolve(angleDegrees=360, axisStart=(0, 0), axisEnd=(0.323, 0))
result =... | 4 | 13 | 0.216621 |
train_83a30680eb5f91a1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.065, -0.066), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.721, 0.654).extrude(0.033)
result = result.union(cq.Workplane(cq.Plane(origin=(0.289, 0.065, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.05, 0.578).lineTo(0.202, 0.814).lineTo(0.202... | 2 | 49 | 0.037052 |
train_60c32ce41b38cc3e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.495, 0.473, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.641, 0.05).threePointArc((-0.781, 0.495), (-0.641, 0.94)).threePointArc((-0.553, 1.047), (-0.445, 1.136)).threePointArc((0, 1.276), (0.445, 1.136)).lineTo(0.603, 1.098).lineTo(0.641, ... | 17 | 137 | 1.942605 |
train_e901d0d4cd02dd8b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.404, 0, -0.344), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.32).workplane(offset=0.199).circle(0.342).workplane(offset=0.17).circle(0.269).workplane(offset=0.233).circle(0.362).workplane(offset=0.206).circle(0.347).loft()
result = result.union... | 13 | 145 | 0.501761 |
train_90b4200dd4b49409 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.813, 0.854, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.333, 0.145).lineTo(-1, 0.145).lineTo(-1, 0.813).lineTo(-0.333, 0.813).lineTo(-0.333, 1.48).lineTo(0.333, 0.813).lineTo(0.333, 1.48).lineTo(1, 1.48).lineTo(1, 0.145).lineTo(-0.333, 0.1... | 3 | 68 | 3.299268 |
train_7c69b1b7f25dc204 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.589), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.957, 0.749).threePointArc((-0.957, 0.957), (-0.749, 0.957)).lineTo(-0.433, 0.64).threePointArc((0, 0.773), (0.433, 0.64)).lineTo(0.749, 0.957).threePointArc((0.957, 0.957), (0.957, 0.749)... | 4 | 35 | 2.074103 |
train_c997da5f1808a20c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.382, 0.072, -0.008), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.618, 0.233).lineTo(-0.618, -0.233).lineTo(0.385, -0.233).threePointArc((0.549, -0.165), (0.618, 0)).lineTo(0.618, 0.233).lineTo(0.385, 0.233).lineTo(-0.618, 0.233).close().extrud... | 10 | 66 | 0.168109 |
train_b1d2db1026f9c2f5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.011, 0.013, 0.637), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.237, 0.025).threePointArc((-0.364, 0.013), (-0.237, 0.002)).lineTo(0.364, 0.002).threePointArc((0.363, 0.013), (0.364, 0.025)).lineTo(-0.237, 0.025).close().extrude(0.022)
result ... | 3 | 30 | 0.000566 |
train_355aed37764fabb6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.259, -0.049, 0.048), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.108, 1.049).threePointArc((-0.108, 0.049), (0.108, -0.951)).lineTo(0.108, 1.049).close().workplane(offset=0.019).moveTo(0.087, 0.852).threePointArc((-0.087, 0.049), (0.087, -0.754... | 10 | 97 | 0.063489 |
train_cc127d2d68d1760e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.158, -0.139, -0.268), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.474).workplane(offset=0.231).circle(0.436).workplane(offset=0.215).circle(0.398).workplane(offset=0.213).circle(0.361).loft()
result = result.edges().chamfer(0.115)
result = res... | 11 | 48 | 0.540458 |
train_2bde0056aeea8fda | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.002, -0.002, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, -0.084).threePointArc((0.086, 0.002), (0, 0.088)).lineTo(-0.057, 0.088).lineTo(-0.057, 0.066).threePointArc((-0.086, 0.002), (-0.057, -0.062)).lineTo(-0.057, -0.084).lineTo(0, -0.08... | 12 | 110 | 0.023776 |
train_1c9f6e2d1a5b7d66 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.238, 0.004, -0.493), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.719, -0.677).lineTo(0.747, -0.665).lineTo(0.76, 0.669).lineTo(-0.762, 0.649).close().moveTo(-0.422, -0.166).lineTo(-0.055, -0.166).lineTo(-0.051, -0.1).lineTo(-0.35, -0.099).line... | 22 | 89 | 0.348847 |
train_7195d7bc8765e64d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.482, -0.323, 0.022), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.238, 0.068).threePointArc((0.005, 0.243), (-0.229, 0.068)).threePointArc((-0.239, 0), (-0.229, -0.068)).threePointArc((0.005, -0.243), (0.238, -0.068)).lineTo(0.256, -0.068).three... | 7 | 103 | 0.335905 |
train_73e5279294bf2ed4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.429, 0, -0.667), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.032, 2).extrude(1.333)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.321, 0.432, -0.4), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.125).extrude(0.204))
result = result.cut(cq.Work... | 10 | 61 | 2.52538 |
train_45d25067691d6b82 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.281, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.455, -0.101).threePointArc((-0.507, 0.064), (-0.455, 0.229)).threePointArc((-0.422, 0.269), (-0.382, 0.302)).lineTo(-0.441, 0.288).lineTo(-0.321, 0.78).threePointArc((-0.217, 0.788), (-0.... | 11 | 36 | 0.964336 |
train_16e1e352e2489b26 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.887, -0.732), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, -0.268).threePointArc((0.268, 0), (0, 0.268)).threePointArc((-0.189, 0.189), (-0.268, 0)).lineTo(-0.151, 0).lineTo(-0.151, -0.087).lineTo(0, -0.174).lineTo(0, -0.268).close().sweep(cq... | 9 | 104 | 0.129398 |
train_aea54be4ff3e9b93 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.045, 0, -0.408), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.226, 1.192).extrude(0.721)
result = result.faces('>Z').shell(-0.084)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.762, -0.2, -0.323), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.... | 4 | 33 | 0.436702 |
train_c9f3062d2d607f10 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.608, -1.095, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.395, 0.095).threePointArc((-0.163, 0.931), (-0.988, 1.506)).lineTo(-0.756, 2.095).threePointArc((0.289, 1.374), (0.988, 0.315)).lineTo(0.395, 0.095).close().extrude(1.216)
result = re... | 9 | 64 | 1.594073 |
train_cffab53b4b93a218 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.295, -0.612, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.751, 0.275).lineTo(-1, 0.275).lineTo(0.374, 0.275).lineTo(0.374, 0.088).lineTo(0.101, 0.088).lineTo(0.101, 0.275).lineTo(-0.476, 0.275).lineTo(-0.476, 0.096).lineTo(-0.751, 0.096).li... | 15 | 94 | 0.398141 |
train_0baaf5888b896d12 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.646, 0.329, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.128, 0.189).lineTo(-0.128, 0.189).lineTo(-0.128, 0.367).lineTo(-0.19, 0.367).lineTo(-0.19, 0.544).lineTo(0.19, 0.544).lineTo(0.19, 0.225).lineTo(0.14, 0.225).lineTo(0.14, 0.189).lineT... | 3 | 18 | 0.151604 |
train_37f961d0ce3c8243 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.446, 0.477, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.3, 1.446).threePointArc((-0.502, 1.362), (-0.586, 1.16)).lineTo(-0.586, -0.268).threePointArc((-0.502, -0.47), (-0.3, -0.554)).lineTo(0.3, -0.554).threePointArc((0.502, -0.47), (0.586... | 17 | 112 | 2.134354 |
train_f40dd11e576219d3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.333, 0.071, 0.175), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.57, 0.031).lineTo(0.57, 1.071).lineTo(-0.57, 1.071).lineTo(-0.57, 0.031).lineTo(0.57, 0.031).close().extrude(0.437)
result = result.edges().chamfer(0.124)
result = result.union(cq.W... | 11 | 59 | 0.943709 |
train_2efa6d1a012f0f22 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.28, -0.599, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-1, 0.516).lineTo(-1, 0.152).threePointArc((-0.968, 0.076), (-0.892, 0.044)).lineTo(0, 0.044).lineTo(0.892, 0.044).threePointArc((0.968, 0.076), (1, 0.152)).lineTo(1, 0.516).lineTo(0.766... | 2 | 11 | 1.106108 |
train_3c85affa548f86cf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.131, 0, -0.183), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.738, 1.769).extrude(0.147)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.184, 0.348, -0.038), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.214).extrude(0.027))
result = result.u... | 19 | 377 | 0.532317 |
train_6856e43abd1f7f91 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.729, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1, 1.369).lineTo(-1, 0.089).lineTo(1, 0.089).lineTo(1, 1.369).lineTo(0.898, 1.369).lineTo(0.898, 0.191).lineTo(-0.898, 0.191).lineTo(-0.898, 1.369).lineTo(-1, 1.369).close().revolve(angleD... | 2 | 13 | 0.663603 |
train_fae2a2f7a0879ecc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.733, 0, -0.008), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.025, 0.225).lineTo(-0.025, 0.377).lineTo(0.025, 0.393).lineTo(0.943, 0.691).lineTo(0.992, 0.54).lineTo(0.185, 0.277).lineTo(0.752, -0.504).lineTo(0.623, -0.597).lineTo(0.123, 0.089).... | 3 | 23 | 0.542804 |
train_0308f910e66027bb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.037, -0.118, -0.011), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.477, -0.159).lineTo(-0.477, 0.159).lineTo(-0.432, 0.159).lineTo(-0.295, 0.023).lineTo(-0.295, -0.008).lineTo(-0.235, -0.008).lineTo(-0.235, 0.023).lineTo(-0.098, 0.023).lineTo(... | 2 | 25 | 0.38222 |
train_c692609a7d1f4163 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.319, -0.31, -0.758), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.865, 0.446).extrude(0.475)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.519, -0.31, -0.609), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.962, 0.228).extrude(0.177))
result = ... | 4 | 82 | 0.471923 |
train_63e6757a1f730668 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.094, 0.147, -0.132), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.224, 0.343).extrude(0.138)
result = result.union(cq.Workplane(cq.Plane(origin=(0.129, 0.312, -0.035), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.965, 0.121).lineTo(-0.965, 0.073).... | 5 | 44 | 0.267374 |
train_6cb75a70fe605449 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.379, 0.216, 0.078), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.148, -0.033).threePointArc((-0.18, 0.07), (-0.148, 0.172)).threePointArc((-0.127, 0.197), (-0.103, 0.218)).threePointArc((0, 0.25), (0.103, 0.218)).threePointArc((0.127, 0.197), (... | 27 | 163 | 0.273486 |
train_c0da369cb96046a1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1.003, -0.451), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1, 0.152).lineTo(-1, 1.853).lineTo(1, 1.853).lineTo(1, 0.152).lineTo(-1, 0.152).close().extrude(0.901)
result = result.edges().chamfer(0.21)
result = result.cut(cq.Workplane(cq.Plane(o... | 6 | 37 | 2.463662 |
train_fcaddf6d58921773 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.447), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.87, 2).extrude(0.894)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.145, 0.351, -0.358), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.169, 1.366).extrude(0.464))
result = result.cut(cq.W... | 12 | 53 | 1.683209 |
train_a7cf975b89a8fbcd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.222, 0.248, -0.63), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.555, 1.365).extrude(1.341)
result = result.union(cq.Workplane(cq.Plane(origin=(0.755, 0.568, -0.28), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.49, 0.368).extrude(0.314))
result = res... | 4 | 24 | 3.011221 |
train_1a0c3bbe86a8780f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.065, -0.026, -0.137), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.061, -0.016).lineTo(0.061, -0.044).lineTo(-0.061, -0.044).lineTo(-0.061, 0.07).lineTo(0.061, 0.07).lineTo(0.061, -0.016).close().extrude(0.092)
result = result.cut(cq.Workplane(cq... | 34 | 193 | 0.016325 |
train_0156dd2d6dee6865 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.154, 0, -0.061), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.28, 0.009).threePointArc((0.158, 0.068), (0.03, 0.11)).threePointArc((-0.102, 0.138), (-0.237, 0.15)).threePointArc((-0.242, 0.257), (-0.256, 0.362)).threePointArc((-0.549, 0.323), (-0... | 1 | 19 | 0.28941 |
train_712329e0ed7f34e5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.153, 0.17, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.012).lineTo(-1, 0.288).lineTo(1, 0.288).lineTo(1, 0.012).lineTo(-1, 0.012).close().extrude(0.463)
result = result.edges().fillet(0.088)
result = result.union(cq.Workplane(cq.Plane(o... | 14 | 49 | 0.178188 |
train_5728ef7cb71058d0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.928, 0.193, 0.446), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.087).transformed(offset=(0.169, 0.218, 0.092), rotate=(60, 0, 0)).circle(0.042).transformed(offset=(0.338, 0.302, 0.143), rotate=(0, 30, 0)).circle(0.123).transformed(offset=(0.50... | 3 | 9 | 0.024134 |
train_c084c4d893931dd3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1, -0.145), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.247).sweep(cq.Workplane('YZ').spline([(-0.532, -0.992), (-0.198, -0.985), (0.135, -0.94), (0.468, -0.774), (0.801, -0.608), (1.135, -0.563), (1.468, -0.557)]))
result = result.edges().ch... | 4 | 15 | 0.378535 |
train_a06747c7faa93652 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.346, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.166, 0.763).threePointArc((-0.401, 0.143), (0.238, -0.034)).threePointArc((0.401, 0.55), (-0.166, 0.763)).close().extrude(1.427)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.68... | 5 | 50 | 0.793278 |
train_1281b12f7db2777c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.591, 0.369, 0.347), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.221, 0.103).lineTo(-0.256, 0.106).lineTo(-0.353, 0.114).lineTo(-0.389, 0.064).lineTo(-0.409, 0.107).lineTo(-0.409, 0.035).lineTo(-0.368, -0.053).lineTo(-0.271, -0.062).lineTo(0.3... | 1 | 14 | 0.09258 |
train_8e03d9c047131853 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.836, -0.285, -0.233), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.264, 0.696).lineTo(-0.308, 0.696).lineTo(-0.462, 0.22).lineTo(-0.427, 0.195).lineTo(-0.44, 0.153).lineTo(-0.036, -0.142).lineTo(0, -0.168).lineTo(0.036, -0.142).lineTo(0.44, 0.1... | 11 | 67 | 0.751012 |
train_79c9a106f927cea2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.256, 0, -0.346), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.489, 1.945).extrude(0.692)
result = result.union(cq.Workplane(cq.Plane(origin=(0.738, 0.08, -0.214), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.525, 1.104).extrude(0.281))
result = resul... | 9 | 41 | 1.38033 |
train_74e85097e61f2a83 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.221, 0, 0.284), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.199, 0.281).lineTo(0.729, -0.259).lineTo(0.779, -0.285).lineTo(0.763, -0.28).lineTo(-0.779, 0.242).lineTo(-0.769, 0.242).lineTo(-0.326, 0.276).lineTo(-0.283, 0.279).lineTo(-0.209, 0.... | 2 | 16 | 0.172027 |
train_7c8f0a40d78496ae | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.356, 0.381, -0.145), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.855, 0.859).lineTo(-0.855, -0.147).lineTo(0.855, -0.147).lineTo(0.855, 0.859).lineTo(-0.855, 0.859).close().extrude(0.761)
result = result.edges().fillet(0.125)
result = result.c... | 11 | 62 | 1.237156 |
train_becef2570e6feb61 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.038), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.911, 2).extrude(0.063)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.765 + 0.1275, 0, 0.101), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.059, -0.049).lineTo(-0.024, 0.034).lineTo(0... | 21 | 128 | 0.197553 |
train_7496ab4997f0a3e9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.011, 0.13, -0.729), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.109, 0.556).lineTo(-0.261, -0.543).lineTo(0.147, -0.543).lineTo(0.261, -0.203).lineTo(0.261, 0.556).lineTo(0.109, 0.556).close().extrude(0.463)
result = result.edges().fillet(0.037... | 14 | 128 | 0.77022 |
train_6b5cc5400437d15e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.146), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.175, -1).lineTo(0.175, -1).lineTo(0.175, 0.675).lineTo(0.125, 0.675).lineTo(0.125, 0.725).lineTo(0.175, 0.725).lineTo(0.175, 0.775).lineTo(0.125, 0.775).lineTo(0.125, 0.825).lineTo(0.175,... | 2 | 98 | 0.199467 |
train_568f9dae1f236e95 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.317, 0.2, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.429, 0.888).lineTo(-0.429, 1.317).lineTo(0.429, 1.317).lineTo(0.429, -0.683).lineTo(-0.429, -0.683).lineTo(-0.429, 0.888).close().extrude(0.402)
result = result.edges().chamfer(0.036)
r... | 16 | 100 | 0.667401 |
train_39d3bb00784a4509 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.008, 1, 0.087), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.519, 0.387).threePointArc((0.519, 0.335), (0.564, 0.309)).lineTo(0.564, -0.941).threePointArc((-0.564, -0.289), (-0.564, 1.013)).lineTo(0.519, 0.387).close().extrude(2)
result = result... | 14 | 148 | 1.921741 |
train_b83106c3773b9858 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.188, -0.023, -0.277), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.812, 0.024).lineTo(-0.812, 0.281).lineTo(0.812, 0.281).lineTo(0.812, 0.024).lineTo(-0.812, 0.024).close().extrude(0.614)
result = result.edges().fillet(0.029)
result = result.un... | 13 | 91 | 0.25245 |
train_cfbd42082e0b3d19 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.787, -0.365, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.213, 0.213).lineTo(-0.213, 0).lineTo(0, 0).lineTo(0, -0.213).lineTo(0.213, -0.213).lineTo(0.213, 0.213).lineTo(-0.213, 0.213).close().sweep(cq.Workplane('XY').spline([(-0.787, 0.271... | 2 | 8 | 0.072793 |
train_67827d3cd3289906 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.525, 0.481, -0.147), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.25, -0.525).lineTo(-0.25, -0.525).lineTo(-0.25, 0.591).lineTo(0.25, 0.144).lineTo(0.25, -0.525).close().revolve(angleDegrees=180, axisStart=(0.25, -0.525), axisEnd=(-0.25, -0.525))... | 11 | 80 | 0.411029 |
train_1e09b857c7f9d7b1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.534), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.827, 0.524).extrude(0.691)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, 0.146), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.618, 0.314).extrude(0.212))
result = result.union(cq.Wo... | 15 | 75 | 0.342649 |
train_a7361c59d7b2cc71 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.041, -0.277, 0.047), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.517).sweep(cq.Workplane('YZ').spline([(-0.968, -0.196), (-0.815, -0.337), (-0.661, -0.451), (-0.508, -0.144), (-0.354, 0.077), (-0.201, -0.153), (-0.047, -0.454), (0.107, -0.328),... | 5 | 45 | 0.037162 |
train_cbf7360e1bd3c280 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.749, -0.192), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.665).workplane(offset=0.4).circle(0.602).workplane(offset=0.437).circle(0.667).workplane(offset=0.493).circle(0.658).workplane(offset=0.419).circle(0.727).loft()
result = result.edges... | 12 | 61 | 1.524485 |
train_b97fc1ac8b8f7461 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.694, -0.023, -0.221), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.365, 0.346).extrude(0.099)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.672, -0.023, -0.122), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.118).extrude(0.012))
result = re... | 24 | 320 | 0.118352 |
train_3f3a386d83dac33f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.004), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1, -1).lineTo(0, 0).lineTo(0.712, -0.462).lineTo(0.506, 0.506).lineTo(0.462, 0.712).lineTo(-0.506, 0.506).lineTo(-1, 1).lineTo(-1, 0.649).lineTo(-0.712, 0.462).lineTo(-0.506, -0.506).lineTo(... | 7 | 45 | 0.252796 |
train_2f1e6e96b9bd173b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.151, 0.095), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.114, 0.159).threePointArc((-0.15, 0.175), (-0.185, 0.159)).threePointArc((-0.168, 0.105), (-0.221, 0.087)).lineTo(-0.237, 0.087).threePointArc((-0.227, 0.078), (-0.221, 0.066)).threeP... | 4 | 56 | 0.112 |
train_ae2f826ea60b52f4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.386, 0.36, 0.113), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.887, 0.213).threePointArc((0.836, 0.092), (0.715, 0.041)).lineTo(-0.715, 0.041).threePointArc((-0.836, 0.092), (-0.887, 0.213)).lineTo(-0.887, 0.442).threePointArc((-0.836, 0.564), ... | 5 | 40 | 0.630024 |
train_7efba81473850e09 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.012, -0.507, -0.08), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.536, 0.606).extrude(0.255)
result = result.faces('>Z').shell(-0.03)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.021, -0.902, 0.035), normal=(0, 0, 1), xDir=(1, 0, 0))).ci... | 19 | 86 | 0.096598 |
train_5e60ea2c3bbac553 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.812, -1.343, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.938, 1.016).lineTo(0.753, 1.993).lineTo(-0.186, 2.32).lineTo(-0.938, 1.67).lineTo(-0.753, 0.693).lineTo(0.186, 0.366).lineTo(0.938, 1.016).close().workplane(offset=0.202).moveTo(0.935... | 17 | 22 | 2.915178 |
train_b0d5bfaad8c7e061 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.508, -0.106), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.328, 0.582).threePointArc((0.328, 0.954), (0.311, 0.2)).threePointArc((-0.117, 0.209), (-0.328, 0.582)).close().revolve(angleDegrees=180, axisStart=(0, 0), axisEnd=(0.302, 0))
result... | 4 | 15 | 0.988236 |
train_bc806f12d42d4c13 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.016, -0.098, -0.043), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.333, -0.073).threePointArc((-0.318, -0.082), (-0.302, -0.085)).lineTo(-0.141, -0.085).lineTo(0.141, -0.085).lineTo(0.302, -0.085).threePointArc((0.318, -0.082), (0.333, -0.073)).... | 5 | 118 | 0.040544 |
train_a5c2e3c51a95fa24 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.67, -0.115, 0.406), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.175, -0.268).threePointArc((-0.193, -0.193), (-0.183, -0.116)).threePointArc((0.014, 0.026), (0.211, -0.116)).threePointArc((0.322, 0.06), (0.299, 0.268)).lineTo(-0.271, 0.268).lin... | 5 | 24 | 0.12666 |
train_6fdc95f9edabb351 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.043, 0.027), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.068, 0.744).lineTo(-0.712, 0.897).threePointArc((-0.877, 0.822), (-0.86, 0.642)).threePointArc((-0.768, 0.591), (-0.664, 0.609)).lineTo(-0.338, 0.043).lineTo(-0.08, -0.709).threePoint... | 2 | 50 | 2.700734 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.