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_7b36546d2fd1df65 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.004, 0, -0.448), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.403, 0.119).threePointArc((-0.115, 0), (-0.403, -0.119)).lineTo(-0.447, -0.164).threePointArc((-0.326, -0.228), (-0.19, -0.212)).threePointArc((-0.089, -0.22), (-0.042, -0.308)).lin... | 3 | 43 | 0.095621 |
train_4d908124223f840f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.283, 0.114), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.33, 0.175).lineTo(0.255, 0.175).lineTo(0.255, 0.061).lineTo(-0.255, 0.061).lineTo(-0.255, -0.061).lineTo(0.33, -0.061).lineTo(0.33, -0.175).lineTo(-0.33, -0.175).lineTo(-0.33, 0.175).... | 7 | 50 | 0.238091 |
train_7cb9c1c6ebd9ebd6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.268, -0.536), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.324, 1.463).extrude(1)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.028, -0.41, 0.429), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.526, 0.788).extrude(0.433))
result = result.e... | 16 | 132 | 1.347869 |
train_22d58eba2f34c4aa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.214, 0, -0.419), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.573, 1.125).extrude(0.838)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.324, -0.025, -0.266), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.174).extrude(0.21))
result = result.edg... | 18 | 118 | 1.179831 |
train_c25448060df748b2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.019, 0.229, -0.315), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.221, 1.398).extrude(0.224)
result = result.union(cq.Workplane(cq.Plane(origin=(0.08, 0.299, -0.092), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.549).extrude(0.019))
result = result.... | 5 | 39 | 0.592951 |
train_2f3a90155714d08e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.049, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.194, 0.936).extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.185, -0.467, 0.348), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.051).extrude(0.283))
result = result.cut(cq.Wor... | 14 | 54 | 2.148542 |
train_60f8199707c13b55 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.268, -0.068), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.54, 0.421).threePointArc((0, 0.962), (-0.542, 0.421)).lineTo(-0.542, -0.421).threePointArc((0, -0.962), (0.54, -0.421)).lineTo(0.54, 0.421).close().sweep(cq.Workplane('YZ').spline([(-... | 18 | 101 | 2.766648 |
train_ea11d379359d920e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.881, -0.275), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.252, 0.239).extrude(0.223)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.046, -0.954, -0.081), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.013, 0.033).extrude(0.356))
result = re... | 4 | 23 | 0.015301 |
train_4171ba9f638f4efc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.072, -0.225, -0.159), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.289, 0.554).threePointArc((-0.01, 0.823), (-0.289, 0.534)).lineTo(-0.289, -0.379).threePointArc((0.011, -0.668), (0.289, -0.357)).lineTo(0.289, 0.554).close().extrude(0.513)
resu... | 10 | 61 | 0.324846 |
train_eb7328bc6e0e0b12 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.296, 0.072, 0.084), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.762, 0.039).lineTo(0.762, 0.039).lineTo(0.762, -0.039).lineTo(-0.762, -0.039).lineTo(-0.762, 0.039).close().workplane(offset=0.033).moveTo(-0.683, 0.035).lineTo(0.683, 0.035).line... | 6 | 38 | 0.053027 |
train_0773cdbb677a44f2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.357, -0.3, -0.355), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.344, -0.606).lineTo(0.344, 0.643).lineTo(-0.344, 0.643).lineTo(-0.344, -0.044).lineTo(0.219, -0.044).lineTo(0.219, -0.606).lineTo(0.344, -0.606).close().extrude(0.786)
result = resu... | 16 | 173 | 0.531472 |
train_90692f2530d1f6bc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.514, 0.928, -0.006), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.994, -0.327).threePointArc((-0.947, -0.44), (-0.835, -0.486)).lineTo(0.847, -0.486).threePointArc((0.994, -0.388), (0.959, -0.215)).lineTo(-0.722, 1.467).threePointArc((-0.896, 1... | 9 | 25 | 4.358346 |
train_138a213e6b2f1e04 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.238, 0.04, 0.102), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.126, 0.002).lineTo(0.059, 0.107).lineTo(-0.058, 0.106).lineTo(-0.122, 0.003).lineTo(-0.058, -0.103).lineTo(0.057, -0.102).close().moveTo(-0.035, 0.034).lineTo(-0.046, 0.049).lineTo(-... | 8 | 142 | 0.034747 |
train_304364e810d926a9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.081, -0.566, 0.708), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.229, -0.106).lineTo(0.106, -0.229).lineTo(-0.229, 0.106).lineTo(-0.106, 0.229).lineTo(0.229, -0.106).close().sweep(cq.Workplane('YZ').spline([(-0.566, 0.708), (0.154, 0.708), (0.... | 31 | 480 | 0.197228 |
train_ba3a597059eafaba | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.073, 0, -0.175), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.478, 1.272).extrude(0.61)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.114, -0.089, -0.066), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.439, 1.527).extrude(0.095))
result = result.... | 18 | 113 | 0.858336 |
train_ee5782d39186d93f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.123, -0.123, -0.317), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.269, 0.937).extrude(0.634)
result = result.faces('>Z').shell(-0.039)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.867, -0.046, -0.133), normal=(0, 0, 1), xDir=(1, 0, 0)))... | 7 | 61 | 0.242633 |
train_0d6c40da4f3e53a2 | 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.006, 1.642).extrude(1.52)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.174, 0.244, 0.478), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.176).extrude(0.522))
result = result.cut(cq.Workp... | 16 | 87 | 2.442178 |
train_3b8e87b081400f83 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.804, 0.893, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.018, 1.835).threePointArc((-0.794, 0.804), (0.018, -0.226)).lineTo(0.018, 0.335).threePointArc((0.794, 0.804), (0.018, 1.273)).lineTo(0.018, 1.835).close().extrude(1.787)
result = resu... | 9 | 64 | 2.757261 |
train_0165889086979913 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.201, -0.069, -0.224), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.964, 1.213).extrude(0.815)
result = result.faces('<Z').shell(-0.058)
result = result.union(cq.Workplane(cq.Plane(origin=(0.347, -0.08, -0.305), normal=(1, 0, 0), xDir=(0, 0, 1))).mo... | 8 | 57 | 0.440647 |
train_4175e3a41019e625 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.085, -0.043), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.818, -0.039).lineTo(0.818, 0.223).lineTo(0.818, -0.039).lineTo(-0.818, -0.039).close().extrude(2)
result = result.edges().chamfer(0.086)
result = result.union(cq.Workplane(cq.Plane(o... | 7 | 36 | 0.315539 |
train_18af3f0733892ed6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.019, -0.28, -0.686), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.314, -0.309).lineTo(0.314, 0.318).lineTo(-0.314, 0.318).lineTo(-0.159, 0.163).lineTo(0.145, 0.228).lineTo(0.159, 0.163).lineTo(0.223, -0.14).lineTo(0, 0.005).lineTo(-0.159, -0.154... | 10 | 113 | 0.232713 |
train_40c9494fc93b6ed4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.352, 0.363, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.205, 0.038).lineTo(0.038, -0.205).lineTo(0.205, -0.038).lineTo(-0.038, 0.205).lineTo(-0.205, 0.038).close().sweep(cq.Workplane('XY').spline([(-0.352, 0.612), (-0.243, 0.733), (-0.134... | 3 | 11 | 0.064715 |
train_0a786e36ef1b86ef | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0, 0.401), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.186, 0.186).lineTo(0.025, 0.025).lineTo(-0.028, 0.025).lineTo(-0.186, -0.133).lineTo(-0.186, -0.186).lineTo(0.186, -0.186).lineTo(0.186, 0.186).close().sweep(cq.Workplane('XZ').spline([(-... | 1 | 8 | 0.087546 |
train_5e09cc9606b4a2af | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.48), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.589).extrude(0.72)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, -0.588), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.929, 0.716).extrude(0.937))
result = result.union(cq.Workplane... | 3 | 16 | 1.915077 |
train_045a2f230aecce73 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.018, -0.148, -0.433), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.291, -0.465).lineTo(0.289, -0.451).lineTo(0.288, 0.474).lineTo(-0.282, 0.475).close().moveTo(0.05, 0).lineTo(0.025, 0.042).lineTo(-0.025, 0.044).lineTo(-0.049, 0).lineTo(-0.025,... | 26 | 260 | 0.627838 |
train_7a4f0625bc1a7918 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.109, 0, -0.361), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.783, 1.87).extrude(0.723)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.323, -0.69, -0.484), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.09, 0.117).extrude(0.867))
result = result.c... | 11 | 52 | 2.327845 |
train_770ea7795521d2b0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.014, 0.068), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.295).lineTo(0.106, 0.453).lineTo(0.143, 0.267).lineTo(0.265, 0.186).lineTo(0.346, 0.064).lineTo(0.533, 0.027).lineTo(0.374, -0.08).lineTo(0.346, -0.223).lineTo(0.265, -0.344).lineTo... | 2 | 134 | 0.78646 |
train_c119bb6c8046f06a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.101, -0.598, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.25, 0.391).lineTo(-0.25, 0.992).threePointArc((0.054, 1.019), (0.348, 1.101)).lineTo(0.459, 0.99).threePointArc((0.377, 0.696), (0.349, 0.391)).threePointArc((0.377, 0.088), (0.459, ... | 5 | 35 | 0.982586 |
train_56a82c64f2c23143 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.462), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.598, 2).extrude(1.029)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.478, -0.14, 0.071), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.147, 2.4).extrude(0.113))
result = result.cut(cq.Work... | 9 | 31 | 3.196627 |
train_81a33096b30089e7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0, -0.188), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.288, -0.371).threePointArc((0.168, -0.404), (0.049, -0.371)).lineTo(0.008, -0.371).lineTo(0.008, 0.419).lineTo(-0.008, 0.419).lineTo(-0.023, 0.419).lineTo(-0.3, 0.419).lineTo(-0.3, -0.37... | 12 | 21 | 0.235902 |
train_2e8db6c4a2c07dfd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.35, 0, -0.302), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.3, 1.216).extrude(0.604)
result = result.union(cq.Workplane(cq.Plane(origin=(0.426, -0.208, -0.116), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.29, 0.422).extrude(0.357))
result = result.... | 6 | 22 | 0.995549 |
train_f5602906f38b76d3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.327, 0.359, -0.319), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.681, 0.046).lineTo(-0.681, 0.508).lineTo(0.681, 0.508).lineTo(0.681, 0.025).lineTo(-0.681, 0.025).lineTo(-0.681, 0.046).close().extrude(0.719)
result = result.union(cq.Workplane(... | 3 | 11 | 0.489527 |
train_8acf41c04c9079ba | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.305, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.78, 0.604).extrude(0.571)
result = result.union(cq.Workplane(cq.Plane(origin=(0.381, 0.017, -0.808), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.628, 0.517).extrude(0.188))
result = result.un... | 7 | 28 | 0.318825 |
train_5d4ceb3fc00edd1f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.091, -0.166), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.244, 0.712).threePointArc((0.42, 0.72), (0.438, 0.544)).threePointArc((0.294, 0.336), (0.171, 0.114)).threePointArc((0.061, -0.139), (-0.022, -0.402)).threePointArc((-0.318, -0.555), ... | 14 | 302 | 1.596286 |
train_eb41888ad539ffdd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.475, -0.115), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.472, -0.273).threePointArc((-0.193, -0.348), (-0.118, -0.068)).threePointArc((0, -0.136), (0.118, -0.068)).threePointArc((0.118, 0.068), (0, 0.136)).threePointArc((-0.205, 0.341), (0... | 4 | 15 | 0.609386 |
train_14862efa0383ee6d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.966), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.974, 2).extrude(1.932)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.456, -0.14, -0.41), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.104).extrude(0.329))
result = result.edges().fillet... | 17 | 85 | 5.217184 |
train_db7019523ae3d4a1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.161, 0.846, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(1, -0.508).lineTo(-1, -0.508).lineTo(-1, 1.039).lineTo(1, 1.039).lineTo(1, -0.508).close().extrude(1.502)
result = result.edges().chamfer(0.211)
result = result.cut(cq.Workplane(cq.Plane... | 24 | 260 | 4.045679 |
train_2862ab0695e42d6e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.441, 0.126, -0.158), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.002, 0.023).lineTo(-0.017, 0.027).lineTo(-0.094, 0.027).lineTo(-0.121, 0.015).lineTo(-0.121, -0.023).lineTo(-0.094, -0.031).lineTo(-0.011, -0.031).lineTo(-0.002, -0.027).lineTo(... | 14 | 159 | 0.211733 |
train_2bfa092346cf5f88 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.62, -0.51), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.823, 1.108).lineTo(0.823, 1.259).threePointArc((0.589, 1.208), (0.639, 1.443)).lineTo(0.488, 1.443).lineTo(-0.488, 1.443).lineTo(-0.488, 1.176).threePointArc((-0.508, 1.128), (-0.555, 1... | 5 | 56 | 3.049947 |
train_fbc14777bf2c606b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.935, -0.901, -0.055), normal=(-1, 0, 0), xDir=(0, 0, 1))).lineTo(0.446, 1.337).lineTo(0.446, -0.006).lineTo(-0.347, -0.006).lineTo(0.191, 1.808).close().workplane(offset=0.6).lineTo(0.492, 1.382).lineTo(0.492, -0.099).lineTo(-0.383, -0.099).line... | 16 | 150 | 1.249593 |
train_e7c4eb99cf17a570 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.153, -0.363, -0.11), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.831, 0.722).extrude(0.088)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.179, -0.353, -0.008), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.106, 0.734).lineTo(0.26, 0.734).l... | 6 | 37 | 0.251727 |
train_94b3cd44c2a632f7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.146, -0.808, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.87, 0.525).lineTo(0.108, 1.433).lineTo(0.435, 1.433).threePointArc((0.809, 1.24), (0.87, 0.824)).lineTo(0.827, 0.699).lineTo(0.529, 0.134).lineTo(-0.87, 0.525).close().extrude(1.871... | 8 | 42 | 2.364812 |
train_f9a20313712a2817 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.118, 0.066, -0.362), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.764, 1.512).extrude(0.71)
result = result.union(cq.Workplane(cq.Plane(origin=(0.081, 0.6, -0.412), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.087, 0.085).extrude(0.051))
result = res... | 5 | 21 | 1.89741 |
train_acbfc77ee55c687a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.493, 0, 0), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.446, 0.476).threePointArc((0.459, 0.443), (0.493, 0.429)).lineTo(0.493, -0.429).lineTo(0.493, -0.476).lineTo(0.446, -0.476).lineTo(-0.412, -0.476).threePointArc((-0.493, -0.51), (-0.459, ... | 4 | 35 | 2.723969 |
train_5fa15144cab2b295 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.243, -0.329, -0.135), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.026, -0.031).threePointArc((0.03, -0.03), (0.031, -0.026)).lineTo(0.031, 0.031).lineTo(0.015, 0.031).lineTo(-0.015, 0.031).lineTo(-0.026, 0.031).lineTo(-0.031, 0.031).lineTo(-0.0... | 18 | 96 | 1.268236 |
train_b8348c5947f0d134 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1.142, -0.457), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.775, 1.792).lineTo(-0.944, 0.799).threePointArc((-0.643, 0.373), (-0.17, 0.156)).threePointArc((0.35, 0.205), (0.775, 0.505)).lineTo(0.944, 1.499).threePointArc((0.643, 1.925), (0.17... | 11 | 122 | 2.356143 |
train_eddf871d4b867384 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.3, -0.601, 0.108), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.661, 1.3).lineTo(-0.661, -0.7).lineTo(0.661, -0.7).lineTo(0.661, 1.3).lineTo(-0.661, 1.3).close().extrude(1.289)
result = result.edges().chamfer(0.347)
result = result.union(cq.Wor... | 5 | 45 | 2.526189 |
train_1b82ebe1de6109e3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.146, -0.42, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.866, -0.3).threePointArc((-0.095, 0.662), (0.866, 1.433)).threePointArc((0.776, -0.21), (-0.866, -0.3)).close().extrude(1.627)
result = result.edges().chamfer(0.04)
result = result.u... | 18 | 57 | 2.809702 |
train_7037b40aab766879 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.363, 0.654), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.191).sweep(cq.Workplane('YZ').spline([(0.336, 0.412), (0.098, 0.624), (-0.178, 0.577), (-0.376, 0.29), (-0.411, -0.115), (-0.269, -0.465), (-0.009, -0.613), (0.257, -0.494)]))
result ... | 3 | 31 | 0.13596 |
train_7d7808c7026b5d17 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0, -0.056), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.155, -0.248).lineTo(0.168, -0.197).lineTo(0.155, -0.193).lineTo(0.155, 0.117).lineTo(0.313, 0.026).lineTo(0.471, 0.3).lineTo(-0.162, 0.3).lineTo(-0.004, 0.026).lineTo(0.116, -0.182).line... | 1 | 18 | 0.441882 |
train_3afb7dbb95627433 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.41, -0.88), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.61, 1.202).threePointArc((-0.828, 0.97), (-0.509, -0.451)).threePointArc((0.828, -0.151), (0.61, 1.202)).close().extrude(1.76)
result = result.edges().fillet(0.233)
result = result.cut(... | 18 | 23 | 4.778729 |
train_e276a31deecde8f6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.333, -0.013, 0.244), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.243, 1.013).lineTo(0.244, -0.547).lineTo(-0.243, -0.547).lineTo(-0.244, 1.013).lineTo(0.244, 1.013).close().revolve(angleDegrees=180, axisStart=(0.243, 1.013), axisEnd=(0.244, -0.... | 14 | 81 | 0.235857 |
train_f5c880bb3a66e18e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.007, 0, 0.072), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.805, 0.08).lineTo(0.078, 0.229).lineTo(0.146, 0.241).threePointArc((0.162, 0.241), (0.179, 0.239)).threePointArc((0.222, 0.21), (0.239, 0.161)).lineTo(0.239, 0.224).lineTo(0.805, 0.08)... | 3 | 17 | 1.042956 |
train_3a8f5c372e400738 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.016, -0.206, -0.076), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.156, -0.024).lineTo(0.156, -0.024).lineTo(0.156, 0.007).lineTo(0.117, 0.007).lineTo(0.052, 0.103).threePointArc((0, 0.131), (-0.052, 0.103)).lineTo(-0.117, 0.007).lineTo(-0.156, ... | 26 | 240 | 0.40003 |
train_09f626670770acf1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.423, 1, -0.013), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 0.467).lineTo(0, 1.119).lineTo(-0.326, 0.793).lineTo(-0.651, 0.467).lineTo(0, -0.184).lineTo(0.202, -0.184).lineTo(0.651, 0.266).lineTo(0.651, 0.467).lineTo(0.326, 0.793).lineTo(0, 0... | 9 | 105 | 1.635678 |
train_59a19c99d2304a8f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.226, -0.174), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.956, 0.367).lineTo(-1, 0.367).lineTo(-1, 0.055).lineTo(1, 0.055).lineTo(1, 0.367).lineTo(-0.956, 0.367).close().revolve(angleDegrees=90, axisStart=(-0.956, 0.367), axisEnd=(-1, 0.367... | 3 | 23 | 0.124199 |
train_023855fac9c604e6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.906, -0.609), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.733, 0.257).threePointArc((0, -0.476), (0.733, 0.257)).lineTo(0.22, 0.257).threePointArc((0, 0.476), (-0.22, 0.257)).lineTo(-0.733, 0.257).close().sweep(cq.Workplane('YZ').spline([(0.... | 3 | 14 | 1.151114 |
train_6d5f27f44230c640 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.158, 0.013, -0.656), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.344, 0.333).lineTo(-0.344, 0.677).lineTo(0.344, 0.677).lineTo(0.344, -0.011).lineTo(-0.344, -0.011).lineTo(0, 0.333).lineTo(-0.344, 0.333).close().workplane(offset=0.051).moveTo... | 6 | 30 | 0.094238 |
train_f2c1baa93bfaa7f0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.505, -0.052), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.143, 0.027).lineTo(-0.499, 0.565).lineTo(-0.451, 0.614).threePointArc((-0.011, 0.874), (0.499, 0.886)).lineTo(0.499, 0.382).lineTo(0.143, 0.027).close().extrude(1.649)
result = resul... | 3 | 34 | 0.872351 |
train_46ebc2dc01318d3d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.002, 0.056, -0.638), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.52, 1.403).extrude(1.046)
result = result.union(cq.Workplane(cq.Plane(origin=(0.074, 0.126, 0.402), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.631).extrude(0.097))
result = result.... | 14 | 78 | 0.908832 |
train_37553d7ad49ddb45 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.141, -0.002, -0.51), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.133, 0.655).extrude(1)
result = result.faces('>Z').shell(-0.043)
result = result.union(cq.Workplane(cq.Plane(origin=(0.019, -0.032, -0.799), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(... | 24 | 63 | 0.40394 |
train_2b3c690a4b0fa5b3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.5, -0.03, 0.5), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.5, -0.471).lineTo(-0.5, -0.137).lineTo(0.167, -0.137).lineTo(0.167, 0.53).lineTo(0.5, 0.53).lineTo(0.5, -0.137).lineTo(0.167, -0.471).lineTo(-0.5, -0.471).close().revolve(angleDegree... | 6 | 59 | 0.878292 |
train_0d7751755950db75 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.048, -0.227, -0.183), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.644).lineTo(0.085, 0.644).lineTo(0.163, 0.598).lineTo(0.163, -0.387).lineTo(-0.163, -0.387).lineTo(-0.163, 0.598).lineTo(-0.085, 0.644).lineTo(0, 0.644).close().extrude(0.366)
... | 11 | 98 | 0.151349 |
train_f8dfab4201be4b69 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.001, 0, 0.062), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.333, 0.289).lineTo(0.316, 0.279).lineTo(0, 0.096).lineTo(0.158, 0.005).lineTo(0, -0.269).lineTo(-0.158, 0.005).lineTo(-0.316, 0.279).lineTo(-0.333, 0.289).lineTo(-0.666, -0.289).lineTo(... | 6 | 81 | 0.31331 |
train_5bc1357d563c6203 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.013, -0.224), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.22, 1.132).extrude(0.448)
result = result.faces('>Z').shell(-0.051)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.19, -0.764, 0.002), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.5... | 7 | 41 | 0.207622 |
train_fd13182faa505657 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.062, -0.067), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.556, 0.571).moveTo(0.043, 0.011).lineTo(0.012, 0.044).lineTo(-0.014, 0.031).lineTo(-0.018, 0.024).lineTo(-0.025, 0.032).lineTo(-0.027, 0.024).lineTo(0.035, -0.023).close().extrude(0.133)... | 9 | 94 | 0.076056 |
train_10c3bafc9c0c5ff7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.19), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.046, 1).threePointArc((0, -1), (0.046, 1)).lineTo(0, 1).lineTo(-0.046, 1).close().extrude(0.075)
result = result.edges().fillet(0.007)
result = result.union(cq.Workplane(cq.Plane(origin=(... | 3 | 91 | 0.405944 |
train_2cb9f53a4ac76f41 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.438, -0.386, -0.913), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.125, 1.125).extrude(0.819)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.012, -0.33, -0.068), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.488, 1.278).lineTo(0.488, 0.414).... | 16 | 269 | 1.497482 |
train_03533b9195ab4793 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.069, 0.003, -0.003), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.831, 0.648).lineTo(0.831, 1.093).lineTo(-0.222, 0.04).lineTo(-0.831, 0.648).close().revolve(angleDegrees=270, axisStart=(0, 0), axisEnd=(0.255, 0))
result = result.edges().fillet(... | 6 | 34 | 1.308004 |
train_0bab808644b6b0e3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.244, 0, -0.417), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.406, 0.4).extrude(0.418)
result = result.union(cq.Workplane(cq.Plane(origin=(0.716, 0.065, -0.078), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.568, 0.047).extrude(0.02))
result = result.u... | 4 | 22 | 0.075514 |
train_9c04cf9e91b6fc03 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.012, -0.031, -0.175), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.564, 0.011).lineTo(0.388, 0.383).lineTo(0.003, 0.552).lineTo(-0.408, 0.372).lineTo(-0.541, 0.017).lineTo(-0.379, -0.404).lineTo(-0.011, -0.574).lineTo(0.395, -0.411).close().move... | 12 | 83 | 0.196914 |
train_e1629ea097f4cf58 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.047, 0.142, -0.185), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.225, 1.317).extrude(0.609)
result = result.union(cq.Workplane(cq.Plane(origin=(0.112, -0.712, -0.058), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.559, 0.414).extrude(0.361))
result =... | 4 | 43 | 1.309466 |
train_117237faae1dbb8b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.314, 0.117, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.368, 0.139).threePointArc((-0.49, 0.19), (-0.541, 0.313)).threePointArc((-0.49, 0.436), (-0.368, 0.486)).lineTo(0, 0.486).lineTo(0.368, 0.486).threePointArc((0.49, 0.436), (0.541, 0.3... | 8 | 63 | 0.259305 |
train_701e3298277e7ee6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.065), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.351).sweep(cq.Workplane('XZ').spline([(-1.138, -0.256), (-0.683, -0.445), (-0.227, -0.54), (0.228, -0.54), (0.683, -0.445), (1.138, -0.256)]))
result = result.edges().chamfer(0.157)
result... | 10 | 85 | 0.541512 |
train_e5b5420d73056ea9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.165, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.346, 1.112).extrude(0.779)
result = result.faces('>X').shell(-0.091)
result = result.union(cq.Workplane(cq.Plane(origin=(0.159, 0.034, -0.257), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.09... | 11 | 107 | 0.711869 |
train_8873d150f1777ac5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.3, 0.749, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.905, 0.738).lineTo(0.905, 0.3).lineTo(0.613, 0.3).lineTo(0.613, -0.138).lineTo(-0.905, -0.138).lineTo(-0.905, 0.3).lineTo(-0.321, 0.3).lineTo(-0.321, 0.738).lineTo(0.905, 0.738).close().... | 3 | 60 | 1.658806 |
train_ea8919c215ae4a78 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.763, 0.195, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.8, 0.417).lineTo(-0.8, 0.217).lineTo(-1, 0.217).lineTo(-1, 0.017).lineTo(0.8, 0.017).lineTo(0.8, 0.15).threePointArc((0.753, 0.264), (0.867, 0.217)).lineTo(1, 0.217).lineTo(1, 0.417).... | 13 | 105 | 0.701132 |
train_08fdea552a3c51cd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.267, 0, -0.316), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.466, 0.281).extrude(0.633)
result = result.union(cq.Workplane(cq.Plane(origin=(0.718, -0.022, -0.035), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.565, 0.108).extrude(0.165))
result = res... | 3 | 51 | 0.269573 |
train_757684767daaa2c7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.941, 0.872, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.719, 0.408).lineTo(-0.719, 0.048).lineTo(0.719, 0.048).lineTo(0.719, 1.834).lineTo(0.289, 1.834).lineTo(-0.288, 1.007).lineTo(-0.288, 0.408).lineTo(-0.719, 0.408).close().workplane(of... | 8 | 72 | 1.727519 |
train_0a59a3ff1c1ad968 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.032, -0.393, -0.289), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.098, -0.178).threePointArc((0.041, -0.169), (-0.011, -0.144)).threePointArc((-0.098, 0.019), (-0.011, 0.183)).threePointArc((0.041, 0.207), (0.098, 0.216)).lineTo(0.098, 0.128).... | 19 | 323 | 0.393769 |
train_1d40725814ba5f83 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.268, 0, 0.09), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.139, 0.167).lineTo(-0.139, -0.167).lineTo(0.139, -0.167).lineTo(0.139, 0.167).lineTo(-0.139, 0.167).close().extrude(0.09)
result = result.edges().fillet(0.034)
result = result.union(cq... | 21 | 136 | 0.029188 |
train_49de5dca7bb55e77 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.688, -0.306), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1.039, 0.429).lineTo(1.039, 0.429).lineTo(0.657, 0.04).lineTo(0.425, 0.04).lineTo(0.249, 0.242).lineTo(-0.249, 0.242).lineTo(-0.425, 0.04).lineTo(-0.657, 0.04).lineTo(-1.039, 0.429).cl... | 6 | 69 | 0.313598 |
train_9054bd6185a343fd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.033, 0.016, -0.213), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.593, 0.074).lineTo(-0.593, 0.074).lineTo(-0.593, 0.004).lineTo(-0.531, 0.004).lineTo(-0.531, 0.032).lineTo(-0.494, 0.032).lineTo(-0.494, 0.004).lineTo(0.593, 0.004).lineTo(0.593, ... | 31 | 280 | 0.003739 |
train_515c6d719ea44c03 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.502, 0, 0.502), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.502, 0.284).lineTo(-0.502, -0.284).lineTo(0.502, -0.284).lineTo(0.502, 0.284).lineTo(-0.502, 0.284).close().revolve(angleDegrees=180, axisStart=(-0.502, 0.284), axisEnd=(-0.502, -0.28... | 13 | 100 | 0.788569 |
train_d2aaba1c6a23491b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.219, -0.087, -0.395), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.227, 1.087).lineTo(-0.045, 1.087).lineTo(-0.045, 0.526).threePointArc((-0.096, 0.368), (-0.227, 0.269)).lineTo(-0.227, 0.087).lineTo(-0.227, -0.095).lineTo(-0.227, -0.913).lineTo... | 4 | 98 | 0.325599 |
train_c5b76d4070d07282 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.571, 0.408, -0.005), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(1.005, 0.097).lineTo(-1.005, 0.097).lineTo(-0.933, 0.59).lineTo(-1.005, 1.154).lineTo(-0.038, 1.031).lineTo(0.249, 0.846).lineTo(0.832, 0.472).lineTo(1.005, 0.361).lineTo(1.005, 0.0... | 14 | 73 | 1.102889 |
train_097681eb87465547 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.32, -0.171, 0.602), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.309, 0.875).lineTo(-0.22, 0.875).lineTo(-0.22, 0.169).lineTo(0.398, 0.169).lineTo(0.397, 0.08).lineTo(-0.22, 0.08).lineTo(-0.22, -0.538).lineTo(-0.398, -0.538).lineTo(-0.398, 0.16... | 9 | 150 | 0.228123 |
train_4922b1e4f82c387d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.218, 0.153, -0.343), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.563, 0.66).extrude(0.687)
result = result.union(cq.Workplane(cq.Plane(origin=(0.069, -0.319, -0.014), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.164).extrude(0.175))
result = resul... | 6 | 70 | 0.728352 |
train_139497630ba96091 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.031, -0.502, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.004, 0.019).threePointArc((-0.02, 0), (-0.004, -0.019)).threePointArc((0, -0.058), (0.004, -0.019)).threePointArc((0.02, 0), (0.004, 0.019)).threePointArc((0, 0.058), (-0.004, 0.019... | 7 | 88 | 0.004483 |
train_101d9a2dd3907559 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.397, -0.239), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.873).extrude(0.774)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.939, -0.204, -0.101), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.042).extrude(0.102))
result = result.cut(cq.... | 11 | 106 | 1.349304 |
train_b4a1082c6ebca6eb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.035, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.666, 1.59).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.233, 0.07, -0.025), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.411).extrude(1.051))
result = result.edges().fille... | 19 | 154 | 4.063656 |
train_3ce3f313ed3cbde1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.394, 0.5), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.5, 0.752).lineTo(-0.5, 0.096).lineTo(0.5, 0.096).lineTo(0.5, 0.424).lineTo(0.271, 0.424).lineTo(0.271, 0.752).lineTo(-0.5, 0.752).close().revolve(angleDegrees=360, axisStart=(-0.5, 0.7... | 9 | 49 | 1.572222 |
train_55a663c67b8e234e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.101, -0.093, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.381).workplane(offset=0.401).circle(0.459).workplane(offset=0.346).circle(0.348).loft()
result = result.edges().fillet(0.102)
result = result.faces('>Z').shell(-0.083)
result = resul... | 17 | 96 | 0.681431 |
train_5766abee4e8415cc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.175, 0.697), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.142).sweep(cq.Workplane('YZ').spline([(-0.175, -0.088), (-0.076, 0.065), (-0.136, 0.23), (-0.322, 0.321), (-0.539, 0.29), (-0.672, 0.154)]))
result = result.edges().chamfer(0.033)
resu... | 4 | 21 | 0.080251 |
train_7f14fb7f0593f1f6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.072), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.366, 2).extrude(0.145)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.547 + 0.2735, -0.8 + 0.2, -0.094), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.021, 0.102).lineTo(0.009, 0.108).li... | 9 | 126 | 0.393168 |
train_4f87ae2abbe25ad3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.325, -0.476), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.049).extrude(1.211)
result = result.union(cq.Workplane(cq.Plane(origin=(0.192, -0.587, -0.734), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.055).extrude(0.281))
result = result.union... | 8 | 55 | 2.5003 |
train_e3db3011606020f9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.788, 0.106), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.764, 0.212).lineTo(0.764, 0.212).lineTo(0.764, -0.212).lineTo(0.678, -0.212).threePointArc((0.533, -0.181), (0.386, -0.212)).lineTo(0.295, -0.212).threePointArc((0.149, -0.181), (0.0... | 5 | 31 | 0.277866 |
train_1dd7f2804f07d3ff | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.277, 0.442, 0.003), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.046, 0.594).threePointArc((-0.13, 0.586), (-0.212, 0.562)).threePointArc((-0.489, 0.151), (-0.212, -0.26)).threePointArc((-0.13, -0.285), (-0.046, -0.293)).lineTo(-0.046, -0.384)... | 5 | 71 | 1.132437 |
train_0debe32b1bb4bd34 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.36, -0.103), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.328, -0.067).lineTo(-0.286, 0.018).lineTo(-0.328, 0.037).lineTo(-0.328, 0.64).lineTo(-0.148, 0.29).lineTo(-0.077, 0.152).lineTo(-0.018, 0.036).lineTo(-0.181, -0.03).lineTo(-0.098, -0... | 3 | 30 | 0.101785 |
train_d532e7d3a9e7c6ec | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.102, -0.321, -0.342), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.18, 1.174).lineTo(0.443, 1.174).lineTo(0.443, 1.197).lineTo(0.481, 1.197).lineTo(0.481, -0.334).threePointArc((0.194, -0.379), (-0.065, -0.511)).threePointArc((-0.197, -0.555), (-... | 4 | 39 | 0.405673 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.