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_002bf170c92b5004 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.344, 0.14, 0.042), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.312, 0.856).extrude(0.957)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.743, 0.14, 0.493), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.542, 0.547).extrude(0.055))
result = resul... | 20 | 123 | 1.007169 |
train_040fb284b5ca47ca | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.391).workplane(offset=0.333).circle(0.5).workplane(offset=0.301).circle(0.313).workplane(offset=0.344).circle(0.473).workplane(offset=0.346).circle(0.488).workplane(offset=0.355).circle(0.46).... | 8 | 31 | 1.142838 |
train_8e20e4d4e08aa2ce | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.397, -0.005, -0.468), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.397, 0.151).lineTo(-0.397, 0.027).lineTo(0.397, 0.027).lineTo(0.397, 0.151).lineTo(-0.397, 0.151).close().revolve(angleDegrees=90, axisStart=(-0.397, 0.151), axisEnd=(-0.397, 0.... | 24 | 114 | 0.15832 |
train_6d4c76e8cdf6e087 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.421, 0.775, 0.193), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.806, 1.211).threePointArc((-0.634, -0.477), (0.806, 0.421)).threePointArc((0.246, 1.319), (-0.806, 1.211)).close().extrude(1.454)
result = result.edges().chamfer(0.241)
result = r... | 4 | 19 | 4.239818 |
train_de4c115024bda375 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.448, 0.585, 0.143), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.213, 0.336).lineTo(-0.213, 0.661).lineTo(0.213, 0.661).lineTo(0.213, 0.336).lineTo(-0.213, 0.336).close().revolve(angleDegrees=270, axisStart=(-0.213, 0.336), axisEnd=(-0.213, 0.6... | 11 | 90 | 0.128389 |
train_eeb1ca5b5ef469a9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.391, -0.551, -0.101), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.143).transformed(offset=(0.143, -0.11, 0.006), rotate=(45, 0, 0)).circle(0.376).transformed(offset=(0.287, -0.059, 0.035), rotate=(0, 0, 60)).circle(0.34).transformed(offset=(0.4... | 3 | 10 | 0.062542 |
train_43940ef85ee90437 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.056, -0.108, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.888, 0.109).lineTo(-1.018, 0.109).lineTo(-0.927, 0.018).threePointArc((-0.91, 0.007), (-0.888, 0.003)).lineTo(0.888, 0.003).threePointArc((0.91, 0.007), (0.927, 0.018)).lineTo(1.018,... | 6 | 37 | 0.039805 |
train_4f39fae894df8513 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.375, 0, 1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.326, -0.309).lineTo(-0.326, -0.297).lineTo(0.319, 0.309).lineTo(0.326, 0.302).lineTo(-0.326, -0.309).close().sweep(cq.Workplane('XZ').spline([(0.375, 0.211), (0.32, 0.419), (0.082, 0.558),... | 3 | 9 | 0.012396 |
train_087d76758b820fb7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.24, -0.647, -0.065), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.052, 0.045).lineTo(0.104, -0.045).lineTo(0.052, -0.135).lineTo(0, -0.045).lineTo(-0.052, 0.045).lineTo(-0.104, 0.135).lineTo(0.104, 0.135).lineTo(0.052, 0.045).close().sweep(cq.Wor... | 5 | 34 | 0.104157 |
train_fa3d6a22e2a29013 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.411, -0.348, -0.456), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.544, -0.116).lineTo(0.544, -0.116).lineTo(0.544, 0).lineTo(-0.412, 0).lineTo(-0.544, 0.116).lineTo(-0.544, -0.116).close().sweep(cq.Workplane('XY').spline([(-0.411, 0.044), (-0... | 5 | 57 | 0.23509 |
train_c7f93362dab29aec | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.593, -1.284, 0.001), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.98, 1.099).lineTo(-0.98, 0.477).lineTo(0.915, 0.477).lineTo(0.98, 2.092).lineTo(0.915, 2.092).threePointArc((0.599, 2.048), (0.308, 1.916)).lineTo(-0.98, 1.099).close().workplane... | 9 | 82 | 1.987215 |
train_29711a57e93b1ebb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.256, -0.76, -0.046), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.281, 1.76).lineTo(-0.281, -0.039).lineTo(0.281, -0.039).lineTo(0.281, 1.76).lineTo(-0.281, 1.76).close().extrude(0.511)
result = result.union(cq.Workplane(cq.Plane(origin=(0.111,... | 9 | 50 | 0.571132 |
train_26105e2f92590270 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.2, 0.135, -0.097), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.062, 0.091).lineTo(0.184, 0.02).lineTo(0.062, -0.051).lineTo(0.062, -0.193).lineTo(-0.062, -0.122).lineTo(-0.123, -0.086).lineTo(-0.184, -0.051).lineTo(-0.184, 0.233).lineTo(-0.062,... | 21 | 317 | 0.312256 |
train_ae5daf6972dbfc01 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.216, 0.075, -0.361), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.567, 0.798).extrude(0.723)
result = result.faces('>Z').shell(-0.082)
result = result.union(cq.Workplane(cq.Plane(origin=(0.776, 0.24, -0.289), normal=(0, 0, 1), xDir=(1, 0, 0))).rec... | 6 | 21 | 0.391455 |
train_28855e74c4e4f80c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.05, -0.505), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.715, 1.613).extrude(1.009)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.455, 0.163, -0.024), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.931, 0.481).threePointArc((0.691, -0.097),... | 14 | 59 | 2.639358 |
train_4e992ceaaa2fae6f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.084, 0.033, 0.084), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.934, 0.006).lineTo(-0.934, 0.059).lineTo(0.894, 0.059).lineTo(0.934, 0.006).lineTo(-0.934, 0.006).close().extrude(0.203)
result = result.edges().fillet(0.017)
result = result.cut(... | 12 | 67 | 0.018724 |
train_6494ae63af76f812 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.025, -0.667, 0.036), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.609, -0.01).lineTo(-0.609, 0.512).lineTo(-0.516, 0.512).lineTo(-0.188, 0.141).lineTo(0.218, 0.386).lineTo(0.609, 0.624).lineTo(0.609, -0.428).threePointArc((0.413, -0.624), (0.218... | 4 | 58 | 0.80387 |
train_faa22b4e817f8107 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.321, -0.916, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.781, 1.421).lineTo(-1.023, 0.048).lineTo(1.023, 0.048).lineTo(0.781, 1.421).lineTo(-0.781, 1.421).close().extrude(0.642)
result = result.edges().chamfer(0.132)
result = result.union(... | 9 | 83 | 1.371893 |
train_f12230476ee18933 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.467, -0.488, -0.063), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.557, -0.281).lineTo(0.557, 0.834).lineTo(-0.557, 0.834).lineTo(-0.557, -0.281).lineTo(0.557, -0.281).close().revolve(angleDegrees=90, axisStart=(0.557, -0.281), axisEnd=(0.557, 0... | 16 | 102 | 0.957674 |
train_9a4563e1bbb625a5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.24, 0.22, -0.093), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.229, 0.475).lineTo(-0.199, 0.475).lineTo(-0.199, 0.445).lineTo(0.229, 0.445).lineTo(0.229, 0.475).lineTo(0.229, -0.29).lineTo(0.229, -0.259).lineTo(0.199, -0.259).lineTo(0.199, -0.... | 4 | 33 | 0.725482 |
train_fefbe9eaf48184e3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.035, -0.436, -0.501), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.129, 1.129).extrude(1.154)
result = result.faces('<X').shell(-0.061)
result = result.union(cq.Workplane(cq.Plane(origin=(0.074, -0.362, -0.653), normal=(0, 0, 1), xDir=(1, 0, 0))).... | 5 | 23 | 0.515187 |
train_95b8a11fdb2932f3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.044, 0.046, -0.884), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.528, 1.696).extrude(1.484)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.524, -0.41, 0.597), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.023).extrude(0.19))
result = result... | 7 | 47 | 3.860252 |
train_bc80d0ef34f29c38 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.687, 0.029, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.189, 1.002).threePointArc((0.079, 0.892), (0.189, 0.625)).lineTo(0.189, 0.373).lineTo(0.159, 0.373).lineTo(0.159, 0.498).threePointArc((0.176, 0.56), (0.182, 0.625)).threePointArc((0.... | 2 | 32 | 0.048254 |
train_eb7de0a2dffedeea | 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.178, 0.643).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.258, 0.19, 0.135), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.139).extrude(0.37))
result = result.cut(cq.Workplane(cq.... | 5 | 21 | 1.40878 |
train_f5b5f4a806a4e2dd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.221, -0.118, 0.095), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, 0.096).lineTo(0.684, 0.779).lineTo(-0.684, 0.779).lineTo(0, 0.096).close().revolve(angleDegrees=270, axisStart=(0, 0), axisEnd=(0.261, 0))
result = result.cut(cq.Workplane(cq.Plan... | 9 | 89 | 1.212012 |
train_2cee600cab415d1d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.261, 0.307, -0.394), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.269, 0.456).lineTo(-0.769, 0.277).lineTo(-0.506, -0.615).lineTo(-0.252, -0.81).lineTo(0.739, -0.14).close().moveTo(-0.437, 0.243).lineTo(-0.12, 0.249).lineTo(-0.122, 0.194).lineTo(... | 7 | 99 | 0.629911 |
train_c190253f0b090ba4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.779, -0.644, 0.012), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.001, -0.042).lineTo(-0.072, -0.019).lineTo(-0.088, 0.034).lineTo(-0.076, 0.034).lineTo(-0.078, 0.042).lineTo(-0.07, 0.042).lineTo(-0.07, 0.034).lineTo(-0.001, 0.034).lineTo(-0.00... | 3 | 26 | 0.121122 |
train_6ff2dbd6895bf536 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.059, -0.45, -0.184), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.303, 0.64).extrude(0.368)
result = result.union(cq.Workplane(cq.Plane(origin=(0.084, -0.378, 0.179), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.029).extrude(0.06))
result = result.u... | 16 | 247 | 0.105679 |
train_7066b8b8ec2574f3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.697, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.266).workplane(offset=0.322).circle(0.234).workplane(offset=0.317).circle(0.202).workplane(offset=0.411).circle(0.169).workplane(offset=0.35).circle(0.137).workplane(offset=0.297).circle(0... | 6 | 21 | 0.191051 |
train_b37f26f5335da1ea | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.312, 0, 0.597), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.774).workplane(offset=0.215).circle(0.708).workplane(offset=0.288).circle(0.643).workplane(offset=0.254).circle(0.578).workplane(offset=0.22).circle(0.512).workplane(offset=0.216).circ... | 5 | 26 | 0.411935 |
train_529f012d8c6ad8f8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.671), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.068, 1.51).extrude(1.671)
result = result.union(cq.Workplane(cq.Plane(origin=(0, -0.604 + 0.1205, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.046, 0.064).lineTo(0.013, 0.031).lineTo(0.0... | 14 | 150 | 1.085746 |
train_dba546bedc551a79 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.56), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.318).extrude(1.12)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.446, -0.092, -0.078), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.354).extrude(0.418))
result = result.cut(cq.Workpla... | 22 | 170 | 1.591 |
train_624b4fb22f0f9b57 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.258, -0.366), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.357, -0.742).lineTo(-0.357, -0.329).lineTo(-0.715, -0.123).lineTo(-0.357, 0.496).lineTo(-0.357, 0.742).lineTo(0.715, 0.742).lineTo(0.715, 0.289).lineTo(0, -0.123).lineTo(0.357, -0.74... | 6 | 88 | 1.172359 |
train_cc518974894b67d8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.641, -0.732, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.822, 0.28).lineTo(0.822, -0.268).lineTo(-0.822, 1.732).lineTo(0.822, 1.732).lineTo(0.822, 0.28).close().extrude(1.568)
result = result.union(cq.Workplane(cq.Plane(origin=(0.779, 0.305... | 9 | 65 | 1.760771 |
train_7ec21ba6be4a2ffd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.735, -0.16, -0.13), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.85, 0.029).threePointArc((-0.874, -0.175), (-0.85, -0.378)).lineTo(0.85, -0.378).threePointArc((0.874, -0.175), (0.85, 0.029)).threePointArc((0.795, 0.187), (0.711, 0.333)).threeP... | 3 | 31 | 2.305834 |
train_509b635b4c2de288 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.499, -0.034, -0.579), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.314, -0.319).lineTo(-0.421, -0.319).lineTo(-0.421, 0.082).lineTo(0.271, 0.082).lineTo(0.271, 0.149).lineTo(0.042, 0.267).lineTo(0.042, 0.401).lineTo(0.421, 0.215).lineTo(0.421, ... | 9 | 102 | 0.239354 |
train_8be3c722e2189bc6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.354, 0.002, -0.5), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.5, 0.09).lineTo(0.5, 0.29).lineTo(0.239, 0.29).lineTo(0.239, 0.618).lineTo(-0.239, 0.618).lineTo(-0.239, 0.29).lineTo(-0.5, 0.29).lineTo(-0.5, 0.09).lineTo(0.5, 0.09).close().revolv... | 15 | 77 | 0.721334 |
train_c9414d703269ee50 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.307, 0.343, 0.036), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.84, 0.898).extrude(0.142)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.307, 0.343, 0.14), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.118).moveTo(-0.037, -0.015).lineTo(0.03,... | 11 | 69 | 1.101613 |
train_aa9689dca97fca6d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.008, -0.518, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.595, 1.227).threePointArc((-0.835, 0.404), (-0.136, -0.093)).lineTo(-0.136, -0.381).threePointArc((0.835, 0.31), (0.502, 1.453)).lineTo(0.324, 1.227).threePointArc((0.379, 0.625), (... | 7 | 57 | 2.521135 |
train_a280cbea7d967f93 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.227, 0.079, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.101, 0.202).lineTo(0.101, 0.152).threePointArc((0.137, 0.137), (0.152, 0.101)).lineTo(0.152, 0.189).threePointArc((0.189, 0.152), (0.202, 0.101)).lineTo(0.202, -0.101).threePointArc((0... | 3 | 41 | 0.051953 |
train_a422a8fb8cc55691 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.014, 0.318, -0.584), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.857, 0.857).extrude(0.857)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.247, -0.173, -0.269), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.073, 0.139).extrude(0.089))
result ... | 13 | 38 | 0.846531 |
train_15219b92ac92769a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.493, 0, -0.17), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.154, -0.096).threePointArc((-0.104, -0.148), (-0.039, -0.177)).threePointArc((0.002, -0.181), (0.042, -0.176)).threePointArc((0.109, -0.145), (0.158, -0.088)).threePointArc((0.174, -... | 2 | 16 | 0.16176 |
train_ceabf7f713c3e40f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.909, -0.706, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.798, -0.366).lineTo(1.074, -0.116).lineTo(-0.571, 1.704).lineTo(-1.074, 1.704).lineTo(0.798, -0.366).close().extrude(1.817)
result = result.edges().chamfer(0.109)
| 2 | 26 | 1.672195 |
train_65e4305de44b5d36 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.37, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.632, -0.316).threePointArc((-0.436, 0.142), (0.031, 0.316)).threePointArc((0.459, 0.12), (0.632, -0.316)).lineTo(-0.632, -0.316).close().sweep(cq.Workplane('XY').spline([(-0.488, 0.37), (... | 2 | 17 | 0.521955 |
train_4dce324cb52c1249 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.291, 0, -0.293), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.419, 0.429).extrude(0.439)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.682, -0.016, -0.205), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.636, 0.128).extrude(0.19))
result = resu... | 10 | 63 | 0.239256 |
train_a46e323f9571c11f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1.114, 0, 0.093), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.437, 1.114).lineTo(-0.562, 1.114).lineTo(-0.562, 0.114).lineTo(0.562, 0.114).lineTo(0.562, 0.239).lineTo(-0.312, 0.239).lineTo(-0.312, 1.114).lineTo(-0.437, 1.114).close().revolve(ang... | 2 | 9 | 1.120843 |
train_22ff0f5c29f6f431 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.055, 1, -0.21), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.093, 0.246).lineTo(-0.093, 0.059).lineTo(0.093, 0.059).lineTo(0.093, -0.059).lineTo(0.398, -0.059).lineTo(0.398, -0.246).lineTo(-0.398, -0.246).lineTo(-0.398, 0.246).lineTo(-0.093, 0.... | 10 | 58 | 0.349255 |
train_50943e539dd59f99 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.177, -0.132, -0.149), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.082, 0.041).lineTo(-0.06, 0.019).lineTo(-0.022, -0.019).lineTo(0, -0.041).lineTo(0.022, -0.019).lineTo(0.06, -0.019).lineTo(0.06, 0.019).lineTo(0.082, 0.041).lineTo(-0.082, 0.0... | 5 | 68 | 0.015579 |
train_56a10a7e3806a910 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.5, -0.527, 0.5), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.5, 0.026).lineTo(-0.5, 0.029).lineTo(-0.497, 0.029).lineTo(-0.497, 1.024).lineTo(-0.5, 1.024).lineTo(-0.5, 1.027).lineTo(0.5, 1.027).lineTo(0.5, 1.024).lineTo(0.497, 1.024).lineTo(0.4... | 4 | 50 | 0.858846 |
train_65ff5bbbdb8bd1e5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.015, 0, -0.006), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.214).workplane(offset=0.452).circle(0.199).workplane(offset=0.564).circle(0.2).loft()
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.271, 0.084, -0.067), normal=(0, 0, 1), xDir=... | 12 | 46 | 0.070088 |
train_53e500c471844145 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.063, 0.109, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.608, 0.344).lineTo(0.603, -0.344).threePointArc((-0.002, -0.342), (-0.608, -0.336)).lineTo(0.608, 0.344).close().sweep(cq.Workplane('XY').spline([(-0.409, 0.109), (0.221, 0.109), (0.378... | 8 | 39 | 0.289556 |
train_a8a44a7a4269fa5c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.014, -0.635, 0.586), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.6, -0.365).lineTo(-0.6, 0.635).lineTo(0, 1.635).lineTo(0.6, 1.635).lineTo(0.6, -0.365).lineTo(-0.6, -0.365).close().revolve(angleDegrees=90, axisStart=(-0.6, -0.365), axisEnd=(-0.... | 6 | 47 | 1.775435 |
train_90701d0622e05585 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.22), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.45).extrude(0.441)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.22, -1.52), normal=(1, 0, 0), xDir=(0, 1, 0))).circle(0.105).moveTo(-0.04, -0.023).lineTo(-0.054, -0.023).lineTo(-... | 10 | 74 | 0.822108 |
train_b978d8e105c18628 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.216), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.333, 0.667).threePointArc((0, 1), (0.333, 0.667)).lineTo(0.333, -1).lineTo(-0.333, -1).lineTo(-0.333, 0.667).close().extrude(0.431)
result = result.edges().chamfer(0.146)
result = result.... | 7 | 38 | 0.367776 |
train_150a9796675889cf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.133, -0.609), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.861, 1.733).extrude(1.219)
result = result.faces('>Z').shell(-0.077)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.336, -0.861, -0.287), normal=(0, 0, 1), xDir=(1, 0, 0))).circl... | 3 | 14 | 0.873726 |
train_3f8a350fcecd5292 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.317, -0.28, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.765, 0.515).threePointArc((-1, 0.28), (-0.765, 0.045)).lineTo(-0.647, 0.045).lineTo(-0.647, 0.068).lineTo(-0.588, 0.068).lineTo(-0.588, 0.045).lineTo(-0.471, 0.045).lineTo(-0.412, 0.0... | 11 | 86 | 0.449828 |
train_5a6debe547cf49ca | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.348, 0.232, -0.827), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.178, 0.353).lineTo(0.178, 0.111).lineTo(-0.178, 0.111).lineTo(-0.178, 0.353).lineTo(0.178, 0.353).close().revolve(angleDegrees=180, axisStart=(0.178, 0.353), axisEnd=(0.178, 0.111)... | 10 | 58 | 0.070027 |
train_d7792b5a32f9675c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.268, -0.238, 0.13), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.416, -0.95).lineTo(0.416, 1.427).lineTo(-0.416, 0.238).lineTo(0.416, -0.95).close().workplane(offset=0.133).moveTo(0.381, -0.85).lineTo(0.381, 1.327).lineTo(-0.381, 0.238).lineTo(0... | 10 | 83 | 0.216952 |
train_a6b11b6b0bf21fcc | 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.93, -0.93).lineTo(0.523, -0.523).lineTo(-0.478, -0.736).lineTo(-0.523, -0.523).lineTo(-0.93, -0.93).lineTo(-0.93, 0.93).lineTo(-0.523, 0.523).lineTo(0.478, 0.736).lineTo(0, 0).lineTo(0.736, -0... | 2 | 16 | 3.655846 |
train_995eda68141abcd8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.401, 0.269, -0.161), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.599, -0.008).lineTo(0.323, 0.517).lineTo(-0.286, 0.509).lineTo(-0.607, 0.017).lineTo(-0.325, -0.508).lineTo(0.28, -0.538).close().moveTo(-0.151, 0.255).lineTo(0.147, 0.256).lineTo(... | 17 | 183 | 0.456638 |
train_ecb05982db922e8e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.294, 0, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 1.294).lineTo(-0.286, 1.294).lineTo(-0.286, 0.294).threePointArc((-0.202, 0.092), (0, 0.008)).lineTo(0, -0.706).lineTo(0.286, -0.706).lineTo(0.286, 1.294).lineTo(0, 1.294).close().revolve... | 3 | 15 | 0.189326 |
train_b6aaf45e034e3e83 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.073, -0.006, 0.155), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.298, 0.261).extrude(0.228)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.193, -0.006, 0.269), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.092, 0.235).lineTo(-0.092, 0.235).... | 7 | 58 | 0.055709 |
train_10eb40e63a40c21e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.46, -0.178, -0.075), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.614, 0.434).lineTo(0.204, 0.843).lineTo(-0.614, 0.843).lineTo(-0.614, 0.024).lineTo(-0.204, 0.024).lineTo(-0.204, 0.434).lineTo(0.614, 0.434).close().extrude(0.389)
result = result... | 15 | 244 | 1.218618 |
train_209ac5f2900857f3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.858, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.893).workplane(offset=0.242).circle(0.248).workplane(offset=0.312).circle(0.391).workplane(offset=0.311).circle(0.875).workplane(offset=0.3).circle(0.998).workplane(offset=0.306).circle(0.... | 7 | 34 | 2.468101 |
train_1401949660445d9e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.436, -0.533, -0.533), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.533, 0.173).lineTo(0.533, 0.972).lineTo(-0.533, 0.972).lineTo(-0.533, 0.173).lineTo(0.533, 0.173).close().revolve(angleDegrees=180, axisStart=(0.533, 0.173), axisEnd=(0.533, 0.97... | 6 | 40 | 0.258935 |
train_95395ba44665dfad | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.257, 0.185, -0.757), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.487, 1.336).extrude(1.199)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.51, 0.698, -0.223), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.682, 0.327).extrude(0.215))
result = re... | 9 | 79 | 2.248797 |
train_44aa68d01acddc63 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.479, 0.629, 0.064), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.843, 0.331).lineTo(-0.843, 1.28).lineTo(0.843, 1.28).lineTo(0.843, 0.099).lineTo(-0.843, 0.099).lineTo(-0.843, 0.331).close().extrude(0.958)
result = result.edges().chamfer(0.233)... | 18 | 53 | 1.536949 |
train_83eedf21228653ad | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.207, 0.266, -0.465), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.353, 1.468).extrude(0.729)
result = result.union(cq.Workplane(cq.Plane(origin=(0.449, -0.705, -0.193), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.27, 0.59).extrude(0.351))
result = re... | 16 | 115 | 0.987682 |
train_78db8c29df691d65 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.006, 0, -0.757), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.233, 0.472).extrude(0.652)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.006, 0, -0.137), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.166, 0.304).extrude(0.518))
result = result.... | 12 | 80 | 0.096309 |
train_15d60b60b029a487 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.53, 0.164), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, -0.363).lineTo(-0.023, -0.363).lineTo(0, -0.402).lineTo(0.023, -0.363).lineTo(0.453, 0.383).lineTo(0.465, 0.402).lineTo(-0.465, 0.402).lineTo(-0.453, 0.383).lineTo(0.43, 0.383).lineTo(... | 1 | 11 | 0.062726 |
train_50809d36242fa968 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.11, -0.365, 0.104), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.357, 0.714).lineTo(-0.357, 0.001).lineTo(-0.178, -0.357).lineTo(0.178, -0.357).lineTo(0.357, 0.001).lineTo(0.357, 0.714).lineTo(-0.357, 0.714).close().workplane(offset=0.071).move... | 14 | 116 | 0.376908 |
train_814b3a9fcad42b3b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.782, -0.262, -0.008), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.636, 0.719).threePointArc((0.096, 1.271), (-0.636, 1.029)).lineTo(-0.636, 0.095).threePointArc((0.246, -0.093), (0.636, 0.719)).close().workplane(offset=0.36).moveTo(0.351, 0.661... | 12 | 46 | 1.268984 |
train_e936852142bd9ff9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.081, -0.148), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1, 0.006).lineTo(-1, 0.188).lineTo(1, 0.188).lineTo(1, 0.006).lineTo(-1, 0.006).close().extrude(0.295)
result = result.edges().fillet(0.061)
result = result.union(cq.Workplane(cq.Plane... | 13 | 68 | 0.098917 |
train_94244278ea2764cf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.407, 0.693, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.812, 0.593).lineTo(-0.568, 0.211).lineTo(-0.329, -0.159).lineTo(0.113, -0.593).lineTo(0.812, -0.4).lineTo(0.47, -0.238).lineTo(0.168, -0.096).lineTo(0.034, 0.559).lineTo(-0.812, 0.593... | 3 | 16 | 0.327081 |
train_be4f13dc866776b4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.301, -0.232), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, -0.699).lineTo(0.136, -0.236).lineTo(0.606, -0.35).lineTo(0.272, 0).lineTo(0.606, 0.35).lineTo(0.136, 0.236).lineTo(0, 0.699).lineTo(-0.136, 0.236).lineTo(-0.606, 0.35).lineTo(-0.272... | 8 | 65 | 0.203173 |
train_f7f19cca9854f074 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.183, -0.097, 0.077), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.75, 0.188).threePointArc((-0.396, 0.687), (0.186, 0.875)).threePointArc((0.75, -0.875), (-0.75, 0.188)).close().workplane(offset=0.105).moveTo(-0.77, 0.193).threePointArc((-0.40... | 5 | 23 | 0.709357 |
train_fde9ec66d7a02f1e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.297, 0, -0.151), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.407, 0.96).extrude(0.257)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.297, 0, -0.189), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.666, 0.449).extrude(0.334))
result = result.uni... | 6 | 22 | 0.292052 |
train_9dc785c0fdc86bfa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.002, 0.055), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, -0.5).threePointArc((0.14, -0.554), (0.205, -0.688)).threePointArc((0, -0.912), (-0.205, -0.688)).lineTo(-0.091, 0.649).threePointArc((0, 0.912), (0.091, 0.649)).threePointArc((0.048... | 8 | 68 | 0.03615 |
train_367bec56c641fe3d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.31, -0.325, -0.445), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.37, 1.351).extrude(1.426)
result = result.faces('>Z').shell(-0.099)
result = result.union(cq.Workplane(cq.Plane(origin=(0.686, -0.681, -0.981), normal=(0, 0, 1), xDir=(1, 0, 0))).cir... | 23 | 37 | 1.151034 |
train_bdf75460620eee38 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.214, 0.561, 0.13), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.241, 0.351).lineTo(-0.088, 0.22).lineTo(-0.088, 0.351).lineTo(0.228, -0.051).lineTo(0.241, -0.04).lineTo(0.236, -0.034).lineTo(-0.088, 0.368).lineTo(-0.101, 0.357).lineTo(-0.096, 0... | 10 | 116 | 0.081401 |
train_b5547a4e748f320f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.032, -0.374, -0.068), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.076, 0.824).lineTo(-0.076, -0.553).lineTo(0.073, -0.553).lineTo(0.076, -0.45).lineTo(0.029, -0.448).lineTo(0.073, 0.824).lineTo(-0.076, 0.824).close().workplane(offset=0.081).mo... | 8 | 107 | 0.239949 |
train_f2ece02b2128b461 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.127, 0.382), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.256, 0.369).lineTo(0.256, 0.301).lineTo(-0.256, 0.301).lineTo(-0.256, 0.369).lineTo(-0.302, 0.369).lineTo(-0.37, 0.301).lineTo(-0.425, 0.245).lineTo(-0.425, -0.369).lineTo(-0.196, -0.3... | 9 | 63 | 0.143697 |
train_f59cff422bea65a1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.05, -0.003), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.986, 0.268).threePointArc((0, -0.268), (0.986, 0.268)).lineTo(0.938, 0.268).threePointArc((0, -0.228), (-0.938, 0.268)).lineTo(-0.986, 0.268).close().sweep(cq.Workplane('YZ').spline([... | 2 | 10 | 0.001704 |
train_682be5e6bdd602ca | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.005, 0.004, -0.016), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.284, 0.852).threePointArc((-0.223, 0.548), (-0.284, 0.244)).lineTo(0.185, 0.05).threePointArc((0.284, 0.548), (0.185, 1.047)).lineTo(-0.284, 0.852).close().revolve(angleDegrees=2... | 10 | 50 | 0.863905 |
train_76a525b6f69120b6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.842, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.659, 0.117).threePointArc((-0.891, 0.213), (-0.989, 0.446)).lineTo(-0.989, 1.567).lineTo(0.989, 1.567).lineTo(0.989, 0.117).lineTo(-0.659, 0.117).close().extrude(1.724)
result = result.ed... | 13 | 60 | 4.34557 |
train_63548bc63712086d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.069, -0.646), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.042, 0.026).threePointArc((-0.058, 0.021), (-0.074, 0.014)).threePointArc((-0.085, -0.021), (-0.05, -0.032)).threePointArc((0, -0.02), (0.05, -0.032)).threePointArc((0.085, -0.021), (... | 3 | 20 | 0.073169 |
train_1fcda412c7b0d97c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.437), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.261).extrude(0.647)
result = result.union(cq.Workplane(cq.Plane(origin=(0.1, 0.063, 0.207), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.8, 1.135).extrude(0.078))
result = result.union(cq.Wo... | 18 | 180 | 1.372284 |
train_842818b80a76e0d8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.505, -0.036, -0.535), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.25, 1.258).threePointArc((0.001, 1.505), (0.25, 1.255)).lineTo(0.404, 0.023).threePointArc((0.413, -0.028), (0.417, -0.079)).threePointArc((0.415, -0.121), (0.408, -0.162)).thre... | 4 | 49 | 1.120823 |
train_ca447e7b718e57c4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.012, 0, 0.194), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.161, 0.319).extrude(0.278)
result = result.union(cq.Workplane(cq.Plane(origin=(0.079, -0.048, 0.238), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.027, 0.13).extrude(0.1))
result = result.u... | 28 | 253 | 0.036013 |
train_dcc7c47e1a5a215a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.031, 0.012, -0.342), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.031, -0.023).lineTo(0.471, 0.841).lineTo(-0.514, 0.867).lineTo(-0.969, -0.015).lineTo(-0.512, -0.885).lineTo(0.508, -0.891).close().moveTo(0.165, 0.127).lineTo(-0.026, 0.147).line... | 5 | 40 | 0.693098 |
train_d0fcd4a6a54c2cdf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 1, 0.001), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.159).workplane(offset=1.032).circle(0.346).workplane(offset=0.968).circle(0.318).loft()
result = result.edges().chamfer(0.07)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.127, -0.23... | 6 | 37 | 0.560711 |
train_304abcf8b8edbbf2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.118, -0.385, -0.381), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.316, 0.212).lineTo(0.316, 0.212).lineTo(0.316, 0.011).lineTo(-0.268, 0.011).threePointArc((-0.302, 0.025), (-0.316, 0.059)).lineTo(-0.316, 0.212).close().extrude(0.165)
result =... | 10 | 97 | 0.13357 |
train_ce0da5faaa1aa8c5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.03, 0.081, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.301, 0.371).extrude(1.28)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.189, 0.025, -0.743), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.02, 0.036).extrude(0.094))
result = result... | 19 | 66 | 0.177302 |
train_b6c0ee0a362441df | 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.932, 1.892).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.142, -0.334, 0.253), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.288).extrude(0.766))
result = result.cut(cq.Workplane(... | 7 | 88 | 5.950523 |
train_0a9b0879c4c9e37e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.213), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.552).extrude(0.427)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.213, -1.513), normal=(1, 0, 0), xDir=(0, 1, 0))).moveTo(0, 0.046).lineTo(-0.014, 0.068).lineTo(-0.019, 0.043).li... | 18 | 61 | 0.915064 |
train_342a41e6c2301e63 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.182, -0.106, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.127).workplane(offset=0.124).circle(0.11).workplane(offset=0.141).circle(0.093).workplane(offset=0.13).circle(0.076).loft()
result = result.edges().chamfer(0.014)
result = result.cut(... | 13 | 132 | 0.043706 |
train_c13d967569b8c8ee | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.516, 0.096, -0.829), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.111, 0.29).threePointArc((0, 0.389), (-0.111, 0.29)).lineTo(-0.185, -0.298).threePointArc((0, -0.135), (0.185, -0.298)).lineTo(0.111, 0.29).close().extrude(0.356)
result = result.... | 5 | 49 | 0.118992 |
train_978af47119c587af | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.142, 0, -0.402), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.715, 1.335).extrude(0.874)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.73, -0.334, -0.428), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.056, 0.044).extrude(1.049))
result = resul... | 11 | 43 | 1.953486 |
train_9655f003287cfe8d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.11, 0.5), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.5, 0.074).lineTo(-0.5, 0.016).lineTo(0.367, 0.128).lineTo(0.5, 0.204).lineTo(-0.5, 0.074).close().revolve(angleDegrees=360, axisStart=(-0.5, 0.074), axisEnd=(-0.5, 0.016))
result = resu... | 5 | 13 | 0.159338 |
train_70f4f57b5d8c2e2b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.084, 0.276), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.333, 1).threePointArc((-0.252, 0), (-0.333, -1)).lineTo(0.333, -1).lineTo(0.333, 1).lineTo(-0.333, 1).close().sweep(cq.Workplane('YZ').spline([(-0.846, -0.176), (-0.582, -0.557), (-0.3... | 7 | 34 | 0.591145 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.