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_1e0fd19c5a63dffd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.013, -0.486, 0.122), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.601, -0.63).threePointArc((0.402, -0.545), (0.209, -0.451)).threePointArc((-0.21, -0.203), (-0.601, 0.088)).lineTo(-0.601, 0.63).threePointArc((-0.216, 0.293), (0.209, 0.008)).thre... | 2 | 32 | 0.99805 |
train_3bf0b26523bc3107 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.317), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.97).extrude(0.942)
result = result.union(cq.Workplane(cq.Plane(origin=(0, -0.788 + 0.394, -0.624), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.216).extrude(0.307))
result = result.union(c... | 9 | 29 | 3.515598 |
train_a42535302f9be2d4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.176, -0.098, 0.034), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.53).workplane(offset=0.217).circle(0.384).workplane(offset=0.224).circle(0.504).workplane(offset=0.263).circle(0.572).workplane(offset=0.219).circle(0.421).loft()
result = result.... | 18 | 150 | 0.75183 |
train_39175dd0dd129037 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.519, -0.501), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.316, -0.519).lineTo(0.316, -0.519).lineTo(0.316, 0.547).lineTo(-0.316, 0.1).lineTo(-0.316, -0.519).close().revolve(angleDegrees=180, axisStart=(-0.316, -0.519), axisEnd=(0.316, -0.519... | 27 | 514 | 0.672035 |
train_9dec18c7477db291 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.637).workplane(offset=1.02).circle(0.452).workplane(offset=0.98).circle(0.527).loft()
result = result.edges().fillet(0.136)
result = result.faces('>Z').shell(-0.326)
result = result.cut(cq.Wor... | 24 | 60 | 1.053277 |
train_98a69e2c41e7f1e7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.086, -0.17, -0.01), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.429, 0.011).lineTo(0.297, 0.291).lineTo(-0.005, 0.426).lineTo(-0.304, 0.294).lineTo(-0.42, 0.007).lineTo(-0.296, -0.295).lineTo(-0.012, -0.437).lineTo(0.304, -0.291).close().moveTo... | 15 | 144 | 0.117426 |
train_947a40ce059221f3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.414), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.8, 2).extrude(0.651)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.32 + 0.1065, 0, 0.237), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.037, 0.011).lineTo(0.038, 0.001).lineTo(0.038,... | 6 | 79 | 1.002152 |
train_b513c1939825c8dc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.475).workplane(offset=0.433).circle(0.462).workplane(offset=0.411).circle(0.41).workplane(offset=0.4).circle(0.434).workplane(offset=0.352).circle(0.426).workplane(offset=0.404).circle(0.449).... | 11 | 64 | 0.90774 |
train_b90712573f025675 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.167, 0, -0.351), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.665, 1.993).extrude(0.069)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.376, -0.2, -0.283), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.914, 1.194).extrude(0.015))
result = resu... | 16 | 97 | 0.324766 |
train_a2a21ffa605a1a5a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.075), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.472, 2).extrude(0.12)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.589 + 0.1965, -0.8 + 0.2665, 0.045), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.096, 0.024).lineTo(0.096, 0.027)... | 10 | 87 | 0.355218 |
train_51a98c4030390f6c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.391, -0.001, -0.718), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.01, 0.243).lineTo(0.083, 0.351).lineTo(0.108, 0.223).lineTo(0.192, 0.168).lineTo(0.247, 0.085).lineTo(0.266, -0.014).lineTo(0.247, -0.112).lineTo(0.192, -0.195).threePointArc((0.... | 12 | 169 | 0.232855 |
train_e36401c39b88c366 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.511, 0, -0.506), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.031, -0.015).threePointArc((-0.003, -0.019), (-0.031, 0.002)).lineTo(-0.003, 0.019).threePointArc((0.005, 0.013), (0.015, 0.014)).lineTo(0.031, -0.015).close().sweep(cq.Workplane('XZ'... | 4 | 33 | 0.006701 |
train_9fb65c0be3d54513 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.156, -0.276), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.096, 1.688).extrude(0.553)
result = result.union(cq.Workplane(cq.Plane(origin=(0.208, -0.835, -0.134), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.216, 0.331).extrude(0.237))
result = resu... | 4 | 19 | 0.949097 |
train_36d327edf33cc155 | 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.497, 1.286).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.033, 0.128, 0.619), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.932, 0.659).extrude(0.391))
result = result.cut(cq.Workpl... | 8 | 27 | 3.181043 |
train_8e1b1ae606cbc897 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.003, 0.32, -0.405), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.35).lineTo(0.286, 0.35).lineTo(0.286, 0.683).lineTo(-0.286, 0.683).lineTo(-0.286, 0.35).lineTo(0, 0.35).close().revolve(angleDegrees=270, axisStart=(0, 0.35), axisEnd=(0.206, 0.... | 13 | 170 | 0.290259 |
train_023a128170e6f2f6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.18, 0, -0.385), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.64, 1.396).extrude(0.771)
result = result.faces('>Z').shell(-0.046)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.803, 0.204, -0.184), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0... | 4 | 64 | 0.333671 |
train_bcae14d4aba2b7bd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.581), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.081, 1.773).extrude(1.581)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.089, -0.444, -0.322), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.343).extrude(0.796))
result = result.cut(cq.... | 17 | 116 | 2.093926 |
train_e395ba0523803ee1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.098, -0.427, -0.685), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.615, 1.146).extrude(1.369)
result = result.union(cq.Workplane(cq.Plane(origin=(0.301, -0.291, -0.206), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.104).extrude(0.573))
result = res... | 21 | 215 | 0.747559 |
train_d936cfa766906525 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.2, 0.138), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.035, -0.284).threePointArc((-0.32, 0), (-0.035, 0.284)).lineTo(-0.035, 0.355).threePointArc((0.32, 0), (-0.035, -0.355)).lineTo(-0.035, -0.284).close().sweep(cq.Workplane('XY').spline... | 8 | 13 | 0.716108 |
train_796c16c323e6af85 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.029, -0.001, -0.013), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.59, 0.066).extrude(0.046)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.653, 0.01, -0.006), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.694, 0.021).extrude(0.035))
result = ... | 10 | 43 | 0.003492 |
train_4eac0698310698a6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.031, 0, -0.298), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.686, 1.646).extrude(0.597)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.52, -0.591, -0.316), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.171, 0.135).extrude(0.716))
result = resul... | 12 | 263 | 1.596669 |
train_dea220df29c45730 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.394), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1, 0.882).lineTo(0.118, 0.882).threePointArc((1, 0), (0.118, -0.882)).lineTo(-1, -0.882).lineTo(-1, 0.882).close().extrude(0.789)
result = result.edges().chamfer(0.076)
result = result.cut(... | 10 | 42 | 2.422448 |
train_854ba636f44cd710 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.81, 0.488, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.426, 1.41).lineTo(-0.677, 1.117).lineTo(-0.942, 0.658).lineTo(-0.483, 0.393).lineTo(-0.33, 0.305).lineTo(-0.286, 0.382).lineTo(0.212, 0.094).lineTo(0.853, 0.465).lineTo(0.853, 1.039).l... | 22 | 134 | 1.184195 |
train_d4caf23d0353a9c2 | 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.212, 0.876).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.572, 0.177, 0.364), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.037).extrude(0.098))
result = result.cut(cq.Workplane(c... | 7 | 30 | 2.040048 |
train_67305038b54142b3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.007, -0.017, -0.441), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.993, -0.023).lineTo(0.675, 0.718).lineTo(-0.012, 0.996).lineTo(-0.713, 0.675).lineTo(-1.007, 0.005).lineTo(-0.707, -0.672).lineTo(-0.023, -0.962).lineTo(0.708, -0.68).close().move... | 15 | 76 | 1.654336 |
train_bf7388baf122237c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.257).workplane(offset=0.613).circle(0.265).workplane(offset=0.722).circle(0.266).workplane(offset=0.665).circle(0.277).loft()
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.076, 0.19, -0... | 8 | 47 | 0.345514 |
train_e1af1b2c9d8d3d64 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.265, -0.611, -0.606), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.924, 0.138).extrude(0.055)
result = result.union(cq.Workplane(cq.Plane(origin=(0.121, -0.598, -0.641), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.042).extrude(0.036))
result = resu... | 12 | 115 | 1.358343 |
train_a0af49f78a725d5b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.088, 0.138, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.002, 0.273).threePointArc((0.146, 0.129), (0.002, -0.016)).threePointArc((-0.146, 0.129), (0.002, 0.273)).close().extrude(0.276)
result = result.edges().chamfer(0.02)
result = result.... | 5 | 22 | 0.018565 |
train_d15295f46228a45a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.388, -0.176, -0.038), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.45).sweep(cq.Workplane('XZ').spline([(0.423, -0.576), (0.216, -0.244), (-0.3, -0.097), (-0.834, -0.216)]))
result = result.edges().fillet(0.098)
result = result.cut(cq.Workplane... | 13 | 6 | 0.051491 |
train_c8fb80d3282d755a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.213, 0, 0.426), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, 0.787).threePointArc((-0.787, 0), (0, -0.787)).lineTo(0.787, -0.787).lineTo(0.787, 0).threePointArc((0.556, 0.556), (0, 0.787)).close().extrude(0.852)
result = result.edges().chamfer... | 19 | 65 | 1.431222 |
train_cd891cc52f214a86 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.545, 0.31, 0.016), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.056, 0.051).threePointArc((-0.006, 0.06), (-0.056, 0.022)).lineTo(-0.028, 0.022).lineTo(-0.028, -0.018).lineTo(-0.028, -0.019).threePointArc((0.015, -0.06), (0.056, -0.018)).threePo... | 12 | 122 | 0.131227 |
train_36b683eebd122b70 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.244, 0.411, 0.138), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.179, 0.111).lineTo(0.179, -0.067).lineTo(0, -0.067).threePointArc((-0.126, -0.015), (-0.179, 0.111)).lineTo(0.179, 0.111).close().extrude(0.074)
result = result.edges().chamfer(0.0... | 10 | 123 | 0.435216 |
train_268ff1c701885308 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.384, 0, -0.855), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.616, 0).threePointArc((0.616, 0.024), (0.615, 0.046)).threePointArc((0.613, 0.071), (0.611, 0.094)).threePointArc((0.218, 0.689), (-0.492, 0.731)).threePointArc((-0.514, 0.721), (-0.5... | 2 | 29 | 1.27427 |
train_c81115db7b10fb90 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.09, 0, -0.332), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.096, 2).extrude(0.665)
result = result.union(cq.Workplane(cq.Plane(origin=(0.543, 0.096, -0.266), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.19, 0.997).extrude(0.397))
result = result.cut... | 7 | 31 | 1.352396 |
train_82dc91a0fa9032d7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.157, 0.089, -0.589), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.162, -0.468).lineTo(0.162, 0.477).lineTo(-0.162, 0.477).lineTo(-0.162, -0.468).lineTo(0.162, -0.468).close().extrude(0.36)
result = result.edges().fillet(0.007)
result = result.uni... | 10 | 92 | 0.655306 |
train_f903c08e560477fc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.698, 0.038, -0.467), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.123, 0.211).threePointArc((0.171, 0.15), (0.228, 0.095)).threePointArc((-0.228, -0.211), (0.123, 0.211)).close().sweep(cq.Workplane('XY').spline([(-0.698, -0.102), (-0.42, -0.102)... | 5 | 26 | 0.037098 |
train_aafe9851b89066d1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.376, 0.061, 0.562), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.282, 0.746).lineTo(-0.282, 0.746).lineTo(-0.282, -0.551).lineTo(0.282, -0.551).lineTo(0.282, 0.746).close().extrude(0.519)
result = result.edges().fillet(0.086)
result = result.uni... | 23 | 151 | 0.638017 |
train_4884885aafa91caf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.582, -0.003, 0.181), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.418, 0.139).lineTo(-0.36, 0.139).lineTo(-0.36, 0.168).lineTo(-0.418, 0.168).lineTo(-0.418, -0.168).lineTo(0.418, -0.168).lineTo(0.418, 0.139).close().extrude(0.538)
result = resul... | 10 | 82 | 0.271234 |
train_5ff97a511e2c8d7c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.373).workplane(offset=0.314).circle(0.373).workplane(offset=0.316).circle(0.376).workplane(offset=0.308).circle(0.368).workplane(offset=0.373).circle(0.378).workplane(offset=0.339).circle(0.33... | 5 | 3 | 0.824829 |
train_5ba2c0d45f524ae9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.247, 0, -0.419), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.506, 1.693).extrude(0.838)
result = result.union(cq.Workplane(cq.Plane(origin=(0.744, 0.062, 0.042), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.513, 0.531).extrude(0.217))
result = resul... | 4 | 69 | 2.134524 |
train_df8642ac2eca9568 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.726, 0.102), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.097, 0.104).lineTo(0.097, 0.007).lineTo(0.072, 0.007).lineTo(0.072, -0.104).lineTo(-0.097, -0.104).lineTo(-0.097, 0.104).lineTo(0.097, 0.104).close().sweep(cq.Workplane('YZ').spline([(0... | 4 | 23 | 0.024891 |
train_8a3eb8fe3ef2762e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.787, -0.462, 0.175), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.531, 0.737).lineTo(-0.531, 0.137).lineTo(-0.208, 0.137).lineTo(-0.069, -0.002).lineTo(0.069, 0.137).lineTo(0.392, 0.137).lineTo(0.392, 0.46).lineTo(0.531, 0.598).lineTo(0.069, 1.... | 19 | 375 | 1.000608 |
train_edc51c747fb5747a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.068, 0.066, -0.559), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.115, 1.868).extrude(1.118)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.142, -0.08, 0.216), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.341, 0.764).extrude(0.351))
result = re... | 13 | 94 | 1.589012 |
train_5dc16a808c0d550a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.76), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.834, 1.017).extrude(1.76)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0.224), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.056, 0.554).extrude(0.796))
result = result.cut(cq.Workplan... | 19 | 19 | 1.507836 |
train_d20fd88f36c7d9a7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.171, -0.348, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.8, 0.412).threePointArc((-1, 0.212), (-0.8, 0.012)).lineTo(0.8, 0.012).threePointArc((1, 0.212), (0.8, 0.412)).lineTo(-0.8, 0.412).close().extrude(0.458)
result = result.edges().cham... | 13 | 70 | 0.254544 |
train_ce6a50879a463900 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.002, -0.025, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.142, 0.983).threePointArc((0.482, 0.522), (0.141, 0.062)).threePointArc((0.071, 0.046), (0, 0.04)).threePointArc((-0.482, 0.522), (0, 1.004)).lineTo(0.142, 0.983).close().revolve(angl... | 9 | 74 | 0.957977 |
train_3450bd452b35b33e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.434, 1, 0.155), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.652, -0.488).lineTo(0.652, 1.355).lineTo(-0.652, 1.355).lineTo(-0.652, -0.488).lineTo(0.652, -0.488).close().extrude(2)
result = result.edges().chamfer(0.284)
result = result.cut(cq.Wo... | 22 | 262 | 2.750687 |
train_defbc375b0812488 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.337, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.587).lineTo(0, 0.087).lineTo(-1, 0.087).lineTo(1, 0.087).lineTo(1, 0.587).lineTo(0, 0.587).close().revolve(angleDegrees=360, axisStart=(0, 0.587), axisEnd=(0, 0.087))
result = result.ed... | 25 | 163 | 1.023633 |
train_a9d67af82d5484d6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.308), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.306).extrude(0.495)
result = result.union(cq.Workplane(cq.Plane(origin=(0.1, 0.065, 0.182), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.8, 1.175).extrude(0.082))
result = result.union(cq.Wo... | 3 | 15 | 1.495534 |
train_f80b22b1670d2e33 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.559, 0, 0.153), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.728, 0.09).extrude(0.052)
result = result.union(cq.Workplane(cq.Plane(origin=(0.637, 0, 0.129), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.032, -0.135).lineTo(0.032, 0.087).lineTo(-0.03... | 7 | 131 | 0.392583 |
train_12611c4b797eda0c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.573, 0.169, -0.083), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.854, 0.824).extrude(0.135)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.573, 0.169, 0.051), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.247).extrude(0.033))
result = resul... | 15 | 242 | 0.177515 |
train_5064aad395c14aa2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.165, -0.112, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.979, 0.204).lineTo(-1.02, 0.02).lineTo(1.02, 0.02).lineTo(0.979, 0.204).lineTo(-0.979, 0.204).close().workplane(offset=0.094).moveTo(-0.873, 0.194).lineTo(-0.909, 0.03).lineTo(0.909,... | 13 | 68 | 0.088318 |
train_e856401d4c45054f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.045, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.236, 0.645).threePointArc((-0.161, 0.764), (-0.558, 0.645)).lineTo(-0.558, -0.554).threePointArc((-0.161, -0.673), (0.236, -0.554)).threePointArc((0.558, 0.045), (0.236, 0.645)).close().ex... | 2 | 20 | 2.627001 |
train_e5dbd821fd238422 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.584, -0.06, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.455, -0.851).threePointArc((-0.188, -0.584), (-0.455, 0.06)).threePointArc((-0.188, 0.703), (0.455, 0.97)).lineTo(0.455, 0.651).lineTo(0.455, 0.06).lineTo(0.455, -0.532).lineTo(0.455, ... | 8 | 63 | 1.029357 |
train_08f3b61b03959402 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.689, -0.357, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.584, 0.259).lineTo(0.584, 0.311).lineTo(-0.584, 0.311).lineTo(-0.584, -0.311).lineTo(0.584, -0.311).lineTo(0.584, 0.259).close().sweep(cq.Workplane('XY').spline([(-0.689, 0.206), (-0... | 2 | 10 | 0.337012 |
train_a159656b8ebccc8c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.016, -0.781, -0.602), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.438, 0.438).extrude(0.997)
result = result.union(cq.Workplane(cq.Plane(origin=(0.016, 0.01, -0.278), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.143, 1.213).extrude(0.349))
result = r... | 5 | 37 | 0.597932 |
train_c3045bb73da74e1c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.096, -0.008, -0.061), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.16, 1.008).lineTo(0, 1.008).lineTo(0, 0.176).lineTo(0.16, 0.176).lineTo(0.16, 0.096).lineTo(0, 0.096).lineTo(0, -0.008).lineTo(0.16, -0.008).lineTo(0.16, -0.088).lineTo(0, -0.08... | 7 | 160 | 0.063407 |
train_cedcde9bfbdf42ab | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.097, 0.014, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.067, 1.154).lineTo(-0.067, -0.986).lineTo(0.067, -0.986).lineTo(0.067, 1.154).close().extrude(0.193)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.033, 0.318, 0.012), normal=(0,... | 3 | 45 | 0.025656 |
train_c6817ff4ee891d72 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.467, -0.215, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.128, -0.624).lineTo(-0.167, -0.613).lineTo(-0.227, -0.596).lineTo(-0.187, -0.459).lineTo(-0.128, -0.475).lineTo(0.187, 0.624).lineTo(0.227, 0.613).lineTo(-0.128, -0.624).close().swe... | 2 | 12 | 0.068687 |
train_64b7fea24ebc780e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.519, 0, -0.046), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.961, 1.013).extrude(0.105)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.587, 0.139, 0.01), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.154, 0.105).extrude(0.028))
result = result.un... | 10 | 44 | 0.100313 |
train_f9e8a9d481c82bec | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.183), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.896).extrude(0.366)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.183, -1.483), normal=(1, 0, 0), xDir=(0, 1, 0))).circle(0.081).extrude(0.855))
result = result.cut(cq.Workplane(... | 17 | 121 | 0.849667 |
train_2a2bf442ab95d7e2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.75, -0.018, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.034, 0.047).lineTo(-0.025, 0.047).lineTo(-0.025, 0.038).lineTo(0.034, 0.038).lineTo(0.034, -0.038).lineTo(-0.025, -0.038).lineTo(-0.025, -0.047).lineTo(-0.034, -0.047).lineTo(-0.034, ... | 9 | 51 | 0.007788 |
train_4cab018f4a01b1a9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.257, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.624, 1.25).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.349, -0.169, -0.779), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.301).extrude(0.689))
result = result.cut(cq.Workp... | 16 | 92 | 2.501624 |
train_e0d2b6d6ee1ac511 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.797, -0.505, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.222, 0.797).lineTo(0.22, 0.797).lineTo(0.222, -0.212).lineTo(-0.222, -0.212).lineTo(-0.222, 0.797).close().revolve(angleDegrees=180, axisStart=(-0.222, 0.797), axisEnd=(0.22, 0.797))... | 6 | 36 | 0.391034 |
train_63084e43bf53e451 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.061, 0.003, -0.349), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.878, 0.908).extrude(0.655)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.618, 0.066, -0.233), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.03).extrude(0.032))
result = result.... | 22 | 123 | 1.025472 |
train_9e2f56c6e0f9b1a3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.435, -1, -0.207), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.539, 1.148).lineTo(0, 0.609).lineTo(-0.539, 0.609).lineTo(-0.539, 0.071).lineTo(0.539, 0.071).lineTo(0.539, 1.148).close().extrude(1.121)
result = result.edges().fillet(0.246)
result... | 34 | 256 | 0.624952 |
train_33b7b2e3315468f3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.021, -0.349, 0.185), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.266, 0.468).lineTo(0.266, -0.481).lineTo(0.286, -0.5).lineTo(-0.286, -0.5).lineTo(-0.266, -0.481).lineTo(-0.266, 0.468).lineTo(-0.299, 0.5).lineTo(0.299, 0.5).lineTo(0.266, 0.468)... | 10 | 73 | 0.400912 |
train_353b894ef38e42b6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.538, 0, -0.615), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.574, 0.532).extrude(0.512)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.339, 0.158, -0.351), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.322, 0.054).extrude(0.05))
result = resul... | 5 | 116 | 0.174613 |
train_bd3739a3c6a395d3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.075, -0.408, -0.162), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.155, 0.155).extrude(0.274)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.073, -0.408, -0.098), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.159, 0.044).extrude(0.147))
result ... | 13 | 82 | 0.047984 |
train_b26bb5d9462d5cc0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.021, 0.328, -0.058), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.27, 1.021).lineTo(-0.27, -0.993).threePointArc((0, -0.9), (0.27, -0.993)).lineTo(0.27, 1.021).lineTo(-0.27, 1.021).close().extrude(0.536)
result = result.edges().fillet(0.014)
re... | 9 | 56 | 0.468418 |
train_a850a971942d80ed | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.103, -0.536, -0.397), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.206, 0.928).extrude(1.204)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.788, -0.537, 0.027), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.187, 0.083).extrude(0.134))
result ... | 10 | 54 | 2.538751 |
train_8086e1893c269369 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.253, 0.235, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.09, -0.473).lineTo(0.09, -0.524).lineTo(-0.09, -0.524).lineTo(-0.09, 0.765).lineTo(0.09, 0.765).lineTo(0.09, -0.473).close().extrude(0.222)
result = result.edges().fillet(0.068)
result... | 23 | 108 | 0.0381 |
train_7f91e29a58774129 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.517, 0.01), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.291, 0.393).lineTo(-0.64, -0.178).lineTo(-0.291, -0.393).lineTo(0.64, 0.178).lineTo(0.64, 0.393).lineTo(0.291, 0.393).close().sweep(cq.Workplane('YZ').spline([(-0.912, -0.479), (-0.367,... | 16 | 28 | 0.644039 |
train_33092e03c27b58bc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.689, 0.662, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.865, 1.662).threePointArc((-0.961, 1.623), (-1, 1.527)).lineTo(-1, -0.203).threePointArc((-0.961, -0.298), (-0.865, -0.337)).lineTo(0.865, -0.337).threePointArc((0.961, -0.298), (1, -... | 6 | 61 | 4.534754 |
train_ea623d704bdad1c6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.236, -0.821), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.281, 1.529).extrude(1.642)
result = result.union(cq.Workplane(cq.Plane(origin=(0.203, 0.756, -0.171), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.244).extrude(0.827))
result = result.cu... | 5 | 51 | 3.120687 |
train_dd62d3a76e95fe52 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.263, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).lineTo(-0.309, 0.233).lineTo(-0.309, -0.093).lineTo(-0.309, -0.235).lineTo(-0.268, -0.235).lineTo(-0.268, -0.095).lineTo(0.309, 0.096).close().sweep(cq.Workplane('XY').spline([(-0.307, -0.263), (... | 2 | 16 | 0.090586 |
train_376cacf53160400f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.219, -0.055, -0.174), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.096, 0.514).lineTo(0.096, 0.17).lineTo(0.44, 0.17).lineTo(0.44, -0.07).lineTo(0.096, -0.07).lineTo(0.096, -0.352).lineTo(0.151, -0.405).lineTo(0.019, -0.405).lineTo(0.019, -0.352... | 17 | 120 | 0.367319 |
train_af1ef2950476153c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.013, 0.421, 0.037), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.511, -0.072).lineTo(-0.412, 0.221).lineTo(-0.215, 0.375).lineTo(0.215, 0.375).lineTo(0.412, 0.221).lineTo(0.511, -0.072).lineTo(-0.511, -0.072).close().extrude(0.817)
result = res... | 12 | 87 | 0.314536 |
train_576d99fe5a7309f6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.421, 0.094, 0.587), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.079, -0.641).lineTo(0.049, -0.641).lineTo(0.049, -0.176).lineTo(0.136, -0.176).lineTo(0.136, -0.134).lineTo(0.071, -0.134).lineTo(0.055, -0.053).lineTo(0.04, 0.016).lineTo(0.019, ... | 2 | 27 | 0.044376 |
train_51805d31464cdd0b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.52, -0.212, -0.013), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.367, 0.234).lineTo(-0.48, 0.234).lineTo(-0.48, 0.009).lineTo(0.48, 0.009).lineTo(0.48, 0.234).lineTo(-0.367, 0.234).close().extrude(0.234)
result = result.edges().chamfer(0.046)
r... | 9 | 62 | 0.146935 |
train_eb7e199ab549b472 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.293, 0.348, -0.562), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.639, 0.84).extrude(0.229)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.261, 0.012, -0.323), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.108, 0.668).lineTo(0.108, 0.274).l... | 12 | 234 | 0.521928 |
train_ce2af6d417354892 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.703, -0.513, 0.065), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.267, -0.003).lineTo(-0.267, 0.498).lineTo(0.267, -0.003).lineTo(-0.267, -0.003).close().extrude(0.498)
result = result.edges().fillet(0.073)
result = result.union(cq.Workplane(cq... | 4 | 43 | 0.086341 |
train_10ea0733b05b9328 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.488, 0, -0.507), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.507, 0.34).lineTo(0.507, -0.411).lineTo(0.425, -0.345).lineTo(0.343, -0.411).lineTo(0.343, 0.34).lineTo(-0.441, 0.34).lineTo(-0.441, 0.438).lineTo(-0.507, 0.52).lineTo(-0.441, 0.602).... | 4 | 95 | 2.722485 |
train_d1bd0f4b77783bff | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.136, -0.305, -0.463), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.952, 0.952).extrude(0.74)
result = result.union(cq.Workplane(cq.Plane(origin=(0.183, -0.257, 0.274), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.428).extrude(0.095))
result = result... | 12 | 91 | 0.831337 |
train_717caebef52d4690 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.558, -0.609, -0.42), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.58, 0.558).threePointArc((-0.378, 0.07), (0.11, -0.132)).threePointArc((0.134, -0.131), (0.159, -0.13)).threePointArc((0.58, 1.063), (-0.58, 0.558)).close().extrude(1.25)
result ... | 18 | 56 | 1.786858 |
train_77a0d9d35fba7276 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.05, -0.316, -0.866), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.306, 1.021).lineTo(-0.306, 0.668).lineTo(-0.916, 0.316).lineTo(-0.306, -0.036).lineTo(0.306, -0.39).lineTo(0.916, -0.742).lineTo(0.916, 1.373).lineTo(0.306, 1.021).close().extrude... | 17 | 160 | 3.034664 |
train_f74406d18f76982b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.536), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.253, 2).extrude(1.072)
result = result.cut(cq.Workplane(cq.Plane(origin=(0 + 0.264 * math.cos(5.591 + 2 * math.pi * 0 / 3), 0 + 0.264 * math.sin(5.591 + 2 * math.pi * 0 / 3), -0.697), normal... | 19 | 65 | 2.129522 |
train_f5288d922525b3e1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.563, 0.586, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 1.113).lineTo(-1, 0.059).lineTo(1, 0.059).lineTo(1, 1.011).lineTo(0.892, 1.113).lineTo(-1, 1.113).close().extrude(1.126)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.025, 0.16... | 22 | 178 | 1.438011 |
train_7ee2a1d6da796fcb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.787, -0.138, -0.018), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.473, 1.217).lineTo(-0.473, -0.862).lineTo(0.473, -0.862).lineTo(0.473, 1.217).close().extrude(1.282)
result = result.edges().chamfer(0.086)
result = result.union(cq.Workplane(cq.... | 14 | 38 | 1.054911 |
train_dfbfaf53b16461e4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.77).workplane(offset=0.386).circle(0.559).workplane(offset=0.511).circle(0.659).workplane(offset=0.564).circle(0.9).workplane(offset=0.539).circle(0.952).loft()
result = result.edges().fillet(... | 2 | 5 | 3.356677 |
train_0f15ede21de226ae | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.571, -0.466, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-1.038, 0.63).lineTo(-0.893, 0.09).lineTo(0.893, 0.09).lineTo(1.038, 0.633).lineTo(0.005, 0.91).lineTo(-1.038, 0.63).close().extrude(0.931)
result = result.edges().chamfer(0.147)
result... | 3 | 39 | 1.147161 |
train_74f514b145a35709 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.271, -0.11, -0.038), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, -0.57).lineTo(-0.122, -0.57).lineTo(-0.325, 0.57).lineTo(0.325, 0.57).lineTo(0.122, -0.57).lineTo(0, -0.57).close().sweep(cq.Workplane('XZ').spline([(-1.037, -0.636), (-0.654, -0... | 7 | 62 | 0.739184 |
train_d0cdb81a5fbc27d8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.298, 0.238), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.566, -0.354).lineTo(-0.741, -0.135).lineTo(-0.674, -0.135).lineTo(-1, 0.462).lineTo(-0.589, 0.462).lineTo(-0.186, -0.121).threePointArc((-0.181, -0.128), (-0.177, -0.135)).lineTo(1, -... | 6 | 26 | 1.186781 |
train_8e361fd025d8cf64 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.599, 0, -0.196), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.401, -0.521).lineTo(-0.401, 0.521).lineTo(0.401, 0.521).lineTo(0.401, -0.521).lineTo(-0.401, -0.521).close().revolve(angleDegrees=360, axisStart=(-0.401, -0.521), axisEnd=(-0.401, 0.... | 13 | 87 | 1.710531 |
train_4383e9eb1e72e4fb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.746, -0.465, -0.678), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.313, 0.382).threePointArc((-0.322, 0.455), (-0.313, 0.528)).threePointArc((-0.226, 0.685), (-0.069, 0.772)).threePointArc((0.004, 0.854), (0.077, 0.772)).threePointArc((0.234, 0... | 5 | 49 | 0.591562 |
train_155dc9a70f0f1e6d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.053, -0.212, -0.088), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.993, 1.013).extrude(0.167)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.344, -0.162, 0.09), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.333, -0.897).lineTo(0.435, -0.897... | 9 | 96 | 0.733727 |
train_fcf7239b4efcb5cd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.292, 0.357, -0.155), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.725, 0.484).extrude(0.036)
result = result.union(cq.Workplane(cq.Plane(origin=(0.328, 0.163, -0.117), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.23, -0.672).lineTo(0.302, -0.672).... | 10 | 76 | 0.31546 |
train_e667fcd8464fb364 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.446, -0.047), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.377, 0).lineTo(0.377, -0.218).lineTo(0, -0.436).lineTo(-0.377, -0.218).lineTo(-0.377, 0.218).lineTo(0, 0.436).lineTo(0.377, 0.218).lineTo(0.377, 0).close().sweep(cq.Workplane('YZ').s... | 2 | 11 | 0.65878 |
train_113e893b5f00e263 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.616, -0.383, -0.738), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.293, 0.338).threePointArc((-0.376, 0.493), (-0.207, 0.545)).lineTo(0, 0.631).threePointArc((0.155, 0.713), (0.207, 0.545)).threePointArc((0.376, 0.493), (0.293, 0.338)).threePoin... | 9 | 150 | 0.363069 |
train_56e686543f13f0d3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.136, 0.175, -0.111), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.115, 0.828).lineTo(-0.115, -0.135).threePointArc((-0.074, -0.246), (-0.115, -0.358)).lineTo(-0.115, -0.477).lineTo(0.115, -0.477).lineTo(0.115, -0.002).lineTo(0.115, 0.219).threeP... | 8 | 103 | 1.041431 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.