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_d705294aa40b49e9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.105, -0.197, -0.1), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.306, -0.103).threePointArc((0.509, 0.101), (0.306, 0.305)).lineTo(-0.509, 0.305).lineTo(-0.509, 0.101).lineTo(-0.102, 0.101).lineTo(0.306, 0.101).lineTo(0.306, -0.103).close().extr... | 8 | 72 | 0.291349 |
train_74c106ddc2d3e7ed | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.455, 0.066, -0.216), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.09, 0.561).extrude(0.432)
result = result.faces('>Z').shell(-0.038)
result = result.union(cq.Workplane(cq.Plane(origin=(0.205, -0.277, -0.089), normal=(0, 0, 1), xDir=(1, 0, 0))).cir... | 5 | 127 | 0.135583 |
train_2b9a43ece57991f3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.077, -0.808, -0.102), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.084).threePointArc((-0.138, 0.081), (-0.276, 0.07)).lineTo(-0.276, 0.637).lineTo(0.276, 0.637).lineTo(0.276, 0.07).threePointArc((0.138, 0.081), (0, 0.084)).close().workplane... | 13 | 98 | 0.314075 |
train_51ba7c634db4885c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.158, 0.385), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.256).sweep(cq.Workplane('YZ').spline([(0.456, -0.096), (0.393, 0.061), (-0.168, 0.064), (-0.416, -0.058), (-0.047, -0.162)]))
result = result.edges().fillet(0.194)
result = result.cut... | 8 | 22 | 0.484467 |
train_811fb3e83a2e7f0d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.059, 0.939, -0.241), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.509, -0.117).lineTo(-0.509, 0.074).lineTo(-0.467, 0.074).lineTo(-0.467, 0.117).lineTo(0.467, 0.117).lineTo(0.467, 0.074).lineTo(0.509, 0.074).lineTo(0.509, -0.117).lineTo(-0.509,... | 20 | 84 | 0.465601 |
train_693e9d46d2a1f4ab | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.208, -0.279), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1, 0.041).lineTo(-1, 0.375).lineTo(1, 0.375).lineTo(1, 0.041).lineTo(-1, 0.041).close().extrude(0.558)
result = result.edges().fillet(0.072)
result = result.cut(cq.Workplane(cq.Plane(o... | 7 | 43 | 0.298746 |
train_ba003504fc604332 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.007, -0.74, 0.425), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.719, 1.031).lineTo(0.719, 0.059).lineTo(-0.719, 0.059).lineTo(-0.719, 1.031).lineTo(0.719, 1.031).close().revolve(angleDegrees=90, axisStart=(0.719, 1.031), axisEnd=(0.719, 0.059))... | 16 | 101 | 1.444982 |
train_e18effad8419dce0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.016, 0.51, 0.081), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.2, -0.527).lineTo(0.2, 0.527).lineTo(-0.2, -0.527).lineTo(0.2, -0.527).close().workplane(offset=0.04).moveTo(0.167, -0.441).lineTo(0.167, 0.441).lineTo(-0.167, -0.441).lineTo(0.167... | 9 | 104 | 0.026265 |
train_5c8e2e0ffad8a91e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.035, 0.471, 0.353), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.184, -0.17).lineTo(-0.184, 0.17).lineTo(-0.085, 0.17).lineTo(-0.024, 0.112).threePointArc((0, 0.102), (0.024, 0.112)).lineTo(0.085, 0.17).lineTo(0.184, 0.17).lineTo(0.184, -0.17).... | 9 | 82 | 0.265993 |
train_16e4190fc73451d0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.931, -0.623, -0.009), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.891, 1.154).threePointArc((0.991, 1.195), (0.95, 1.095)).lineTo(0.95, 0.092).threePointArc((0.908, 0.075), (0.891, 0.033)).lineTo(-0.933, 0.033).lineTo(-0.991, 0.033).lineTo(-0.9... | 21 | 9 | 4.058433 |
train_bf5efbc0d7a04c20 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.03, 0.648), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.899, -0.156).lineTo(0.899, 0.257).lineTo(1, 0.257).lineTo(1, -0.257).lineTo(-1, -0.257).lineTo(-1, 0.257).lineTo(-0.899, 0.257).lineTo(-0.899, -0.156).lineTo(0.899, -0.156).close().ext... | 4 | 59 | 0.345995 |
train_a3163eb0784fb7f7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.226, -0.088, 0.249), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.751).sweep(cq.Workplane('XY').spline([(-0.532, -0.088), (0.08, -0.088), (0.382, 0.028), (0.683, 0.143), (0.985, 0.258)]))
result = result.edges().chamfer(0.12)
result = result.unio... | 8 | 15 | 2.101751 |
train_9e9430bd512def1e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.015, -0.606), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.751, 1.473).extrude(1.211)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.123, 0.313, 0.025), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2.101, 0.389).extrude(0.143))
result = result... | 20 | 264 | 2.085742 |
train_2c55fad1a8b4aa39 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.205, 0.303), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.675, 0.699).lineTo(0.675, 0.183).threePointArc((0.7, -0.002), (0.675, -0.186)).threePointArc((-0.069, -0.699), (-0.7, -0.052)).lineTo(-0.7, 0.049).threePointArc((-0.483, 0.508), (-0.01... | 10 | 66 | 0.59373 |
train_fdf0bfc5351573bd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.228, -0.038, -0.251), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.842, 0.385).extrude(0.396)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.169, -0.092, -0.1), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.024).extrude(0.079))
result = result... | 25 | 133 | 0.106741 |
train_c82e9f66b6a81c07 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.398, -0.004, 0.506), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.003, 0.72).lineTo(-0.716, -0.531).threePointArc((0.001, -0.72), (0.716, -0.528)).lineTo(-0.003, 0.72).close().revolve(angleDegrees=180, axisStart=(-0.003, 0.72), axisEnd=(-0.716,... | 13 | 12 | 1.411929 |
train_a725e9e03735bf2d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.732, -0.315, -0.05), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.25, 0.016).threePointArc((0.124, 0.234), (-0.127, 0.235)).threePointArc((-0.184, 0.144), (-0.25, 0.059)).threePointArc((-0.024, -0.235), (0.25, 0.016)).close().sweep(cq.Workplane... | 8 | 33 | 0.129204 |
train_fd72f5abc3be5845 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.003, 0.007, -0.281), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.184, 0.993).lineTo(0.168, 0.979).lineTo(0.179, 0.158).lineTo(0.867, 0.166).lineTo(0.878, -0.144).lineTo(0.185, -0.186).lineTo(0.178, -1.007).lineTo(-0.181, -0.991).lineTo(-0.16, ... | 9 | 192 | 0.600327 |
train_e7e9880e7abc162c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.469, -0.084, -0.673), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.134, -0.134).lineTo(-0.076, -0.076).lineTo(-0.069, -0.106).lineTo(0.076, -0.076).lineTo(0, 0).lineTo(0.106, -0.069).lineTo(0.076, 0.076).lineTo(0.134, 0.134).lineTo(-0.134, 0.13... | 13 | 93 | 0.209612 |
train_730ef829c0352695 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.595, -0.065, 0.091), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.036, -0.058).lineTo(0.116, -0.058).lineTo(0.147, -0.176).lineTo(-0.147, -0.176).lineTo(-0.147, -0.109).lineTo(-0.104, -0.058).lineTo(-0.045, -0.058).lineTo(-0.023, 0.022).threePo... | 4 | 34 | 0.176145 |
train_5672a7e2a0b5b254 | 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.373, 1.113).extrude(1.564)
result = result.union(cq.Workplane(cq.Plane(origin=(0.059, -0.274, 0.55), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.172).extrude(0.45))
result = result.cut(cq.Workpl... | 4 | 13 | 2.362811 |
train_ee4276bf9ad008fb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.038, -0.173, -0.477), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.125).transformed(offset=(-0.019, 0.028, 0.023), rotate=(60, 0, 0)).circle(0.037).transformed(offset=(-0.042, 0.051, 0.064), rotate=(0, 0, 0)).circle(0.122).transformed(offset=(-0... | 6 | 24 | 0.015965 |
train_466feb27001f4c36 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.335, 0, -0.325), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.33, 1.137).extrude(0.031)
| 1 | 6 | 0.046879 |
train_13b5fe238737ef76 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.27, -0.063, 0.018), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.182, 0.099).lineTo(-0.182, 0.004).lineTo(0.182, 0.004).lineTo(0.182, 0.099).lineTo(-0.182, 0.099).close().extrude(0.154)
result = result.edges().chamfer(0.028)
result = result.uni... | 13 | 150 | 0.079748 |
train_de4860e6f92a6548 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.035, 0.077, -0.47), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.496, 0.045).lineTo(0.496, 0.144).lineTo(-0.496, 0.143).lineTo(-0.496, 0.045).lineTo(0.496, 0.045).close().revolve(angleDegrees=270, axisStart=(0, 0), axisEnd=(0.126, 0))
result = r... | 11 | 89 | 0.045798 |
train_516d178283ac2f58 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.317, 0, 0.531), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.036).sweep(cq.Workplane('XZ').spline([(-0.211, 0.416), (-0.215, 0.468), (-0.251, 0.507), (-0.307, 0.519), (-0.358, 0.498), (-0.386, 0.453), (-0.379, 0.401)]))
result = result.union(cq... | 4 | 17 | 0.002242 |
train_6842b8c7378f0356 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.015, 0, 0.029), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.952, -0.062).lineTo(0.952, 0.062).lineTo(-0.952, 0.062).lineTo(-0.952, 0).lineTo(-0.687, 0).threePointArc((-0.652, -0.034), (-0.618, 0)).lineTo(-0.031, 0).lineTo(0, 0).lineTo(0, -0.019)... | 3 | 16 | 0.083595 |
train_dbe27888ce208b38 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.254, 0.227, -0.2), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.8, 0.086).lineTo(-0.8, 0.086).lineTo(-0.8, 0.364).lineTo(0.8, 0.364).lineTo(0.8, 0.086).close().revolve(angleDegrees=180, axisStart=(0, 0), axisEnd=(0.343, 0))
result = result.edges... | 21 | 140 | 0.440411 |
train_d4a29791aae1db13 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.282, -0.346, 0.29), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.669, 0.064).lineTo(-0.24, 0.064).lineTo(-0.73, 0.195).lineTo(-0.669, 0.422).lineTo(-0.608, 0.649).lineTo(0.503, 0.351).lineTo(0.669, 0.307).lineTo(0.73, 0.29).lineTo(0.669, 0.064).... | 18 | 94 | 0.239777 |
train_3f74aa1cb5a7f649 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.554, 0.048, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.473, 0.35).threePointArc((-0.51, 0.335), (-0.525, 0.298)).lineTo(-0.525, 0.24).lineTo(-0.508, 0.24).lineTo(-0.508, -0.24).lineTo(-0.525, -0.24).lineTo(-0.525, -0.298).threePointArc((-0... | 4 | 32 | 1.307712 |
train_21424c36c549c182 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.551, 0.041, -0.029), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.373, 0.4).extrude(0.355)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.502, 0.116, -0.04), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.079, 0.13).extrude(0.426))
result = resul... | 24 | 171 | 0.608916 |
train_ce813ceebe71748e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.544, -0.253, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.108, -0.157).threePointArc((0.191, 0), (0.108, 0.157)).lineTo(-0.108, 0.157).threePointArc((-0.191, 0), (-0.108, -0.157)).lineTo(0.108, -0.157).close().sweep(cq.Workplane('XY').moveTo... | 8 | 31 | 0.171835 |
train_a9c9e255b669513c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.236, -0.139, -0.136), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.537, 0.714).extrude(0.053)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.281, -0.178, -0.073), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.095, 0.237).lineTo(-0.124, 0.2... | 21 | 135 | 0.108035 |
train_68d6aa71d9f7fefd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.135, -0.644, -0.286), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.934, 0.713).extrude(0.4)
result = result.union(result.mirror('XZ', basePointVector=(0.135, -0.331, -0.286)))
result = result.union(cq.Workplane(cq.Plane(origin=(-0.462, -0.432, -0.2... | 22 | 229 | 0.406126 |
train_1e6a4bd0d040720f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.442, 1, 0.003), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.864, 0.201).lineTo(-0.864, 0.448).threePointArc((-0.716, 0.848), (-0.345, 1.057)).threePointArc((-0.316, 1.061), (-0.287, 1.064)).lineTo(0.803, 1.187).lineTo(0.864, 0.201).lineTo(0.49... | 7 | 46 | 3.616144 |
train_ab8856e9ac47a6c7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.328, 0.109, -0.199), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.035, -0.041).lineTo(-0.015, -0.021).lineTo(-0.013, -0.032).lineTo(0.011, 0.005).lineTo(0.035, 0.041).lineTo(-0.015, 0.031).lineTo(-0.025, 0.029).lineTo(-0.035, 0.035).lineTo(-0.0... | 6 | 91 | 0.043922 |
train_4807e2b8ff7f1256 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.194, 0.085, 0.661), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.26, 0.444).threePointArc((0.181, 0.466), (0.101, 0.444)).threePointArc((0.068, 0.419), (0.043, 0.386)).threePointArc((0.022, 0.307), (0.043, 0.228)).lineTo(-0.339, 0.228).threePoi... | 14 | 152 | 0.56571 |
train_84fdd6980a4e9978 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.178, 0.674, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.716).workplane(offset=0.7).circle(0.818).workplane(offset=0.647).circle(0.785).loft()
result = result.edges().chamfer(0.323)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.836 +... | 23 | 91 | 2.220305 |
train_b4e59de8c20437cd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.183, 0.159, -0.437), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.315, -0.162).lineTo(0.315, -0.162).lineTo(0.315, 0.151).threePointArc((0.014, 0.294), (-0.315, 0.343)).lineTo(-0.315, -0.162).close().extrude(0.508)
result = result.union(cq.Wor... | 23 | 86 | 0.39208 |
train_94ebb30fc64c84c3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.06, 0.262, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.906, 0.906).extrude(2)
result = result.faces('>Z').shell(-0.049)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.03, 0.299, 0.978), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.5... | 6 | 69 | 0.510891 |
train_38d6c3ad354010e5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.188, -0.148, 0.29), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.294, 0.043).threePointArc((0.249, 0.268), (0.122, 0.458)).threePointArc((-0.069, 0.586), (-0.294, 0.63)).lineTo(-0.294, 0.197).threePointArc((-0.235, 0.185), (-0.185, 0.152)).three... | 8 | 85 | 0.273018 |
train_e1ab0c64f3a2fc8f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.022), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.485, 2).extrude(0.07)
result = result.union(cq.Workplane(cq.Plane(origin=(0, -0.8 + 0.16, 0.048), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.055, -0.062).lineTo(-0.052, -0.024).lineTo(-0.0... | 18 | 253 | 0.163023 |
train_e8291638aa78bab0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.83, -0.064, 0.618), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.046, 0.17).lineTo(-0.02, 0.076).lineTo(-0.056, 0.056).lineTo(-0.076, 0.02).lineTo(-0.17, 0.046).lineTo(-0.17, -0.046).lineTo(-0.125, -0.125).lineTo(-0.046, -0.17).lineTo(0.046, -0.... | 6 | 52 | 0.058206 |
train_2bd2128453bfb5a3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.532, -0.658, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.738, 0.514).lineTo(0.824, -0.468).lineTo(-0.824, -0.468).lineTo(-0.735, 0.514).lineTo(-0.551, 0.759).lineTo(-0.367, 1.004).threePointArc((-0.186, 1.05), (0.002, 1.065)).threePointArc(... | 18 | 69 | 2.097251 |
train_b5e94a44f6cc5cbc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.024, -0.702), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.157).sweep(cq.Workplane('YZ').spline([(-0.198, -0.789), (-0.072, -1.008), (0.064, -1.008), (0.19, -0.789), (0.19, -0.554), (0.064, -0.336), (-0.072, -0.336), (-0.198, -0.554)]))
resul... | 16 | 475 | 0.056212 |
train_2829da7c99edb764 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.63), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.25, 1.614).extrude(1.096)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.195, 0.061, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.305).extrude(0.386))
result = result.union(cq.Wor... | 8 | 73 | 0.716887 |
train_d306225555170236 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.033, -0.054, 0.167), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.142, 0.106).lineTo(0.047, 0.106).lineTo(0.047, 0.037).lineTo(0.142, 0.037).lineTo(0.142, -0.079).lineTo(-0.142, -0.079).lineTo(-0.142, 0.106).close().revolve(angleDegrees=180, a... | 9 | 80 | 0.039495 |
train_f37ac06a42fe5ac0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.259, -0.512, -0.128), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.042, 0.782).extrude(0.406)
result = result.union(cq.Workplane(cq.Plane(origin=(0.501, -0.949, 0.044), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.051).extrude(0.056))
result = resul... | 15 | 75 | 0.385015 |
train_fa3cf262f571b436 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.031, 0.226, -0.203), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.084, -0.026).lineTo(-0.084, -0.774).lineTo(0.028, -0.774).lineTo(0.028, 0.116).lineTo(0.084, 0.116).lineTo(0.084, 0.864).lineTo(-0.084, 0.864).lineTo(-0.084, 0.116).lineTo(-0.028,... | 6 | 92 | 0.123218 |
train_43d89682a11fc412 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.314, -0.201, -0.082), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.143, 0.888).lineTo(0.143, -0.686).lineTo(-0.143, -0.686).lineTo(-0.143, 0.888).lineTo(0.143, 0.888).close().extrude(0.401)
result = result.edges().fillet(0.044)
result = result.c... | 13 | 82 | 0.174081 |
train_344347e46e7bc977 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.35, -0.224, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.884, 0.39).lineTo(-0.884, 0.059).lineTo(-0.712, 0.059).lineTo(-0.712, 0.102).lineTo(0.712, 0.102).lineTo(0.712, 0.346).lineTo(0.884, 0.346).lineTo(0.884, 0.39).lineTo(-0.884, 0.39).cl... | 7 | 29 | 0.351869 |
train_ed7b35efbf5cfa53 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.928, -0.072, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1, 1.681).lineTo(-0.172, 1.338).lineTo(0.912, 1.787).threePointArc((1, 1.338), (0.912, 0.889)).threePointArc((0.657, 0.508), (0.276, 0.254)).threePointArc((-0.172, 0.164), (-0.621, 0.2... | 13 | 83 | 1.550205 |
train_b787960d944439f2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.062, 0, -0.529), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.75, 1.393).extrude(1.058)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.638 + 0.2335, 0.247, -1.434), normal=(0, 1, 0), xDir=(1, 0, 0))).moveTo(0.071, 0.066).lineTo(0.071, -0.066)... | 12 | 16 | 2.58497 |
train_26000de224bd3352 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.043, 0.113, 0.237), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.763, 0.021).lineTo(-0.763, 0.204).lineTo(-0.579, 0.204).lineTo(-0.579, 0.119).lineTo(0.763, 0.119).lineTo(0.763, 0.021).lineTo(-0.763, 0.021).close().extrude(0.085)
result = resul... | 20 | 170 | 0.008999 |
train_186f10027321d1a2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.18, 0, -0.504), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.64, 0.679).extrude(0.868)
result = result.union(cq.Workplane(cq.Plane(origin=(0.8, -0.037, -0.135), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.399, 0.199).extrude(0.413))
result = result.... | 12 | 69 | 0.797148 |
train_e6cd06ef83f48c0f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.004, -1, 0.016), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.327, 0.173).lineTo(-0.327, -0.304).lineTo(0.327, -0.304).lineTo(0.327, 0.304).lineTo(-0.327, 0.304).lineTo(-0.327, 0.173).close().sweep(cq.Workplane('YZ').spline([(-0.778, -0.382), (... | 5 | 21 | 0.590389 |
train_f40f13c719eeff59 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.155, 0.108, 0.103), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.049, 0.073).lineTo(-0.022, 0.049).lineTo(0.046, 0.049).lineTo(0.049, 0.025).lineTo(0.049, -0.042).lineTo(-0.049, -0.042).lineTo(-0.049, 0.039).lineTo(-0.049, 0.073).close().extrud... | 19 | 207 | 0.042625 |
train_0b6bf2580d1c111e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.485, -0.02, -0.02), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.03, 0.112).extrude(0.064)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.958, -0.034, 0.01), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.084, 0.034).lineTo(-0.084, 0.048).li... | 9 | 51 | 0.016833 |
train_6275d7686be23fa8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.26, 0, -0.252), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.021, 0.251).threePointArc((-0.127, -0.017), (-0.407, -0.083)).lineTo(0.407, -0.289).lineTo(0.348, 0.289).lineTo(-0.021, 0.251).close().sweep(cq.Workplane('XZ').spline([(-1.5, -0.601),... | 11 | 44 | 0.264949 |
train_d04e925bbb4124f0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.219, -0.542), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.344, 1.562).extrude(1.085)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.192, 0.072, -0.727), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.159, 0.421).extrude(1.302))
result = result... | 18 | 219 | 1.518701 |
train_fbaba3277018ff4d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.078, 0.647, 0.921), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.391).sweep(cq.Workplane('YZ').spline([(0.647, 0.126), (0.86, 0.135), (1.074, 0.197), (1.288, 0.431), (1.501, 0.664), (1.715, 0.726), (1.928, 0.736)]))
result = result.edges().chamf... | 5 | 33 | 0.015335 |
train_620aa647ab50a1ac | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.309, 0.027), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.132, 0.039).lineTo(0.132, 0.007).lineTo(0.009, 0.007).lineTo(0.009, -0.007).lineTo(0.132, -0.007).lineTo(0.132, -0.039).lineTo(-0.132, -0.039).lineTo(-0.132, -0.007).lineTo(-0.009, -... | 2 | 24 | 0.028973 |
train_b8bcbf39332d8e66 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.071, 0.483, 0), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.321, 0.471).lineTo(-0.237, 0.52).lineTo(-0.558, 0.061).lineTo(-0.558, -0.356).lineTo(-0.441, -0.189).lineTo(-0.321, -0.447).lineTo(0.237, -0.495).lineTo(0.512, -0.52).lineTo(0.558, -0... | 2 | 19 | 2.764691 |
train_6950483f6a3ad5a0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.093, 0.286), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.096, 0.622).lineTo(0.096, -0.622).lineTo(-0.096, -0.622).lineTo(-0.096, 0.622).lineTo(0.096, 0.622).close().sweep(cq.Workplane('XZ').spline([(-0.606, 0.175), (-0.409, 0.015), (-0.212... | 5 | 38 | 0.163174 |
train_57dc54640d9a691c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.408), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.948, -0.674).lineTo(0.948, 0.622).lineTo(-0.948, 0.622).lineTo(-0.948, -0.632).lineTo(-1, -0.632).lineTo(-1, 0.674).lineTo(1, 0.674).lineTo(1, -0.674).lineTo(0.948, -0.674).close().workpla... | 1 | 10 | 0.063343 |
train_02e7ff221924d1c4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.851, -0.005, -0.016), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.536, 0.196).lineTo(-0.536, -0.126).lineTo(0.536, -0.126).lineTo(0.536, 0.088).lineTo(0.429, 0.088).lineTo(0.429, 0.196).lineTo(-0.536, 0.196).close().extrude(1.255)
result = res... | 21 | 298 | 0.441725 |
train_8cfceac82d0932ef | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.232, 0.376, -0.379), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.232, 0.432).lineTo(1.019, 0.235).lineTo(-0.756, 0.563).lineTo(-0.768, -0.815).lineTo(-0.411, -1.316).lineTo(-0.417, -0.971).lineTo(-0.223, -1.204).lineTo(0.5, -0.696).close().move... | 8 | 58 | 0.94758 |
train_0bd5e82c2004bac9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.503, -0.02, 0.27), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.623, 0.346).lineTo(-0.73, 0.346).lineTo(-0.73, -0.346).lineTo(0.623, -0.346).lineTo(0.623, -0.165).lineTo(0.73, -0.165).lineTo(0.73, 0.346).lineTo(-0.623, 0.346).close().sweep(cq.W... | 4 | 38 | 1.318621 |
train_988c6e4bffcfc825 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.237, 0.169, -0.189), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.148, 1.126).extrude(0.495)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.548, 0.194, -0.016), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.263).extrude(0.091))
result = resul... | 16 | 100 | 0.576902 |
train_dc8bb8348d6ccd25 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.155, 0.249, -0.015), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(1.015, 0.1).lineTo(1.015, 0.019).lineTo(-0.262, 0.019).lineTo(-0.262, 0.1).lineTo(-0.83, 0.1).lineTo(-1.015, 0.291).lineTo(1.015, 0.291).lineTo(1.015, 0.1).close().extrude(0.498)
re... | 25 | 109 | 0.229279 |
train_8516a59a53db78c6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.489, -0.624, -0.029), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.372, -0.511).lineTo(0.372, 1.658).lineTo(-0.372, -0.511).lineTo(0.372, -0.511).close().extrude(1.249)
result = result.edges().chamfer(0.178)
result = result.cut(cq.Workplane(cq.P... | 10 | 32 | 0.747486 |
train_84c228defee9398f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.945), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.905, 2).extrude(1.891)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.452, -0.827, -0.371), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.431, 0.365).extrude(0.421))
result = result.edges(... | 4 | 52 | 6.929411 |
train_11e33d5c3d297ad0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.245, -0.187, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.144, 0.613).lineTo(-0.144, 0.9).lineTo(-0.717, 0.9).lineTo(-0.717, 1.187).lineTo(-0.13, 1.187).lineTo(-0.13, 0.9).lineTo(0.43, 0.9).lineTo(0.43, 1.187).lineTo(0.717, 1.187).lineTo(0.... | 9 | 64 | 1.126071 |
train_5f399b8ec7729bdb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.004, -0.03, -0.099), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.534, 0.008).lineTo(0.373, 0.375).lineTo(-0.004, 0.537).lineTo(-0.384, 0.381).lineTo(-0.525, -0.008).lineTo(-0.379, -0.382).lineTo(-0.001, -0.512).lineTo(0.367, -0.389).close().mov... | 9 | 73 | 0.155872 |
train_4d7b08c820d12bbb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.72, 0.324, -0.016), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(1.048, 1.376).lineTo(0.76, -0.735).threePointArc((0.123, -0.543), (-0.425, -0.163)).threePointArc((-0.829, 0.368), (-1.048, 0.997)).lineTo(1.048, 1.376).close().extrude(1.44)
result ... | 9 | 46 | 3.353286 |
train_74601c0b0eec2301 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.047, 0.294, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.624, -0.064).threePointArc((-0.637, 0.065), (-0.624, 0.193)).threePointArc((-0.45, 0.515), (-0.128, 0.688)).threePointArc((0, 0.701), (0.128, 0.688)).threePointArc((0.45, 0.515), (0.6... | 7 | 36 | 1.97724 |
train_849942b4c57bac7d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.098, -0.532, -0.506), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.299, 0.359).lineTo(-0.299, 0.335).lineTo(-0.275, 0.335).lineTo(-0.275, -0.101).lineTo(-0.299, -0.101).lineTo(-0.299, -0.125).lineTo(0.299, -0.125).lineTo(0.299, -0.101).lineTo(... | 28 | 380 | 0.954457 |
train_dfc971859d5d3fc4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.246, -0.027, 0.02), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.056, 0.136).lineTo(-0.056, 0.913).lineTo(0.056, 0.913).lineTo(0.056, -0.754).lineTo(-0.056, -0.754).lineTo(-0.056, 0.136).close().extrude(0.092)
result = result.edges().fillet(0.0... | 17 | 116 | 0.019894 |
train_0496ee81fed9c42c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.172, -0.039, -0.348), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.131, 0.831).extrude(0.346)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.096, -0.039, -0.004), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.23).extrude(0.05))
result = resu... | 23 | 95 | 0.812114 |
train_edf6f0c47b5d8b14 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.557, -0.212), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.748, -0.443).lineTo(-0.621, -0.367).lineTo(0.602, 0.367).lineTo(0.729, 0.443).lineTo(0.748, 0.443).lineTo(0.748, 0.295).lineTo(0.729, 0.295).lineTo(0.729, -0.443).lineTo(-0.748, -0.... | 2 | 11 | 0.737247 |
train_5f9fcd1da5887ea7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.432, -0.132, -0.21), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.236, 0.009).lineTo(-0.236, 0.056).lineTo(0.189, 0.056).lineTo(0.189, 0.119).lineTo(0.236, 0.119).lineTo(0.236, 0.009).lineTo(-0.236, 0.009).close().extrude(0.132)
result = result... | 18 | 248 | 0.188851 |
train_d63ab3571d1a2881 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.316, 0.046), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.566, 0.936).lineTo(-0.566, -0.304).lineTo(-0.348, -0.159).lineTo(-0.348, -0.017).threePointArc((-0.317, -0.067), (-0.28, -0.114)).lineTo(-0.014, 0.065).lineTo(0.268, 0.254).threePoint... | 8 | 48 | 1.375467 |
train_3a3b5940ff441a30 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.787, -0.375, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.071, 0.071).lineTo(-0.071, 0.213).lineTo(-0.213, 0.071).lineTo(-0.213, -0.017).lineTo(-0.017, -0.213).lineTo(0.071, -0.213).lineTo(0.213, -0.071).lineTo(0.071, 0.071).close().sweep(c... | 3 | 32 | 0.110546 |
train_188681aa9508cf8e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.233, 0, 0.094), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.116, -0.896).lineTo(-0.116, 1).lineTo(0.116, 1).lineTo(0.116, -0.775).threePointArc((-0.001, -0.864), (0.053, -1)).lineTo(-0.116, -0.896).close().sweep(cq.Workplane('XZ').spline([(-0... | 1 | 7 | 0.17293 |
train_83acc2d5bb613cbf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.482, 1, -0.136), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.553, 0.037).lineTo(-0.553, -0.037).lineTo(0.553, -0.037).lineTo(0.553, 0.037).lineTo(-0.553, 0.037).close().sweep(cq.Workplane('XY').spline([(-0.482, 1.904), (0.118, 2.43), (0.718, ... | 2 | 20 | 0.29457 |
train_87e6aab3effc8f48 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.586, 0, -0.007), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.192, -0.525).lineTo(0.414, 0.303).lineTo(0.192, 0.363).lineTo(-0.414, 0.525).lineTo(0.192, -0.525).close().sweep(cq.Workplane('XZ').spline([(-0.586, -0.007), (-0.455, -0.169), (-0.32... | 6 | 23 | 0.561652 |
train_85ff290622dffcf6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.24, 0.583, -0.39), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.266, 0.302).extrude(0.063)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.219, 0.63, -0.411), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.064, 0.147).extrude(0.022))
result = re... | 22 | 394 | 0.137569 |
train_09c5fbe1bf0d3175 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.237, 0.161, 0.715), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.062, 0.059).lineTo(0.27, 0.059).lineTo(0.27, 0.37).lineTo(-0.27, 0.37).lineTo(-0.27, 0.059).lineTo(0.062, 0.059).close().workplane(offset=0.091).moveTo(0.061, 0.062).lineTo(0.263, ... | 7 | 65 | 0.088803 |
train_9e4400078b438e99 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.842, -0.046, -0.625), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.375, -0.027).lineTo(-0.375, 0.027).lineTo(0.375, 0.027).lineTo(0.375, -0.027).lineTo(-0.375, -0.027).close().sweep(cq.Workplane('XZ').spline([(-0.321, -0.658), (0.199, -0.353),... | 11 | 136 | 0.087483 |
train_5e6ca8c1e2177ec6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1.281, -0.43, -0.303), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.09, 1.67).lineTo(0.696, 0.89).lineTo(0.09, 0.281).lineTo(-0.696, 1.058).lineTo(-0.09, 1.67).close().revolve(angleDegrees=180, axisStart=(-0.09, 1.67), axisEnd=(0.696, 0.89))
resu... | 2 | 9 | 1.136352 |
train_a2fb5c85b00d9669 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.388, -0.61, -0.112), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.693, 0.037).lineTo(0.693, 0.419).threePointArc((0.794, 0.665), (1.04, 0.767)).lineTo(1.112, 0.767).lineTo(1.112, 1.183).lineTo(1.04, 1.183).threePointArc((0.681, 1.094), (0.406, 0... | 7 | 60 | 0.224342 |
train_7d44854b2f0345c2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.308, -0.137, 0.11), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.204, 0.025).lineTo(0.204, 0.025).lineTo(0.204, 0.433).lineTo(-0.204, 0.433).lineTo(-0.204, 0.042).lineTo(0.009, 0.042).lineTo(0.009, 0.025).lineTo(-0.204, 0.025).close().extrude(0.... | 30 | 231 | 0.356882 |
train_23fa0ee0e835d063 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.21, 0.237, -0.311), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.433, 0.836).extrude(0.488)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.21, 0.464, -0.213), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.11, 0.194).threePointArc((-0.206, 0.0... | 28 | 164 | 0.433426 |
train_11c596a99a771e7a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.038, -0.068, -0.742), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.307, -0.63).threePointArc((0, -0.937), (0.307, -0.63)).lineTo(0.307, 0.761).threePointArc((0, 1.068), (-0.307, 0.761)).lineTo(-0.307, -0.63).close().extrude(0.591)
result = resul... | 25 | 319 | 0.685998 |
train_4980d834faeb1553 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.389, 0, 0.373), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, 1).lineTo(0.223, 1).lineTo(0.223, 0).lineTo(0.385, -0.721).lineTo(0.446, -1).lineTo(-0.446, -1).lineTo(-0.446, -0.721).lineTo(0, -0.721).lineTo(0, 1).close().sweep(cq.Workplane('XZ')... | 1 | 10 | 0.36935 |
train_31a77f858258c1cd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.048, 0.021), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.965, 0.072).lineTo(-0.965, -0.072).lineTo(0.488, -0.072).threePointArc((0.737, -0.035), (0.965, 0.072)).lineTo(0.488, 0.072).lineTo(0.07, 0.072).lineTo(-0.965, 0.072).close().sweep(cq... | 1 | 6 | 0.055869 |
train_b331a63e0af80d68 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.384, -0.011, -0.768), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.232, 1.036).extrude(1.097)
result = result.union(cq.Workplane(cq.Plane(origin=(0.046, 0.17, 0.553), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.215, 0.066).lineTo(0.215, -0.359).l... | 2 | 11 | 1.609208 |
train_ae9b74999a313ebb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.003, 0, 0.124), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1.003, 0.193).threePointArc((-0.95, -0.024), (-0.803, -0.193)).lineTo(1.003, -0.193).lineTo(1.003, 0.193).lineTo(-1.003, 0.193).close().extrude(0.233)
result = result.edges().chamfer(0... | 12 | 82 | 0.138649 |
train_1a2c1f6f9b8af2ca | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.289, -0.402), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.338, 0.141).threePointArc((-0.219, 0.209), (-0.286, 0.089)).threePointArc((0, -0.015), (0.286, 0.089)).threePointArc((0.313, 0.115), (0.338, 0.141)).threePointArc((0.443, 0.428), (0... | 11 | 130 | 1.826857 |
train_aaa5dad25c678514 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.002, 0.12, -0.275), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.998, -0.591).lineTo(1.002, -0.597).lineTo(0.993, 0.591).lineTo(-0.975, 0.59).close().moveTo(-0.498, -0.115).lineTo(-0.132, -0.118).lineTo(-0.131, 0.116).lineTo(-0.499, 0.117).clos... | 9 | 108 | 0.365069 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.