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_0e082763cad29234 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.434), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.636, 0.959).extrude(1.087)
result = result.union(cq.Workplane(cq.Plane(origin=(0.125, 0.15, 0.618), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.068).extrude(0.382))
result = result.union(cq.... | 15 | 77 | 0.548422 |
train_6afb4e1b997bc6f1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.124, -0.28, 0.355), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.651, 0.115).lineTo(-0.217, -0.462).lineTo(0.651, -0.462).lineTo(0.651, -0.115).lineTo(-0.217, -0.115).lineTo(-0.39, 0.115).lineTo(-0.651, 0.462).lineTo(-0.651, 0.115).close().ext... | 24 | 158 | 0.782614 |
train_c63ddddd39872fc8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.827, -0.641, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.898, 1.07).threePointArc((0, 0.171), (0.898, 1.07)).lineTo(0.449, 1.07).threePointArc((0, 0.621), (-0.449, 1.07)).lineTo(-0.898, 1.07).close().workplane(offset=0.372).moveTo(-0.94, 1... | 13 | 123 | 0.547544 |
train_94f2708908a5271c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.433), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.749).extrude(0.866)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.742, -0.098, -0.185), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.543, 1.047).extrude(0.194))
result = result.cut(cq.... | 33 | 166 | 1.629045 |
train_2b1ffa068eed0f94 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.336, 0.09), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.558, 0.752).lineTo(-0.558, 0).lineTo(0.445, 0.315).threePointArc((0.527, 0.373), (0.558, 0.469)).lineTo(0.558, 0.752).lineTo(-0.558, 0.752).close().extrude(1.035)
result = result.edge... | 13 | 217 | 1.193955 |
train_5da5923eb576b75e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.103, 0.378, 0.102), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.66, 0.345).lineTo(-0.66, -0.375).lineTo(-0.66, 0.375).lineTo(0.093, 0.375).lineTo(0.07, 0.356).lineTo(0.079, 0.345).lineTo(0.093, 0.327).lineTo(0.093, 0.345).lineTo(0.66, -0.375).... | 11 | 95 | 0.485567 |
train_f970ee6e3e0602f8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.317, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.446, -0.094).lineTo(-0.482, 0.094).lineTo(-0.526, 0.315).lineTo(-0.348, 0.728).lineTo(0.172, 0.728).lineTo(0.34, 0.337).lineTo(0.285, 0.094).lineTo(0.445, 0.094).lineTo(0.526, -0.094).lin... | 8 | 17 | 1.156282 |
train_44ed64d0fb8556a5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.877), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.393).extrude(1.754)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.234, -0.101, 0.334), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.131, 0.732).extrude(0.557))
result = result.edges()... | 17 | 124 | 2.99032 |
train_813716fbc82cac5c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.005, 0.005, 0.226), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.879, 0.679).lineTo(0.129, 0.995).lineTo(0.082, 1.005).lineTo(0.001, 1.003).lineTo(-0.109, 0.999).lineTo(-0.531, 0.976).lineTo(-0.582, 0.948).lineTo(-0.879, 0.575).lineTo(-0.836, 0.... | 4 | 73 | 2.00985 |
train_a30b388bb3c184d7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.082, 0, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.228, 0.213).lineTo(0.228, 0.213).lineTo(0.228, -0.213).lineTo(0.22, -0.213).lineTo(0.22, -0.108).lineTo(-0.22, -0.108).lineTo(-0.22, 0.037).lineTo(0.22, 0.037).lineTo(0.22, 0.205).lineTo... | 10 | 64 | 0.211609 |
train_a496d190914ca28c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.154, -0.105, -0.332), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.098, 1.105).lineTo(-0.584, 1.004).lineTo(-0.831, 0.47).lineTo(0.131, -0.895).lineTo(0.639, -0.109).close().moveTo(-0.029, -0.167).lineTo(-0.133, -0.123).lineTo(-0.223, -0.055).li... | 17 | 136 | 0.650815 |
train_e8f1458af69c37cd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.002, 0.137, -0.919), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.081, 0.01).lineTo(0.081, -0.006).lineTo(-0.081, -0.006).lineTo(-0.081, 0.002).lineTo(-0.08, 0.01).lineTo(0.081, 0.01).close().extrude(0.279)
result = result.union(cq.Workplane(cq.... | 11 | 52 | 0.002073 |
train_202358821ef9b3a1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.728, -0.152, 0.034), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.698, 0.681).lineTo(-0.312, -0.508).lineTo(0.698, 0.227).lineTo(0.074, 0.681).lineTo(-0.698, 0.681).close().extrude(1.728)
result = result.edges().fillet(0.21)
result = result.cut... | 17 | 92 | 0.740896 |
train_19574dbd68431aa0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.428, 0.57, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.521, -0.089).lineTo(-0.999, -0.089).lineTo(-0.999, 1.425).lineTo(0.157, 1.425).lineTo(0.157, 0.584).lineTo(0.999, 0.584).lineTo(0.999, -0.569).lineTo(-0.521, -0.569).lineTo(-0.521, -0.... | 3 | 21 | 1.962722 |
train_cbbc563e30066ff2 | 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.392, 0.131).threePointArc((-0.356, 0.216), (-0.271, 0.252)).lineTo(0.042, 0.252).threePointArc((0.102, 0.236), (0.146, 0.193)).lineTo(0.26, 0.002).lineTo(0.375, -0.19).threePointArc((0.387, -... | 14 | 91 | 0.390445 |
train_6b595976cac3a823 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.539), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(1).workplane(offset=0.253).circle(0.719).workplane(offset=0.282).circle(0.451).workplane(offset=0.282).circle(0.298).workplane(offset=0.261).circle(0.001).loft()
result = result.cut(cq.Workp... | 8 | 54 | 0.63002 |
train_acb308b9c5691306 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.811, -0.731, 0.269), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.731, 0.355).lineTo(-0.731, 1.268).lineTo(0.731, 1.268).lineTo(0.731, 0.464).lineTo(-0.657, 0.464).lineTo(-0.657, 0.355).lineTo(-0.731, 0.355).close().revolve(angleDegrees=90, axi... | 6 | 27 | 1.154244 |
train_74ab9e00bb8b5dac | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.793), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.896, 2).extrude(1.586)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.481, -0.348, -0.017), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.345).extrude(0.624))
result = result.cut(cq.Work... | 29 | 132 | 3.588089 |
train_ca468f61ff21212f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.004, -0.112, 0.181), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.438, 0.259).threePointArc((-0.444, 0.188), (-0.438, 0.116)).threePointArc((0.003, -0.259), (0.444, 0.116)).lineTo(0.444, 0.259).lineTo(-0.438, 0.259).close().revolve(angleDegree... | 7 | 83 | 0.536084 |
train_1353b2bf88037333 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.109, 0.073, -0.62), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.781, 1.094).extrude(1.24)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.887, -0.325, -0.426), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.226, 0.044).extrude(0.096))
result = r... | 5 | 14 | 2.418693 |
train_28e7dea6cf10c019 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.085, -0.495, 0.036), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.299, 0.461).lineTo(0.299, 0.089).lineTo(0.073, 0.089).lineTo(0.073, -0.461).lineTo(-0.299, -0.461).lineTo(-0.299, 0.089).lineTo(-0.155, 0.089).lineTo(-0.155, 0.461).lineTo(0.299, 0... | 4 | 20 | 0.592518 |
train_9eae0f2c4d151744 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.191, -0.184, 0.454), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.205, -0.012).lineTo(0.164, 0.201).lineTo(-0.041, 0.272).lineTo(-0.205, 0.13).lineTo(-0.164, -0.084).lineTo(0.041, -0.155).lineTo(0.205, -0.012).close().extrude(0.353)
result = re... | 26 | 197 | 0.341814 |
train_1b7dbc107df34c98 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.108, -0.084, -0.908), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.167, -0.916).lineTo(0.166, -0.899).lineTo(0.006, 0.924).lineTo(-0.167, 0.924).lineTo(-0.167, -0.916).lineTo(0.167, -0.916).close().extrude(0.256)
result = result.edges().chamfer(0... | 7 | 104 | 0.32451 |
train_ee02235d41af1539 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.526), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.189, 1.837).extrude(1.526)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.283, -0.724, -0.055), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.163).extrude(0.903))
result = result.edges().... | 16 | 188 | 2.764171 |
train_d361016530ee916e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.109, -0.325, -0.499), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.227, -0.467).lineTo(0.227, 0.498).lineTo(-0.227, 0.498).lineTo(-0.227, -0.467).lineTo(0.227, -0.467).close().extrude(0.559)
result = result.union(cq.Workplane(cq.Plane(origin=(0.... | 21 | 184 | 0.51267 |
train_bdad3ef5ba93fa24 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.389, -0.42, -0.654), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.022, -0.181).lineTo(0.346, 0.416).threePointArc((0.218, 0.903), (-0.276, 0.807)).threePointArc((-0.328, 0.705), (-0.346, 0.591)).lineTo(-0.346, -0.181).lineTo(0.022, -0.181).close... | 3 | 14 | 0.540209 |
train_7963a76c358fa8e6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.332, 0, -0.467), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.336, 1.292).extrude(0.029)
result = result.union(cq.Workplane(cq.Plane(origin=(0.086, 0.004, -0.422), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.333, -0.275).threePointArc((0.464, 0.04... | 6 | 32 | 0.545228 |
train_3d5cdf59e0427361 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.612, -0.738, 0.038), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.75, -0.275).lineTo(0.75, 1.527).lineTo(-0.75, 1.527).lineTo(-0.75, -0.275).lineTo(0.75, -0.275).close().extrude(1.572)
result = result.edges().fillet(0.22)
result = result.union(c... | 7 | 47 | 4.067209 |
train_4d5b40c129d27a6f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.193, -0.973), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.077).extrude(1.946)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.22, 0.518, -0.694), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.82, 0.428).extrude(0.798))
result = result.cu... | 3 | 12 | 4.338072 |
train_90c842a3595aab4e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.041, 0, 0.182), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.057, 0.029).lineTo(-0.019, 0.029).lineTo(-0.019, -0.008).lineTo(-0.057, 0.029).lineTo(-0.057, 0.105).lineTo(-0.019, 0.105).lineTo(-0.019, 0.067).lineTo(0.019, 0.067).lineTo(0.019, 0.10... | 7 | 94 | 0.04153 |
train_d44e443db212ad8c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.37), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.683, -1).lineTo(0.683, -1).lineTo(0.683, -0.488).lineTo(0.452, -0.488).threePointArc((-0.036, 0), (0.452, 0.488)).lineTo(0.683, 0.488).lineTo(0.683, 1).lineTo(-0.683, 1).lineTo(-0.683, -1)... | 2 | 16 | 2.125781 |
train_8f4f599c443c6332 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.418, 0.042, 0.079), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.614, 0.188).lineTo(-0.413, 0.188).lineTo(-0.254, -0.027).lineTo(0.254, -0.027).lineTo(0.413, 0.188).lineTo(0.614, 0.188).lineTo(0.383, -0.123).threePointArc((0.327, -0.171), (0.2... | 14 | 112 | 0.04005 |
train_b9a6172d64e26822 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.509, -0.217, -0.311), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.491).sweep(cq.Workplane('XZ').spline([(-0.509, -0.311), (-0.253, 0.072), (0.002, 0.264), (0.257, 0.264), (0.511, 0.072), (0.767, -0.311)]))
result = result.cut(cq.Workplane(cq.P... | 8 | 25 | 1.156443 |
train_e9305e609b47434f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.008, -0.015, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.01, -0.992).lineTo(0.01, -0.992).lineTo(0.01, 0.437).lineTo(0, 1.008).lineTo(-0.01, 1.008).lineTo(-0.01, -0.992).close().extrude(0.013)
result = result.union(cq.Workplane(cq.Plane(or... | 4 | 21 | 0.000966 |
train_aad823d5f9380228 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.583, 0.031, -0.106), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.297).sweep(cq.Workplane('XY').spline([(-0.583, 0.823), (-0.302, 1.234), (-0.02, 1.439), (0.261, 1.439), (0.542, 1.234), (0.824, 0.823)]))
result = result.edges().chamfer(0.125)
r... | 15 | 79 | 0.328233 |
train_2eb065eb139d532c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.035, -0.489, 0.008), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.111, 0.343).lineTo(-0.111, -0.103).lineTo(0.111, -0.103).lineTo(0.111, -0.032).threePointArc((0.005, 0.012), (-0.039, 0.119)).lineTo(0.111, 0.119).lineTo(0.111, 0.269).lineTo(0.1... | 28 | 178 | 0.401777 |
train_02a2b52baf0b9b95 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.113, 0.163, -0.369), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.905, 0.844).extrude(0.47)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.111, 0.163, -0.251), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.482, 0.086).extrude(0.236))
result = res... | 20 | 88 | 0.557136 |
train_c8f80ab9344b3daf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.355, -0.13, 0.002), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.121, -0.684).threePointArc((0, -0.671), (0.121, -0.684)).lineTo(0.121, 0.184).lineTo(0.121, 0.672).lineTo(0.121, 0.867).threePointArc((0, 0.87), (-0.121, 0.867)).lineTo(-0.121, 0.... | 15 | 140 | 0.126504 |
train_845fd1b03d24025e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.089, -0.33, -0.492), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.974, 1.341).extrude(0.555)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.152, -0.562, -0.337), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.517, 0.607).extrude(0.149))
result = r... | 23 | 74 | 0.645843 |
train_cc311a49842305b6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.059, -0.144, -0.245), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.214, 0.042).lineTo(-0.218, -0.042).lineTo(0.218, -0.042).lineTo(0.218, 0.042).lineTo(-0.214, 0.042).close().sweep(cq.Workplane('XY').spline([(-0.063, -0.144), (-0.094, -0.133), (... | 13 | 96 | 0.0297 |
train_4d73a2350c063f9a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.01, 0.892, 0.262), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.002, -0.034).lineTo(0.064, 0.002).lineTo(0.002, 0.108).threePointArc((0.124, -0.108), (-0.124, -0.101)).lineTo(-0.062, -0.068).threePointArc((-0.06, 0.003), (0.002, 0.038)).lineTo(0... | 1 | 8 | 0.013639 |
train_0b39d103f033fe44 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, 0.276, 0.023), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.062, 1.276).lineTo(0.187, 1.276).lineTo(-0.062, 1.026).lineTo(-0.062, -0.725).lineTo(-0.187, -0.725).lineTo(-0.187, 1.276).lineTo(-0.062, 1.276).close().revolve(angleDegrees=90, axisSt... | 16 | 92 | 0.312781 |
train_3435824e4c89f2e7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.627, -0.222), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.309, 0.335).lineTo(-0.442, 0.358).lineTo(-0.439, 0.373).lineTo(0.442, 0.218).lineTo(0.439, 0.203).lineTo(0.355, 0.218).lineTo(0.342, 0.22).lineTo(0.34, 0.221).lineTo(0.34, -0.373).l... | 7 | 49 | 0.175585 |
train_45fa55dfcd1ed9c5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.098, -0.632, 0.05), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.085, 0.218).lineTo(-0.085, -0.218).lineTo(-0.041, -0.218).lineTo(-0.041, 0.175).lineTo(0.085, 0.175).lineTo(0.085, 0.218).lineTo(-0.085, 0.218).close().sweep(cq.Workplane('XZ').sp... | 10 | 56 | 0.216192 |
train_d2e9234d25f033c4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.027, -1), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, -0.377).lineTo(0.052, -0.117).lineTo(0, -0.11).lineTo(0.053, -0.11).lineTo(0.062, -0.062).lineTo(0.071, -0.017).lineTo(0.041, 0.056).lineTo(0.022, -0.022).lineTo(0, 0).lineTo(-0.188, -0.... | 11 | 69 | 0.276783 |
train_dabdf519768285a7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.11, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.04, -0.555).threePointArc((-0.26, -0.475), (-0.48, -0.255)).threePointArc((-0.56, 0.045), (-0.48, 0.345)).threePointArc((-0.26, 0.565), (0.04, 0.645)).threePointArc((0.341, 0.565), (0.56, 0... | 18 | 230 | 1.551757 |
train_5f5356a2988fe147 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.461, -0.116), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.54, 0.164).threePointArc((0.539, 0.171), (0.536, 0.176)).lineTo(0.441, 0.311).threePointArc((0.44, 0.311), (0.44, 0.312)).threePointArc((-0.54, -0.001), (0.441, -0.312)).lineTo(0.536... | 3 | 18 | 0.239979 |
train_0fe47c245197d3d0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.105, -0.11, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.095, -0.89).lineTo(0.095, 1.109).lineTo(-0.095, 1.109).lineTo(-0.095, -0.89).lineTo(0.095, -0.89).close().workplane(offset=0.06).moveTo(0.088, -0.82).lineTo(0.088, 1.039).lineTo(-0.088... | 4 | 20 | 0.06557 |
train_4d3776ac8afc4f1f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.004, 0.043, -0.532), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.072, 0.919).lineTo(-0.072, 1.242).lineTo(0.072, 1.242).lineTo(0.072, -1.233).lineTo(-0.072, -1.233).lineTo(-0.072, 0.919).close().workplane(offset=0.029).moveTo(-0.062, 0.793).li... | 4 | 70 | 0.020698 |
train_271781c42f828f19 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.071, 0.01, 0.042), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.141, -0.35).lineTo(-0.141, 0.017).lineTo(-0.435, 0.017).lineTo(0, 0.35).lineTo(0.147, 0.238).lineTo(0.435, 0.017).lineTo(0.435, -0.35).lineTo(-0.141, -0.35).close().extrude(0.504)... | 21 | 123 | 0.481698 |
train_d85509659bf584b7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.044, 0.412, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.626, 1.061).lineTo(0.626, 0.279).lineTo(-0.36, 0.279).lineTo(-0.36, -0.191).lineTo(0.626, -0.191).lineTo(0.626, -0.973).lineTo(-0.626, -0.973).lineTo(-0.626, 1.061).lineTo(0.626, 1.061... | 11 | 145 | 0.816676 |
train_5a7961039aed8b1e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.296, -0.126, 0.08), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.131, -0.12).lineTo(-0.094, -0.066).lineTo(-0.131, 0.097).lineTo(-0.076, 0.097).lineTo(-0.076, 0.12).lineTo(0.131, 0.12).lineTo(0.131, -0.12).close().sweep(cq.Workplane('XZ').splin... | 14 | 61 | 0.022885 |
train_10e343875f20cd4c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.022, -0.867, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.478, 0.224).lineTo(0.478, 0).lineTo(0.15, 0).lineTo(0.15, -0.224).lineTo(0, -0.224).lineTo(0, 0).lineTo(-0.149, 0).lineTo(-0.149, -0.224).lineTo(-0.478, -0.224).lineTo(-0.478, 0.224).... | 3 | 24 | 0.509495 |
train_830a9c4318303998 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.66, 0, -0.685), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.613, 0.368).extrude(0.56)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.655, 0.012, -0.464), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.382, 0.184).extrude(0.348))
result = result.... | 5 | 91 | 0.177078 |
train_f1b34b37aeb5b2fa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.762, 0, 0.017), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.238, -0.202).lineTo(-0.07, 0.056).lineTo(-0.07, 0.212).lineTo(-0.044, 0.211).lineTo(-0.018, 0.211).lineTo(-0.018, 0.096).lineTo(0, 0.096).lineTo(0, 0.058).threePointArc((0.169, -0.01... | 5 | 31 | 0.008917 |
train_55d3e310eb4163e6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.237, -0.122, 0.275), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.564, 0.339).lineTo(0.725, 0.339).lineTo(0.725, 0.178).lineTo(0.564, 0.178).lineTo(0.564, 0.017).lineTo(-0.725, 0.017).lineTo(-0.725, 0.339).lineTo(0.564, 0.339).close().extrude(0.... | 6 | 55 | 0.290414 |
train_a6cd527aa8e30313 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.341, 0.254), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.979, -0.023).lineTo(-1, -0.083).lineTo(-0.368, -0.126).lineTo(0.336, -0.174).lineTo(0.283, -0.023).lineTo(0.93, -0.023).lineTo(1, 0.174).lineTo(0.336, 0.129).lineTo(-0.368, 0.081).lin... | 1 | 12 | 0.024591 |
train_1c9c6e98626db606 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.414, 0, -0.062), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.172, 1.678).extrude(0.124)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.332, 0.131, 0.007), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.143).extrude(0.043))
result = result.union(... | 7 | 28 | 0.228518 |
train_a6431d99f9f21d8a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.118, -0.478), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.292, 1.158).extrude(1.17)
result = result.faces('>Z').shell(-0.106)
result = result.union(cq.Workplane(cq.Plane(origin=(0.09, 0.101, -0.693), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.... | 23 | 83 | 0.891161 |
train_3b8743dc6003c762 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1.017, -0.086, -0.146), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.064, 0.209).lineTo(-0.129, -0.077).lineTo(0.129, 0.015).lineTo(0.111, 0.191).lineTo(-0.064, 0.209).close().extrude(0.498)
result = result.edges().chamfer(0.083)
result = result.... | 32 | 214 | 0.138036 |
train_00b6d6eb3e1a485a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.12, 0, 0.482), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.481).workplane(offset=0.317).circle(0.468).workplane(offset=0.332).circle(0.479).workplane(offset=0.314).circle(0.477).loft()
result = result.edges().chamfer(0.307)
result = result.cut(... | 16 | 104 | 0.468069 |
train_d2b4062ca20eb94b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.979, 0.242, -0.119), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.492).workplane(offset=0.622).circle(0.431).workplane(offset=0.571).circle(0.37).workplane(offset=0.523).circle(0.308).loft()
result = result.edges().fillet(0.323)
result = result.... | 23 | 130 | 0.741449 |
train_dce4adbf69f6722a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.04, 0.06, -0.747), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.974, 1.879).extrude(1.329)
result = result.union(cq.Workplane(cq.Plane(origin=(0.155, -0.483, 0.574), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.107, 0.059).extrude(0.173))
result = res... | 6 | 25 | 2.43679 |
train_1af31d28f3600f05 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.146, 0.136), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.147, -0.311).threePointArc((-0.124, -0.296), (-0.098, -0.291)).lineTo(-0.045, -0.291).threePointArc((0.234, -0.295), (0.275, -0.112)).lineTo(0.3, 0.462).lineTo(0.122, 0.462).lineTo(-0... | 10 | 82 | 0.50393 |
train_ba9016fcb521fb0f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.042, -0.323, -0.134), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.049, 0.113).lineTo(-0.058, 0.113).lineTo(-0.06, 0.105).lineTo(-0.052, 0.105).lineTo(-0.084, 0.004).lineTo(-0.091, 0.01).lineTo(-0.094, 0.001).lineTo(-0.087, -0.004).lineTo(-0.00... | 22 | 18 | 0.003195 |
train_70683ea9ff4fa53c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.029, 0.189, 0.047), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.001, 0.418).lineTo(-0.016, 0.411).lineTo(-0.289, 0.298).lineTo(-0.296, 0.281).lineTo(-0.402, 0.025).lineTo(-0.606, 0.025).lineTo(-0.606, -0.008).lineTo(-0.402, -0.008).lineTo(-0.296... | 7 | 62 | 1.055184 |
train_6fb618efa1b256e3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.084, -0.141), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.33, 0.407).extrude(0.736)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.041, 0.07, -0.476), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.045).extrude(0.363))
result = result.unio... | 12 | 57 | 0.051801 |
train_1ca042e7090b1448 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.171, -0.737), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.393, -0.111).threePointArc((0.487, 0.124), (0.451, 0.376)).threePointArc((0.294, 0.575), (0.058, 0.669)).lineTo(-0.393, 0.476).threePointArc((-0.487, 0.24), (-0.451, -0.011)).lineTo(-... | 23 | 126 | 0.793688 |
train_0d023aaccd26273e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.083, -0.497), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.945).extrude(0.896)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.738, -0.017, 0.268), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.062).extrude(0.041))
result = result.cut(cq.... | 10 | 35 | 1.634877 |
train_fecc47ab3ffc00ed | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.169, 0.444), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.53).workplane(offset=0.319).circle(0.831).workplane(offset=0.365).circle(0.495).loft()
result = result.faces('>Z').shell(-0.059)
result = result.union(cq.Workplane(cq.Plane(origin=(-0... | 4 | 19 | 0.411586 |
train_66415bc987e808eb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.018), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1, -0.279).lineTo(-1, 0.279).lineTo(1, 0.279).lineTo(1, 0.163).lineTo(0.535, 0.163).lineTo(0.535, -0.279).lineTo(-1, -0.279).close().extrude(0.057)
result = result.union(cq.Workplane(cq.Pla... | 7 | 33 | 0.038285 |
train_e2fe0dd5a63763dc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.045, -0.559, 0.194), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.097, 0.097).lineTo(0.097, -0.097).lineTo(-0.097, -0.097).lineTo(-0.097, 0.097).lineTo(0.097, 0.097).close().sweep(cq.Workplane('YZ').spline([(-0.559, 0.194), (-0.153, 0.346), (0.2... | 14 | 166 | 0.182434 |
train_b9b4e81ea828f60d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.146, 0.011, -0.883), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.125, 0.167).lineTo(-0.115, 0.162).lineTo(-0.001, 0.105).lineTo(0.125, 0.105).lineTo(0.06, -0.011).lineTo(0.06, -0.152).lineTo(-0.004, -0.042).lineTo(-0.008, -0.033).lineTo(-0.057... | 5 | 68 | 0.012638 |
train_a8d0044ab2990984 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.354, -0.004, -0.158), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.79, 0.026).lineTo(0.221, 0.743).lineTo(-0.633, 0.479).lineTo(-0.646, -0.45).lineTo(0.238, -0.736).close().moveTo(-0.432, 0.258).lineTo(-0.077, 0.262).lineTo(-0.075, 0.167).lineTo... | 20 | 219 | 0.365348 |
train_69cff4171f5a8857 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.614, -0.164), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.111, 0.467).lineTo(-0.111, 1).lineTo(0.111, 1).lineTo(0.111, -1).lineTo(-0.111, -1).lineTo(-0.111, 0.244).lineTo(-0.067, 0.244).lineTo(-0.067, -0.022).threePointArc((0, -0.089), (0.06... | 1 | 16 | 0.174883 |
train_72ae00dd86b5eba9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.277, -0.2, -0.521), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.273, 0.988).extrude(1.246)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.274, -0.426, -0.618), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.352, 0.598).lineTo(0.352, -0.792)... | 12 | 72 | 1.665124 |
train_f20feae7dbf844ba | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.698, -0.437), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.603, 0.603).extrude(0.874)
result = result.union(cq.Workplane(cq.Plane(origin=(0, -0.064, -0.133), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.286, 1.04).extrude(0.266))
result = result.un... | 10 | 52 | 0.299731 |
train_6febb35e3fca9b03 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.034, -0.396, -0.656), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.344, -0.857).lineTo(-0.344, 0.926).lineTo(0.344, 0.926).lineTo(0.344, -0.857).lineTo(-0.344, -0.857).close().extrude(0.792)
result = result.edges().fillet(0.033)
result = result... | 6 | 77 | 0.892844 |
train_625ddb82d2a4f2d3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.171, 0, -0.844), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.659, 1.537).extrude(1.688)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.822, -0.074, -0.247), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.355, 0.883).extrude(0.922))
result = res... | 13 | 148 | 2.199827 |
train_96aa483c30983860 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.195, 0.064, 0.212), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.144, 0.656).lineTo(-0.144, 0.656).lineTo(-0.189, 0.504).lineTo(-0.341, -0.014).lineTo(-0.386, -0.167).lineTo(-0.53, -0.656).lineTo(0.53, -0.656).lineTo(0.386, -0.167).lineTo(0.341... | 11 | 84 | 1.175519 |
train_ca32beaa153d8e36 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.652, -0.604, -0.054), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.076, 1.249).threePointArc((-0.377, 1.05), (-0.4, 0.689)).threePointArc((-0.377, 0.644), (-0.349, 0.601)).lineTo(-0.687, 0.407).threePointArc((-0.026, 0.052), (0.636, 0.407)).thr... | 9 | 76 | 0.513393 |
train_f2dacc77155c38a6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.461, 0.165, -0.516), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.078, 1.448).extrude(0.484)
result = result.union(cq.Workplane(cq.Plane(origin=(0.078, 0.238, 0.007), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.122, 0.717).lineTo(-0.532, 0.717).l... | 13 | 81 | 1.26287 |
train_edecb0e64140b254 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.036, -1, 0.291), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.064, 0.045).lineTo(0, 0.004).lineTo(-0.006, 0).lineTo(-0.069, 0.04).lineTo(-0.069, -0.045).lineTo(0.069, -0.045).lineTo(0.069, -0.04).lineTo(0.006, 0).lineTo(0.069, 0.04).lineTo(0.06... | 11 | 72 | 0.037263 |
train_6381d0cf94dd901f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.548, -0.297, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, -0.7).lineTo(-1, 1.294).lineTo(1, 1.294).lineTo(1, -0.7).lineTo(-1, -0.7).close().extrude(1.096)
result = result.edges().chamfer(0.456)
result = result.union(cq.Workplane(cq.Plane(o... | 14 | 38 | 2.595637 |
train_ef7c50435e91daef | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.679, -1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.116, -0.116).lineTo(0.116, 0.116).lineTo(-0.116, 0.116).lineTo(-0.116, -0.116).lineTo(0.116, -0.116).close().sweep(cq.Workplane('XY').spline([(0.679, 1.891), (-0.547, 2.462), (-2.057, 2.5... | 1 | 6 | 0.137686 |
train_cf94eca5bd202506 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.968, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(1.064).workplane(offset=0.579).circle(0.956).workplane(offset=0.69).circle(0.945).workplane(offset=0.666).circle(1.006).loft()
result = result.edges().chamfer(0.179)
result = result.edges().... | 3 | 9 | 5.475525 |
train_064fc534c7262aa8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.162, -0.269, -0.346), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.496, 1.461).extrude(0.691)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.199, -0.058, -0.147), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.714, 0.187).lineTo(0.486, 0.572).l... | 27 | 117 | 0.933165 |
train_3e3623e13b57646b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.483, 0.448, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.35, 1.357).lineTo(0.172, 1.302).lineTo(-0.347, 1.144).threePointArc((-0.463, 0.87), (-0.214, 0.707)).lineTo(0.267, 0.854).lineTo(0.329, 0.872).lineTo(0.329, -0.034).lineTo(0.685, -0.03... | 4 | 31 | 1.912374 |
train_38aa1e13ed861f62 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.011, 0.323, 0.505), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.01, 0.12).threePointArc((-0.052, 0.091), (-0.056, 0.04)).threePointArc((-0.052, 0.031), (-0.047, 0.023)).threePointArc((0, 0.001), (0.047, 0.023)).threePointArc((0.052, 0.031), (0... | 8 | 49 | 0.096991 |
train_2d88407ee812fa27 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.33), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.455, 2).extrude(0.661)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.124, -0.524, -0.166), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.838, 1.002).extrude(0.315))
result = result.edges().... | 34 | 329 | 0.86918 |
train_516fbbe4087e4c06 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.986, -0.807, -0.22), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.191, 0.966).lineTo(0.191, -0.158).lineTo(-0.173, 0.46).threePointArc((-0.191, 0.547), (-0.152, 0.628)).lineTo(0.191, 0.966).close().extrude(1.357)
result = result.edges().fillet(0... | 12 | 86 | 0.535381 |
train_f537686fb9e4656e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.346, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.608, -0.164).lineTo(0.608, 0.857).lineTo(-0.333, 0.857).lineTo(-0.333, 0.704).lineTo(-0.487, 0.704).lineTo(-0.487, 0.857).lineTo(-0.608, 0.857).lineTo(-0.608, -0.164).lineTo(0.608, -0.164)... | 12 | 92 | 2.134992 |
train_9e7df34f5ca7f9bd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.166, -1, -0.169), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.023, 0.284).threePointArc((-0.247, 0.142), (-0.257, -0.122)).lineTo(-0.065, -0.011).threePointArc((-0.057, -0.033), (-0.043, -0.051)).lineTo(-0.234, -0.162).threePointArc((0, -0.285... | 5 | 42 | 0.231706 |
train_a30e97fa7d883208 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.349, -0.961, -0.343), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.082, 0.362).lineTo(0.082, 0.082).lineTo(0.362, 0.082).lineTo(0.362, -0.082).lineTo(0.082, -0.082).lineTo(0.082, -0.362).lineTo(-0.082, -0.362).lineTo(-0.082, -0.082).lineTo(-0.36... | 7 | 81 | 0.861191 |
train_e9b26806e6eec871 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.158, 0.68, 0.4), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.084, 1.274).threePointArc((-0.6, 0.68), (-0.084, 0.086)).threePointArc((0, 0.08), (0.084, 0.086)).threePointArc((0.6, 0.68), (0.084, 1.274)).threePointArc((0, 1.28), (-0.084, 1.274))... | 21 | 76 | 0.889541 |
train_e9b69b8cdeaa462c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.274, -0.105), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.379, 0.122).lineTo(0.379, 0.075).lineTo(0.481, 0.075).lineTo(0.481, -0.028).lineTo(-0.072, -0.028).lineTo(-0.072, -0.148).lineTo(-0.111, -0.148).lineTo(-0.111, -0.078).lineTo(-0.368,... | 6 | 68 | 0.375774 |
train_651db4414999f911 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.396, 0.12, 0.087), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.913, -0.015).lineTo(-0.913, 0.376).lineTo(-0.587, 0.376).lineTo(-0.587, -0.015).lineTo(0.587, -0.015).lineTo(0.587, 0.376).lineTo(0.913, 0.376).lineTo(0.913, -0.232).lineTo(-0.913,... | 7 | 64 | 0.387491 |
train_87ae64fd3f46cfd8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1, 0.612), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.324, 0.187).threePointArc((-0.375, 0), (-0.324, -0.187)).lineTo(0, -0.375).lineTo(0.324, -0.187).threePointArc((0.375, 0), (0.324, 0.187)).threePointArc((0.187, 0.324), (0, 0.375)).lineT... | 8 | 35 | 0.339241 |
train_0057200b1c16b2fd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.306, 0.091, 0.105), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.321, 0.075).threePointArc((-0.313, 0.089), (-0.303, 0.101)).threePointArc((-0.01, 0.237), (0.269, 0.075)).threePointArc((0.321, -0.077), (0.3, -0.237)).lineTo(0.154, -0.164).threeP... | 3 | 43 | 0.232337 |
train_a199fc1c9d929c9b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.68, -0.68, 0.482), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.527, 0.567).lineTo(-0.527, 0.871).lineTo(-0.264, 1.023).threePointArc((0, 1.094), (0.264, 1.023)).threePointArc((0.456, 0.83), (0.527, 0.567)).threePointArc((0.456, 0.303), (0.264,... | 18 | 95 | 0.765847 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.