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_aeebd0ed725f065a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.056, -0.075, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.129, 0.989).lineTo(0.129, -0.877).lineTo(-0.129, -0.946).lineTo(-0.129, 1.058).lineTo(0.129, 0.989).close().extrude(0.15)
result = result.edges().fillet(0.006)
result = result.cut(cq.... | 8 | 39 | 0.071911 |
train_fa84c13247ea381b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.303, -0.503, 0.494), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.506, 0.007).lineTo(-0.434, 0.69).lineTo(-0.221, 0.784).lineTo(-0.246, 0.553).lineTo(0.506, 0.007).lineTo(-0.506, 0.007).close().revolve(angleDegrees=180, axisStart=(-0.506, 0.007... | 4 | 20 | 0.305595 |
train_b3cbece8d225eaf5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.066, 0.071, -0.451), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.869, 1.488).extrude(0.948)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.469, 0.191, 0.429), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.121).extrude(0.071))
result = result.c... | 16 | 56 | 2.754169 |
train_e366f74bb09dd8bd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.416), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.269, 2).extrude(0.833)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.119, -0.053, 0.06), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.459, 0.301).extrude(0.367))
result = result.cut(cq.W... | 21 | 176 | 1.729546 |
train_17a5d55bd27a04c0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.74, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.125, 0.74).lineTo(0.125, 0.74).lineTo(0.125, -0.26).lineTo(-0.125, -0.26).lineTo(-0.125, 0.74).close().revolve(angleDegrees=360, axisStart=(-0.125, 0.74), axisEnd=(0.125, 0.74))
result = re... | 7 | 24 | 0.648858 |
train_5389843eb329736b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.88, -0.48, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.907).threePointArc((-0.013, 0.052), (1, 0.877)).threePointArc((-0.01, 0.231), (-1, 0.907)).close().workplane(offset=0.241).moveTo(-0.951, 0.886).threePointArc((-0.012, 0.073), (0.95... | 3 | 12 | 0.231957 |
train_3094d520f17f9971 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.397, 0.756).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.18, -0.066, -0.226), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.038, 0.034).extrude(0.232))
result = result.cut(cq.Workp... | 10 | 44 | 0.558127 |
train_6c3148940e1123b5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.453), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.434, 2).extrude(0.757)
result = result.union(cq.Workplane(cq.Plane(origin=(0.218, -0.247, 0.292), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.297, 0.453).extrude(0.162))
result = result.cut(cq... | 19 | 73 | 1.691601 |
train_14167022d0dd9b9c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.194, -0.126), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.527).sweep(cq.Workplane('XY').spline([(-0.685, -0.571), (-0.411, -0.553), (-0.137, -0.398), (0.137, 0.009), (0.411, 0.164), (0.685, 0.182)]))
result = result.edges().chamfer(0.216)
re... | 8 | 32 | 0.706847 |
train_6c072afb037f5e5b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.15, 0.306, 0.021), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.828, 0.346).lineTo(0.483, 0.694).lineTo(-0.152, 0.483).lineTo(-0.244, 0.541).lineTo(-0.48, 0.662).lineTo(-0.594, 0.66).lineTo(-0.808, -0.545).lineTo(0.015, -0.878).close().moveTo(-0... | 16 | 152 | 0.697167 |
train_4971d2324546fb4e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.005, 0.142), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.614, -0.352).threePointArc((-0.983, -0.08), (-0.834, 0.352)).threePointArc((-0.76, 0.338), (-0.774, 0.265)).threePointArc((-0.734, -0.219), (-0.334, 0.058)).threePointArc((-0.286, 0.1... | 5 | 16 | 0.116777 |
train_06fed387e41ef180 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, 0.895, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(1.144).workplane(offset=0.91).circle(0.941).workplane(offset=0.881).circle(0.903).loft()
result = result.edges().chamfer(0.579)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.001 ... | 9 | 18 | 3.555741 |
train_350706c494c5f51f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.68, 0.217, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, 0.32).lineTo(-0.32, 0.32).lineTo(-0.32, 0).lineTo(0, 0).lineTo(0, -0.32).lineTo(0.32, -0.32).lineTo(0.32, 0.32).lineTo(0, 0.32).close().sweep(cq.Workplane('XY').spline([(-0.68, -0.159)... | 1 | 9 | 0.103222 |
train_86d9e890991f021f | 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.842, 1.225).extrude(1.421)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.282, 0.072, 0.391), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.151).extrude(0.609))
result = result.edges().fil... | 6 | 41 | 3.193889 |
train_0c9f844e9f5ad4e3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.334, 0.283, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.511, 0.48).lineTo(-0.511, 1.356).threePointArc((0.511, 0.334), (-0.511, -0.689)).lineTo(-0.511, -0.133).lineTo(-0.511, 0.334).lineTo(-0.511, 0.48).close().workplane(offset=0.463).move... | 11 | 72 | 0.460305 |
train_3847f0d2d08f5f3e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.005, 0.022, -0.241), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.649, -1.022).lineTo(0.656, -1.019).lineTo(0.666, 0.974).lineTo(-0.676, 0.978).close().moveTo(-0.252, 0.306).lineTo(-0.249, 0.297).lineTo(-0.246, 0.289).lineTo(-0.237, 0.277).lineT... | 14 | 110 | 0.866264 |
train_22f92b797a0f283b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.353, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, -0.526).lineTo(-0.388, -0.526).lineTo(-0.432, 0.267).lineTo(-0.485, 1.232).lineTo(0.485, 1.232).lineTo(0.432, 0.267).lineTo(0.388, -0.526).lineTo(0, -0.526).close().extrude(2)
result = r... | 9 | 63 | 2.530017 |
train_c9a0ec7047b0ce22 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.519, 0, -0.473), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.371, -0.423).lineTo(-0.267, -0.319).lineTo(0.267, 0.215).lineTo(0.475, 0.423).lineTo(0.063, 0.423).lineTo(-0.267, 0.243).lineTo(-0.267, 0.215).lineTo(-0.318, 0.215).lineTo(-0.371, 0... | 8 | 51 | 0.606952 |
train_4644cea55eb75bf8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.076, 0.316, -0.187), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.223, 0.684).lineTo(-0.253, 0.684).lineTo(-0.253, -0.684).lineTo(0.253, -0.684).lineTo(0.253, 0.684).lineTo(0.223, 0.684).close().moveTo(0.142, 0).lineTo(0.099, 0.101).lineTo(-0.001... | 12 | 108 | 0.162843 |
train_dd99988958b76e1d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.278, 0, -0.276), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.737, 0.818).extrude(0.552)
result = result.faces('>Z').shell(-0.053)
result = result.union(cq.Workplane(cq.Plane(origin=(0.164, 0.06, -0.208), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.... | 12 | 194 | 0.142978 |
train_a5e023e41642f243 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.949, 0.042, -0.013), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.463, -0.125).threePointArc((0.417, 0.085), (0.281, 0.252)).threePointArc((0.008, 0.347), (-0.269, 0.261)).lineTo(-0.262, 0.576).lineTo(-0.451, 0.579).lineTo(-0.463, -0.108).three... | 7 | 56 | 0.635673 |
train_4520bc0925f05d16 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.204, 0.017, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.187, 0.012).lineTo(-0.194, 0.012).lineTo(-0.194, -0.012).lineTo(0.194, -0.012).lineTo(0.194, 0.012).lineTo(0.132, 0.012).lineTo(0.132, 0.004).lineTo(0.106, 0.004).lineTo(0.106, 0.012)... | 7 | 197 | 0.006314 |
train_3156746723a132a3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.115, -0.107, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.957, 0.023).threePointArc((-0.987, 0.036), (-1, 0.067)).lineTo(-1, 0.179).threePointArc((-0.987, 0.21), (-0.957, 0.223)).lineTo(0.957, 0.223).threePointArc((0.987, 0.21), (1, 0.179))... | 11 | 73 | 0.07799 |
train_65789e250bc5e719 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.461), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.89).extrude(0.891)
result = result.union(cq.Workplane(cq.Plane(origin=(0 + 0.554 * math.cos(1.217 + 2 * math.pi * 0 / 3), 0 + 0.554 * math.sin(1.217 + 2 * math.pi * 0 / 3), -0.621), norma... | 14 | 116 | 3.340832 |
train_0965e2e0e8c4a093 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.464, 0.223, 0.134), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.608, -0.574).lineTo(0, 0.034).lineTo(0, -0.574).lineTo(0.608, -0.574).lineTo(0.608, 0.642).lineTo(-0.608, 0.642).lineTo(-0.608, -0.574).close().extrude(0.792)
result = result.edge... | 18 | 232 | 0.893743 |
train_eb93c53d8473daf6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.912, -0.038), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.076, 0.061).lineTo(-0.043, -0.088).lineTo(0.076, -0.061).lineTo(0.043, 0.088).lineTo(-0.076, 0.061).close().sweep(cq.Workplane('YZ').spline([(0.912, -0.038), (0.696, 0.281), (0.166, ... | 3 | 8 | 0.051248 |
train_5abdbf39b148ac44 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.169, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.72, -0.018).lineTo(-0.72, 0.633).lineTo(-0.15, 0.633).threePointArc((0.227, 0.808), (0.604, 0.633)).threePointArc((0.72, 0.305), (0.592, -0.018)).threePointArc((0.227, -0.18), (-0.138, -0... | 4 | 46 | 1.914715 |
train_35b7e8ea70bae839 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.719, 0.099), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.458, -0.281).threePointArc((-0.444, -0.167), (-0.402, -0.06)).threePointArc((-0.324, 0.043), (-0.22, 0.121)).lineTo(-0.394, 0.121).threePointArc((0, 0.281), (0.394, 0.121)).lineTo(0.4... | 1 | 12 | 0.067897 |
train_bda253d4341bb3ad | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.017, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.647, 0.858).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.327, -0.035, -1.34), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.065).extrude(2.4))
result = result.cut(cq.Workpl... | 13 | 29 | 2.77638 |
train_654ac35b37e40947 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.116, -0.217, -0.114), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.144, 1.217).lineTo(-0.144, -0.546).lineTo(0.056, -0.546).lineTo(-0.005, -0.775).lineTo(0.144, -0.783).lineTo(0.144, 1.217).lineTo(-0.144, 1.217).close().extrude(0.337)
result =... | 8 | 107 | 0.766621 |
train_6cabbc14b35ef4a1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.172, 0.177, -0.379), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.565, 1.11).extrude(0.759)
result = result.faces('>Z').shell(-0.046)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.414, 0.862, -0.303), normal=(0, 0, 1), xDir=(1, 0, 0))).ci... | 6 | 92 | 0.387499 |
train_39ce708dcbb9d71d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.571, -0.22, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.015, -0.388).threePointArc((0.373, 0), (-0.015, 0.388)).threePointArc((-0.231, 0.323), (-0.373, 0.149)).lineTo(-0.06, 0.019).lineTo(-0.06, 0.045).lineTo(-0.015, 0.045).lineTo(0.03, 0.... | 7 | 42 | 0.337654 |
train_faa752cb2f88ce35 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.776), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.22).sweep(cq.Workplane('XY').spline([(-0.932, -0.524), (-0.466, -0.477), (0, 0), (0.466, 0.477), (0.932, 0.524)]))
result = result.edges().chamfer(0.11)
result = result.cut(cq.Workplane(cq.... | 7 | 5 | 0.199248 |
train_81eca9dc6613a2cd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.146, 0.118, 0.021), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.062, 0.19).threePointArc((-0.099, 0.074), (-0.004, -0.002)).threePointArc((0.016, -0.001), (0.036, 0.003)).threePointArc((0.067, 0.019), (0.092, 0.044)).threePointArc((0.095, 0.05... | 7 | 50 | 0.016085 |
train_46efa2fc942cfcf2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.484), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.571).workplane(offset=0.369).circle(0.493).workplane(offset=0.298).circle(0.661).workplane(offset=0.416).circle(0.784).workplane(offset=0.402).circle(0.537).loft()
result = result.edges().... | 11 | 49 | 1.660105 |
train_5e92662267a1f260 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.258, 0.006, -0.16), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.729, 0.009).lineTo(0.394, 0.654).lineTo(-0.401, 0.654).lineTo(-0.742, -0.016).lineTo(-0.383, -0.667).lineTo(0.353, -0.634).close().moveTo(-0.419, 0.136).lineTo(-0.163, 0.136).lineT... | 7 | 74 | 0.357431 |
train_7c3ce0863e7d2ec1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.011, 0.002, -0.332), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.989, -0.85).lineTo(0.996, -0.878).lineTo(1.011, 0.874).lineTo(-0.961, 0.874).close().moveTo(0.169, 0.143).lineTo(0.181, 0.143).lineTo(0.182, 0.182).lineTo(0.182, 0.338).lineTo(0.... | 11 | 69 | 1.670847 |
train_a97f31ade4c9ed76 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.988), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.757).extrude(1.975)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.14, -0.169, -0.707), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.185).extrude(0.609))
result = result.edges().fille... | 6 | 44 | 6.760459 |
train_e460de10e5832306 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.018, 0.021, -0.154), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.018, -0.012).lineTo(0.483, 0.84).lineTo(-0.492, 0.85).lineTo(-0.982, -0.008).lineTo(-0.473, -0.891).lineTo(0.473, -0.835).close().center(-0.277, 0.328).circle(0.118).moveTo(0.503,... | 11 | 123 | 0.495539 |
train_212b7da73ed1f93d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.288, 0, -0.567), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.424, 1.49).extrude(1.134)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.693, 0.212, -0.172), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.614, 0.268).extrude(0.626))
result = resul... | 3 | 14 | 2.404635 |
train_ae9f3d62ad5c7f8c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.09, -1.114, -0.774), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.831, 1.863).threePointArc((-0.169, 2.114), (0.493, 1.863)).threePointArc((0.831, 1.114), (0.493, 0.365)).threePointArc((-0.169, 0.114), (-0.831, 0.365)).lineTo(-0.169, 1.114).lin... | 3 | 29 | 3.159795 |
train_6de2be5b155e1d00 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.886, 0.57, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 1.07).lineTo(-1, 0.713).lineTo(0.627, 0.713).lineTo(0.643, 0.07).lineTo(1, 0.07).lineTo(1, 1.07).lineTo(-1, 1.07).close().extrude(1.772)
result = result.edges().chamfer(0.129)
result ... | 4 | 52 | 1.362396 |
train_11f394df81a576a0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.074, 0, -0.006), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.068, 1.033).threePointArc((0.001, 0.993), (0.068, 0.949)).lineTo(0.068, -0.949).threePointArc((0.001, -0.993), (-0.068, -1.033)).lineTo(-0.068, 1.033).close().revolve(angleDegrees=2... | 22 | 47 | 0.06787 |
train_ebec68add90218d8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.353, -0.692), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, -0.021).lineTo(0.038, -0.021).lineTo(0.044, -0.019).lineTo(0.114, 0).lineTo(0.189, -0.021).lineTo(0.189, -0.014).threePointArc((0.179, 0.01), (0.154, 0.021)).lineTo(0.038, 0.021).li... | 2 | 20 | 0.011164 |
train_d83cb5016cf9e71a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.392), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.565).extrude(0.607)
result = result.union(cq.Workplane(cq.Plane(origin=(0, -0.226 + 0.0565, 0.216), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.024).extrude(0.176))
result = result.union(... | 8 | 30 | 0.631895 |
train_3b2acc94d2143890 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.223, 0.027, -0.244), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.555, 0.769).extrude(0.488)
result = result.faces('>Z').shell(-0.027)
result = result.union(cq.Workplane(cq.Plane(origin=(0.422, 0.482, -0.048), normal=(0, 0, 1), xDir=(1, 0, 0))).cir... | 5 | 27 | 0.141951 |
train_fde639c9d4bd93df | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.388, -0.042, -0.244), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.117, 0.122).lineTo(0.117, 0.031).lineTo(0.025, 0.031).lineTo(0.025, 0.01).lineTo(0.117, 0.01).lineTo(0.117, -0.033).lineTo(0.025, -0.033).lineTo(0.025, -0.108).lineTo(0.04, -0.12... | 5 | 65 | 0.396304 |
train_4ab66262bc0058d2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.461, 0.157, -0.623), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.078, 0.776).extrude(0.538)
result = result.union(cq.Workplane(cq.Plane(origin=(0.435, -0.382, -0.399), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.162).extrude(0.147))
result = resul... | 11 | 80 | 0.505274 |
train_b140e13c85359984 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.59, 0, 0.202), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.341).workplane(offset=0.079).circle(0.394).workplane(offset=0.07).circle(0.411).workplane(offset=0.062).circle(0.389).workplane(offset=0.077).circle(0.35).workplane(offset=0.081).circl... | 11 | 48 | 0.283907 |
train_fd7ae5ef96d1dcad | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.452, 0, 0.596), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.202, 0.202).lineTo(-0.404, 0).lineTo(-0.401, -0.003).threePointArc((-0.32, -0.017), (-0.306, -0.098)).lineTo(-0.202, -0.202).lineTo(-0.098, -0.306).lineTo(-0.003, -0.401).lineTo(0, -... | 4 | 35 | 0.103801 |
train_8d065ca8eafe255c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.333), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.617, 2).extrude(0.666)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.333, -1.633), normal=(0, 1, 0), xDir=(1, 0, 0))).rect(0.382, 0.297).extrude(0.74))
result = result.cut(cq.Workpl... | 17 | 99 | 1.524915 |
train_4209c935f2734ed6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.501, 0.039, -0.025), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.649, 0.303).lineTo(0.003, 0.303).threePointArc((-0.236, -0.04), (-0.649, -0.11)).lineTo(-0.649, -0.303).lineTo(0.649, -0.303).lineTo(0.649, 0.303).close().sweep(cq.Workplane('XY'... | 12 | 76 | 0.700739 |
train_aaf0cfc06a84c09b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.359, 0.289, -0.006), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.28, 0.323).lineTo(-0.28, -0.65).lineTo(-0.096, -0.458).lineTo(-0.032, -0.458).lineTo(-0.032, -0.392).lineTo(0.28, -0.065).lineTo(0.28, 0.997).lineTo(-0.28, 0.997).lineTo(-0.28, 0... | 16 | 136 | 0.334025 |
train_17e81dcb33458a04 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.514, -0.41, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.017, -0.464).lineTo(0.808, -0.464).lineTo(0.721, -0.362).lineTo(0.627, -0.252).lineTo(0.017, 0.464).lineTo(-0.594, -0.252).lineTo(-0.705, -0.362).lineTo(-0.808, -0.464).lineTo(0.017, ... | 3 | 20 | 1.096127 |
train_5540169db39d2b01 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.586, -0.009, -0.269), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.411, 0.008).lineTo(0.27, 0.277).lineTo(-0.004, 0.411).lineTo(-0.28, 0.287).lineTo(-0.414, 0.009).lineTo(-0.274, -0.275).lineTo(0.002, -0.394).lineTo(0.293, -0.284).close().moveTo... | 5 | 107 | 0.187855 |
train_cb6b0591011f3942 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.023, -0.865, 0.39), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.015, 0.101).threePointArc((0.096, 0.112), (0.113, 0.001)).lineTo(0.003, -0.111).threePointArc((-0.112, -0.112), (-0.113, 0.004)).lineTo(-0.015, 0.101).close().sweep(cq.Workplane('... | 4 | 9 | 0.074694 |
train_9b17f87b35d2ccdb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.152), normal=(0, 0, -1), xDir=(1, 0, 0))).lineTo(0.333, 0.313).lineTo(0.667, 0.313).lineTo(0.667, 0.375).lineTo(1, 0.375).lineTo(1, 0).lineTo(0.667, 0).lineTo(0.333, 0).lineTo(0.333, 0.063).lineTo(0.292, 0.063).threePointArc((0.144, 0.001)... | 4 | 60 | 0.032015 |
train_76152ce10c71adc2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.211, -0.155, -0.036), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.652, 0.638).extrude(0.22)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.211, -0.14, -0.034), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.251, 0.107).threePointArc((0.044, ... | 15 | 102 | 0.277797 |
train_99153806ec6fb5a8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.574, 0.461, -0.065), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.43, -0.285).lineTo(0.43, 0.989).lineTo(-0.43, 0.989).lineTo(0.43, -0.285).close().extrude(1.148)
result = result.edges().fillet(0.146)
result = result.faces('<Z').shell(-0.05)
res... | 22 | 90 | 0.39372 |
train_185b80ffffa40c36 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.41, -0.095, 0.405), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.482).workplane(offset=0.457).circle(0.483).workplane(offset=0.369).circle(0.169).workplane(offset=0.488).circle(0.533).loft()
result = result.edges().chamfer(0.276)
result = resul... | 10 | 44 | 0.960963 |
train_2049427fb7ce0ab7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.708, -0.118, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.379, 0.381).lineTo(0.379, -0.35).lineTo(0.112, -0.35).threePointArc((0.059, -0.381), (0.007, -0.35)).lineTo(-0.379, -0.35).lineTo(-0.379, 0.266).lineTo(-0.379, 0.312).lineTo(-0.379, ... | 11 | 79 | 0.562262 |
train_ed59e9588fc398a7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.171, 0.133), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.172, 0.331).lineTo(0.199, 0.331).lineTo(0.199, -0.331).lineTo(0.199, -0.305).lineTo(0.172, -0.305).lineTo(0.172, -0.331).lineTo(-0.199, -0.331).lineTo(-0.199, -0.305).lineTo(-0.172, -... | 19 | 113 | 0.484611 |
train_5a0104a7b7cd159f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.06, -0.874, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1.023, 0.293).threePointArc((0, 0.567), (1.023, 0.293)).lineTo(0.87, 0.027).threePointArc((0, 0.26), (-0.87, 0.027)).lineTo(-1.023, 0.293).close().revolve(angleDegrees=90, axisStart=(1... | 7 | 72 | 0.685955 |
train_f1408ee2cf0a5a82 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.022), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1, 0.312).lineTo(1, -0.312).lineTo(-1, -0.312).lineTo(-1, 0.312).lineTo(1, 0.312).close().extrude(0.067)
result = result.edges().fillet(0.021)
result = result.union(cq.Workplane(cq.Plane(ori... | 10 | 66 | 0.069058 |
train_b22b5bbf9125995f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.217, 0.631, -0.271), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.729, 0.17).lineTo(-0.729, -0.021).threePointArc((-0.662, -0.174), (-0.507, -0.237)).lineTo(0.153, -0.237).lineTo(0.211, -0.237).lineTo(0.729, -0.237).lineTo(0.729, 0.054).lineTo(... | 18 | 100 | 0.840901 |
train_8fa4d69ad8f3ca34 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.303, -0.148), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.318, 0.734).lineTo(0.318, 0.734).lineTo(0.318, 0.705).lineTo(-0.288, 0.705).lineTo(-0.288, -0.606).lineTo(-0.318, -0.606).lineTo(-0.318, 0.734).close().extrude(1.108)
result = result... | 3 | 28 | 0.167074 |
train_960a90fff611cf6f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.494, 0.801, 0.008), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.411).workplane(offset=0.221).circle(0.384).workplane(offset=0.241).circle(0.5).workplane(offset=0.273).circle(0.411).workplane(offset=0.254).circle(0.461).workplane(offset=0.296).... | 9 | 36 | 1.689405 |
train_ee166d16e7f3e852 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.439), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.567, 2).extrude(0.877)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.383, 0.14, -0.32), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.428, 2.4).extrude(0.324))
result = result.cut(cq.Work... | 13 | 89 | 2.064272 |
train_169406ee3fef22d0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.294, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.324, -0.287).threePointArc((0.357, -0.211), (0.372, -0.131)).threePointArc((0.372, -0.063), (0.359, 0.004)).threePointArc((-0.018, 0.273), (-0.367, -0.032)).threePointArc((-0.373, -0.099... | 1 | 12 | 0.04627 |
train_5eb1da902bca059d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.541, 0.669), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.185, 0.371).lineTo(-0.185, -0.185).lineTo(-0.114, -0.185).lineTo(-0.114, -0.371).lineTo(0.114, -0.371).lineTo(0.114, -0.185).lineTo(0.185, -0.185).lineTo(0.185, 0.371).lineTo(-0.185, 0... | 9 | 49 | 0.409167 |
train_2d58b7a36b1fd6a4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.391, -0.125, -0.437), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.217, 0.777).extrude(0.726)
result = result.faces('>Z').shell(-0.055)
result = result.union(cq.Workplane(cq.Plane(origin=(0.541, -0.148, -0.695), normal=(0, 0, 1), xDir=(1, 0, 0))).c... | 11 | 63 | 0.527759 |
train_bc5092e8de54e095 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.021, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.396, -0.272).lineTo(0.396, 0.315).lineTo(-0.396, 0.315).lineTo(-0.396, -0.272).lineTo(0.396, -0.272).close().extrude(0.861)
result = result.edges().chamfer(0.08)
result = result.union(cq.... | 8 | 36 | 0.338767 |
train_ed0edd405fcf2ecd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.651, -0.193), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.807, 0.651).lineTo(-0.807, 0.651).lineTo(-0.807, -0.133).lineTo(0.807, -0.133).lineTo(0.807, 0.651).close().revolve(angleDegrees=360, axisStart=(0.807, 0.651), axisEnd=(0.576, 0.651))
... | 8 | 37 | 2.233412 |
train_6d619e91b7b7e6c3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.356, 0.024, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.059, 1.024).lineTo(-0.176, 1.024).lineTo(-0.176, -0.482).lineTo(-0.024, -0.482).lineTo(-0.024, -0.976).lineTo(0.176, -0.976).lineTo(0.176, -0.035).lineTo(0.059, -0.035).lineTo(0.059, 1... | 14 | 100 | 0.234846 |
train_032c7ffa671e1148 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.576, 0.567, -0.278), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.43, -0.105).lineTo(0.43, -0.424).lineTo(-0.43, -0.424).lineTo(-0.43, 0.424).lineTo(-0.111, 0.424).lineTo(-0.111, -0.105).lineTo(0.43, -0.105).close().sweep(cq.Workplane('XY').splin... | 17 | 58 | 0.712672 |
train_73d068fb0b730d37 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.073, -0.168, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.027).lineTo(-0.283, 0.027).lineTo(-0.283, 0.31).lineTo(0.283, 0.31).lineTo(0.283, 0.027).lineTo(0.085, 0.027).threePointArc((0.06, 0.087), (0, 0.112)).lineTo(0, 0.027).close().extr... | 13 | 113 | 0.230078 |
train_e57b3f41350ffa11 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.546, 0.57, 0.106), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.111, 0.915).lineTo(0.111, 0.859).threePointArc((0.151, 0.843), (0.167, 0.804)).lineTo(0.167, 0.9).threePointArc((0.208, 0.859), (0.223, 0.804)).lineTo(0.223, 0.581).threePointArc((0.... | 18 | 93 | 0.361626 |
train_819e1dffa56d530f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.167, 0.148, -0.017), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.736, 1.189).extrude(0.158)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.167, 0.555, 0.149), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.346, 0.35).lineTo(0.346, -0.57).li... | 7 | 65 | 0.287234 |
train_5f9be79e9a2efd4e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.391, -0.098), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.604, 1.217).extrude(0.197)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.099, 0.387, -0.039), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.207).extrude(0.047))
result = result.c... | 23 | 324 | 0.293617 |
train_2aedbf08ff9b3018 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.084, -0.073, 0.457), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.434, 0.163).lineTo(0.543, 0.163).lineTo(0.543, 0.005).lineTo(-0.543, 0.005).lineTo(-0.543, 0.163).lineTo(-0.434, 0.163).close().extrude(0.147)
result = result.edges().fillet(0.04... | 3 | 26 | 0.043372 |
train_c45f42b922fc5138 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.221, 0.089, 0.437), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.26).sweep(cq.Workplane('XY').spline([(-0.557, 0.089), (0.093, 0.089), (0.396, -0.028), (0.697, -0.145), (0.999, -0.262)]))
result = result.edges().chamfer(0.102)
result = result.cut... | 11 | 46 | 0.443318 |
train_00659a2dbdb605a9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.081, -0.226), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.595, -0.056).lineTo(0.595, -0.056).lineTo(0.595, 0.217).lineTo(-0.595, 0.217).lineTo(-0.595, -0.056).close().extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.12, 0.... | 19 | 36 | 0.560345 |
train_2e8e4d88fd7e93ce | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.457, -0.029, -0.015), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.1, -0.005).lineTo(0.1, -0.165).lineTo(-0.1, -0.165).lineTo(-0.1, 0.165).lineTo(0.06, 0.165).lineTo(0.06, -0.005).lineTo(0.1, -0.005).close().sweep(cq.Workplane('XY').spline([(-0.... | 5 | 56 | 0.107729 |
train_3eef79d9328b48f4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.034, -0.332, -0.145), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.091, -0.291).lineTo(-0.091, 0.291).lineTo(0.091, 0.291).lineTo(0.091, -0.291).lineTo(-0.091, -0.291).close().revolve(angleDegrees=90, axisStart=(-0.091, -0.291), axisEnd=(-0.09... | 32 | 128 | 0.025372 |
train_1b30eabcde470158 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.07, 0, -0.597), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.458, 0.907).extrude(0.651)
result = result.union(cq.Workplane(cq.Plane(origin=(0.13, -0.269, 0.026), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.39, 0.111).extrude(0.709))
result = result.u... | 12 | 61 | 0.67239 |
train_66f8388761e390d1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.487, 0.047, 0.001), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.051).transformed(offset=(0.043, -0.014, 0.028), rotate=(45, 0, 0)).circle(0.043).transformed(offset=(0.087, 0.014, 0.033), rotate=(0, 0, 0)).circle(0.062).transformed(offset=(0.13,... | 9 | 73 | 0.166016 |
train_3835313be88b072b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.242, 0.198, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.203).lineTo(0.234, -0.203).lineTo(-0.234, -0.203).lineTo(0, 0.203).close().sweep(cq.Workplane('XY').spline([(-0.633, 0.198), (-0.439, 0.447), (-0.245, -0.119), (-0.05, -0.162), (0.14... | 1 | 5 | 0.200992 |
train_ffaa7b370fb50d0c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.807, 0.485), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.072).sweep(cq.Workplane('YZ').spline([(0.261, -0.006), (0.2, 0.278), (-0.145, 0.308), (-0.326, -0.006), (-0.145, -0.319), (0.2, -0.29)]))
result = result.faces('>X').shell(-0.007)
resul... | 3 | 5 | 0.035695 |
train_140b3e7d0b613dcc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.945, 0.068, -0.004), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.557, 0.353).lineTo(0.557, 0.094).lineTo(0, 0.094).lineTo(0, 0.116).lineTo(-0.118, 0.116).lineTo(-0.118, 0.094).lineTo(-0.557, 0.094).lineTo(-0.557, 0.353).lineTo(0.557, 0.353).clos... | 8 | 64 | 0.617641 |
train_3af4d65cfbe3c3ad | 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.461, 1.716).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.17, 0.411, -0.321), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.829, 0.941).extrude(0.439))
result = result.cut(cq.Workpl... | 9 | 56 | 4.296741 |
train_7ba93df9623e565b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.3, 0.582, -0.756), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.206, 0.882).lineTo(-0.244, 0.882).lineTo(-0.225, 0.857).lineTo(0.206, 0.281).lineTo(0.244, 0.281).lineTo(-0.188, 0.857).lineTo(-0.206, 0.882).close().revolve(angleDegrees=90, axisS... | 10 | 144 | 0.058788 |
train_915c90d8993894f0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.046, -0.127, 0.418), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.131, 0.188).lineTo(-0.235, -0.201).lineTo(0.03, -0.265).lineTo(0.058, -0.159).lineTo(0.132, 0.117).lineTo(0.207, 0.394).lineTo(0.235, 0.499).lineTo(-0.027, 0.576).lineTo(-0.131,... | 30 | 261 | 0.414633 |
train_d80223db400570bc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.155, 0.107, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.158, 1.345).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.248, -0.191, -1.023), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.184).extrude(0.912))
result = result.edges().... | 8 | 46 | 3.087315 |
train_5e5804a43a6baf97 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.178, -0.517, -0.366), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.634, 0.812).lineTo(0.366, -0.188).lineTo(-0.634, 0.08).lineTo(0.634, 0.812).close().revolve(angleDegrees=180, axisStart=(0.634, 0.812), axisEnd=(0.366, -0.188))
result = result.c... | 30 | 8 | 0.537961 |
train_9adaffe463bd0820 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.221, -0.339, -0.363), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.08, 1.322).extrude(0.185)
result = result.union(cq.Workplane(cq.Plane(origin=(0.222, 0.248, -0.171), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.518, 0.192).lineTo(-0.233, -0.215).l... | 12 | 108 | 0.588853 |
train_f5c35a51897a98bd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.062, -0.808, -0.597), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.429, 1.616).lineTo(-0.429, 0.759).lineTo(-1.062, 0.125).lineTo(1.062, 0.125).lineTo(1.062, 0.982).lineTo(0.429, 1.616).close().extrude(1.194)
result = result.edges().chamfer(0.17... | 10 | 44 | 1.732986 |
train_72418d9da9ff0ba8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.103, 0.133, -0.153), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.463, -0.356).lineTo(-0.463, 0.797).lineTo(0.463, 0.797).lineTo(0.463, -0.591).lineTo(-0.463, -0.591).lineTo(-0.463, -0.356).close().extrude(1.133)
result = result.edges().chamfer... | 18 | 285 | 1.278833 |
train_3bd7d59107af0959 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.375, 0.017, 0.018), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.167).sweep(cq.Workplane('XZ').spline([(0.022, -0.001), (-0.105, 0.018), (-0.308, 0.023), (-0.497, 0.013)]))
result = result.edges().fillet(0.025)
result = result.union(cq.Workplane(... | 7 | 70 | 0.131447 |
train_0c55699a357501af | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.076, -0.609, 0.314), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.497, 0.798).threePointArc((-0.425, 0.283), (0.036, 0.044)).threePointArc((0.497, 0.936), (-0.497, 0.798)).close().extrude(0.442)
result = result.edges().chamfer(0.17)
result = res... | 4 | 34 | 0.392939 |
train_99f7fefa436c1e4a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.512, 0.124, -0.585), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.781, 0.735).extrude(0.522)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.428, 0.046, -0.109), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.055).extrude(0.875))
result = resu... | 11 | 80 | 0.492896 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.