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_8cc8ca5fc21527fd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.707, -0.467, 0.003), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.254, 0.146).threePointArc((0.095, 0.166), (0, 0.293)).lineTo(-0.254, 0.146).threePointArc((-0.191, 0), (-0.254, -0.146)).lineTo(0, -0.293).threePointArc((0.095, -0.166), (0.254, -0... | 2 | 32 | 0.260621 |
train_86d7756392bf6a37 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.887, 0).threePointArc((0.843, 0.278), (0.714, 0.527)).threePointArc((-0.887, 0), (0.714, -0.527)).threePointArc((0.843, -0.278), (0.887, 0)).close().extrude(2)
result = result.edges().chamfer(... | 7 | 38 | 2.536428 |
train_83033bab79f6397d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.411, -0.188), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.188, -0.331).lineTo(0.188, -0.179).lineTo(0.396, -0.059).lineTo(0.396, 1.351).lineTo(0.323, 1.308).lineTo(0.188, 1.231).lineTo(0.188, 1.411).lineTo(-0.261, 1.151).lineTo(-0.396, 1.074... | 12 | 58 | 0.126582 |
train_37be75b2b7358df3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.521).workplane(offset=0.307).circle(0.857).workplane(offset=0.283).circle(0.563).workplane(offset=0.301).circle(0.819).workplane(offset=0.325).circle(0.862).workplane(offset=0.398).circle(0.81... | 10 | 19 | 3.843002 |
train_9f261f86d403e963 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.118), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.317, 0.628).threePointArc((-0.046, 0), (0.317, -0.628)).lineTo(0.317, -1).lineTo(-0.317, -1).lineTo(-0.317, 1).lineTo(0.317, 1).lineTo(0.317, 0.628).close().extrude(0.235)
result = result.... | 6 | 59 | 0.213031 |
train_c2611acfcd175854 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.475), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.219, 1.074).extrude(1.144)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.487 + 0.1625, 0.2665, -1.174), normal=(0, 1, 0), xDir=(1, 0, 0))).circle(0.089).extrude(1.396))
result = resul... | 25 | 159 | 0.674426 |
train_d1a5ac88f97492f8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.56, 0.552, 0.12), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.048, 0.053).lineTo(-0.032, 0.053).lineTo(-0.033, 0.036).lineTo(-0.006, 0.036).lineTo(-0.007, 0.053).lineTo(0.009, 0.053).lineTo(0.01, 0.036).lineTo(0.05, 0.036).lineTo(0.053, 0.008)... | 2 | 25 | 0.070258 |
train_1ae0235ee3d5f538 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.049, -0.085, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.482, 1.745).extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(0.147, 0.87, -0.604), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.238, 0.174).extrude(0.276))
result = result.un... | 14 | 465 | 4.416631 |
train_afbd4a44733d16c9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.486, -0.09, 0.077), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.188, 0.5).lineTo(0.188, 0.178).lineTo(-0.188, 0.178).lineTo(-0.188, 0.5).lineTo(0.188, 0.5).close().revolve(angleDegrees=180, axisStart=(0.188, 0.5), axisEnd=(0.188, 0.431))
result... | 19 | 78 | 0.181206 |
train_056a2b2f0b781a8d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.39, 0.682, 0.586), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.414, 1.089).lineTo(0.414, 0.611).lineTo(-0.414, 0.133).lineTo(-0.414, 1.089).lineTo(0.414, 1.089).close().revolve(angleDegrees=90, axisStart=(0.414, 1.089), axisEnd=(0.414, 0.611))
r... | 5 | 33 | 0.121679 |
train_7c6d39f3fa75a420 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.196, -0.047, -0.249), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.608, 0.364).extrude(0.115)
result = result.union(cq.Workplane(cq.Plane(origin=(0.204, -0.047, -0.134), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.501, 0.252).extrude(0.02))
result = ... | 35 | 271 | 0.170452 |
train_d4281b06fe06591f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.132, -0.925, -0.962), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.011, 1.925).lineTo(-0.481, 1.641).lineTo(-0.766, 1.149).lineTo(-0.766, 0.58).lineTo(-0.481, 0.088).lineTo(0.011, -0.196).lineTo(0.169, 0.393).lineTo(0.421, 0.393).lineTo(0.639, 0.... | 16 | 153 | 3.476346 |
train_2eac2a6e1a35c657 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.003, -0.053, -0.385), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.115, 0.178).lineTo(0.237, 0.178).lineTo(0.237, -0.178).lineTo(-0.237, -0.178).lineTo(-0.237, 0.059).lineTo(-0.128, 0.059).lineTo(-0.128, -0.158).lineTo(0.115, -0.158).lineTo(0.11... | 14 | 73 | 0.070272 |
train_c521bbeff6686b7e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.633), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(1.113).workplane(offset=0.257).circle(0.85).workplane(offset=0.35).circle(0.875).workplane(offset=0.314).circle(0.928).workplane(offset=0.345).circle(1.014).loft()
result = result.cut(cq.Wor... | 6 | 44 | 2.632522 |
train_774de7687d867bf0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.27, 0.672, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1, 0.023).lineTo(-0.781, 0.15).lineTo(0.204, 0.15).lineTo(0.203, 0.247).lineTo(0.479, 0.247).lineTo(0.479, 0.517).lineTo(1, 0.517).lineTo(1, 0.023).lineTo(-1, 0.023).close().extrude(1.34... | 16 | 41 | 0.405062 |
train_ec5e658be5702c06 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1.122, -0.654, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.75, 2.106).threePointArc((-0.927, 2.033), (-1, 1.857)).lineTo(-1, 0.388).threePointArc((-0.927, 0.211), (-0.75, 0.138)).lineTo(0.75, 0.138).threePointArc((0.927, 0.211), (1, 0.388)).... | 12 | 74 | 5.112652 |
train_dc5771f3208d5c76 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.198, -0.014, -0.254), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.085, 0.157).extrude(0.179)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.208, -0.046, -0.098), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.009).extrude(0.427))
result = re... | 12 | 92 | 0.029629 |
train_d1934077cfe82abf | 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.976, 0.986).extrude(0.722)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.232, 0.21, -0.837), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.299).extrude(0.318))
result = result.cut(cq.Workpla... | 10 | 61 | 2.51649 |
train_f2604c966be1e53d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.472, -0.396), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.703, 1.056).extrude(0.54)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.175, -0.624, 0.13), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.068).extrude(0.266))
result = result.uni... | 4 | 34 | 0.764734 |
train_d4316e3e83390028 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.282, -0.836, -0.14), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.825, -0.021).threePointArc((-0.128, -0.718), (0.57, -0.021)).threePointArc((0.825, 0.933), (-0.128, 1.188)).threePointArc((-0.383, 0.933), (-0.477, 0.584)).threePointArc((-0.383,... | 4 | 40 | 3.762096 |
train_679ecbb2a6df12ca | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.043, -0.407), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1, -0.847).lineTo(1, -0.806).lineTo(0.988, 0.805).lineTo(-0.968, 0.818).close().moveTo(-0.193, 0.369).lineTo(0.194, 0.369).lineTo(0.19, 0.302).lineTo(0.033, 0.301).lineTo(0.032, 0.092)... | 12 | 132 | 1.586329 |
train_991afd1eeae7bf68 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1, -0.136), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.298, 0.183).threePointArc((-0.326, 0.148), (-0.347, 0.109)).threePointArc((-0.305, 0.061), (-0.291, 0)).threePointArc((-0.305, -0.061), (-0.347, -0.109)).threePointArc((-0.326, -0.148),... | 2 | 17 | 0.345831 |
train_96197b379f50b8f7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.306), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.143, -1).threePointArc((-0.446, -0.874), (-0.571, -0.571)).lineTo(-0.571, 1).lineTo(0.143, 1).threePointArc((0.446, 0.874), (0.571, 0.571)).lineTo(0.571, -0.571).threePointArc((0.446, -0.... | 15 | 56 | 0.96735 |
train_8819ccb93097e538 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.7, 0, 0.415), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.182).sweep(cq.Workplane('XZ').spline([(0.528, 0.001), (0.476, 0.387), (0.091, 0.654), (-0.37, 0.463), (-0.562, 0.001), (-0.37, -0.46), (0.091, -0.651), (0.476, -0.384)]))
result = resul... | 5 | 13 | 0.318915 |
train_752171d3bff39e83 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.551, -0.017, -0.05), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.288, 0.449).lineTo(-0.33, 0.422).lineTo(-0.33, 0.332).lineTo(-0.198, 0.196).lineTo(-0.157, 0.217).lineTo(-0.171, 0.24).lineTo(-0.171, 0.279).lineTo(-0.07, 0.165).lineTo(-0.171, ... | 9 | 97 | 0.380556 |
train_5f34d744333f7084 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.307, 0.504, 0.535), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.496).sweep(cq.Workplane('YZ').spline([(0.504, -0.253), (0.703, -0.151), (0.903, -0.081), (1.102, -0.058), (1.302, -0.068)]))
result = result.union(cq.Workplane(cq.Plane(origin=(0.34... | 7 | 80 | 0.604192 |
train_8a40e4d410f8c182 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.696, -0.51), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, 0.181).threePointArc((0.073, 0.166), (0.134, 0.122)).lineTo(-0.022, 0.085).lineTo(-0.014, 0.051).lineTo(0.156, 0.09).threePointArc((0.179, 0.02), (0.172, -0.055)).lineTo(0.063, 0.062)... | 2 | 34 | 0.154228 |
train_df6273cac4ae0c03 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.085, -0.215, 0.195), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, 0.068).threePointArc((0.093, 0.02), (0.109, -0.083)).lineTo(0.124, -0.083).threePointArc((0, 0.083), (-0.124, -0.083)).lineTo(-0.109, -0.083).threePointArc((-0.093, 0.02), (0, 0... | 19 | 234 | 0.081252 |
train_df253d519327c411 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.103, -0.187, 0.589), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.534, 0.037).lineTo(0.534, 0.037).threePointArc((0.373, 0.335), (0.05, 0.435)).lineTo(-0.243, 0.161).lineTo(-0.534, 0.435).lineTo(-0.534, 0.037).close().revolve(angleDegrees=270, ... | 19 | 194 | 0.302834 |
train_ab7a89baefc4ebed | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.167, -0.04, 0.834), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.167, 0.009).lineTo(-0.167, 0.072).lineTo(0.167, 0.072).lineTo(0.167, 0.009).lineTo(-0.167, 0.009).close().revolve(angleDegrees=180, axisStart=(-0.167, 0.009), axisEnd=(-0.167, 0.... | 6 | 33 | 0.008624 |
train_df8f94aa56d880bd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.405, -0.325), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.266, 1.19).extrude(0.972)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.127, -0.065, -0.327), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.093).extrude(0.079))
result = result.cut... | 11 | 162 | 1.895963 |
train_c89e9b2f49f2619b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.015, -0.075, 0.018), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.244, 0.884).lineTo(-0.447, 0.727).lineTo(-0.591, 0.29).lineTo(0.149, -0.925).lineTo(0.561, -0.471).close().moveTo(0.112, 0.314).lineTo(0.054, 0.411).lineTo(-0.055, 0.409).lineTo(-0... | 11 | 94 | 0.304609 |
train_013a20e4059c698b | 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.85, 1.027).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.086, 0.321, -0.346), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.202).extrude(0.574))
result = result.cut(cq.Workplane(... | 11 | 154 | 1.524625 |
train_c93cbb598c74b4c5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.097, -0.008, -0.424), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.314, 0.019).threePointArc((0, 0.333), (0.314, 0.019)).threePointArc((0.313, -0.006), (0.31, -0.031)).threePointArc((0, -0.296), (-0.31, -0.031)).threePointArc((-0.313, -0.006), ... | 15 | 139 | 0.212033 |
train_da073658d604969f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.015, 0, -0.414), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.208, 2).extrude(0.822)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.015, 0.508, -0.2), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.046).extrude(0.395))
result = result.edges().c... | 28 | 144 | 1.098278 |
train_8f7ae9e1c82b0983 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.461), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.725, 2).extrude(0.922)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0.048), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.175).extrude(0.459))
result = result.cut(cq.Workplane(cq.Pl... | 13 | 63 | 2.408294 |
train_9134c7c3052c0a45 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.006, -0.177, -0.795), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.046, 1.046).extrude(1.795)
result = result.faces('>Z').shell(-0.079)
result = result.union(cq.Workplane(cq.Plane(origin=(0.052, -0.097, -0.946), normal=(0, 0, 1), xDir=(1, 0, 0))).... | 15 | 121 | 0.845466 |
train_ec6420eb3b1ebe6a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.14, 0.074, -0.472), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.032, 0.193).threePointArc((-0.052, 0.108), (0.034, 0.089)).threePointArc((0.052, 0.173), (-0.032, 0.193)).close().workplane(offset=0.033).moveTo(-0.041, 0.208).threePointArc((-0.0... | 16 | 126 | 0.017238 |
train_37799635f3d950bf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.077, -0.237), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.763, 0.077).lineTo(-0.401, 0.077).lineTo(-0.401, 0.155).lineTo(0.017, 0.155).lineTo(0.017, 0.077).lineTo(0.763, 0.077).lineTo(0.763, 1.066).lineTo(-0.763, 1.066).lineTo(-0.763, 0.97... | 7 | 40 | 4.332496 |
train_8b928f50404b6afb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.047, -0.586, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.188, 0.59).lineTo(0.188, 0.763).lineTo(-0.68, 0.763).lineTo(-0.68, -0.597).lineTo(0.68, -0.597).lineTo(0.68, 0.59).lineTo(0.188, 0.59).close().extrude(1.586)
result = result.union(cq.... | 17 | 173 | 1.796502 |
train_df08ae299b960a40 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.623, -1.245, 0.269), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.144, 1.317).lineTo(-0.392, 1.173).lineTo(-0.536, 0.924).lineTo(-0.214, 0.838).lineTo(-0.214, 0.723).lineTo(-0.536, 0.637).lineTo(-0.392, 0.388).lineTo(-0.144, 0.245).lineTo(0.144... | 9 | 72 | 0.840075 |
train_b8958ca47715dabc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.015, -0.057, -0.807), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.559, 1.559).extrude(1.636)
result = result.faces('<X').shell(-0.12)
result = result.union(cq.Workplane(cq.Plane(origin=(0.049, 0.078, 0.822), normal=(0, 0, 1), xDir=(1, 0, 0))).rec... | 12 | 97 | 1.453111 |
train_95c189631f2afe36 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.321), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.491, 2).extrude(0.502)
result = result.union(cq.Workplane(cq.Plane(origin=(0.074, 0.1, 0.178), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.342, 1.8).extrude(0.07))
result = result.union(cq.Wor... | 4 | 12 | 1.712755 |
train_484964eb74e631f4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.003, 0, 0.333), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.357, 1).lineTo(0.357, 1).lineTo(0.214, -1).lineTo(-0.357, -1).lineTo(-0.357, 1).close().extrude(0.666)
result = result.edges().chamfer(0.072)
result = result.faces('>Z').shell(-0.075)... | 3 | 51 | 0.311219 |
train_472d749f6c834db2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.007, 0.3, -0.226), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.031, 0.528).threePointArc((0, 0.526), (0.031, 0.522)).lineTo(0.031, -0.522).threePointArc((0, -0.526), (-0.031, -0.528)).lineTo(-0.031, 0.528).close().extrude(0.006)
result = resul... | 15 | 189 | 0.077047 |
train_6e09ca86037ead9f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.042, -1, -0.138), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.311, -0.05).lineTo(0.311, -0.241).lineTo(-0.311, -0.241).lineTo(-0.311, 0.241).lineTo(0.311, -0.05).close().sweep(cq.Workplane('YZ').spline([(-0.507, -0.698), (-0.308, -0.692), (-0.... | 3 | 20 | 0.461301 |
train_6d6ebdcdf14516a5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.024, 0.193, -0.482), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.471, 0.952).extrude(0.964)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.079, -0.004, -0.081), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.045).extrude(0.226))
result = result... | 14 | 61 | 1.039377 |
train_0be186bb2e62c87f | 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.506, 1.615).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.316, 0.148, 0.222), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.554, 0.577).extrude(0.798))
| 2 | 11 | 4.615686 |
train_f0ba2f7032e6580e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-2.132, 0.363, 0.346), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.9, -1.212).lineTo(1.757, 0.272).threePointArc((0.061, 0.973), (-1.757, 1.212)).lineTo(-1.757, 0.322).lineTo(0.9, -1.212).close().sweep(cq.Workplane('XZ').spline([(-2.132, 0.346), ... | 6 | 40 | 0.131192 |
train_14a136cee2f86ec5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.999, -0.125, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.316, -0.63).threePointArc((-0.316, 0.001), (0.316, 0.631)).threePointArc((-0.196, 0.001), (0.316, -0.51)).close().sweep(cq.Workplane('XY').spline([(0.444, -0.125), (0.127, -0.065), (-0... | 8 | 28 | 0.097674 |
train_4d700fe2374815d8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.034, 0.41, -0.406), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.18, 1.18).extrude(0.897)
result = result.faces('>Z').shell(-0.123)
result = result.union(cq.Workplane(cq.Plane(origin=(0.059, 0.452, -0.491), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(... | 6 | 29 | 0.722956 |
train_691b455e713348b8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.411, -0.02, -0.634), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.204, 0.591).threePointArc((0.378, -0.165), (-0.378, -0.34)).lineTo(-0.281, -0.185).threePointArc((0.223, -0.069), (0.107, 0.436)).lineTo(0.204, 0.591).close().extrude(1.134)
resul... | 7 | 42 | 0.53734 |
train_5cbc1ee6009b247e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.616, 0.624, 0.039), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.011, -0.03).lineTo(-0.637, 0.607).lineTo(-0.916, 0.88).lineTo(-0.431, 1.294).lineTo(0.157, 0.607).lineTo(0.268, 0.607).lineTo(0.916, -0.03).lineTo(0.011, -0.03).close().extrude(1.2... | 18 | 146 | 0.906344 |
train_17f099d51751690d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.002, 0.439, -0.124), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.333, -0.556).lineTo(0.33, -0.557).lineTo(0.333, 0.549).lineTo(-0.336, 0.561).close().moveTo(-0.178, 0.151).lineTo(-0.04, 0.152).lineTo(-0.039, 0.119).lineTo(-0.092, 0.117).lineTo(... | 12 | 102 | 0.129782 |
train_e305a29fcc7e3a6c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.964, 0.198, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.693, 0.838).threePointArc((0, -0.493), (-0.693, 0.838)).threePointArc((0, 1.198), (0.693, 0.838)).close().extrude(1.929)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.406, 0.8... | 5 | 21 | 4.073568 |
train_ac4553f54b74a6ea | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(1.303).workplane(offset=0.633).circle(0.779).workplane(offset=0.664).circle(0.472).workplane(offset=0.703).circle(0.355).loft()
result = result.edges().fillet(0.246)
result = result.cut(cq.Workp... | 3 | 6 | 2.581731 |
train_22d89384a9c7adf0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.056, -0.538), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.068, 0.08).threePointArc((-0.033, 0.048), (0.003, 0.08)).lineTo(-0.007, -0.019).threePointArc((-0.003, -0.033), (0.01, -0.039)).lineTo(0.068, -0.041).threePointArc((0.05, -0.059), (0... | 4 | 42 | 0.125518 |
train_af08050266de7f3b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.914, -0.328, 0.078), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.922, 0.027).lineTo(0.922, 0.63).lineTo(-0.922, 0.63).lineTo(-0.922, 0.027).lineTo(0.922, 0.027).close().extrude(1.828)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.278, 0.0... | 9 | 29 | 2.010077 |
train_afd108f96399114d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.195, 0.158, 0.094), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.683, 0.31).lineTo(-0.683, 0.154).lineTo(-0.708, 0.154).lineTo(-0.708, 0.13).lineTo(0.012, 0.13).lineTo(0.012, 0.071).lineTo(0.708, 0.071).lineTo(0.708, 0.31).lineTo(-0.683, 0.31).... | 3 | 21 | 0.328483 |
train_fea46294c9e5411b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.9).workplane(offset=1.013).circle(0.689).workplane(offset=0.987).circle(0.479).loft()
result = result.edges().fillet(0.531)
| 2 | 5 | 2.565468 |
train_79da9aa304ad5515 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.003, -0.008, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.135, 0.118).lineTo(-0.135, -0.102).lineTo(0.135, -0.102).lineTo(0.135, 0.118).lineTo(-0.135, 0.118).close().revolve(angleDegrees=90, axisStart=(-0.135, 0.118), axisEnd=(-0.135, -0.10... | 10 | 75 | 0.014649 |
train_74534190c11f1819 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.385, 0, 0.855), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.169, 0.07).lineTo(-0.221, 0.091).lineTo(-0.221, -0.091).lineTo(-0.091, -0.221).lineTo(0.091, -0.221).lineTo(0.07, -0.169).lineTo(0.169, -0.07).lineTo(0.169, 0.07).lineTo(0.221, 0.091).... | 1 | 14 | 0.176837 |
train_474086a4743a063d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.778, -0.179, -0.351), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.649, -0.028).lineTo(0.649, 0.387).lineTo(0.306, 0.387).lineTo(0.306, 0.304).lineTo(0.566, 0.304).lineTo(0.566, 0.038).lineTo(-0.649, 0.038).lineTo(-0.649, -0.028).lineTo(0.649, -... | 26 | 162 | 0.207804 |
train_febaad82b1041a6b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.112, -0.525), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.043, 1.776).extrude(1.05)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.156, -0.404, -0.527), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.022).extrude(0.116))
result = result.cut... | 15 | 24 | 1.752433 |
train_acb5a1166dc22de5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.218, 0, -0.332), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.564, 1.597).extrude(0.665)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.218, 0, -0.432), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.636, 0.878).extrude(0.864))
result = result.un... | 11 | 24 | 1.350839 |
train_58f147cc1d62c58b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.361, -0.154, -0.217), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, 0.678).threePointArc((-0.287, 0.391), (-0.391, 0)).threePointArc((-0.287, -0.391), (0, -0.678)).lineTo(0.391, 0).lineTo(0, 0.678).close().revolve(angleDegrees=360, axisStart=(0... | 10 | 79 | 1.088304 |
train_a20df5f8679b8a44 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0, -0.236), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.244, 0.157).lineTo(0.271, 0.157).lineTo(0.271, 0.026).lineTo(0.244, 0.026).lineTo(0.244, -0.157).lineTo(-0.244, -0.157).lineTo(-0.244, -0.045).lineTo(-0.271, -0.045).lineTo(-0.271, 0.026... | 23 | 12 | 0.161588 |
train_600765a429715fe1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.226, -0.475), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.033, 1.548).extrude(0.951)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.146, 0.118, -0.108), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.142).extrude(0.139))
result = result.edges... | 21 | 190 | 1.122611 |
train_11a2b35379f78350 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.027, 0.35, 0.129), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.4, 0.394).lineTo(-0.4, -0.394).lineTo(0.4, -0.394).lineTo(0.4, 0.394).lineTo(-0.4, 0.394).close().extrude(0.805)
result = result.edges().chamfer(0.152)
result = result.union(cq.Wor... | 10 | 75 | 0.444574 |
train_98363f82fd40de36 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.461, -0.445, 0.366), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.349, 0.837).threePointArc((0.121, 0.566), (0.393, 0.097)).lineTo(0.229, 0.053).threePointArc((0.001, 0.446), (-0.393, 0.673)).lineTo(-0.349, 0.837).close().extrude(0.634)
result ... | 5 | 26 | 0.398383 |
train_a5e8fc93ba477f38 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.021, -0.698, -0.001), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.994, -0.113).threePointArc((0.999, 0.059), (0.97, 0.229)).threePointArc((0.234, 0.856), (-0.619, 0.399)).lineTo(-0.999, 0.399).lineTo(-0.999, -0.056).lineTo(-0.714, -0.056).thre... | 6 | 29 | 0.731006 |
train_c52a064793711328 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.35, -0.304), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.444, -0.484).lineTo(-0.024, 0.168).lineTo(0, 0.206).lineTo(-0.179, 0.484).lineTo(-0.228, 0.484).lineTo(-0.205, 0.525).lineTo(0.205, 0.525).lineTo(0.179, 0.484).lineTo(0.228, 0.484).li... | 1 | 17 | 0.269333 |
train_bd22f01ee0d475b6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.074, 0.141, 0.344), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.538, -0.859).lineTo(-0.538, 0.859).lineTo(0.538, 0.859).lineTo(0.538, -0.859).lineTo(-0.538, -0.859).close().extrude(0.689)
result = result.edges().chamfer(0.24)
result = result.f... | 6 | 69 | 0.290712 |
train_f4eecd085eddd90f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1, -0.208), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.223, -0.223).lineTo(-0.223, -0.221).lineTo(-0.221, -0.221).lineTo(-0.221, 0.221).lineTo(-0.223, 0.221).lineTo(-0.223, 0.223).lineTo(0.223, 0.223).lineTo(0.223, 0.221).lineTo(0.221, 0.22... | 8 | 79 | 0.234876 |
train_0a4e0dd69139542c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 1, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.003, 2).lineTo(-0.778, 1.22).threePointArc((0.003, 0.9), (0.778, 1.225)).lineTo(-0.003, 2).close().revolve(angleDegrees=90, axisStart=(0, 0), axisEnd=(2.601, 0))
| 1 | 5 | 2.000822 |
train_741c97f5a9e34a41 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.321, 0, 0.181), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.423, 0.423).lineTo(-0.423, 0.544).lineTo(-0.544, 0.544).lineTo(-0.544, -0.423).lineTo(-0.423, -0.423).lineTo(-0.423, -0.544).lineTo(0.544, -0.544).lineTo(0.544, -0.423).lineTo(0.423, ... | 12 | 73 | 0.370891 |
train_ff5c821dcdd1a063 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.081, -0.281), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.039, -0.253).lineTo(-0.039, -0.087).lineTo(-0.192, -0.087).lineTo(-0.192, 0.041).lineTo(-0.039, 0.041).lineTo(-0.039, 0.265).lineTo(-0.181, 0.265).lineTo(-0.181, 0.321).threePointArc(... | 16 | 128 | 0.235189 |
train_cb65063e12d98f3d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.167, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.297, 1.277).extrude(1.63)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.292, -0.188, 0.613), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.237).extrude(0.387))
result = result.union(... | 5 | 22 | 2.454073 |
train_36cbf3d42fba9bb3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.069, -0.825, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.097, -0.533).lineTo(-0.388, -0.533).lineTo(0, -0.823).lineTo(0.388, -0.533).lineTo(0.097, -0.533).lineTo(0.097, 0.258).threePointArc((0, 0.823), (-0.097, 0.258)).lineTo(-0.097, -0.5... | 1 | 9 | 0.244399 |
train_c1468ac47b3b9c53 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.836, 0.464), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.643, 0.836).lineTo(0.643, 0.836).lineTo(0.643, -0.289).lineTo(-0.643, -0.289).lineTo(-0.643, 0.836).close().revolve(angleDegrees=180, axisStart=(-0.643, 0.836), axisEnd=(-0.117, 0.836... | 9 | 54 | 0.841814 |
train_7bad2de8012f7bf9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.522), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.877, 0.927).extrude(0.612)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, 0.073), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.224).extrude(0.219))
result = result.union(cq.Workpla... | 17 | 90 | 0.711528 |
train_137940040156ed38 | 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.671).workplane(offset=1.119).circle(0.48).workplane(offset=0.881).circle(0.575).loft()
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.537 + 0.134, 3.4715, 0.286), normal=(0, 1, 0), xDir=... | 9 | 3 | 1.792762 |
train_f47efd1452bc010f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.084, 0.003, 0.009), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.083, 0.001).lineTo(0.057, 0.059).lineTo(0, 0.083).lineTo(-0.06, 0.061).lineTo(-0.085, -0.001).lineTo(-0.059, -0.056).lineTo(-0.002, -0.082).lineTo(0.057, -0.06).close().moveTo(0.017... | 18 | 111 | 0.00998 |
train_c26b4f965a276185 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.437, 0.126, 0.313), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.057, -0.195).threePointArc((0.575, 0.801), (-0.538, 0.652)).threePointArc((-0.566, 0.545), (-0.575, 0.436)).threePointArc((-0.565, 0.327), (-0.537, 0.221)).threePointArc((-0.305, -... | 12 | 153 | 0.578554 |
train_08d019863bc5a21e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.087, -0.108, -0.082), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, -0.034).threePointArc((-0.144, -0.037), (-0.288, -0.047)).lineTo(-0.288, 0.326).lineTo(0, 0.326).lineTo(0.288, 0.326).lineTo(0.288, -0.047).threePointArc((0.144, -0.037), (0, -... | 20 | 607 | 0.211366 |
train_62cbeb95198f89d7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.467, -0.164), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.856, 1.066).extrude(0.111)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0.467, -0.054), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.469, 0.705).extrude(0.025))
result = result.un... | 15 | 112 | 0.154549 |
train_0d84ab023772097e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.113, 0.499, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.328, 0.84).lineTo(0.58, 0.687).lineTo(-0.038, -0.331).lineTo(-0.346, -0.84).lineTo(-0.58, -0.658).lineTo(-0.289, -0.179).lineTo(0.019, 0.331).lineTo(0.328, 0.84).close().sweep(cq.Workpl... | 9 | 89 | 0.523225 |
train_0b1ccff5d28fe28d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.056, 0.452, -0.099), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.26, 0.45).lineTo(0, 0.45).lineTo(0.26, 0).lineTo(0, -0.45).lineTo(-0.26, -0.45).lineTo(-0.26, 0.45).close().revolve(angleDegrees=360, axisStart=(-0.26, 0.45), axisEnd=(0, 0.45))
... | 9 | 122 | 0.849246 |
train_55b031e60834e928 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.288, -0.007, 0.217), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.54, 0.543).threePointArc((0.203, 0.583), (0, 0.854)).threePointArc((-0.203, 0.583), (-0.54, 0.543)).threePointArc((-0.407, 0.231), (-0.54, -0.081)).lineTo(0, -0.393).lineTo(0.54, -... | 32 | 80 | 1.862266 |
train_7f98539189540a5f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.924, -0.936), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.025, -0.018).lineTo(-0.025, 0.018).lineTo(-0.021, 0.018).lineTo(-0.007, 0.032).lineTo(0.025, 0).lineTo(-0.007, -0.032).lineTo(-0.021, -0.018).lineTo(-0.025, -0.018).close().sweep(cq.... | 2 | 13 | 0.004882 |
train_7d429ffa863dc75c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.222, -0.024, 0.292), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.304, -0.859).threePointArc((-0.351, -0.743), (-0.468, -0.694)).lineTo(-0.468, 0.811).threePointArc((-0.351, 0.859), (-0.304, 0.976)).lineTo(0.186, 0.976).lineTo(0.351, 0.976).li... | 15 | 68 | 0.926453 |
train_a5a4bfd9f44c04e1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.544, 0.016, 0.006), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.077, -0.238).lineTo(0.077, -0.238).lineTo(0.077, -0.19).lineTo(0.03, -0.19).lineTo(0.03, 0.238).lineTo(-0.077, 0.238).lineTo(-0.077, 0.027).threePointArc((-0.022, -0.047), (-0.077... | 9 | 62 | 0.118725 |
train_2c65dd9115c35ea7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0, -0.1), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.821, -0.234).lineTo(-0.821, -0.314).lineTo(-0.714, -0.243).lineTo(-0.615, -0.176).lineTo(-0.094, -0.176).lineTo(-0.354, -0.002).lineTo(-0.294, 0.038).lineTo(-0.034, -0.136).lineTo(-0.034,... | 2 | 28 | 0.215586 |
train_305f45330e01eb38 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.637, 0.112, -0.254), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.441, 0.421).lineTo(0.441, -0.202).lineTo(-0.389, -0.202).lineTo(-0.389, 0.421).lineTo(-0.441, 0.421).lineTo(0.441, 0.421).close().revolve(angleDegrees=90, axisStart=(0.441, 0.421),... | 29 | 200 | 0.622399 |
train_75e9e53442490f37 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.362), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.001, 2).extrude(0.724)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0.088), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.029).extrude(0.282))
result = result.cut(cq.Workplane(cq.Pl... | 7 | 44 | 1.392297 |
train_2de1f57bb7b2d16a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.069, -0.462), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.564, 1.862).extrude(0.81)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.251, -0.199, -0.051), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.261).extrude(0.23))
result = result.cut(c... | 9 | 37 | 2.197143 |
train_ab040aa3c388ddae | 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.341, 0.947).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.274, 0.247, -0.8), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.134).extrude(0.81))
result = result.cut(cq.Workplane(cq.... | 8 | 30 | 2.091807 |
train_663f166447614a4b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.336, -0.96, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.524, 0.803).lineTo(-0.81, 0.593).lineTo(-1, 0.067).lineTo(1, 0.067).lineTo(0.81, 0.593).lineTo(0.524, 0.803).lineTo(-0.524, 0.803).close().extrude(1.92)
result = result.cut(cq.Workpla... | 20 | 156 | 2.082511 |
train_44721fd69babb505 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.934), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.396, 2).extrude(1.869)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.309, -0.01, -0.131), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.51, 1.865).lineTo(0.765, 1.865).lineTo(0.765, -... | 3 | 21 | 4.379036 |
train_222a5c7af0b805fc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.469, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.14).workplane(offset=0.388).circle(0.144).workplane(offset=0.556).circle(0.129).workplane(offset=0.525).circle(0.141).loft()
result = result.union(cq.Workplane(cq.Plane(origin=(0.062, 0.72... | 2 | 9 | 0.09648 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.