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_1cb12a87c4ea5db1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.005, 0.168, -0.142), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.997, 0.91).extrude(0.519)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.19, 0.231, 0.073), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.119, 1.092).extrude(0.101))
result = resul... | 18 | 85 | 0.317802 |
train_2811ecb6a87be975 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.036, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.602, -0.896).lineTo(-0.602, 0.852).lineTo(0.718, 0.852).lineTo(0.718, 0.968).lineTo(-0.718, 0.968).lineTo(-0.718, -0.896).lineTo(-0.602, -0.896).close().extrude(2)
result = result.edges()... | 2 | 38 | 0.731869 |
train_329aa9fd3ca900d0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.231, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.266, 1.356).extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(0.223, 0.666, -0.8), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.369, 0.487).extrude(0.93))
result = result.edges().... | 10 | 240 | 2.651042 |
train_3bca58e49c685986 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.685, -0.405, -0.001), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.315, 0.173).lineTo(0.315, 0.173).lineTo(0.315, 0.015).lineTo(-0.315, 0.015).lineTo(-0.315, 0.173).close().extrude(0.193)
result = result.union(cq.Workplane(cq.Plane(origin=(0.715... | 5 | 52 | 0.032882 |
train_66adb2910ef2b8e3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.524, -0.774, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.801, 0.973).threePointArc((0, 1.774), (0.801, 0.973)).lineTo(0.801, -0.226).lineTo(-0.801, -0.226).lineTo(-0.801, 0.973).close().extrude(1.047)
result = result.edges().chamfer(0.312)... | 18 | 129 | 1.900549 |
train_f0481d34a340994f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.138, -0.073), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, -0.081).lineTo(0, 0.314).threePointArc((0.105, 0.568), (0.359, 0.674)).lineTo(0.431, 0.674).lineTo(0.431, 1.105).lineTo(0.359, 1.105).threePointArc((-0.012, 1.012), (-0.297, 0.756))... | 6 | 61 | 0.977999 |
train_3afc37fa08b0766a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.061, -0.094, -0.206), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.406, 0.078).lineTo(-0.406, 0.013).lineTo(0.406, 0.013).lineTo(0.406, 0.078).lineTo(0.244, 0.078).lineTo(0.203, 0.118).lineTo(0.162, 0.078).lineTo(0.081, 0.078).lineTo(0.041, 0.1... | 15 | 110 | 0.007967 |
train_32f71ee658fe401f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1.099, 0.492, 0.126), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.762, 2.099).lineTo(-0.762, 0.099).lineTo(0.762, 0.099).lineTo(0.762, 2.099).lineTo(-0.762, 2.099).close().extrude(0.983)
result = result.edges().chamfer(0.079)
result = result.fac... | 18 | 65 | 1.274312 |
train_3a64977bcf2401f9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.499, -0.159, 0.573), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.119, 0.419).lineTo(0.119, -0.419).lineTo(-0.119, -0.419).lineTo(-0.119, 0.419).lineTo(0.119, 0.419).close().sweep(cq.Workplane('YZ').spline([(-0.337, 0.428), (-0.191, 0.369), (-0.... | 18 | 175 | 0.757384 |
train_1407ef194ffb4340 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.662, 0.002, -0.028), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.106, 0.863).threePointArc((0, 0.869), (-0.106, 0.863)).lineTo(-0.12, 0.978).threePointArc((0, -0.978), (0.12, 0.978)).lineTo(0.106, 0.863).close().sweep(cq.Workplane('XZ').spline... | 7 | 66 | 2.067816 |
train_61342e428c8f537c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.414), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.634).extrude(0.915)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.196, 0.114, 0.074), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.754, 1.286).threePointArc((-0.795, 1.269), (-0.8... | 8 | 32 | 2.815041 |
train_46ab4d1f1c2f8ac2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.156, -0.047, -0.682), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.062, -0.157).lineTo(-0.062, 0).lineTo(0.062, 0.157).lineTo(0.062, -0.157).close().sweep(cq.Workplane('XZ').moveTo(-0.001, -0.79).spline([(0.024, -0.737), (-0.097, -0.679), (-0.227... | 21 | 115 | 0.982111 |
train_130699076655bae6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.258, -0.314, -0.081), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.34, 0.403).lineTo(0.34, -0.177).lineTo(-0.34, -0.177).lineTo(-0.34, 0.403).lineTo(0.34, 0.403).close().extrude(0.763)
result = result.edges().chamfer(0.062)
result = result.cut(c... | 28 | 281 | 1.086045 |
train_5b89f772f3ff5bf9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.005, 0.458, -0.617), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.383, 0.213).threePointArc((0, 0.142), (0.383, 0.211)).lineTo(0.383, -0.183).lineTo(-0.383, -0.183).lineTo(-0.383, 0.213).close().extrude(0.916)
result = result.edges().chamfer(0.... | 17 | 117 | 0.227972 |
train_2e73dda371005b02 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.766, 0.225, -0.335), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.226, 0.114).lineTo(0.226, -0.041).lineTo(-0.226, -0.041).lineTo(-0.226, 0.114).lineTo(0.226, 0.114).close().extrude(0.408)
result = result.edges().chamfer(0.013)
result = result.u... | 20 | 158 | 0.228561 |
train_2aad6f1d4e906315 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.483, -0.368, 0.2), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.244, 0.407).threePointArc((0.244, 0.064), (-0.12, -0.407)).threePointArc((-0.239, -0.009), (-0.244, 0.407)).close().extrude(0.361)
result = result.edges().chamfer(0.094)
result = r... | 8 | 100 | 0.21486 |
train_c2993d249524523c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.671, 0.051, -0.12), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.702, -0.353).lineTo(-0.351, -0.96).lineTo(-0.702, -0.353).lineTo(-0.702, 1.051).lineTo(0.702, 1.051).lineTo(0.702, -0.353).close().extrude(1.342)
result = result.edges().chamfer(0.... | 9 | 53 | 3.005005 |
train_63040eb681679320 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.581, -0.343, -0.176), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.305, 0.251).lineTo(0.14, 0.255).lineTo(-0.305, -0.04).lineTo(-0.305, -0.154).lineTo(0.305, 0.251).close().revolve(angleDegrees=90, axisStart=(0.305, 0.251), axisEnd=(0.14, 0.255... | 9 | 97 | 0.413316 |
train_2b71f6a8835dac0c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.275, -0.287, -0.165), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.937, 0.814).extrude(0.674)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.259, -0.078, 0.323), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.144, 0.049).extrude(0.036))
result =... | 8 | 46 | 0.627368 |
train_852cf8657980d8c1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.146, 0.138, -0.194), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.578, 1.723).extrude(0.389)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.146, 0.729, -0.12), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.115, 0.572).extrude(0.239))
result = resu... | 10 | 80 | 0.511383 |
train_724380c116ea95d5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.083, 0, -0.627), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.04).sweep(cq.Workplane('XZ').spline([(-0.083, -0.751), (-0.019, -0.748), (0.045, -0.736), (0.109, -0.687), (0.173, -0.6), (0.237, -0.551), (0.301, -0.539), (0.365, -0.536)]))
result =... | 5 | 23 | 0.004206 |
train_ebb2ddf536eacc21 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.007, 0.384), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.149, -0.114).threePointArc((0.169, 0.114), (-0.169, -0.084)).lineTo(-0.12, -0.091).lineTo(-0.149, -0.114).close().sweep(cq.Workplane('XZ').spline([(-0.4, 0.241), (0, -0.016), (0.4, ... | 3 | 12 | 0.057369 |
train_b64b2ec93cbd53ca | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1.347, -0.738, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-2.82, 2.312).threePointArc((-1.399, 1.728), (-0.747, 0.338)).threePointArc((-0.494, 0.504), (-0.209, 0.601)).threePointArc((-0.105, 0.614), (0, 0.619)).threePointArc((0.105, 0.614), (0... | 14 | 55 | 1.645051 |
train_090723c98973b6ee | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.358, 0.577, -0.106), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.894, 0.066).lineTo(-0.894, 0.705).lineTo(-0.256, 0.705).lineTo(-0.256, 1.087).lineTo(0.894, 1.087).lineTo(0.894, 0.066).lineTo(-0.894, 0.066).close().extrude(0.639)
result = resu... | 13 | 88 | 0.704309 |
train_2e72f6e660eacf69 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.622), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.994).extrude(1.244)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, -0.798 + 0.266, -0.809), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.048, -0.388).lineTo(0.048, 0.388).lineTo(-0.0... | 11 | 66 | 3.81044 |
train_173218d5a4cbe1c2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.011, 0.733), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.33, 0.229).lineTo(-0.33, 0.055).lineTo(-0.139, 0.055).threePointArc((-0.158, -0.021), (-0.132, -0.095)).lineTo(-0.33, -0.095).lineTo(-0.33, -0.229).lineTo(0.33, -0.229).lineTo(0.33, ... | 10 | 45 | 0.508617 |
train_9ae5b4a87a9e2211 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.077, 0.031, -0.625), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.846, 1.577).extrude(0.663)
result = result.faces('>Z').shell(-0.077)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.057, -0.231, -0.632), normal=(0, 0, 1), xDir=(1, 0, 0))).cir... | 7 | 124 | 0.802197 |
train_7e829d29388e7601 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.48), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.414, -1).lineTo(1, -0.414).lineTo(0.714, -0.296).lineTo(0.714, 0.296).lineTo(0.296, 0.714).lineTo(0.414, 1).lineTo(-0.414, 1).lineTo(-1, 0.414).lineTo(-1, -0.414).lineTo(-0.414, -1).lineTo(... | 14 | 53 | 2.539511 |
train_d2ce44e74059bb5c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.693, -0.321, -0.202), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.465, -0.415).lineTo(-0.465, -0.353).lineTo(-0.403, -0.353).lineTo(-0.403, 1.26).lineTo(-0.465, 1.26).lineTo(-0.465, 1.321).lineTo(0.465, 1.321).lineTo(0.465, -0.415).lineTo(-0.4... | 3 | 37 | 1.927353 |
train_a097503517bb05d4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.136), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.742, 2).extrude(0.271)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0.07), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.949, 1.075).center(-0.063, 0.053).circle(0.147).extrude(0.073)... | 18 | 42 | 0.712428 |
train_c22a87885777b009 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.04, 0, 0.101), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.49, -0.346).threePointArc((0.692, 0.144), (0.49, 0.632)).threePointArc((0, 0.835), (-0.49, 0.632)).threePointArc((-0.692, 0.144), (-0.49, -0.346)).lineTo(0, -0.835).lineTo(0.49, -0.346).... | 8 | 92 | 1.848131 |
train_e1e7f32b5c4f5055 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.08, -0.365), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.912).extrude(0.73)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.177, -0.143, -0.116), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.097, 1.095).extrude(0.031))
result = result.cut(... | 9 | 32 | 1.298238 |
train_c05381cc8c6a6442 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.665, 0.653, -0.17), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.61, 0.574).extrude(0.528)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.781, -0.267, -0.083), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.033, 1.346).extrude(0.024))
result = ... | 5 | 32 | 0.217922 |
train_193625db402f64cd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.013, 0.075, 0.527), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.624, 0.985).lineTo(-0.98, -0.566).lineTo(0.98, -0.985).lineTo(0.84, 0.985).lineTo(-0.624, 0.985).close().extrude(0.962)
result = result.edges().fillet(0.232)
result = result.cut(... | 12 | 46 | 2.720609 |
train_bb0727a33683671d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.377, -0.689, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.206, 1.377).lineTo(0.957, 1.377).threePointArc((0, 0.421), (-0.957, 1.377)).lineTo(-0.206, 1.377).lineTo(0.206, 1.377).close().revolve(angleDegrees=90, axisStart=(0, 0), axisEnd=(0.63... | 11 | 61 | 1.705845 |
train_a47641ed280fba9b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1.021, -0.638, 0.093), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.731, 2.021).lineTo(0.731, 2.021).lineTo(-0.731, -1.249).lineTo(-0.731, 2.021).close().extrude(1.276)
result = result.edges().fillet(0.344)
result = result.cut(cq.Workplane(cq.Pla... | 10 | 46 | 2.064031 |
train_fd93c5c4dadffe21 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.719, 0.751, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.793, 0.195).lineTo(-0.804, 0.195).lineTo(-0.804, 0.193).lineTo(-0.814, -0.195).lineTo(-0.804, -0.039).lineTo(-0.793, -0.039).lineTo(-0.793, 0.192).lineTo(0.814, 0.195).lineTo(-0.793, 0... | 1 | 10 | 0.017463 |
train_882b38c13cbdb786 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.777, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.291, 1.739).lineTo(0, 0.845).lineTo(-0.761, 1.398).lineTo(-0.94, 0.845).lineTo(-0.761, 0.292).lineTo(-0.291, -0.049).lineTo(0.291, -0.049).lineTo(0.761, 0.292).lineTo(0.94, 0.845).lineTo(... | 12 | 84 | 3.224112 |
train_0012053223936163 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.071, 0, -0.663), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.744, 0.781).extrude(1.043)
result = result.union(cq.Workplane(cq.Plane(origin=(0.367, -0.186, -0.158), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.153, 0.117).extrude(0.165))
result = res... | 15 | 188 | 0.459088 |
train_261fb5acc94a5f15 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.404, 0.001), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.277, -0.508).lineTo(-0.277, 1.32).threePointArc((-0.207, 1.315), (-0.139, 1.302)).threePointArc((0.161, 1.105), (0.277, 0.766)).lineTo(0.166, 0.766).lineTo(-0.139, 0.766).lineTo(-0.1... | 8 | 76 | 0.232124 |
train_a438c4a3114ad372 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.429, -0.626, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.965, 1.394).threePointArc((-0.523, 0.952), (-0.965, -0.536)).threePointArc((0.523, -0.094), (0.965, 1.394)).close().extrude(1.253)
result = result.edges().fillet(0.285)
result = resul... | 20 | 96 | 2.832113 |
train_ee78a644b71bf09d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.64, -0.709, -0.116), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.884, 0.959).threePointArc((-0.402, 1.126), (0, 1.438)).threePointArc((0.384, 1.092), (0.884, 0.959)).lineTo(0.884, 0.125).lineTo(-0.884, 0.125).lineTo(-0.884, 0.959).close().extr... | 4 | 40 | 2.231545 |
train_5e8e1e1517f5b266 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.283, 0, 0.025), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.596, -0.198).lineTo(0.596, -0.198).lineTo(0.596, 0.198).lineTo(0.437, 0.198).lineTo(0.437, -0.04).lineTo(-0.317, -0.04).lineTo(-0.317, 0.198).lineTo(-0.596, 0.198).lineTo(-0.596, -0.... | 11 | 47 | 0.015506 |
train_58f85e899bb6e8ea | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.719, -0.267), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.296, 0.129).threePointArc((0, -0.199), (-0.296, 0.129)).threePointArc((-0.223, 0.17), (-0.145, 0.199)).threePointArc((0, -0.078), (0.145, 0.199)).threePointArc((0.223, 0.17), (0.296, 0... | 2 | 11 | 0.182847 |
train_9d1cc7495c2ca0ba | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.024, -0.748, -0.422), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.596, -0.472).threePointArc((0.602, -0.494), (0.591, -0.515)).threePointArc((0.511, -0.579), (0.435, -0.645)).lineTo(-0.602, 0.516).lineTo(-0.425, 0.694).lineTo(0.122, 0.148).line... | 6 | 57 | 0.78045 |
train_44f658bbf99374c9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.454), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.462, 2).extrude(0.908)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.122, 0.437, -0.463), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.168).extrude(0.37))
result = result.cut(cq.Workpla... | 17 | 145 | 1.340408 |
train_7d2c1fba9db72c6e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.304, -0.167, -0.269), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.661, 0.005).threePointArc((-0.731, 0.074), (-0.661, 0.143)).lineTo(0.731, 0.143).lineTo(0.731, 0.074).lineTo(0.731, 0.005).lineTo(-0.661, 0.005).close().extrude(0.467)
result = ... | 4 | 49 | 0.127289 |
train_f275607a9a7c5fc9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.106, -0.014, -0.207), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.003).lineTo(-0.793, 0.003).lineTo(-0.793, 0.026).lineTo(0.793, 0.026).lineTo(0.793, 0.003).lineTo(0, 0.003).close().extrude(0.213)
result = result.edges().chamfer(0.004)
resul... | 7 | 51 | 0.007044 |
train_3f4fac93ed247e09 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.058, -0.094, -0.343), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.005, 0.044).lineTo(0, 0.049).lineTo(0.005, 0.044).lineTo(0.005, -0.04).lineTo(0.065, -0.04).lineTo(0.07, -0.044).lineTo(0.07, -0.049).lineTo(-0.07, -0.049).lineTo(-0.07, -0.04).l... | 6 | 71 | 0.030441 |
train_b337ae050ede4be8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.059, 0.046, -0.1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.308, 0.237).extrude(0.252)
result = result.union(cq.Workplane(cq.Plane(origin=(0.11, 0.186, 0.055), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.044, 0.05).extrude(0.032))
result = result... | 9 | 62 | 0.058394 |
train_756dbbae054132af | 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.791).workplane(offset=0.329).circle(0.738).workplane(offset=0.337).circle(0.684).workplane(offset=0.365).circle(0.63).workplane(offset=0.323).circle(0.577).workplane(offset=0.329).circle(0.523... | 8 | 45 | 2.464221 |
train_baecbb78c5801067 | 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.836, 1.28).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.073, -0.156, 0.099), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.14).extrude(0.923))
result = result.cut(cq.Workplane(cq... | 7 | 48 | 1.951848 |
train_74a7b83ee7ec1ed1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.968, 0, 0.367), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.032).sweep(cq.Workplane('XZ').spline([(-0.968, 0.367), (-0.366, 0.367), (0.235, 0.367), (0.602, -0.022), (0.97, -0.411)]))
| 1 | 3 | 0.002132 |
train_ea423d08dfa2257d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.383, 0.182), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.704, 1.064).lineTo(-0.704, 0.738).lineTo(0.333, 0.738).lineTo(0.333, -0.299).lineTo(0.704, -0.299).lineTo(0.704, 1.064).lineTo(-0.704, 1.064).close().extrude(2)
result = result.edges(... | 14 | 195 | 1.16783 |
train_593cd8b0615540a2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.076, 0, -0.814), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.848, 1.197).extrude(1.627)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.076, -0.479 + 0.2395, -1.058), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.043, 0.037).lineTo(0.08, 0.102).... | 20 | 156 | 3.458317 |
train_a6cf51183e065426 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.467), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.187, 1.707).extrude(1.467)
result = result.faces('>Z').shell(-0.088)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.225, 0.501, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.054).... | 4 | 15 | 0.840353 |
train_148f35eb0ee56342 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.081, 0.683, -0.243), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.757, 0.377).lineTo(0.757, -0.215).lineTo(0.379, -0.215).lineTo(0.379, -0.452).threePointArc((0.284, -0.546), (0.189, -0.452)).lineTo(0.189, -0.215).lineTo(-0.189, -0.215).lineTo(-... | 8 | 116 | 1.236385 |
train_04501d88eaca4f5b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.304, -0.703), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.393, 1.393).extrude(1.036)
result = result.union(cq.Workplane(cq.Plane(origin=(0.07, 0.373, 0.324), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.253, 1.253).extrude(0.171))
result = result.... | 20 | 111 | 1.294609 |
train_0378c9892656734f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.317, -0.372, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.136, 1.012).lineTo(0.123, 1.082).lineTo(0.766, 1.082).lineTo(0.766, 0.44).lineTo(0.696, 0.453).lineTo(0.696, 0.18).lineTo(0.766, 0.193).lineTo(0.766, -0.448).lineTo(-0.123, -0.448).li... | 5 | 40 | 2.57214 |
train_85409c51abf6fa76 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.024, 0, 0.064), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1.024, 0.089).threePointArc((-0.056, 0.408), (0.913, 0.089)).threePointArc((0.97, 0.046), (1.024, 0)).threePointArc((0.97, -0.046), (0.913, -0.089)).threePointArc((-0.056, -0.408), (-1.... | 8 | 55 | 0.356273 |
train_2e4d40824c891413 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.004, 0.687, 0.293), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.081).workplane(offset=0.068).circle(0.087).workplane(offset=0.087).circle(0.102).workplane(offset=0.073).circle(0.09).workplane(offset=0.086).circle(0.102).workplane(offset=0.071).... | 26 | 124 | 0.354764 |
train_1d40bb23e97ce5f8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.3, 0, 0.095), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.013, 1).lineTo(-0.013, 0.383).threePointArc((-0.358, -0.451), (0.358, -1)).lineTo(0.358, 0.482).lineTo(0.358, 0.938).lineTo(0.358, 1).lineTo(-0.013, 1).close().extrude(0.116)
result = ... | 12 | 139 | 0.197828 |
train_d1490cac1e3d0ee0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.816, 0.093, -0.013), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.012, 0.085).lineTo(-0.012, 0.045).lineTo(-0.123, 0.045).lineTo(-0.123, 0.01).lineTo(-0.012, 0.01).lineTo(-0.012, -0.017).lineTo(-0.125, -0.017).lineTo(-0.125, -0.052).lineTo(-0.01... | 13 | 139 | 0.611677 |
train_5e94cb06e87085a1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.206, 0.173, -0.52), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.16, -0.16).lineTo(-0.48, -0.16).lineTo(-0.48, 0.16).lineTo(-0.16, 0.16).lineTo(-0.16, 0).lineTo(0.16, 0).lineTo(0.16, 0.16).lineTo(0.48, 0.16).lineTo(0.48, -0.16).lineTo(-0.16, -0.... | 16 | 83 | 0.151201 |
train_9e8a1bc3c1f0c078 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.389), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.881, -0.905).lineTo(0.881, -1).lineTo(-0.976, -1).lineTo(-0.976, 0.81).lineTo(-0.881, 0.81).lineTo(-0.881, -0.905).lineTo(0.048, -0.905).lineTo(0.048, 0.905).lineTo(-0.881, 0.905).lineTo(-... | 11 | 72 | 0.518113 |
train_1b283cc079315be4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.765, -0.122, -0.674), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.228, 0.071).lineTo(-0.212, 0.071).lineTo(-0.219, -0.055).lineTo(0.235, -0.055).lineTo(0.235, -0.071).lineTo(-0.235, -0.071).lineTo(-0.228, 0.071).close().transformed(offset=(0.4... | 4 | 22 | 0.096002 |
train_de2b522252d9c58c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.057, 0, -0.299), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.271, 0.717).extrude(0.498)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.787, -0.074, -0.175), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.213).extrude(0.208))
result = result.u... | 13 | 97 | 0.416365 |
train_26ec0c0b0ce3a2b0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 1.037, -0.005), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.43, 1.01).threePointArc((-0.41, 1.018), (-0.402, 1.037)).lineTo(0.378, 1.037).threePointArc((0.387, 1.016), (0.408, 1.008)).lineTo(0.408, 0.099).threePointArc((0.43, 0.046), (0.377, 0... | 12 | 106 | 2.030772 |
train_78d6f763af528793 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.273, 0.429, 0.342), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.116, 0.175).extrude(0.181)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.373, 0.43, 0.405), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.045).extrude(0.055))
result = result.... | 6 | 72 | 0.12464 |
train_2908bba5387ed1e9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.61, 1), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.194).sweep(cq.Workplane('YZ').spline([(0.61, -0.482), (0.89, -0.458), (1.17, -0.212), (1.45, 0.033), (1.73, 0.057)]))
result = result.cut(cq.Workplane(cq.Plane(origin=(0.069, -0.113, -0.8), ... | 3 | 10 | 0.027928 |
train_e8a3bf9e86bd4694 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.195, -0.373, -0.025), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.196, -0.08).lineTo(-0.196, 0.195).lineTo(0.196, 0.47).lineTo(0.196, -0.08).close().extrude(0.503)
result = result.edges().chamfer(0.06)
result = result.union(cq.Workplane(cq.Plan... | 12 | 79 | 0.060853 |
train_6bb7e2400055cf03 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.117, 0, -0.623), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.714, 2).extrude(1.246)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.237, 0.396, 0.115), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.073).extrude(0.147))
result = result.edges().ch... | 8 | 49 | 4.242382 |
train_ea7a561420f5cdfe | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.164, -0.027, -0.527), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.023, -0.015).lineTo(0.023, -0.027).lineTo(-0.023, -0.027).lineTo(-0.023, 0.031).lineTo(-0.012, 0.031).lineTo(-0.012, -0.015).lineTo(0.023, -0.015).close().extrude(0.049)
result =... | 6 | 209 | 0.072947 |
train_e8d1c5b5b400fff0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.262, 1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, 0.076).threePointArc((0.15, 0.138), (0.212, 0.287)).lineTo(0.26, 0.076).lineTo(0.26, -0.287).lineTo(0, -0.287).lineTo(-0.26, -0.287).lineTo(-0.26, 0.076).lineTo(0, 0.076).close().sweep(cq.... | 3 | 17 | 0.187706 |
train_cd226366e2680ac2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.334, -0.706), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.52, -0.581).lineTo(-0.196, 0.533).lineTo(-0.24, 0.601).lineTo(-0.609, 1.174).lineTo(-0.568, 1.248).lineTo(-0.52, 1.174).lineTo(-0.196, 0.669).lineTo(0.129, 1.174).lineTo(0.176, 1.248)... | 6 | 63 | 0.433812 |
train_6c58d199339c36f0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.457, 0.12), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1, 0.239).lineTo(-1, 0.065).threePointArc((-0.911, -0.15), (-0.696, -0.239)).lineTo(-0.522, -0.239).lineTo(1, -0.239).lineTo(1, -0.109).lineTo(-0.522, -0.109).lineTo(-0.522, 0.109).lineTo... | 9 | 31 | 1.058497 |
train_7b18df93e820ebb8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.186, -0.921, -0.707), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.053, 0.018).threePointArc((-0.781, 0.603), (-0.483, 1.486)).lineTo(-0.451, 1.507).threePointArc((-0.236, 1.609), (0, 1.644)).lineTo(0, 1.824).lineTo(0.451, 1.507).threePointArc(... | 3 | 19 | 2.970712 |
train_ae6abd38e6eb0322 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.398, -1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.13, -0.164).lineTo(0.13, -0.139).lineTo(0.007, -0.139).lineTo(0.007, 0.164).lineTo(-0.13, 0.164).lineTo(-0.13, -0.164).lineTo(0.13, -0.164).close().sweep(cq.Workplane('XY').spline([(-0.3... | 2 | 15 | 0.026612 |
train_8ee6ae9cfd74d8b3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 2.062, 0.478), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.478, 1.273).lineTo(-0.478, 3.062).lineTo(0.478, 3.062).lineTo(0.478, 0.583).lineTo(-0.478, 1.273).close().revolve(angleDegrees=360, axisStart=(-0.478, 1.273), axisEnd=(-0.478, 3.062))
... | 13 | 50 | 1.917663 |
train_44cec77f3fc1a861 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.004, 0.007, -0.12), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.004, 0.018).lineTo(0.715, 0.674).lineTo(0.01, 0.99).lineTo(-0.667, 0.716).lineTo(-0.996, 0.025).lineTo(-0.707, -0.724).lineTo(-0.023, -1.004).lineTo(0.665, -0.723).close().moveTo(0... | 13 | 163 | 0.357803 |
train_7a13e953f6fc7366 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.168, 1.008, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.147, 0.301).lineTo(-0.147, 0.007).threePointArc((0, 0.046), (0.108, 0.154)).threePointArc((0.147, 0.301), (0.108, 0.448)).threePointArc((0, 0.556), (-0.147, 0.595)).lineTo(-0.147, 0.3... | 8 | 51 | 0.042335 |
train_ea511b19f86ffc30 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.63, 0.574, 0.098), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.801, -0.37).lineTo(0.801, 1.606).threePointArc((0.783, 1.614), (0.777, 1.63)).lineTo(-0.777, 1.63).threePointArc((-0.783, 1.614), (-0.801, 1.606)).lineTo(-0.801, -0.347).threePointA... | 10 | 50 | 2.876273 |
train_febdc8b329469c70 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.79, 0, -0.385), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.21, 0.397).lineTo(-0.21, -0.397).lineTo(-0.164, -0.397).lineTo(-0.164, -0.35).lineTo(0.21, -0.35).lineTo(0.21, -0.303).lineTo(-0.164, -0.303).lineTo(-0.164, 0.397).lineTo(-0.21, 0.39... | 1 | 10 | 0.136313 |
train_2e513d5d9e470228 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.443), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.434).extrude(0.886)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.434, -0.101, -0.278), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.365).extrude(0.207))
result = result.cut(cq.Work... | 3 | 17 | 2.422504 |
train_8f46542ae04434c7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.559, -0.008), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.585, 0.005).lineTo(-0.576, -0.105).lineTo(0.112, -0.046).lineTo(0.104, 0.05).lineTo(0.581, 0.091).lineTo(0.585, 0.091).lineTo(0.584, 0.105).lineTo(0.103, 0.064).lineTo(-0.077, 0.049).... | 2 | 17 | 0.032932 |
train_caa64b4dd6334011 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.013, -0.041, -0.196), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.917, 0.554).lineTo(0.755, 1.041).lineTo(-0.696, 0.41).lineTo(-0.839, -0.273).lineTo(-0.891, -0.841).lineTo(0.724, -0.959).lineTo(0.816, -0.233).close().moveTo(0, -0.309).lineTo(0... | 7 | 52 | 0.683434 |
train_897bb235c337ebe1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.154, -0.033, -0.006), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.096, -0.311).lineTo(0.096, -0.846).lineTo(-0.096, -0.846).lineTo(-0.096, 1.154).lineTo(0.096, 1.154).lineTo(0.096, -0.311).close().revolve(angleDegrees=90, axisStart=(0.096, -0.3... | 11 | 62 | 0.036588 |
train_064b89c5a434a2d5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.175, -0.214), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.256, -0.531).lineTo(0.256, 0.531).lineTo(-0.256, 0.531).lineTo(-0.256, -0.531).lineTo(0.256, -0.531).close().sweep(cq.Workplane('XZ').spline([(-0.535, -0.515), (-0.38, -0.37), (-0.2... | 6 | 40 | 0.356243 |
train_bb6fe7dd4026fafb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.544, 0, 0.157), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.467, 0.029).threePointArc((-0.468, 0), (-0.467, -0.029)).threePointArc((-0.408, -0.221), (-0.272, -0.367)).threePointArc((-0.273, -0.427), (-0.221, -0.396)).threePointArc((-0.026, -0... | 8 | 110 | 0.701598 |
train_a31686e1ad401154 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.837, 0.96).lineTo(-0.837, 2.001).lineTo(0.837, 2.001).lineTo(0.837, 0.667).lineTo(-0.837, 0.667).lineTo(-0.837, 0.96).close().revolve(angleDegrees=90, axisStart=(0, 0), axisEnd=(0.51, 0))
re... | 13 | 65 | 3.385587 |
train_c02c58cbd37ba2c5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.431, -0.382, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.456, 1.431).lineTo(0.456, -0.569).lineTo(-0.456, -0.569).lineTo(-0.456, 1.431).lineTo(0.456, 1.431).close().extrude(0.721)
result = result.edges().chamfer(0.129)
result = result.cut(c... | 16 | 97 | 0.900703 |
train_0eb039eb90fecf48 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.279, -0.008, -0.111), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.721, 0.016).lineTo(0.525, 0.502).lineTo(0.023, 0.732).lineTo(-0.501, 0.533).lineTo(-0.721, 0.019).lineTo(-0.501, -0.515).lineTo(0.013, -0.716).lineTo(0.525, -0.511).close().moveTo... | 9 | 53 | 0.596309 |
train_dcf179d98bd0f40c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.059, -0.431, -0.557), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.851, 0.766).extrude(1.156)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.095, -0.485, -0.033), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.047).extrude(0.43))
result = result.... | 27 | 61 | 0.654663 |
train_c822c26272755bf7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.358, -0.334, -0.127), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.642, -0.019).lineTo(0.312, 0.559).lineTo(-0.32, 0.564).lineTo(-0.618, 0).lineTo(-0.32, -0.559).lineTo(0.304, -0.547).close().moveTo(-0.145, 0.082).lineTo(0.147, 0.08).lineTo(0.145... | 14 | 155 | 0.391777 |
train_56eefccd9bfb18c6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.652, -0.025, -0.569), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.695, 0.858).extrude(0.59)
result = result.union(cq.Workplane(cq.Plane(origin=(0.58, -0.537, -0.326), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.09).extrude(0.266))
result = result.... | 17 | 228 | 0.975783 |
train_9b3898115e9f7184 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.28, -0.479), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.295, -0.347).lineTo(-0.295, 0.72).lineTo(0.292, 0.72).threePointArc((0.293, 0.716), (0.295, 0.711)).lineTo(0.295, 0.187).lineTo(0.295, -0.338).lineTo(0.295, -0.347).lineTo(0.292, -0.34... | 8 | 45 | 0.675515 |
train_8f7e3c2313864e75 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.088, 0, -0.046), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.101).workplane(offset=0.213).circle(0.097).workplane(offset=0.28).circle(0.07).workplane(offset=0.29).circle(0.095).workplane(offset=0.306).circle(0.079).loft()
result = result.edges(... | 13 | 104 | 0.039709 |
train_c25fe53a423e51d1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.244, -0.227), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.98, 1.511).extrude(0.779)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.204, 0.107, 0.227), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.301).extrude(0.203))
result = result.union(c... | 23 | 120 | 0.96718 |
train_7cccf3bcc74510f1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.715, 0.947, 0.075), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.292).sweep(cq.Workplane('XY').spline([(0.715, 1.061), (0.353, 1.104), (-0.121, 1.1), (-0.439, 1.051), (-0.423, 0.984)]))
result = result.edges().chamfer(0.046)
result = result.unio... | 6 | 58 | 0.448163 |
train_bb7fc3c47cafbe39 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.029), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.131).extrude(0.059)
result = result.union(cq.Workplane(cq.Plane(origin=(0.181, 0, 0.013), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.081).extrude(0.185))
result = result.cut(cq.Workplane... | 5 | 15 | 0.114784 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.