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_685556e95ceb6b77 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.459), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.432, 0.732).lineTo(-0.432, -0.164).lineTo(1, -0.164).lineTo(1, -0.732).lineTo(-1, -0.732).lineTo(-1, 0.732).lineTo(-0.432, 0.732).close().extrude(0.082, taper=2.9, both=True)
result = res... | 4 | 21 | 1.104048 |
train_8c560bab3c84fc79 | 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.599).extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, 0.39), normal=(0.633, 0, 0.775), xDir=(0.775, 0, -0.633))).circle(0.187).extrude(1.789))
result = result.cut(cq.Workpl... | 4 | 5 | 0.773615 |
train_69409fc17a653382 | import cadquery as cq
import math
result = cq.Workplane('XY').moveTo(0.008, 0.067).lineTo(0.039, 0.056).lineTo(0.06, 0.031).lineTo(0.068, 0).lineTo(0.06, -0.031).lineTo(0.039, -0.056).lineTo(0.008, -0.067).lineTo(-0.024, -0.064).lineTo(-0.051, -0.045).lineTo(-0.066, -0.016).lineTo(-0.066, 0.016).lineTo(-0.051, 0.045).l... | 10 | 58 | 0.011581 |
train_33d3d6c738cbdf03 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.327), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(1, 0.653).lineTo(1, 0).lineTo(-1, 0).lineTo(-1, 0.653).lineTo(-0.763, 0.653).lineTo(-0.763, 0.237).lineTo(0.763, 0.237).lineTo(0.763, 0.653).lineTo(1, 0.653).close().extrude(0.224, both=Tru... | 4 | 88 | 0.121264 |
train_926d0fe4a45e826b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.005, 0, -0.999), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.658).extrude(0.572)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.663, 0, -0.999), normal=(0, 0, 1), xDir=(1, 0, 0))).pushPoints([(0, 0), (-0.154, 0.422), (-0.544, 0.647), (-0.98... | 13 | 126 | 0.237155 |
train_aaf597bb78e41295 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.406, 0.239, 0.029), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.497, 0.046).lineTo(0.45, 0.229).threePointArc((0.501, 0.209), (0.54, 0.17)).lineTo(0.562, 0.136).threePointArc((0.57, 0.103), (0.575, 0.07)).threePointArc((0.576, 0.042), (0.574, 0... | 7 | 79 | 1.130231 |
train_75b70f3682fbf851 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.39, -0.168, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.135, 0.292).threePointArc((0.174, 0.273), (0.209, 0.247)).lineTo(0.312, 0.057).threePointArc((0.317, -0.009), (0.31, -0.074)).lineTo(0.217, -0.229).threePointArc((0.159, -0.268), (0.09... | 15 | 183 | 0.682972 |
train_951b31d22dbf761f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.844, -0.023, 0.183), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.152, 0.018).lineTo(0.171, -0.063).threePointArc((0.103, -0.131), (0.013, -0.147)).threePointArc((-0.066, -0.146), (-0.145, -0.111)).threePointArc((-0.146, -0.033), (-0.177, 0.028... | 3 | 41 | 0.016975 |
train_52e8b5d468c78859 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.072, -0.548), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.723, 0.414).lineTo(0.854, 0.278).lineTo(0.927, 0.145).lineTo(0.927, 0).lineTo(0.75, 0).lineTo(0.75, 0.124).lineTo(0.657, 0.278).lineTo(0, 0.235).lineTo(0, 0.414).lineTo(0.723, 0.414)... | 9 | 117 | 0.693979 |
train_711d5418c9a17661 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.023, 0, -0.544), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.177, 1).lineTo(0.778, 0.653).lineTo(1, 0).lineTo(0.778, -0.653).lineTo(0.177, -1).lineTo(-0.508, -0.879).lineTo(-0.954, -0.347).lineTo(-0.954, 0.347).lineTo(-0.508, 0.879).lineTo(0.17... | 3 | 44 | 2.947277 |
train_26936e911a2a40da | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.257, 0.056), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.435, 0.225).lineTo(-0.435, -0.076).threePointArc((-0.318, -0.126), (-0.04, -0.147)).lineTo(0.867, -0.147).threePointArc((0.955, -0.154), (1, -0.17)).lineTo(1, -0.231).threePointArc((0... | 5 | 63 | 0.110458 |
train_eb6e91405b12697f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.051, 0, -0.368), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.228, 1).lineTo(0.64, 0.802).lineTo(1.026, 0).lineTo(0.64, -0.802).lineTo(-0.228, -1).lineTo(-0.925, -0.445).lineTo(-0.925, 0.445).lineTo(-0.228, 1).close().extrude(0.736)
result = re... | 7 | 40 | 1.999164 |
train_aa0633b3199983b8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.878, -0.244, -0.196), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.804, 0.877).threePointArc((0, 0.073), (-0.804, 0.877)).threePointArc((0, 1.682), (0.804, 0.877)).close().extrude(0.228)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.311, ... | 13 | 38 | 0.420112 |
train_6ec8c723fcec0ac0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.256, 0.179, -0.18), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.525, 0.696).threePointArc((-0.472, 0.679), (-0.45, 0.64)).lineTo(-0.45, -0.367).threePointArc((-0.403, -0.448), (-0.293, -0.483)).lineTo(0.696, -0.483).threePointArc((0.727, -0.492... | 13 | 133 | 0.532748 |
train_0c55383f98cb49cf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.001, -0.29), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(3.1, 0.714).lineTo(3.1, 0.471).threePointArc((3.012, 0.431), (2.804, 0.414)).lineTo(1.343, 0.414).threePointArc((1.102, 0.395), (1, 0.348)).lineTo(1, -0.729).threePointArc((0.892, -0.778... | 4 | 10 | 1.844863 |
train_ddfde0a7b0c6fff4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.048, -0.667), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.019, 0.908).threePointArc((0.072, 0.951), (0.553, 0.697)).lineTo(0.616, 0.685).lineTo(0.863, -0.104).lineTo(0.823, -0.277).threePointArc((0.612, -0.382), (0.599, -0.613)).lineTo(0.006... | 4 | 53 | 1.66076 |
train_75c503f7fbab7e67 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.047, 0, -0.099), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.387, -0.673).lineTo(-0.387, 0.673).lineTo(-0.368, 0.774).lineTo(-0.313, 0.865).lineTo(-0.228, 0.938).lineTo(-0.12, 0.984).lineTo(0, 1).lineTo(0.12, 0.984).lineTo(0.228, 0.938).lineTo(... | 12 | 614 | 0.374115 |
train_e14a3a97d6516253 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.488, -0.042, 0.137), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.128, 0.632).threePointArc((0.348, 0.542), (0.439, 0.322)).lineTo(0.464, 0.2).threePointArc((0.458, 0.125), (0.4, 0.079)).lineTo(0.508, -0.043).lineTo(0.419, -0.164).lineTo(0.439, ... | 12 | 88 | 0.300794 |
train_b53ca7c20e03a22c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.701, 0, -0.534), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.333, 0.707).lineTo(0.333, 0.333).lineTo(1.463, 0.333).lineTo(1.463, 0).lineTo(0, 0).lineTo(0, 0.707).lineTo(0.333, 0.707).close().extrude(1, both=True)
result = result.cut(cq.Workpla... | 9 | 125 | 1.152525 |
train_c05976ee152e8c00 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.121), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1, -0.272).lineTo(-0.5, -0.272).lineTo(-0.5, 0).lineTo(0, 0).lineTo(0, 0.272).lineTo(0.5, 0.272).lineTo(0.5, 0.544).lineTo(1, 0.544).lineTo(1, -0.544).lineTo(-1, -0.544).close().moveTo(-0.1... | 10 | 38 | 0.331851 |
train_5a2019726c807dc0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.355), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.502, 0.703).threePointArc((0.565, 0.676), (0.592, 0.613)).lineTo(0.592, -0.572).lineTo(0.461, -0.703).lineTo(-0.456, -0.703).lineTo(-0.592, -0.568).lineTo(-0.592, 0.539).lineTo(-0.428, 0.7... | 20 | 51 | 0.887849 |
train_60be5d495e65d3a0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.306, -0.035, 0.052), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.003, 0.634).threePointArc((0.119, 0.574), (0.217, 0.474)).threePointArc((0.282, 0.35), (0.304, 0.221)).threePointArc((0.28, 0.106), (0.213, 0.024)).threePointArc((0.114, -0.015),... | 4 | 79 | 0.394938 |
train_8a4c1c53678987b1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.29, 0.022, -0.238), normal=(-0.973, 0.23, 0.011), xDir=(-0.23, -0.973, 0))).moveTo(0.478, 0.487).lineTo(0.478, -0.487).lineTo(-0.478, -0.487).lineTo(-0.478, 0.487).lineTo(-0.176, 0.487).lineTo(-0.176, -0.2).lineTo(0.176, -0.2).lineTo(0.176, 0.48... | 20 | 612 | 1.060603 |
train_cf573ac56a2ac47e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(1).extrude(0.76)
result = result.cut(cq.Workplane(cq.Plane(origin=(1, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).pushPoints([(0, 0), (-0.691, 0.95), (-1.809, 0.588), (-1.809, -0.588), (-0.691, -... | 8 | 12 | 0.241837 |
train_49c86d805f90be03 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.051, 0.473, -0.541), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.068, 0.148).threePointArc((0.153, 0.113), (0.188, 0.028)).lineTo(0.188, -0.028).threePointArc((0.153, -0.113), (0.068, -0.148)).lineTo(-0.068, -0.148).threePointArc((-0.153, -0.1... | 1 | 10 | 0.125894 |
train_ab7ff4e2b2231c26 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.008, -0.618), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.867, 0.479).lineTo(0.652, 0.167).lineTo(0.686, 0.056).lineTo(0.86, -0.145).lineTo(0.908, -0.256).lineTo(0.873, -0.368).lineTo(0.644, -0.658).lineTo(0.728, -0.992).lineTo(0.238, -0.992... | 5 | 54 | 3.24614 |
train_85c1f21d787e30db | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.047, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.435, 0.23).lineTo(1, 0.173).lineTo(-0.326, -0.23).lineTo(-0.891, -0.173).lineTo(-1, -0.147).lineTo(-0.963, -0.136).lineTo(-0.744, -0.128).lineTo(-0.853, -0.102).lineTo(-0.816, -0.091).lineT... | 8 | 168 | 0.0983 |
train_f2fdb7a929d6e183 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, 0.561, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 1.431).threePointArc((0.661, 1.157), (0.934, 0.497)).threePointArc((0.661, -0.164), (0, -0.438)).threePointArc((-0.661, -0.164), (-0.934, 0.497)).threePointArc((-0.661, 1.157), (0, 1.431))... | 5 | 188 | 4.140481 |
train_33317526e99aa334 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.861, -0.431, -0.188), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.063, 0.106).lineTo(0.063, -0.021).lineTo(0.106, -0.021).lineTo(0.106, -0.063).lineTo(0.063, -0.063).lineTo(0.063, -0.106).lineTo(0.021, -0.106).lineTo(0.021, -0.021).lineTo(-0.02... | 24 | 62 | 1.650316 |
train_55c6304d6cbc6cfe | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.006, -0.038, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.222, 0.217).lineTo(0.095, -0.217).threePointArc((-0.222, -0.043), (0.222, 0.217)).close().moveTo(-0.032, 0.217).lineTo(0.095, 0.13).threePointArc((-0.095, 0.043), (-0.032, 0.217)).clo... | 1 | 6 | 0.287709 |
train_e6f9eded5261d03b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.1, 0.094, -0.527), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.671, 0.292).threePointArc((0.894, 0.292), (0.671, 0.097)).lineTo(-0.447, -0.292).threePointArc((-0.894, -0.097), (-0.671, 0.097)).lineTo(0.671, 0.292).close().moveTo(-0.627, -0.089)... | 5 | 62 | 0.717171 |
train_bffe4380d64a8f1a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.222), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.962, 0.306).lineTo(0.962, -0.306).lineTo(-0.962, -0.306).lineTo(-0.962, 0.306).lineTo(0.962, 0.306).close().extrude(0.444, taper=-9.291)
result = result.cut(cq.Workplane(cq.Plane(origin=(-... | 17 | 38 | 0.563075 |
train_641f1ed0767475b8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.118), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.287, 0.32).lineTo(0.287, 0.198).lineTo(0.607, 0.198).lineTo(0.607, 0).lineTo(-0.607, 0).lineTo(-0.607, 0.198).lineTo(-0.287, 0.198).lineTo(-0.287, 0.32).lineTo(0.287, 0.32).close().extrud... | 12 | 277 | 0.608344 |
train_b1e4d56455d77c7a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.658, 0.415, -0.329), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.195, 0.172).lineTo(0.179, 0.098).threePointArc((0.099, -0.401), (-0.121, -0.082)).lineTo(-0.157, -0.091).threePointArc((-0.169, -0.087), (-0.175, -0.07)).lineTo(-0.195, 0.128).thr... | 8 | 58 | 0.14721 |
train_342529fcf37a8c55 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.204, 0.12, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.147, 0.115).lineTo(0.147, -0.115).lineTo(-0.147, -0.115).lineTo(-0.147, -0.039).lineTo(0.098, -0.039).lineTo(0.098, 0.039).lineTo(-0.147, 0.039).lineTo(-0.147, 0.115).lineTo(0.147, 0.11... | 14 | 279 | 0.211434 |
train_3704a2541e491efc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.093), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.931, 2).extrude(0.187)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, -0.093), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.164, -0.298).lineTo(0.164, -0.298).lineTo(-0.164, -0.502)... | 17 | 32 | 0.275425 |
train_17b1f4a7dca422e4 | import cadquery as cq
import math
result = cq.Workplane('XY').box(1.527, 2, 1.024)
result = result.edges().fillet(0.374)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.198).extrude(3.054, both=True))
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0), nor... | 5 | 36 | 2.178328 |
train_d50a0705be013656 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.796, -0.592, -0.88), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 1.591).threePointArc((1.124, 1.124), (1.591, 0)).lineTo(0.812, 0).threePointArc((0.574, 0.574), (0, 0.812)).lineTo(0, 1.591).close().extrude(1.759)
result = result.union(cq.Workp... | 4 | 21 | 2.944112 |
train_9a3e181b44aa674e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.016, 0.016, -0.413), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.51, -0.161).threePointArc((-0.724, -0.275), (-0.51, 0.128)).lineTo(0.471, 0.128).threePointArc((0.724, 0.275), (0.471, -0.161)).lineTo(-0.51, -0.161).close().extrude(0.826)
resul... | 6 | 52 | 0.519837 |
train_ec9dec074200d59e | import cadquery as cq
import math
result = cq.Workplane('XY').moveTo(0.106, 0.908).threePointArc((0.172, 0.883), (0.2, 0.823)).lineTo(0.2, 0.602).threePointArc((0.219, 0.562), (0.263, 0.545)).lineTo(0.504, 0.545).threePointArc((0.572, 0.519), (0.6, 0.458)).lineTo(0.6, 0.283).threePointArc((0.633, 0.212), (0.712, 0.182)... | 9 | 34 | 0.774499 |
train_e4065b343974b941 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, -0.1, -0.695), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.38).lineTo(0, 0.228).lineTo(0.828, 0.304).threePointArc((0.994, 0.228), (0.994, 0.152)).lineTo(0.166, 0).lineTo(0.497, -0.38).threePointArc((0.332, -0.456), (0.166, -0.456)).lin... | 24 | 219 | 1.032561 |
train_a0a5638de4e84cbf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.002, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.693, 0.974).threePointArc((1, 0.707), (0.768, 0.451)).lineTo(0.212, 0.383).threePointArc((0.086, 0.27), (0.07, 0.169)).threePointArc((0.135, -0.732), (0.087, -0.86)).lineTo(0.041, -0.899).... | 4 | 31 | 0.805016 |
train_f09a0721edac79bf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.148, -0.058, 0.226), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.083, 0.695).threePointArc((-0.025, 0.671), (0, 0.612)).lineTo(0, 0.361).threePointArc((0.039, 0.27), (0.129, 0.232)).lineTo(0.332, 0.232).threePointArc((0.424, 0.192), (0.463, 0.1... | 21 | 186 | 0.905352 |
train_d98958a32df2c8eb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.186), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.186, 0.371).lineTo(0.186, 0).lineTo(-0.186, 0).lineTo(-0.186, 0.371).lineTo(-0.099, 0.371).lineTo(-0.099, 0.087).lineTo(0.099, 0.087).lineTo(0.099, 0.371).lineTo(0.186, 0.371).close().ext... | 6 | 26 | 0.106658 |
train_2bc9d9f545c8914a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.14, -0.745, -0.017), normal=(-0.577, -0.372, 0.727), xDir=(0.542, -0.841, 0))).moveTo(-0.037, 0.273).lineTo(0.069, 0.26).threePointArc((0.113, 0.193), (0.171, 0.191)).threePointArc((0.287, -0.065), (0.144, -0.273)).lineTo(-0.171, -0.215).threeP... | 9 | 31 | 1.334624 |
train_32da778c17fcf976 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.133, -0.114, 0.151), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.66, 0.727).lineTo(0.22, -0.727).threePointArc((-0.22, -0.888), (-0.66, -0.727)).lineTo(-0.22, 0.727).threePointArc((0.22, 0.888), (0.66, 0.727)).close().extrude(0.049, both=True)
r... | 16 | 100 | 0.468901 |
train_df99ddc6e94d5eef | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1.153, 0, -4.006), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.567).extrude(4.268)
result = result.union(cq.Workplane(cq.Plane(origin=(-1.153, 0, -1.018), normal=(0.348, 0, 0.938), xDir=(0.938, 0, -0.348))).circle(1.012).extrude(1.737))
result = ... | 5 | 12 | 0.207635 |
train_da48dc2b86fa3a79 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.09), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.75, -0.107).lineTo(0.75, -0.213).lineTo(1, -0.32).lineTo(0.875, -0.533).lineTo(0.625, -0.427).lineTo(0.5, -0.427).lineTo(0.75, -0.64).lineTo(0.5, -0.746).lineTo(0.375, -0.533).lineTo(0.25, ... | 10 | 257 | 0.330279 |
train_b753b159cf34a6c9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.003, 0, 0.088), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.208, 0.333).lineTo(0.242, 0.2).threePointArc((0.272, 0.134), (0.299, 0.067)).threePointArc((0.291, 0), (0.297, -0.067)).lineTo(0.241, -0.2).threePointArc((0.249, -0.273), (0.208, -0.33... | 2 | 14 | 0.62214 |
train_0aec07b052977760 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.509, 0.127, 0.004), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.491).threePointArc((0.347, 0.347), (0.491, 0)).threePointArc((0.347, -0.347), (0, -0.491)).threePointArc((-0.347, -0.347), (-0.491, 0)).threePointArc((-0.347, 0.347), (0, 0.491)... | 3 | 36 | 1.40617 |
train_4117eaffa2c6967e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.182), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(1, 0.231).lineTo(0.692, 0).lineTo(1, -0.231).lineTo(0.383, -0.231).lineTo(0.383, 0.231).lineTo(1, 0.231).close().revolve(angleDegrees=360, axisStart=(0, 0, 0), axisEnd=(0, 1, 0))
result = r... | 13 | 109 | 0.901489 |
train_9e615ed4195d3c78 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.506, 0.075, -0.517), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.359, 0.339).threePointArc((0, -0.339), (-0.359, 0.339)).lineTo(0.359, 0.339).close().twistExtrude(0.597, -115.807)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.077, 0, -0... | 7 | 32 | 0.65118 |
train_b14c6a07f0ec9b23 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.314, -0.463, -0.92), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.646, 1.128).lineTo(0.646, 0.016).lineTo(0.341, 0.016).lineTo(0.341, 0.399).lineTo(-0.341, 0.399).lineTo(-0.341, 0.016).lineTo(-0.646, 0.016).lineTo(-0.646, 1.128).lineTo(-0.341, 1... | 6 | 32 | 1.610665 |
train_b83411a79d2e5014 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.947, -0.016, -0.361), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.549, 1.016).threePointArc((-0.442, 0.977), (-0.397, 0.887)).lineTo(-0.397, 0.563).threePointArc((-0.319, 0.405), (-0.134, 0.339)).lineTo(1.025, 0.339).threePointArc((1.142, 0.296... | 22 | 184 | 0.780895 |
train_f5c84b2c29885207 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.096), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.478, 0.99).lineTo(0.87, 0.262).lineTo(0.897, -0.525).lineTo(0.25, -1).lineTo(-0.481, -0.842).lineTo(-0.897, -0.291).lineTo(-0.794, 0.36).lineTo(-0.376, 1).lineTo(0.478, 0.99).close().extru... | 9 | 374 | 0.667935 |
train_3ff6ba8a175eb26d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.459, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-2.022, 1.374).threePointArc((-1.889, 1.318), (-1.833, 1.185)).lineTo(-1.833, 0.702).threePointArc((-1.761, 0.531), (-1.59, 0.459)).lineTo(2.477, 0.459).threePointArc((2.666, 0.378), (2.748, ... | 5 | 93 | 3.072731 |
train_82fb3afa613397d4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.101, 0.842, -0.227), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.612, 0.899).lineTo(0.745, 0.367).lineTo(0.772, -0.164).lineTo(0.612, -0.696).threePointArc((-0.772, 0.102), (0.612, 0.899)).close().revolve(angleDegrees=90, axisStart=(0.912, -0.5... | 16 | 167 | 2.796597 |
train_7103ef9a356b25c9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.008, 0, -0.354), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.455).lineTo(1, -0.336).lineTo(1.007, -0.455).lineTo(-0.984, -0.455).lineTo(-1, -0.31).lineTo(-1, 0.374).lineTo(-1.046, 0.374).lineTo(-1.046, 0.455).lineTo(1, 0.455).close().extrude... | 13 | 79 | 0.813013 |
train_d051c5363ae6bafd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.111, -0.269, -0.899), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.499, 0.359).lineTo(0.547, 0.299).lineTo(0.631, 0.302).lineTo(0.889, -0.154).lineTo(0.592, -0.359).lineTo(0.125, -0.262).lineTo(0.106, -0.182).lineTo(0.023, -0.146).lineTo(-0.003,... | 17 | 264 | 1.706472 |
train_5363ff54f4fec3e8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.36, -0.425, 0.295), normal=(0.814, 0.475, -0.334), xDir=(-0.504, 0.864, 0))).moveTo(-0.549, 0.623).lineTo(0.055, 0.439).lineTo(0.67, 0.392).lineTo(0.578, 0.024).lineTo(0.306, -0.106).lineTo(0.078, -0.457).lineTo(0.126, -0.499).lineTo(0.135, -0.... | 14 | 208 | 1.92906 |
train_ede219aa2e91fc8c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.072, -0.186, -0.492), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.198, 0.044).lineTo(0.198, -0.044).lineTo(0.111, -0.044).lineTo(0.111, 0.015).lineTo(0.14, 0.015).lineTo(0.14, 0.044).lineTo(0.198, 0.044).close().sweep(cq.Workplane(cq.Plane(ori... | 6 | 97 | 0.678645 |
train_bfda2a63acdabae7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.022, 0, -0.101), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.526, 2).extrude(0.259)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.008, -0.915, 0.029), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.939, 0.282).lineTo(-0.921, 0.264).lineTo(-0.... | 17 | 93 | 0.242979 |
train_3c9522f8ba027fde | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.274, -0.225, -0.827), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.603, 0.705).lineTo(0.603, 0.101).lineTo(-0.362, 0.101).lineTo(-0.362, -0.101).lineTo(0.603, -0.101).lineTo(0.603, -0.705).lineTo(-0.603, -0.705).lineTo(-0.603, -0.504).lineTo(0.3... | 8 | 170 | 2.107198 |
train_2ab31bb3258946ad | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.237, -0.141, -0.124), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.062, 0.318).lineTo(0.356, -0.203).lineTo(-0.356, -0.264).lineTo(-0.062, 0.318).close().extrude(0.762)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.526, -0.027, 0.322)... | 4 | 37 | 0.156135 |
train_99cee84cd7b52406 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.126, -0.06, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.536, -0.346).lineTo(-0.444, -0.664).threePointArc((-0.536, 0.664), (0.536, -0.346)).close().extrude(1, taper=-6.425, both=True)
result = result.union(cq.Workplane(cq.Plane(origin=(1.854... | 13 | 85 | 3.774482 |
train_5449205051243c4d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.049, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.238, 0.068).lineTo(0.202, -0.039).lineTo(0.114, -0.133).threePointArc((-0.066, -0.394), (-0.227, -0.122)).threePointArc((-0.068, 0.394), (0.238, 0.068)).close().moveTo(0.179, 0.105).lineTo... | 1 | 16 | 0.246947 |
train_0373f72059b291b6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.063, -0.209), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.908, 0.473).threePointArc((0.972, 0.447), (1, 0.382)).lineTo(1, -0.473).lineTo(-0.906, -0.473).lineTo(-1, -0.38).lineTo(-1, 0.473).lineTo(0.908, 0.473).close().extrude(0.41)
result = r... | 2 | 17 | 0.810385 |
train_2d18559423dd5c58 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.167), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.694, 0.78).lineTo(0.694, 0.474).lineTo(1, 0.474).lineTo(1, -0.78).lineTo(-0.681, -0.78).threePointArc((-0.906, -0.687), (-1, -0.462)).lineTo(-1, 0.78).lineTo(0.694, 0.78).close().extrude(0... | 8 | 31 | 0.325872 |
train_35b087ba1bd27233 | import cadquery as cq
import math
result = cq.Workplane('XZ').moveTo(0.841, 0.496).lineTo(1, 0.329).lineTo(0.08, -0.496).lineTo(0.037, -0.448).lineTo(0.187, -0.305).lineTo(0.192, -0.092).lineTo(0.841, 0.496).close().revolve(angleDegrees=360, axisStart=(0, 0, 0), axisEnd=(0, 1, 0))
result = result.cut(cq.Workplane(cq.Pl... | 2 | 16 | 0.592118 |
train_edc1d2cfa21196d7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.154, 0, -0.09), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.397, 0.467).lineTo(0.397, 0).lineTo(-0.397, 0).lineTo(-0.397, 0.467).lineTo(-0.238, 0.467).lineTo(-0.238, 0.159).lineTo(0.238, 0.159).lineTo(0.238, 0.467).lineTo(0.397, 0.467).close()... | 7 | 77 | 0.409641 |
train_b67602df8dc20dd1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.254), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.556, 0.507).lineTo(0.921, 0.359).lineTo(1, 0.178).lineTo(1, 0).lineTo(0.704, 0).lineTo(0.704, 0.152).lineTo(0.606, 0.359).lineTo(0, 0.211).lineTo(0, 0.507).lineTo(0.556, 0.507).close().re... | 4 | 29 | 0.804899 |
train_d776c9c09f018e27 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1.065, 0, -0.847), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.96, 1).threePointArc((-0.901, 0.975), (-0.876, 0.917)).lineTo(-0.876, -0.189).threePointArc((-0.748, -0.493), (-0.443, -0.622)).lineTo(1.184, -0.622).threePointArc((1.233, -0.643), (1... | 17 | 14 | 1.253968 |
train_446bebf5f4fd31df | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.411, 0.407, 0.023), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.194, 0.478).threePointArc((0.377, 0.402), (0.452, 0.219)).lineTo(0.452, -0.092).threePointArc((0.377, -0.275), (0.194, -0.35)).lineTo(-0.194, -0.35).threePointArc((-0.377, -0.275),... | 21 | 182 | 0.869394 |
train_781311ef315d5931 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.089, 0.007, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.008, 0.096).threePointArc((0.031, 0.099), (0.061, 0.075)).threePointArc((0.076, 0.031), (0.069, -0.022)).threePointArc((0.045, -0.068), (0.008, -0.096)).threePointArc((-0.031, -0.099... | 2 | 16 | 0.186309 |
train_9b919f644b58eef4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.112), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.591, 0.122).lineTo(0.807, 0.09).threePointArc((0.843, 0.075), (0.91, 0.063)).lineTo(1, 0.014).threePointArc((0.982, -0.002), (0.999, -0.018)).lineTo(0.924, -0.057).threePointArc((0.826, -0... | 4 | 27 | 0.104722 |
train_35951fe578cf860a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.202), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.942, 0.706).lineTo(0.942, -0.706).lineTo(-0.942, -0.706).lineTo(-0.942, -0.236).lineTo(0.471, -0.236).lineTo(0.471, 0.236).lineTo(-0.942, 0.236).lineTo(-0.942, 0.706).lineTo(0.942, 0.706).... | 3 | 16 | 0.915665 |
train_99f00fc8eaae2055 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.514, -0.451, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 1.029).threePointArc((0.727, 0.727), (1.029, 0)).lineTo(0.654, 0).threePointArc((0.462, 0.462), (0, 0.654)).lineTo(0, 1.029).close().extrude(2)
result = result.union(cq.Workplane(cq... | 4 | 19 | 1.016307 |
train_03d34ab00347b7fb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.178, 0.158, -0.611), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.365, 0.354).threePointArc((0.414, 0.247), (0.448, 0.332)).lineTo(0.524, 0.29).threePointArc((0.517, 0.172), (0.587, 0.232)).lineTo(0.634, 0.16).threePointArc((0.574, 0.059), (0.663... | 14 | 521 | 1.241843 |
train_25001ab0ce8f55e7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.126, 0.002, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.147, 0.376).threePointArc((0.202, 0.351), (0.252, 0.317)).lineTo(0.383, 0.087).threePointArc((0.392, -0.004), (0.382, -0.095)).lineTo(0.247, -0.32).threePointArc((0.198, -0.352), (0.14... | 3 | 26 | 0.546312 |
train_27a00dc67b291486 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.998, -0.338, 0.19), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.136, 0.351).threePointArc((0.177, 0.334), (0.194, 0.294)).lineTo(0.194, 0.02).threePointArc((0.177, -0.021), (0.136, -0.038)).lineTo(-0.136, -0.038).threePointArc((-0.177, -0.021),... | 4 | 35 | 0.497941 |
train_d449de823504b5f5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.3, 0.239, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.15, 1.238).threePointArc((0.371, 1.146), (0.464, 0.924)).lineTo(0.464, 0.349).threePointArc((0.371, 0.127), (0.15, 0.035)).threePointArc((0.116, 0.042), (0.09, 0.018)).lineTo(0.03, 0).th... | 22 | 367 | 1.081288 |
train_0c6eb1466ef595f5 | import cadquery as cq
import math
result = cq.Workplane('XY').moveTo(-0.031, 0.055).lineTo(0.064, 0).lineTo(-0.031, -0.055).lineTo(-0.031, 0.055).close().extrude(1, both=True)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.109).extrude(0.038))
result = result.... | 6 | 15 | 0.012736 |
train_f2e9802954c333cd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.206), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.137).lineTo(1, 0.082).lineTo(-0.486, 0.082).lineTo(-0.486, -0.082).lineTo(1, -0.082).lineTo(1, -0.137).lineTo(-1, -0.137).lineTo(-1, 0.137).lineTo(1, 0.137).close().extrude(0.411)
resul... | 5 | 30 | 0.047558 |
train_35f04d3cb2cd283a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.01, -0.055, 0.009), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.948, -0.952).lineTo(0.311, -1.057).threePointArc((0.289, -1.057), (0.271, -1.048)).lineTo(0.195, -0.988).threePointArc((0.183, -0.982), (0.168, -0.981)).lineTo(0.1, -0.989).threePoi... | 25 | 506 | 0.145825 |
train_de12152bfc94e0fd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.009, 0.069), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.089).lineTo(1, -0.012).lineTo(0.828, -0.04).lineTo(0.657, -0.04).lineTo(0.5, -0.065).lineTo(0.5, -0.091).lineTo(0.315, -0.121).lineTo(-0.725, -0.121).lineTo(-1, -0.076).lineTo(-1, 0... | 16 | 149 | 0.053939 |
train_3170c586c4fd6583 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.415), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(1, 0.83).lineTo(1, 0).lineTo(-1, 0).lineTo(-1, 0.83).lineTo(-0.624, 0.83).lineTo(-0.624, 0.371).lineTo(0.624, 0.371).lineTo(0.624, 0.83).lineTo(1, 0.83).close().extrude(0.251, both=True)
re... | 7 | 38 | 0.46652 |
train_6ebeeb3c6d5c0855 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.999), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.023, 0.224).workplane(offset=2.352).rect(0.495, 0.147).loft()
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 1.109), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.573, 1.348).lineTo(... | 5 | 10 | 0.216745 |
train_8278128398758cf3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.18), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.11, 0.8).threePointArc((0.173, 0.773), (0.2, 0.71)).lineTo(0.2, 0.497).threePointArc((0.229, 0.429), (0.297, 0.4)).lineTo(0.74, 0.4).threePointArc((0.922, 0.323), (1, 0.14)).lineTo(1, -0.31... | 7 | 696 | 0.618883 |
train_20265fa80fe311e2 | import cadquery as cq
import math
result = cq.Workplane('XY').circle(0.991).extrude(1, both=True)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.302).extrude(0.641, both=True))
result = result.cut(cq.Workplane('XY').circle(0.553).extrude(3.001, both=True))
fina... | 3 | 6 | 4.249142 |
train_209c4ccdb98e9f8f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.165), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.938, 0.204).lineTo(1, 0.142).lineTo(1, -0.149).lineTo(0.944, -0.149).lineTo(0.944, -0.204).lineTo(-0.875, -0.204).threePointArc((-0.963, -0.167), (-1, -0.08)).lineTo(-1, 0.118).threePointA... | 7 | 60 | 0.153698 |
train_e9ce9e32030b5961 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.208, 0.005, -0.279), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.195, 0.662).threePointArc((0.352, 0.579), (0.273, 0.414)).lineTo(0.663, 0).lineTo(0.508, 0).lineTo(0.352, -0.579).threePointArc((-0.195, -0.662), (-0.195, -0.579)).lineTo(-0.663, ... | 5 | 36 | 1.161981 |
train_f8587ad7d7b47b96 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1.138, 0.253, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(2.828, 0.523).lineTo(2.828, 0.36).lineTo(-1.917, 0.36).lineTo(-1.917, -0.36).lineTo(2.828, -0.36).lineTo(2.828, -0.523).lineTo(-2.828, -0.523).lineTo(-2.828, 0.523).lineTo(2.828, 0.523).... | 17 | 114 | 0.728659 |
train_b362f73d9eb6da85 | import cadquery as cq
import math
result = cq.Workplane('XY').circle(0.305).extrude(1.999, both=True)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(1).extrude(0.982, both=True))
result = result.cut(cq.Workplane('XY').circle(0.696).extrude(5.997, both=True))
resu... | 10 | 16 | 2.244895 |
train_390d09f756ea07b1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.145), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.423, 1).lineTo(0.546, 0.877).lineTo(0.546, -0.904).lineTo(0.451, -1).lineTo(-0.502, -1).lineTo(-0.546, -0.955).lineTo(-0.546, 0.954).threePointArc((-0.533, 0.986), (-0.501, 1)).lineTo(0.42... | 9 | 42 | 0.493182 |
train_72143cf68a24f95d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.016, -0.589), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.476).lineTo(1, -0.485).threePointArc((0.995, -0.496), (0.984, -0.5)).lineTo(-0.984, -0.5).threePointArc((-0.995, -0.496), (-1, -0.485)).lineTo(-1, 0.481).threePointArc((-0.993, 0.4... | 11 | 100 | 0.70297 |
train_ce52426f3c1a6c76 | 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.132, 0).threePointArc((0, -0.132), (-0.132, 0)).threePointArc((0, 0.132), (0.132, 0)).close().extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.085, -1, 0.829), normal=(1, 0, 0),... | 6 | 3 | 0.109478 |
train_51eaeaef5c168dc5 | 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.474).extrude(0.849)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.474, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).pushPoints([(0, 0), (-0.036, 0.181), (-0.139, 0.335), (-0.293, 0.438), (... | 13 | 175 | 0.617149 |
train_b8e0a28b2d1aed4e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.09), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.311, 0.358).threePointArc((0.346, 0.343), (0.361, 0.308)).lineTo(0.361, -0.327).threePointArc((0.352, -0.349), (0.33, -0.358)).lineTo(-0.292, -0.358).threePointArc((-0.341, -0.337), (-0.361... | 10 | 119 | 0.359727 |
train_e902fbf01ec8deb4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.189, -0.225), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.181, 0.811).lineTo(0.181, -0.811).lineTo(-0.107, -0.811).lineTo(-0.107, -0.736).lineTo(-0.181, -0.736).lineTo(-0.181, 0.811).lineTo(0.181, 0.811).close().extrude(0.451)
result = resul... | 11 | 75 | 0.194333 |
train_766ed6a291695ec4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.358, -0.251), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.552, 0.423).lineTo(0.552, 0).lineTo(-0.552, 0).lineTo(-0.552, 0.423).lineTo(-0.366, 0.423).lineTo(-0.366, 0.186).lineTo(0.366, 0.186).lineTo(0.366, 0.423).lineTo(0.552, 0.423).close(... | 11 | 77 | 0.283161 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.