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_6911d59c32bbf80b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.086, 0.545, -0.005), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.432, -0.644).threePointArc((-0.432, 0.221), (0.432, 1.086)).lineTo(0.432, 0.653).threePointArc((0, 0.221), (0.432, -0.212)).lineTo(0.432, -0.644).close().extrude(0.757)
result = r... | 12 | 130 | 0.562738 |
train_30bee2a4e85407d0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.025, -0.002, -0.29), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.996, 0.011).lineTo(0.654, 0.704).lineTo(-0.009, 1.002).lineTo(-0.657, 0.693).lineTo(-0.946, 0.027).lineTo(-0.655, -0.683).lineTo(-0.005, -0.998).lineTo(0.712, -0.672).close().cent... | 15 | 60 | 0.954028 |
train_d2d175bd0a77462f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.246, -0.02, 0.852), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.003, 0.003).lineTo(0.002, 0.002).lineTo(0.001, 0.001).lineTo(-0.001, -0.001).lineTo(-0.002, -0.002).lineTo(-0.003, -0.003).lineTo(0.003, -0.003).lineTo(0.003, 0.003).close().sweep(... | 8 | 25 | 0.020186 |
train_efea5e658ac75e3a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.375, -0.258, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.739, 0.238).threePointArc((-0.814, 0.395), (-0.982, 0.434)).lineTo(-0.982, 0.625).lineTo(0.982, 0.625).lineTo(0.982, 0.474).lineTo(-0.14, 0.474).threePointArc((-0.147, 0.35), (-0.08... | 4 | 28 | 0.666942 |
train_9e5e55be01b683f2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.379), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.471, 2).extrude(0.714)
result = result.union(cq.Workplane(cq.Plane(origin=(0.073, 0.1, 0.332), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.324, 1.8).extrude(0.097))
result = result.union(cq.Wo... | 14 | 75 | 1.438123 |
train_891dd72b4413eb25 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.466, 0.989).extrude(2)
result = result.edges().fillet(0.127)
| 2 | 26 | 2.840811 |
train_0ff4b8d33da68114 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.026, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.93, -0.498).lineTo(0, 0.88).lineTo(0.93, -0.498).lineTo(-0.93, -0.498).close().workplane(offset=0.676).moveTo(-0.5, -0.18).lineTo(0, 0.561).lineTo(0.5, -0.18).lineTo(-0.5, -0.18).close().... | 5 | 38 | 0.767211 |
train_d275811475999ae3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.57, 0.139, 0.07), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.145, 1.14).lineTo(-0.145, 0.113).lineTo(0.145, 0.113).lineTo(0.145, 1.14).lineTo(-0.145, 1.14).close().revolve(angleDegrees=90, axisStart=(0, 0), axisEnd=(0.133, 0))
result = result... | 16 | 85 | 0.429933 |
train_7543b28fc3cd32d0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, -0.63, -0.344), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.276, 0.007).lineTo(0.276, 0.37).lineTo(-0.276, 0.37).lineTo(-0.276, -0.134).lineTo(-0.06, -0.134).threePointArc((0, -0.37), (0.06, -0.134)).lineTo(0.276, -0.134).lineTo(0.276, 0.... | 21 | 133 | 0.27245 |
train_38ef85fd7b0a5c64 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.072, 0.358), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.416).workplane(offset=0.275).circle(0.35).workplane(offset=0.287).circle(0.285).loft()
result = result.edges().fillet(0.135)
result = result.union(cq.Workplane(cq.Plane(origin=(0, -0.2... | 6 | 33 | 0.168868 |
train_07a310ba65a9b0f5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.813, -0.081, 0.232), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.187, 0.304).lineTo(0.035, 0.304).lineTo(0.035, 0.084).lineTo(-0.187, 0.084).lineTo(-0.187, -0.19).lineTo(-0.026, -0.19).lineTo(-0.026, -0.084).lineTo(0.035, -0.084).lineTo(0.035,... | 7 | 85 | 0.213603 |
train_b67c36f8926b9608 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.155, -0.67, -0.205), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.291, -0.667).threePointArc((-0.178, -0.493), (-0.086, -0.307)).threePointArc((-0.623, 0.348), (-0.086, 1.004)).lineTo(0.488, 1.119).threePointArc((0.588, 0.74), (0.623, 0.348)).t... | 15 | 227 | 2.586679 |
train_06d80abea8c141d4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.965), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.908, 2).extrude(1.931)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.434, -0.14, -0.506), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.174).extrude(0.295))
result = result.cut(cq.Workpl... | 13 | 52 | 6.589788 |
train_10911460e9d86ab8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.64, 0, 0.935), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.146, 0.142).lineTo(0.36, 0.2).lineTo(0.146, 0.154).lineTo(0.146, 0.364).lineTo(-0.236, 0.03).lineTo(-0.173, -0.048).lineTo(-0.231, -0.107).lineTo(-0.36, -0.116).lineTo(-0.284, -0.159).li... | 4 | 22 | 0.01168 |
train_da4d1bb73679d09a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.009, -0.431, -0.567), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.433, 0.985).lineTo(-0.433, -0.534).threePointArc((0, -0.967), (0.433, -0.534)).lineTo(0.433, 0.388).lineTo(0.433, 0.866).lineTo(0.433, 0.985).lineTo(-0.433, 0.985).close().extru... | 9 | 50 | 0.988149 |
train_9e28765b47e2f6d7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.03, -0.25, -0.676), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.282, 0.663).lineTo(-0.282, -0.75).lineTo(0.282, -0.75).lineTo(0.282, 0.176).lineTo(0.136, -0.128).lineTo(0, -0.128).lineTo(0, 0.663).lineTo(0.282, 0.663).lineTo(0.282, 0.776).line... | 16 | 175 | 0.519912 |
train_9ff52b292b998455 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.175, -0.387), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.111, 1.175).lineTo(0.111, 1.175).lineTo(0.111, -0.825).lineTo(-0.111, -0.825).lineTo(-0.111, 1.175).close().extrude(0.774)
result = result.edges().chamfer(0.071)
result = result.face... | 4 | 243 | 0.057064 |
train_0eb105c005e068a5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.059, -0.021, -0.256), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.883, 0.875).extrude(0.511)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.695 + 0.3765, -0.371 + 0.0875, -0.332), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.065, 0.039).line... | 27 | 56 | 0.816606 |
train_02ab6533315921fe | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.202, -1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(1, 0.239).lineTo(1, 0.165).lineTo(-0.882, 0.165).threePointArc((-0.937, 0.13), (-1, 0.118)).lineTo(-1, 0.202).lineTo(-1, 0.286).threePointArc((-0.937, 0.274), (-0.882, 0.239)).lineTo(1, 0.2... | 26 | 167 | 0.153723 |
train_0204e5c3c44d54bc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.93, 0.539, 0.054), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.271, 0.776).lineTo(0.271, 1.09).lineTo(0.256, 1.081).lineTo(0, 1.228).lineTo(-0.256, 1.081).lineTo(-0.271, 1.09).lineTo(-0.271, 0.776).lineTo(0, 0.62).lineTo(0.271, 0.776).close().w... | 7 | 51 | 1.516544 |
train_296a692b296bd0ba | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.515, 0.867, 0.515), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.515, 1.332).lineTo(-0.515, 0.403).lineTo(0.515, 0.403).lineTo(0.515, 1.332).lineTo(-0.515, 1.332).close().revolve(angleDegrees=180, axisStart=(-0.515, 1.332), axisEnd=(-0.515, 0.4... | 10 | 103 | 0.687072 |
train_e9e1119e7134655a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.169, -0.339, -0.692), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.959, 1.234).extrude(0.939)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.352, -0.105, 0.189), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.194, 0.205).extrude(0.811))
result ... | 13 | 147 | 1.736183 |
train_2e849911908186a6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.016, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.419, 0.728).extrude(0.865)
result = result.union(cq.Workplane(cq.Plane(origin=(0.102, -0.099, -0.145), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.081).extrude(0.168))
result = result.union(... | 5 | 64 | 0.537513 |
train_e5ac378da03f6444 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.677, 0, -0.002), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.075, 0.677).lineTo(-0.061, 0.677).lineTo(-0.061, 0.396).threePointArc((-0.086, 0.318), (-0.152, 0.267)).lineTo(-0.152, 0.177).lineTo(-0.152, 0.086).threePointArc((-0.086, 0.036), (-0.... | 3 | 15 | 0.123872 |
train_052bd529a7df4239 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.524, -0.505), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.941).threePointArc((0.957, 0.959), (0.939, 1.002)).lineTo(-0.939, 1.002).threePointArc((-0.957, 0.959), (-1, 0.941)).lineTo(-1, 0.107).threePointArc((-0.957, 0.089), (-0.939, 0.045... | 5 | 30 | 1.586385 |
train_1cd6fa8d6af9ac5d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.5, 0, 0), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.5, 0.37).lineTo(-0.5, -0.37).lineTo(0.5, -0.37).lineTo(0.5, 0.37).lineTo(-0.5, 0.37).close().revolve(angleDegrees=360, axisStart=(-0.5, 0.37), axisEnd=(-0.5, 0.147))
result = result.edges()... | 4 | 13 | 1.946043 |
train_0957459b86efb405 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.344), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.418, 2).extrude(0.688)
result = result.cut(cq.Workplane(cq.Plane(origin=(0 + 0.19 * math.cos(5.066 + 2 * math.pi * 0 / 4), 0.344 + 0.19 * math.sin(5.066 + 2 * math.pi * 0 / 4), -1.266), norm... | 22 | 115 | 1.665373 |
train_ec4404af07529ffa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.07, -0.396, -0.525), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.475, 0.234).lineTo(-0.475, -0.07).lineTo(0.475, -0.07).lineTo(0.475, 0.234).lineTo(-0.475, 0.234).close().extrude(0.624)
result = result.edges().chamfer(0.114)
result = result.cu... | 25 | 143 | 0.171611 |
train_7aa3cc296ea78dc6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.406, -0.039, 0.047), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.039, 0.144).lineTo(-0.017, 0.064).lineTo(0.017, 0.064).lineTo(0.039, 0.144).lineTo(0.105, 0.105).lineTo(0.144, 0.039).lineTo(0.064, 0.017).lineTo(0.064, -0.017).lineTo(0.144, -0.0... | 14 | 166 | 0.266061 |
train_6692a3eb4753c070 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.001, -1, -0.031), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.557, -0.863).lineTo(-0.557, 0.755).lineTo(0.665, 0.755).lineTo(0.665, 0.863).lineTo(-0.665, 0.863).lineTo(-0.665, -0.863).lineTo(-0.557, -0.863).close().sweep(cq.Workplane('YZ').spl... | 4 | 23 | 0.405347 |
train_628c362fbc5c9518 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.221, 0.19, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.387, 1.387).extrude(1.716)
result = result.union(cq.Workplane(cq.Plane(origin=(0.679, 0.379, -0.104), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.472, 0.166).extrude(0.424))
result = resul... | 13 | 94 | 3.181102 |
train_61af59bebecfbe97 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.017, -0.38, 0.112), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.44, -0.56).lineTo(-0.44, -0.454).lineTo(-0.42, -0.454).lineTo(-0.42, -0.503).lineTo(-0.334, -0.503).lineTo(-0.334, 0.56).lineTo(0.44, 0.56).lineTo(0.44, -0.511).lineTo(-0.42, -0.5... | 10 | 64 | 1.835301 |
train_ba844af65bf2cafa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.792, -0.197, -0.014), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.185, 0.072).lineTo(-0.185, 0.351).threePointArc((-0.109, 0.5), (0.057, 0.527)).threePointArc((0.015, 0.443), (0, 0.351)).lineTo(0.185, 0.351).lineTo(0.185, 0.072).lineTo(-0.185, ... | 19 | 424 | 0.224395 |
train_3e85d0aac4f8d18e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(1.041).workplane(offset=0.632).circle(0.666).workplane(offset=0.689).circle(0.445).workplane(offset=0.679).circle(0.15).loft()
result = result.edges().fillet(0.079)
result = result.cut(cq.Workpl... | 4 | 8 | 2.14622 |
train_0d9df6c4ab90fb4b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.984, 0.529, -0.074), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.251, -0.368).threePointArc((-0.34, -0.035), (-0.445, 0.293)).threePointArc((0.422, 0.723), (-0.518, 0.496)).threePointArc((-0.685, 0.896), (-0.877, 1.285)).lineTo(-0.368, 1.471).... | 5 | 47 | 2.891633 |
train_99ca97203c330b1d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.023, 0.007), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.047, -0.568).lineTo(0.678, 0.602).lineTo(-0.213, 0.602).lineTo(-0.678, -0.204).lineTo(-0.047, -0.568).close().extrude(2)
result = result.edges().fillet(0.032)
result = result.cut(cq.W... | 6 | 78 | 1.073351 |
train_46682a394da3a3af | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.022, -0.56, -0.148), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.275, 0.275).extrude(0.297)
result = result.union(cq.Workplane(cq.Plane(origin=(0.137, -0.524, -0.039), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.022).extrude(0.04))
result = resul... | 13 | 107 | 0.027181 |
train_36631365ec2185be | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.145, 0, -0.435), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.709, 1.365).extrude(0.87)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.026, -0.177, -0.184), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.09).extrude(0.1))
result = result.cut(cq.W... | 24 | 89 | 1.286787 |
train_98d6bbf0b6a20daf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.148, 0, -0.303), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.152, 0.665).extrude(0.606)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.228, 0.056, 0.002), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.061).extrude(0.196))
result = result.edge... | 20 | 150 | 0.280633 |
train_931647fc290703c4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.003, -0.017, 0.058), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.009, 0.102).lineTo(0.009, 0.102).lineTo(0.029, -0.042).lineTo(-0.029, -0.042).lineTo(-0.009, 0.102).close().extrude(0.058)
result = result.edges().fillet(0.009)
result = result.un... | 3 | 40 | 0.006158 |
train_62f39d435134a4e6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.011, -1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.631, -0.149).lineTo(0.631, 0.172).threePointArc((-0.631, 0.011), (0.631, -0.149)).close().extrude(2)
result = result.edges().fillet(0.186)
result = result.cut(cq.Workplane(cq.Plane(origin... | 7 | 77 | 1.820186 |
train_4894fa8025278ab2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.003, -0.097, -0.307), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.181, 0.265).threePointArc((0.383, 0.013), (-0.181, -0.24)).threePointArc((-0.238, -0.265), (-0.295, -0.24)).threePointArc((-0.266, -0.154), (-0.351, -0.126)).lineTo(-0.351, -0.09... | 17 | 122 | 0.387741 |
train_9fa7446a6bbca127 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.693, 0, -0.469), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.299, -0.087).lineTo(0.299, -0.53).lineTo(0.25, -0.491).lineTo(0.202, -0.53).lineTo(0.202, -0.087).lineTo(-0.26, -0.087).lineTo(-0.26, 0.376).lineTo(-0.299, 0.424).lineTo(-0.26, 0.472)... | 29 | 132 | 0.483692 |
train_37fc02b846344f7b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.674), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.853).extrude(1.348)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.188, -0.136, 0.003), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.179).extrude(0.689))
result = result.edges().fill... | 3 | 30 | 2.228477 |
train_2b7c07e4dcca5cac | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.54, -0.168, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.507).sweep(cq.Workplane('XY').spline([(0.214, -0.498), (0.466, -0.487), (0.718, -0.42), (0.969, -0.168), (1.221, 0.085), (1.473, 0.152), (1.724, 0.162)]))
result = result.faces('>Z').... | 8 | 9 | 1.472308 |
train_692997eb5602094e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.29, -0.022, -0.167), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.107, 0.23).threePointArc((0.08, 0.119), (0.107, 0.009)).lineTo(-0.093, 0.009).threePointArc((-0.107, 0.119), (-0.093, 0.23)).lineTo(0.107, 0.23).close().extrude(0.172)
result = re... | 10 | 115 | 0.171078 |
train_471e1b596522d2fd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.428, 0.102, 0.078), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.077, 0.039).lineTo(0, 0.039).lineTo(0, 0).lineTo(0.039, 0).lineTo(0.077, 0.039).lineTo(0.077, -0.039).lineTo(-0.077, -0.039).lineTo(-0.039, 0).lineTo(-0.077, 0).lineTo(-0.077, 0.03... | 9 | 130 | 0.285739 |
train_1cd262bcbf37a40a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.531, -0.707, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.716, 1.358).threePointArc((-0.968, 0.707), (0.716, 0.056)).threePointArc((0.968, 0.707), (0.716, 1.358)).close().extrude(1.531)
result = result.edges().chamfer(0.181)
result = result.... | 20 | 163 | 3.351223 |
train_d04b348bb618b91e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.071, 0, -0.396), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.347, 1.155).extrude(0.711)
result = result.union(cq.Workplane(cq.Plane(origin=(0.207, 0.006, -0.656), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.338).extrude(0.276))
result = result.cut... | 18 | 152 | 0.868511 |
train_14b00bb118d13e90 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.238, -0.11), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.713, 1.39).extrude(0.929)
result = result.union(cq.Workplane(cq.Plane(origin=(0.347, -0.155, 0.204), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(1.041, 0.457).threePointArc((0.083, 0.172)... | 11 | 138 | 0.437575 |
train_1f607aee300c6cba | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.043, -0.009, -0.567), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.961, 0.961).extrude(1.032)
result = result.faces('<X').shell(-0.057)
result = result.union(cq.Workplane(cq.Plane(origin=(0.045, 0.021, 0.458), normal=(0, 0, 1), xDir=(1, 0, 0))).re... | 15 | 106 | 0.556438 |
train_9bd2aec5e04f2b4f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.656, 0.199, -0.462), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.178, 0.056).lineTo(0.164, 0.056).lineTo(0.164, 0.071).lineTo(0.178, 0.071).lineTo(0.178, -0.071).lineTo(0.164, -0.071).lineTo(0.164, -0.056).lineTo(-0.178, -0.056).lineTo(-0.178,... | 1 | 10 | 0.019401 |
train_db14c8298f37bac7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.19, -0.119, -0.253), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.62, 1.544).extrude(0.505)
result = result.faces('>Z').shell(-0.022)
result = result.union(cq.Workplane(cq.Plane(origin=(0.796, 0.027, -0.13), normal=(0, 0, 1), xDir=(1, 0, 0))).circ... | 4 | 22 | 0.160892 |
train_662fafa1eaf04edc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.036, -0.271), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.803).extrude(0.576)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.321 + 0.1605, 0.0975, -1.571), normal=(1, 0, 0), xDir=(0, 1, 0))).moveTo(-0.039, 0.043).lineTo(-0.039, -0.042... | 17 | 13 | 0.925654 |
train_3f40775be58627d4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.595, -0.109, -0.371), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.81, 0.916).extrude(0.456)
result = result.union(cq.Workplane(cq.Plane(origin=(0.663, 0.472, -0.325), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.147).extrude(0.246))
result = result... | 10 | 85 | 0.472513 |
train_b6749e732c4effb5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.129, 0.713, -0.107), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.042, -0.111).lineTo(-0.037, -0.131).threePointArc((-0.039, -0.142), (-0.04, -0.153)).lineTo(0.001, -0.319).lineTo(0.042, -0.153).threePointArc((0.041, -0.142), (0.039, -0.131)).t... | 8 | 86 | 0.186746 |
train_bc3419be56e1b59f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.966, 0.794, 0.068), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.826, 0.059).threePointArc((0.853, 0.794), (-0.826, 1.528)).threePointArc((-0.853, 0.794), (-0.826, 0.059)).close().extrude(1.932)
result = result.edges().fillet(0.393)
result = re... | 13 | 19 | 5.109654 |
train_119a12ef40dc79ce | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.5, 0, -0.5), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.5, 0.027).threePointArc((0, 0.063), (0.5, 0.027)).lineTo(0.5, -0.063).lineTo(-0.5, -0.063).lineTo(-0.5, 0.027).close().revolve(angleDegrees=180, axisStart=(0.5, 0.027), axisEnd=(0.5, -0... | 17 | 118 | 0.210088 |
train_faa0a5ea21e3939d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.015, -0.102, -0.139), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.003, 0.269).lineTo(-0.055, 0.284).lineTo(-0.242, 0.032).lineTo(-0.258, 0.018).lineTo(-0.224, -0.019).lineTo(-0.118, -0.244).lineTo(0.118, -0.08).lineTo(0.228, -0.054).close().mov... | 11 | 227 | 0.120979 |
train_d0bb504acc68b77d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.001, -0.558), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.544).extrude(0.883)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.286, -0.057, 0.31), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.142).extrude(0.248))
result = result.union(c... | 5 | 17 | 0.968498 |
train_6702ea67592431c1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.448, 0.655, -0.255), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.47, 0.929).lineTo(0.47, -0.09).lineTo(-0.47, -0.09).lineTo(-0.47, 0.929).lineTo(0.47, 0.929).close().extrude(1.31)
result = result.edges().chamfer(0.165)
result = result.union(cq.... | 13 | 85 | 0.592666 |
train_5f2b2557304030c3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.002, 0, -0.652), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.364, 1.363).extrude(1.304)
result = result.union(cq.Workplane(cq.Plane(origin=(0.829, 0.268, -0.458), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.171).extrude(0.771))
result = result.un... | 16 | 137 | 1.450757 |
train_a4e8f93a4794f6ed | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.157, 0.406, -0.131), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.376, -0.296).lineTo(-0.366, -0.171).lineTo(-0.356, -0.046).lineTo(-0.323, 0.393).lineTo(-0.313, 0.519).lineTo(0.313, 0.519).lineTo(0.323, 0.393).lineTo(0.01, 0.393).lineTo(0.027,... | 29 | 203 | 0.224388 |
train_f55a93e31bb5534d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.24, -0.232), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.554, 1.52).extrude(0.465)
result = result.union(cq.Workplane(cq.Plane(origin=(0.069, -0.743, 0.022), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.257).extrude(0.155))
result = result.cut(c... | 7 | 27 | 0.974385 |
train_24a75de0d345462d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.058, 0.082, -0.016), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.056, 1.056).threePointArc((0, 1.058), (0.056, 1.056)).lineTo(0.056, -0.792).lineTo(0.056, -0.942).lineTo(-0.056, -0.942).lineTo(-0.056, -0.792).lineTo(-0.056, 1.056).close().extr... | 42 | 322 | 0.032133 |
train_0e0b0144b10fb06e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.713, -0.789, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.429, -0.211).threePointArc((-0.576, -0.192), (-0.714, -0.134)).threePointArc((-0.923, 0.075), (-1, 0.36)).lineTo(-0.714, 0.36).lineTo(-0.714, 1.503).threePointArc((-0.631, 1.705), (-... | 9 | 44 | 2.465237 |
train_6aaf77f4ae55aab8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.273, -0.073, -0.76), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.291, 1.22).extrude(1.348)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.576, -0.251, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.395, 0.621).extrude(0.257))
result = res... | 18 | 52 | 1.968105 |
train_7865b3367c00b96d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.359, 0.064, -0.02), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.005, 0.174).threePointArc((-0.039, 0.163), (-0.074, 0.134)).lineTo(-0.093, 0.134).lineTo(-0.093, 0.075).lineTo(-0.093, 0.016).lineTo(-0.074, 0.016).threePointArc((0.093, 0.031), (0... | 22 | 114 | 0.009964 |
train_52662a39379e4b8c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.123, 0.009, -0.005), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.055, 0.045).threePointArc((-0.045, 0.053), (-0.033, 0.06)).threePointArc((-0.007, 0.064), (0.018, 0.06)).threePointArc((0.04, 0.045), (0.055, 0.023)).lineTo(-0.007, -0.003).lineTo... | 21 | 118 | 0.032393 |
train_7ed3ff52ab0a6be4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.249, -0.185), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.378, 0.374).extrude(0.369)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.05, -0.702, 0.036), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.057, 0.596).extrude(0.03))
result = resul... | 5 | 24 | 0.052217 |
train_6568e3cb70d8bbac | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.371, 0.509), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.276, 1.033).lineTo(-0.276, -0.047).lineTo(0.276, -0.047).lineTo(0.276, 1.033).lineTo(-0.276, 1.033).close().revolve(angleDegrees=360, axisStart=(-0.276, 1.033), axisEnd=(-0.276, -0.047... | 5 | 19 | 0.957156 |
train_6b1443b238d5dad4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.293, 0.554, 0.235), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.765, 0.625).lineTo(-0.765, 0.055).lineTo(0.765, 0.055).lineTo(0.435, 0.625).lineTo(-0.765, 0.625).close().extrude(1.108)
result = result.union(cq.Workplane(cq.Plane(origin=(0.284,... | 23 | 180 | 0.580338 |
train_a9bd475a4b7bac1c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0, 0.446), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.031, 0.092).lineTo(-0.031, -0.031).lineTo(-0.092, -0.031).lineTo(-0.031, -0.092).lineTo(0.031, -0.092).lineTo(0.031, -0.031).lineTo(0.092, -0.031).lineTo(0.092, 0.031).lineTo(0.031, 0.03... | 2 | 20 | 0.003236 |
train_e45845c730c138f6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.001, 0.011, 0.252), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1.048, 0.165).lineTo(-1.048, 0.382).lineTo(1.048, 0.382).lineTo(1.041, 0.239).lineTo(-1.048, -0.382).lineTo(-1.048, 0.165).close().workplane(offset=0.11).moveTo(-0.986, 0.155).lineT... | 2 | 29 | 0.359695 |
train_4fb50d7ff4306b7a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.191, -0.077, -0.374), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.618, 0.863).extrude(0.749)
result = result.faces('>Z').shell(-0.058)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.794, -0.139, -0.243), normal=(0, 0, 1), xDir=(1, 0, 0))).... | 4 | 19 | 0.307698 |
train_295562bcaf0ebf52 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.233, -0.042), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.159, 1.534).extrude(0.349)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.092, -0.521, 0.169), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.149, 0.795).lineTo(-0.403, 0.647).lineTo(... | 8 | 84 | 0.458768 |
train_ae802972f4df7d52 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.391, 0.196, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.412, 0.135).lineTo(0.623, 0.135).lineTo(0.623, -0.067).lineTo(-0.412, -0.067).lineTo(-0.412, -0.135).lineTo(-0.623, -0.135).lineTo(-0.623, 0.135).lineTo(-0.412, 0.135).close().sweep(... | 8 | 62 | 0.201847 |
train_5310f9f2ac5ff69c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.474, 0.051, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.268, -0.949).lineTo(-0.522, 1.341).threePointArc((0, 0.923), (0.522, 1.341)).lineTo(0.268, -0.949).lineTo(-0.268, -0.949).close().extrude(0.947)
result = result.edges().fillet(0.097)
... | 12 | 107 | 0.722025 |
train_c7a6ecfa87a0d5c8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.46, 0, 0.364), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.282, -1).lineTo(0.282, 0.69).threePointArc((-0.014, 0.819), (-0.282, 1)).lineTo(-0.282, -1).close().sweep(cq.Workplane('XZ').spline([(-0.46, -0.379), (-0.647, -0.317), (-0.909, -0.293)... | 1 | 5 | 0.139118 |
train_d17aef022bea5cd4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.361, 0.182), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.078, -0.351).lineTo(-0.194, -0.351).lineTo(-0.194, -0.216).lineTo(-0.078, -0.216).lineTo(-0.078, 0.216).lineTo(-0.194, 0.216).lineTo(-0.194, 0.351).lineTo(0.194, 0.351).lineTo(0.194, 0... | 4 | 27 | 0.272076 |
train_abaa8556f1f56067 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.002, 0.038, -0.955), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, -0.026).lineTo(0.032, -0.026).lineTo(0.038, -0.02).lineTo(0.045, -0.014).lineTo(0.013, 0.018).lineTo(0.006, 0.025).lineTo(0, 0.031).lineTo(-0.006, 0.025).lineTo(0, 0.018).lineTo(... | 3 | 27 | 0.000476 |
train_7a58cdf744ee4db4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.577), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.572).extrude(1.154)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.071, 0.14, -0.773), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.513, 0.362).extrude(1.385))
result = result.edges().c... | 15 | 96 | 2.233819 |
train_bbf17c54ba382ef6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.992, -0.137, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.25).lineTo(-1, -0.25).lineTo(-0.4, -0.25).threePointArc((-0.25, -0.1), (-0.1, -0.25)).lineTo(0.275, -0.25).threePointArc((0.5, -0.025), (0.725, -0.25)).lineTo(1, -0.25).lineTo(1,... | 15 | 68 | 1.460987 |
train_be338ecf6ebf8020 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.902, 0.019, -0.104), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.098, -0.085).lineTo(0.098, -0.085).lineTo(0.033, 0.027).lineTo(0, 0.085).lineTo(-0.033, 0.027).lineTo(-0.098, -0.085).close().sweep(cq.Workplane('XZ').spline([(-0.902, -0.294), (... | 6 | 36 | 0.021567 |
train_63725dd6c2bc4e34 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.872, 0.073, 0.117), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(1.117, 0.077).lineTo(-1.117, 1.854).lineTo(-1.117, 0.077).lineTo(1.117, 0.077).close().extrude(1.053)
result = result.edges().chamfer(0.299)
result = result.union(result.mirror('XZ',... | 7 | 62 | 1.981192 |
train_d819756b39521ce2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.494, 0.225), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.173).sweep(cq.Workplane('YZ').spline([(-0.374, 0.16), (-0.135, -0.003), (0.123, -0.003), (0.362, 0.16), (0.362, 0.335), (0.123, 0.497), (-0.135, 0.497), (-0.374, 0.335)]))
result = resu... | 3 | 32 | 0.061245 |
train_d29a887ed2c44936 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.573, 0.004, -0.176), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.855, 0.141).extrude(0.142)
result = result.union(cq.Workplane(cq.Plane(origin=(0.368, -0.035, -0.162), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.264, 0.034).extrude(0.097))
result =... | 8 | 34 | 0.044048 |
train_1c8d49dd3338b0f1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.261), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.436, 2).extrude(0.522)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.274, -0.473, -0.164), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.187).extrude(0.137))
result = result.cut(cq.Work... | 21 | 85 | 0.890887 |
train_309d2095063ed7af | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.004, 0.012, -0.325), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.996, 0.01).lineTo(0.716, 0.712).lineTo(-0.031, 0.967).lineTo(-0.699, 0.719).lineTo(-1.004, -0.007).lineTo(-0.704, -0.685).lineTo(0.01, -0.991).lineTo(0.689, -0.691).close().moveTo(... | 14 | 177 | 0.881222 |
train_dd8cf56ad30bcdfd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.935, 0.616, 0.767), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.065, -0.114).lineTo(-0.065, 0.082).threePointArc((-0.029, 0.09), (0, 0.114)).threePointArc((0.029, 0.09), (0.065, 0.082)).lineTo(0.065, -0.114).lineTo(-0.065, -0.114).close().tran... | 2 | 7 | 0.075115 |
train_598a142e520feeb6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.028), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.063, 0.333).lineTo(-0.063, -1).lineTo(0.062, -1).lineTo(0.063, 0.208).lineTo(0.063, 0.333).lineTo(0.062, 1).lineTo(-0.063, 1).lineTo(-0.063, 0.333).close().extrude(0.054)
result = result.... | 24 | 183 | 0.012104 |
train_40d87c208b7b26e4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.464, 0.007, -0.107), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.536, 0.003).lineTo(0.274, 0.468).lineTo(-0.265, 0.463).lineTo(-0.554, 0.002).lineTo(-0.279, -0.483).lineTo(0.271, -0.457).close().moveTo(0, -0.123).lineTo(0.029, -0.04).lineTo(0.11... | 13 | 115 | 0.274337 |
train_0be4147b87841cc8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.103, 0, -0.42), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.326, 1.732).extrude(0.699)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.397, 0.356, -0.144), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.126).extrude(0.317))
result = result.cut(cq... | 39 | 170 | 1.024209 |
train_f593fd574e284938 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.328, -0.435, -0.119), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.345, 0.421).threePointArc((0.385, 0.404), (0.402, 0.364)).lineTo(0.402, 0.077).threePointArc((0.385, 0.036), (0.345, 0.019)).lineTo(-0.345, 0.019).threePointArc((-0.385, 0.036), ... | 24 | 341 | 1.004775 |
train_e9901db9ef8e5ff1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.004, 0.024, -0.172), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.994, -0.004).lineTo(0.74, 0.731).lineTo(0.015, 0.976).lineTo(-0.709, 0.728).lineTo(-1.003, -0.017).lineTo(-0.741, -0.723).lineTo(0.023, -1.024).lineTo(0.711, -0.738).close().moveTo... | 13 | 194 | 0.469005 |
train_2e3840882af5bd18 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.389, -0.571, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.548, 0.061).lineTo(0, -0.429).lineTo(0, -0.299).lineTo(-0.073, -0.299).lineTo(-0.181, -0.202).lineTo(-0.548, 0.126).lineTo(-0.548, 1.016).lineTo(-0.181, 1.344).lineTo(-0.073, 1.441).l... | 1 | 14 | 0.54591 |
train_26dee53d8152ef26 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.249), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.941, 2).extrude(0.497)
result = result.cut(cq.Workplane(cq.Plane(origin=(0 + 0.208 * math.cos(1.155 + 2 * math.pi * 0 / 4), 0 + 0.208 * math.sin(1.155 + 2 * math.pi * 0 / 4), -0.323), normal... | 19 | 23 | 0.808309 |
train_2659a1285939bc4f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.083, -0.074, 0.231), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.084).workplane(offset=0.11).circle(0.089).workplane(offset=0.151).circle(0.085).workplane(offset=0.111).circle(0.083).workplane(offset=0.141).circle(0.084).workplane(offset=0.152... | 10 | 33 | 0.02882 |
train_9050d942e4a2f3e3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.009, 0.03, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.046, -1.042).lineTo(-0.046, 1.061).lineTo(0.046, 1.061).lineTo(0.046, -1.042).lineTo(-0.046, -1.042).close().workplane(offset=0.027).moveTo(-0.02, -0.455).lineTo(-0.02, 0.473).lineTo(0... | 3 | 9 | 0.003062 |
train_63a3dbdfe3570240 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.01, 0, -0.484), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.614, 0.522).extrude(0.52)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.01, 0, 0.018), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.424, 0.383).extrude(0.25))
result = result.union... | 15 | 79 | 0.341416 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.