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_c383d1d3aa5cf4a6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.716, -0.552, -0.456), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.494, 0.12).lineTo(-0.494, 0.984).lineTo(0.494, 0.984).lineTo(0.494, 0.12).lineTo(-0.494, 0.12).close().workplane(offset=0.332).moveTo(-0.516, 0.1).lineTo(-0.516, 1.004).lineTo(0... | 7 | 44 | 1.183531 |
train_2693044083f4184b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.636), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.576, 2).extrude(1.197)
result = result.union(cq.Workplane(cq.Plane(origin=(0.078, 0.1, 0.558), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.42, 1.799).extrude(0.082))
result = result.union(cq.W... | 18 | 212 | 2.954898 |
train_6663731ca6aad703 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.154, 0.017, -0.067), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.846, 0.024).lineTo(0.592, 0.579).lineTo(0.023, 0.814).lineTo(-0.596, 0.581).lineTo(-0.812, -0.001).lineTo(-0.566, -0.61).lineTo(-0.026, -0.848).lineTo(0.603, -0.572).close().moveTo... | 7 | 85 | 0.390723 |
train_aa0b89708b0bbec2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.954, -0.233, -0.014), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.168, 0.198).lineTo(-0.168, -0.198).lineTo(-0.12, -0.198).lineTo(-0.12, -0.007).lineTo(-0.024, -0.007).lineTo(-0.024, -0.198).lineTo(0.168, -0.198).lineTo(0.168, 0.198).lineTo(-... | 10 | 101 | 0.442736 |
train_6c7a0494843e4c00 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.187, -0.026, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.325, 0.258).lineTo(-0.204, 0.258).threePointArc((0, 0.095), (0.204, 0.258)).lineTo(0.325, 0.258).lineTo(0.325, -0.114).lineTo(0.14, -0.114).lineTo(0.14, -0.207).lineTo(-0.14, -0.207... | 11 | 97 | 0.194771 |
train_92d4de9e8c68b589 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.16, -0.462, 0.001), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.845, 0).lineTo(0, -0.571).lineTo(-0.845, 0).lineTo(0, 0.571).lineTo(0.845, 0).close().revolve(angleDegrees=360, axisStart=(0.845, 0), axisEnd=(0, -0.571))
result = result.edges().... | 7 | 36 | 1.816986 |
train_629c0e30e7852268 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.829, -1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.839, 0.409).lineTo(-0.516, 1.184).threePointArc((0, 1.528), (0.516, 1.184)).lineTo(0.839, 0.409).lineTo(0.839, 0.13).lineTo(-0.839, 0.13).lineTo(-0.839, 0.409).close().extrude(2)
result ... | 9 | 99 | 3.027735 |
train_9ed3a18739efd21a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.322, 1, -0.582), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.35, 0.611).lineTo(0.35, 0.032).lineTo(0.219, 0.118).lineTo(0.156, 0.105).lineTo(-0.142, 0.041).lineTo(-0.156, 0.105).lineTo(0, 0.26).lineTo(-0.156, 0.416).lineTo(-0.219, 0.402).lineTo... | 4 | 25 | 0.211779 |
train_cdc692f4c8441dfc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 1.127, -0.003), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.065, 1.127).lineTo(-0.192, 1.127).lineTo(-0.192, 0.127).lineTo(0.065, 0.127).lineTo(0.065, 0.922).lineTo(0.155, 0.922).threePointArc((0.192, 0.907), (0.176, 0.943)).lineTo(0.176, 1.127... | 5 | 24 | 0.51664 |
train_992c15c8dae3c086 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.01, 0.307, -0.157), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.834, 0.01).lineTo(0.369, 0.693).lineTo(-0.373, 0.682).lineTo(-0.814, -0.009).lineTo(-0.406, -0.706).lineTo(0.423, -0.714).close().moveTo(0.022, 0.35).lineTo(-0.022, 0.338).lineTo(-... | 16 | 123 | 0.269136 |
train_77999ec001e79582 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.206, -1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.672, 0.038).lineTo(-0.672, 0.373).lineTo(-0.522, 0.373).lineTo(-0.505, 0.401).lineTo(-0.28, 0.401).lineTo(-0.264, 0.373).lineTo(0.317, 0.373).lineTo(0.333, 0.401).lineTo(0.559, 0.401).li... | 11 | 64 | 0.743751 |
train_429e3a1069fbdcd3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.135, 0.028, -0.561), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.446, 0.475).extrude(0.659)
result = result.union(cq.Workplane(cq.Plane(origin=(0.135, 0.028, 0.069), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.121).extrude(0.506))
result = result.... | 11 | 30 | 0.089306 |
train_82a5a39a81707017 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.422, 0.365, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.311, 0.057).lineTo(0.325, 0.07).lineTo(0.024, 0.371).lineTo(-0.003, 0.398).lineTo(-0.016, 0.385).lineTo(-0.311, 0.68).lineTo(-0.325, 0.667).lineTo(-0.029, 0.371).lineTo(-0.325, 0.076).l... | 11 | 64 | 0.082542 |
train_7ca55cf505e1506c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.052, 0.001, -0.724), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.678, 0.37).extrude(0.519)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.205, 0.021, -0.253), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.135, 0.089).extrude(1.253))
result = ... | 8 | 71 | 0.121209 |
train_4e650950db586e59 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.421, 0.085, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.253, 0.089).lineTo(-0.226, 0.089).lineTo(-0.226, 0.041).lineTo(0.226, 0.041).lineTo(0.226, 0.089).lineTo(0.253, 0.089).lineTo(0.253, 0.014).lineTo(0.171, 0.014).lineTo(0.171, -0.089)... | 3 | 46 | 0.107309 |
train_d538cc0555dad8f0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.708, 0.111), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.676, -0.292).lineTo(0.676, -0.292).lineTo(0.221, 0.004).lineTo(0, 0.148).lineTo(-0.221, 0.292).threePointArc((-0.264, 0.148), (-0.221, 0.004)).lineTo(-0.676, -0.292).close().sweep(cq.... | 3 | 21 | 0.488509 |
train_1b8db22251645e99 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.273), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.52).extrude(0.545)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.273, -1.573), normal=(1, 0, 0), xDir=(0, 1, 0))).moveTo(-0.194, -0.13).lineTo(-0.194, -0.079).lineTo(0, -0.079).l... | 15 | 68 | 1.030401 |
train_791700781c98dfe3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.056, 0.953, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.904, -0.848).lineTo(-0.904, -0.751).lineTo(-0.807, -0.751).lineTo(-0.807, 0.96).lineTo(-0.904, 0.96).lineTo(-0.904, 1.056).lineTo(0.904, 1.056).lineTo(0.904, 0.96).lineTo(0.807, 0.96)... | 8 | 160 | 2.503638 |
train_76b049761f50bdb0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.421, -0.052, -0.28), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.159, 0.843).extrude(0.713)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.273, -0.069, -0.175), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.259, 0.085).extrude(0.092))
result =... | 10 | 52 | 0.796171 |
train_1d5f562bc5a7540c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.139, 0.037, -0.022), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.182, 0).lineTo(-0.182, 0.366).lineTo(0.182, 0.366).lineTo(0.182, -0.348).lineTo(-0.182, -0.348).lineTo(-0.182, 0).close().revolve(angleDegrees=270, axisStart=(-0.182, 0), axisEnd=... | 14 | 124 | 0.328499 |
train_a773ab21c011f587 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.295, 0.008, -0.062), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.277, 0.227).extrude(0.023)
result = result.union(cq.Workplane(cq.Plane(origin=(0.295, 0.008, -0.039), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.075).extrude(0.003))
result = result... | 21 | 240 | 0.05038 |
train_59c4bd5703861693 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.293, 0.357, -0.157), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.317, 1.287).moveTo(-0.161, -0.175).lineTo(0.161, -0.177).lineTo(0.162, 0.177).lineTo(-0.163, 0.178).close().extrude(0.432)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.026, ... | 7 | 46 | 0.852068 |
train_d0ce63896562b82b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.447, -0.186), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.801, -0.54).lineTo(0.764, -0.553).lineTo(0.801, 0.538).lineTo(-0.777, 0.537).close().moveTo(0.131, 0.038).lineTo(0.139, 0.052).lineTo(0.049, 0.105).lineTo(-0.096, 0.009).lineTo(-0.11... | 6 | 50 | 1.09662 |
train_edc3457c1d0b7fdf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.21, 0.01, -0.649), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.051, 0.05).threePointArc((-0.05, -0.05), (0.051, -0.049)).lineTo(-0.051, 0.05).close().sweep(cq.Workplane('XZ').spline([(0.858, -0.717), (0.489, -0.382), (-0.128, -0.296), (-0.674... | 2 | 7 | 0.017764 |
train_6ef89ca44c77fcf4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.61, 0.864, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.597, 1.526).lineTo(-0.597, -0.136).lineTo(0.597, -0.136).lineTo(0.597, 1.526).lineTo(-0.597, 1.526).close().extrude(1.219)
result = result.edges().fillet(0.133)
result = result.cut(cq.... | 16 | 151 | 1.903289 |
train_5f76f7f30e93b06c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.039, 0.002, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.381).workplane(offset=0.432).circle(0.326).workplane(offset=0.39).circle(0.445).workplane(offset=0.402).circle(0.48).workplane(offset=0.4).circle(0.343).loft()
result = result.edges()... | 17 | 93 | 0.533639 |
train_f1a79ebec3bf0658 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.161, 0.243, -0.613), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.387, 0.018).lineTo(0.387, 0.434).lineTo(-0.387, 0.434).lineTo(-0.387, 0.018).lineTo(0.387, 0.018).close().extrude(0.402)
result = result.edges().fillet(0.027)
result = result.unio... | 10 | 54 | 0.678739 |
train_2d83059a924179e2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.013, 0.022, -0.01), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.018, 1.022).threePointArc((-0.018, 0.022), (0.018, -0.978)).lineTo(0.018, 1.022).close().extrude(0.026)
result = result.union(cq.Workplane(cq.Plane(origin=(0.002, -0.383, 0.007), n... | 9 | 38 | 0.001148 |
train_fcd98e8f1f36a50b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.026, 0.049, -0.136), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.364, 0.088).lineTo(-0.364, 0.088).lineTo(-0.364, 0.01).lineTo(0.364, 0.01).lineTo(0.364, 0.088).close().extrude(0.048)
result = result.edges().fillet(0.011)
result = result.union(... | 13 | 89 | 0.003769 |
train_2b20b690e78c97f4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.397), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1, 0.615).lineTo(1, -0.615).lineTo(-1, -0.615).lineTo(-1, 0.615).lineTo(1, 0.615).close().extrude(0.794)
result = result.edges().fillet(0.042)
result = result.cut(cq.Workplane(cq.Plane(origi... | 16 | 128 | 0.994308 |
train_17b80e24d36ff149 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.046, 0, 0.06), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.661, -0.795).lineTo(0.149, -0.795).lineTo(0.409, -0.238).lineTo(0.248, -0.163).lineTo(0.661, 0.724).lineTo(0.509, 0.795).lineTo(-0.18, -0.683).lineTo(-0.661, -0.683).lineTo(-0.661, -0.7... | 3 | 19 | 0.581388 |
train_314c640d7e40adcf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.626), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.949).workplane(offset=0.5).circle(0.489).workplane(offset=0.386).circle(0.949).workplane(offset=0.367).circle(0.55).loft()
result = result.edges().chamfer(0.316)
result = result.cut(cq.Wor... | 3 | 8 | 1.789093 |
train_b2d83bf1164933f8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.048, 0, -0.198), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.798, 2).extrude(0.627)
result = result.faces('>Z').shell(-0.037)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.326, 0.967, 0.248), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.... | 3 | 31 | 0.366759 |
train_a34050632d6071de | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.021, -0.654), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.089, 0.085).lineTo(0.089, 0.085).lineTo(0.089, -0.019).lineTo(0.081, -0.019).lineTo(0.081, -0.085).lineTo(-0.081, -0.085).lineTo(-0.081, 0.077).lineTo(-0.089, 0.077).lineTo(-0.089, ... | 4 | 22 | 0.036055 |
train_e564acdca1218435 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.88, 0.933, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.033, -0.03).lineTo(-0.041, -0.03).lineTo(-0.041, 0.033).threePointArc((-0.057, 0.036), (-0.073, 0.033)).lineTo(-0.073, -0.03).lineTo(-0.075, -0.03).lineTo(-0.075, -0.036).lineTo(0.075, -... | 1 | 12 | 0.001809 |
train_ddf021dab02034ee | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.019, 0.006, 0.112), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.588, -0.967).lineTo(0.588, -1.006).lineTo(0.573, 0.994).lineTo(-0.579, 0.984).close().moveTo(-0.24, 0.124).lineTo(-0.084, 0.125).lineTo(-0.085, 0.168).lineTo(-0.197, 0.166).lineTo(... | 7 | 173 | 0.559367 |
train_74ca2d01eeba75e5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.67, -0.078, -0.228), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.601, 0.968).extrude(0.201)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.67, -0.055, -0.031), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.239).extrude(0.049))
result = resu... | 31 | 229 | 0.124788 |
train_e8a873d5f5119844 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.116, -0.325, -0.621), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.156, 0.641).threePointArc((0.156, 0), (-0.156, -0.641)).lineTo(-0.156, 0.641).close().sweep(cq.Workplane('XZ').spline([(0.031, -0.797), (0.09, -0.797), (0.149, -0.797), (0.237,... | 13 | 165 | 0.202676 |
train_e5588d9131cec209 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.445), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.305, 2).extrude(0.89)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.396, 0.453, -0.446), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.042).extrude(0.055))
result = result.cut(cq.Workpla... | 10 | 116 | 2.213341 |
train_9a540f57ce04597b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.507, 0, 0), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.507, -0.634).lineTo(0.507, 0.634).lineTo(-0.072, 0.634).lineTo(-0.072, 0).lineTo(-0.29, 0).lineTo(-0.507, -0.634).lineTo(0.507, -0.634).close().revolve(angleDegrees=270, axisStart=(0.507,... | 6 | 111 | 1.044305 |
train_c61c1d3129e2bf78 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.254, 0.275), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, -0.672).lineTo(0.797, 0.708).lineTo(0.797, 0.746).lineTo(0.861, 0.746).lineTo(0.839, 0.708).lineTo(0.042, -0.672).lineTo(0, -0.746).lineTo(-0.042, -0.672).lineTo(-0.839, 0.708).lineT... | 3 | 21 | 0.116669 |
train_5d27e9b0e2040064 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.009, -0.006, -0.197), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.895, -0.994).lineTo(0.872, -0.968).lineTo(0.881, 1.005).lineTo(-0.899, 1.006).close().center(0, 0.278).circle(0.137).center(-0.251, -0.477).rect(0.251, 0.281).center(0.501, 0).re... | 13 | 88 | 0.811961 |
train_d9a10cf195f0b896 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.004, 0, 0.636), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.335, 0.335).lineTo(-0.335, -0.084).lineTo(-0.125, -0.084).lineTo(-0.125, -0.335).lineTo(0.125, -0.335).lineTo(0.125, -0.084).lineTo(0.335, -0.084).lineTo(0.335, 0.335).lineTo(-0.335, ... | 7 | 56 | 0.386272 |
train_fe811c6d38766885 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.028, 0, -0.355), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.675, 0.371).extrude(0.298)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.095, 0.147, -0.273), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.04).extrude(0.186))
result = result.cut(c... | 25 | 87 | 0.080881 |
train_7bffc68ebea01660 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.107, -0.076, 0.464), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.966, 0.903).extrude(0.482)
result = result.union(cq.Workplane(cq.Plane(origin=(0.493, -0.101, 0.86), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.129, 0.08).lineTo(-0.129, -0.08).li... | 4 | 25 | 0.903862 |
train_21c251edab277fd9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.798, 1, -0.04), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.611, 0.14).lineTo(0.477, 1.475).lineTo(-0.611, 0.692).lineTo(0.611, 0.14).close().extrude(2)
result = result.edges().fillet(0.097)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.... | 13 | 43 | 1.482674 |
train_1511dc848d0cbb4b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.544, 1, 0.01), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.252, 0.028).lineTo(-0.252, 0.611).threePointArc((-0.378, 0.915), (-0.074, 0.789)).lineTo(0.163, 0.789).threePointArc((0.202, 0.692), (0.299, 0.653)).lineTo(0.299, 0.14).threePointArc((... | 7 | 28 | 0.862661 |
train_1d6d23a28a611e4f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.76, -0.422, -0.298), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.016, 0.151).lineTo(-0.24, -0.073).lineTo(-0.208, -0.105).lineTo(-0.187, -0.105).lineTo(-0.187, -0.151).lineTo(0.219, -0.151).lineTo(0.219, -0.105).lineTo(0.24, -0.105).lineTo(0.0... | 1 | 11 | 0.059214 |
train_d10668c19a20173d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.015, -0.001, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.05, 0.011).threePointArc((-0.048, 0.005), (-0.042, 0.003)).lineTo(0.042, 0.003).threePointArc((0.048, 0.005), (0.05, 0.011)).lineTo(-0.05, 0.011).close().revolve(angleDegrees=90, axis... | 3 | 40 | 0.001432 |
train_b27f06791595653e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.081, -0.07, -0.463), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.18, 0.134).lineTo(0.184, 0.134).lineTo(0.184, 0.071).lineTo(-0.12, 0.071).lineTo(-0.12, 0.013).lineTo(-0.184, 0.013).lineTo(-0.184, 0.134).lineTo(0.18, 0.134).close().extrude(0.16... | 19 | 194 | 0.010468 |
train_092687450349df0e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.004, -0.177), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.384, 0.275).lineTo(-0.207, 0.275).lineTo(-0.207, 0.293).lineTo(-0.139, 0.293).lineTo(-0.139, 0.275).lineTo(0.384, 0.275).lineTo(0.384, -0.27).lineTo(0.041, -0.27).lineTo(0.041, -0.2... | 3 | 26 | 0.813868 |
train_bc73c99343004c69 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.235, -0.325, -0.256), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.539, -0.099).threePointArc((0, 1.158), (0.539, -0.099)).threePointArc((0, -0.33), (-0.539, -0.099)).close().extrude(1.073)
result = result.edges().fillet(0.254)
result = result.... | 23 | 204 | 1.569835 |
train_1dd310538c453c68 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.306, 0.365, 0.137), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.387, 1.106).extrude(0.404)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.274, 0.231, 0.289), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.227).extrude(0.259))
result = result.cut... | 13 | 86 | 0.744803 |
train_6072cb4db810dd01 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.017, 0, -0.366), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.25, 1.821).extrude(0.03)
result = result.union(cq.Workplane(cq.Plane(origin=(0.246, -0.074, -0.325), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.675, 0.287).lineTo(0.527, 0.287).lineTo... | 7 | 64 | 0.591387 |
train_f97b7b9e80e95964 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.424, 0.102, -0.164), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.627, 0.461).extrude(0.328)
result = result.faces('>Z').shell(-0.025)
result = result.union(cq.Workplane(cq.Plane(origin=(0.025, 0.02, -0.05), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(... | 7 | 50 | 0.073455 |
train_63929931536fbf3d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.291, -0.005, 0.233), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.183, 0.176).lineTo(-0.168, 0.176).lineTo(-0.168, 0.161).lineTo(0.183, 0.161).lineTo(0.183, 0.051).lineTo(0.168, 0.051).lineTo(0.168, 0.036).lineTo(-0.168, 0.036).lineTo(-0.168, ... | 8 | 96 | 0.085724 |
train_6c4fcadee276030c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.03, -0.575, -0.19), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.522, 0.508).threePointArc((0, 1.03), (-0.522, 0.508)).lineTo(-0.522, -0.875).threePointArc((0, -0.97), (0.522, -0.875)).lineTo(0.522, 0.508).close().extrude(0.719)
result = result.... | 19 | 124 | 1.11787 |
train_d46e81ff22bb6373 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.057, -0.088, -0.869), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.114, 0.188).threePointArc((-0.126, 0.183), (-0.131, 0.171)).lineTo(-0.131, -0.058).threePointArc((-0.126, -0.069), (-0.114, -0.074)).lineTo(0.114, -0.074).threePointArc((0.126, ... | 5 | 32 | 0.013728 |
train_e3873efd2391a992 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.019, 0, -0.852), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.425, 0.425).extrude(0.905)
result = result.faces('>Z').shell(-0.044)
result = result.union(cq.Workplane(cq.Plane(origin=(0.043, 0.019, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.1... | 18 | 27 | 0.136208 |
train_c6260b78028e5bf6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.013, -0.525, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.517, 0.655).threePointArc((-0.024, -0.024), (0.656, -0.515)).lineTo(0.586, -0.655).threePointArc((-0.135, -0.135), (-0.656, 0.584)).lineTo(-0.517, 0.655).close().sweep(cq.Workplane(... | 1 | 8 | 15.413751 |
train_837228fc0aef71ef | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.672, -0.338, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.82, 0.678).lineTo(-0.82, 0.608).lineTo(-1, 0.608).lineTo(-1, 0.182).lineTo(-0.82, 0.182).lineTo(-0.82, -0.002).lineTo(-0.357, -0.002).lineTo(-0.357, 0.11).lineTo(1, 0.11).lineTo(1, 0... | 1 | 12 | 0.691959 |
train_1d887ad372fa6a6a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.317, 0.206), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.521, 0.666).threePointArc((-0.628, 0.317), (-0.521, -0.032)).threePointArc((0, -0.31), (0.521, -0.032)).threePointArc((0.628, 0.317), (0.521, 0.666)).threePointArc((0, 0.945), (-0.521... | 11 | 57 | 1.445781 |
train_0c76e39d4049d95c | 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.117, 1.037).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.532, -0.153, -0.46), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.026).extrude(0.137))
result = result.cut(cq.Workplane... | 9 | 84 | 2.16849 |
train_aca502e4fa5facf1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.119, 0.014, -0.268), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.127, 0.518).extrude(0.536)
result = result.faces('>Z').shell(-0.033)
result = result.union(cq.Workplane(cq.Plane(origin=(0.826, 0.088, -0.031), normal=(0, 0, 1), xDir=(1, 0, 0))).rec... | 8 | 56 | 0.180325 |
train_49555a17b966bcec | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.055, 0.055, 0.13), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.261, -0.865).threePointArc((-0.818, -0.818), (-0.865, -0.261)).lineTo(-0.123, 0.782).threePointArc((0.865, 0.865), (0.782, -0.123)).lineTo(-0.261, -0.865).close().extrude(0.701)
r... | 9 | 39 | 1.655533 |
train_becb657fdc7070ca | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1.036, -0.289, -0.772), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.57).sweep(cq.Workplane('XY').spline([(-0.094, -0.674), (0.175, -0.666), (0.444, -0.621), (0.713, -0.445), (0.983, -0.132), (1.252, 0.043), (1.521, 0.088), (1.791, 0.097)]))
resu... | 4 | 11 | 0.84793 |
train_7d6f2686f8e50a66 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.695, -0.41, 0.248), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.641).workplane(offset=0.661).circle(0.534).workplane(offset=0.729).circle(0.586).loft()
result = result.edges().chamfer(0.205)
result = result.union(cq.Workplane(cq.Plane(origin=(0... | 13 | 68 | 0.81567 |
train_77832d46f9530cb9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.457, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.63, 1.237).lineTo(-0.63, -0.416).lineTo(0.63, -0.416).lineTo(0.63, 1.329).lineTo(-0.63, 1.329).lineTo(-0.63, 1.237).close().extrude(2)
result = result.edges().chamfer(0.21)
result = resul... | 7 | 48 | 3.387995 |
train_c20a8b267f8f6202 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.296, -0.476, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.297, 1.296).lineTo(0.297, 1.027).threePointArc((0, -0.704), (-0.297, 1.027)).lineTo(-0.297, 1.296).lineTo(0.297, 1.296).close().extrude(0.951)
result = result.edges().fillet(0.116)
re... | 12 | 49 | 2.20067 |
train_6bef457af907a477 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.095, 0.112, -0.128), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.637, 0.283).extrude(0.089)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.036, 0.067, -0.15), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.068).extrude(0.022))
result = resul... | 15 | 237 | 0.054631 |
train_657ab0f04c9e8690 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.001, 0.021), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.112, 0.299).lineTo(-0.131, 0.299).lineTo(-0.131, 0).lineTo(-0.187, 0).lineTo(-0.187, -0.112).threePointArc((-0.055, -0.167), (0, -0.299)).lineTo(0.059, -0.299).threePointArc((0.093, -... | 2 | 20 | 0.084487 |
train_8c292f6525b97684 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.265, 0.285, -0.44), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.365, 1.431).extrude(0.478)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.634, 0.304, -0.08), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.353, 0.606).lineTo(0.292, 0.606).thre... | 9 | 44 | 0.690322 |
train_a9a2246c2c105b6f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.222, -0.944, -0.571), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.63, 0.959).lineTo(-0.63, 0.718).lineTo(-0.667, 0.718).lineTo(-0.667, 0.348).lineTo(-0.63, 0.348).lineTo(-0.63, 0.07).lineTo(-0.579, 0.07).lineTo(-0.579, 0.033).lineTo(0.667, 0.0... | 21 | 62 | 1.248331 |
train_0fa321b5004c9fa0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.568, 0.197, -0.122), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.432, -0.122).lineTo(-0.432, 0.122).lineTo(0.432, 0.122).lineTo(0.432, 0.044).lineTo(0.167, 0.044).lineTo(0.167, -0.122).lineTo(-0.432, -0.122).close().extrude(0.065)
result = re... | 22 | 188 | 0.257154 |
train_10ca6bc5276ab60b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.127, 0.321, -0.195), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, 0.679).lineTo(0.315, 0.497).threePointArc((0.63, -0.049), (0.315, -0.594)).threePointArc((0, -0.679), (-0.315, -0.594)).threePointArc((-0.545, -0.364), (-0.63, -0.049)).threePoi... | 7 | 41 | 0.443961 |
train_e14ec9d8eebeaaee | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.316, 0, -0.509), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.369, 1.929).extrude(1.019)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.316, 0, -0.662), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.749, 0.779).extrude(1.324))
result = result.un... | 5 | 15 | 2.237296 |
train_b7066f5ec52ceaa7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.11, -0.181, -0.292), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.189, 1.349).extrude(0.592)
result = result.union(cq.Workplane(cq.Plane(origin=(0.606, 0.032, -0.056), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.29, 0.189).extrude(0.087))
result = r... | 10 | 82 | 0.865242 |
train_1b666f7ae597fada | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.163, 0.481, -0.408), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.255, 0.454).lineTo(0.073, -0.002).lineTo(0.073, -0.162).lineTo(0.331, -0.162).lineTo(0.331, 1.124).lineTo(-0.331, 1.124).lineTo(-0.331, 0.757).lineTo(-0.303, 0.647).lineTo(-0.255,... | 7 | 67 | 0.732331 |
train_f408f9336c7f4473 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.266, 0.254, 0.189), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.74, 0.476).lineTo(-0.74, 0.495).lineTo(-0.555, 0.495).lineTo(-0.555, 0.476).lineTo(0.74, 0.476).lineTo(0.74, 0.106).lineTo(-0.74, 0.106).lineTo(-0.74, 0.476).close().workplane(off... | 29 | 81 | 0.129723 |
train_8b4c574d995ecf24 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.416, 0, 0.25), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.489, 0.651).lineTo(0.489, 0.173).threePointArc((-0.005, -0.234), (-0.489, -0.651)).lineTo(-0.489, 0.651).lineTo(0.489, 0.651).close().sweep(cq.Workplane('XZ').spline([(-1.036, -0.352), ... | 7 | 38 | 0.894891 |
train_66939602b9de5cf9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.06, -0.498, -0.808), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.871, 0.871).extrude(1.633)
result = result.faces('>Z').shell(-0.09)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.023, -0.474, 0.813), normal=(0, 0, 1), xDir=(1, 0, 0))).re... | 7 | 72 | 1.498868 |
train_b90917116298616e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.889, 0.324, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.167).threePointArc((-0.163, 0.036), (-0.071, -0.151)).threePointArc((-0.036, -0.163), (0, -0.167)).threePointArc((0.036, -0.163), (0.071, -0.151)).threePointArc((0.163, 0.036), (0,... | 4 | 37 | 0.1711 |
train_8997099211bdd447 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.209, -0.521, -0.216), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.106, -0.016).lineTo(0.106, 0.132).lineTo(-0.106, 0.132).threePointArc((-0.069, 0.055), (-0.021, -0.016)).lineTo(0.106, -0.016).close().extrude(0.373)
result = result.edges().chamf... | 23 | 185 | 0.158592 |
train_a78bec24700e4bd2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.247, 0, -0.762), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.506, 1.698).extrude(1.525)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.141, 0.361, -0.387), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.807, 0.22).extrude(0.214))
result = result.c... | 20 | 113 | 2.356049 |
train_321b65377a24ba63 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.131, 0, -0.551), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.223, 0.802).extrude(0.453)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.104, 0.116, -0.131), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.042).extrude(1.131))
result = result.un... | 8 | 67 | 0.476426 |
train_cffd7ece55871f09 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.016, 0.006, -0.318), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.016, 0.027).lineTo(0.705, 0.734).lineTo(-0.025, 0.991).lineTo(-0.702, 0.721).lineTo(-0.984, -0.017).lineTo(-0.689, -0.699).lineTo(-0.017, -1.003).lineTo(0.703, -0.712).close().cen... | 14 | 126 | 0.433603 |
train_c49f49edea25c38f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.5, 0.01, 0.5), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.5, 0.018).lineTo(-0.5, 0.002).lineTo(0.5, 0.002).lineTo(0.5, 0.018).lineTo(-0.5, 0.018).close().revolve(angleDegrees=180, axisStart=(-0.5, 0.018), axisEnd=(-0.5, 0.002))
result = resul... | 10 | 67 | 0.022009 |
train_d1e7968e70d8b17d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.014, 0.004, -0.23), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.006, 0.027).lineTo(0.67, 0.694).lineTo(0.005, 0.996).lineTo(-0.725, 0.7).lineTo(-0.978, 0.024).lineTo(-0.69, -0.686).lineTo(0.007, -1.004).lineTo(0.703, -0.668).close().moveTo(0.20... | 12 | 111 | 0.747445 |
train_430973a1cc49acd4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.187, 0, 0.079), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.068, -0.578).lineTo(-0.466, 0.347).lineTo(-0.068, 0.578).lineTo(0.466, -0.347).lineTo(0.068, -0.578).close().sweep(cq.Workplane('XZ').spline([(0.187, 0.079), (0.617, 0.079), (0.718, 0.... | 4 | 28 | 1.105972 |
train_09d41c56d014af00 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.018, -0.299), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.886, 1.126).extrude(0.708)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.125, -0.061, 0.04), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.281, 1.351).extrude(0.228))
result = result.e... | 18 | 103 | 0.501934 |
train_9e85006c45e7371a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.295, -0.487, -0.057), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.943, 0.53).lineTo(-0.943, 0.53).lineTo(-0.943, 0.024).lineTo(0.943, 0.025).lineTo(0.943, 0.53).close().extrude(0.932)
result = result.edges().fillet(0.073)
result = result.cut(cq... | 11 | 64 | 0.858577 |
train_a23aabfa7cd88b92 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.004, 0.311, 0.153), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.533, 1.378).extrude(0.559)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.217 + 0.0425, 0.311, 0.713), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.01, 0.014).lineTo(-0.013, ... | 21 | 146 | 0.764653 |
train_761ff3b2692f1bbd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.396, 0.072, 0.194), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.676, 0.564).lineTo(0.676, -0.328).lineTo(-0.676, -0.328).lineTo(-0.676, 0.867).lineTo(0.676, 0.867).lineTo(0.676, 0.564).close().extrude(0.928)
result = result.edges().chamfer(0.19... | 10 | 74 | 1.452339 |
train_01a999fda34d76f1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.279, -0.42, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.273, 1.417).lineTo(-0.263, 1.42).lineTo(-0.07, 0.701).lineTo(-0.068, 0.693).lineTo(-0.043, 0.601).lineTo(-0.041, 0.593).lineTo(-0.016, 0.501).lineTo(-0.014, 0.493).lineTo(0.01, 0.401)... | 2 | 26 | 0.011857 |
train_fc78506365a624d5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.021, 0.795, 0.036), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.733, -0.712).lineTo(0.227, -0.712).lineTo(-0.921, 0.566).lineTo(-0.921, 0.66).lineTo(0.282, 0.754).lineTo(0.733, 0.754).lineTo(0.759, 0.657).lineTo(0.921, 0.566).lineTo(0.733, 0.56... | 5 | 80 | 3.073717 |
train_36332ae634d18086 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.947, -0.741, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.821, 1.458).lineTo(1, 0.073).lineTo(0.621, 0.024).lineTo(0.595, 0.228).lineTo(-0.874, 0.039).lineTo(-1, 1.018).lineTo(0.468, 1.206).lineTo(0.442, 1.409).lineTo(0.821, 1.458).close().w... | 17 | 23 | 2.189299 |
train_039979956c053c65 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.422, -0.729), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.808, 0.577).lineTo(-0.839, 0.577).lineTo(-0.839, -0.577).lineTo(0.839, -0.577).lineTo(0.839, -0.535).lineTo(-0.808, -0.535).lineTo(-0.808, 0.577).close().sweep(cq.Workplane('YZ').spl... | 1 | 8 | 0.254547 |
train_dc36cd478d1de722 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.313, -0.002), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.181, 0.278).threePointArc((0, 0.459), (-0.181, 0.278)).lineTo(-0.181, 0).lineTo(-0.181, -0.278).threePointArc((0, -0.459), (0.181, -0.278)).lineTo(0.181, 0.278).close().workplane(offs... | 8 | 73 | 0.135183 |
train_fdfc2f79c8f5ee91 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.143, -0.279, -0.111), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.016, -0.222).threePointArc((-0.001, -0.221), (-0.018, -0.217)).threePointArc((-0.18, -0.152), (-0.336, -0.07)).threePointArc((-0.367, -0.039), (-0.38, 0.003)).lineTo(-0.383, 0.071... | 21 | 202 | 0.509 |
train_cc8cd74177ed6026 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.36, -0.411, -0.377), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.503, 0.763).threePointArc((-0.6, 0.723), (-0.64, 0.625)).lineTo(-0.64, 0.557).lineTo(-0.64, 0.511).lineTo(-0.64, 0.281).lineTo(-0.64, 0.235).lineTo(-0.64, 0.167).threePointArc((-0... | 10 | 99 | 0.82517 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.