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_adb83cd4731f3050 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.116, 0.036, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.529, 0.633).threePointArc((0.805, -0.633), (-0.263, -0.19)).lineTo(-0.737, 0.357).threePointArc((-0.805, 0.436), (-0.502, 0.56)).lineTo(-0.029, 0.013).threePointArc((0.097, -0.29), (0.... | 5 | 27 | 0.71053 |
train_f7fb00185193b229 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.188, -0.304, -0.444), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.545, 0.068).lineTo(0.562, 0.061).threePointArc((0.571, 0.044), (0.577, 0.05)).lineTo(0.588, 0.035).threePointArc((0.588, 0.016), (0.595, 0.018)).lineTo(0.597, 0).threePointArc((0.... | 5 | 171 | 0.109262 |
train_8afe2bd41f4447ad | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.127, -0.025, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.007, 0.078).lineTo(0.018, 0.073).threePointArc((0.02, 0.072), (0.021, 0.072)).lineTo(0.034, 0.07).threePointArc((0.042, 0.069), (0.046, 0.061)).threePointArc((0.078, 0.036), (0.083, -... | 8 | 117 | 0.058653 |
train_db1092076efc901e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1.474, 0.699, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.87, 1.323).threePointArc((1.115, 1.267), (1.218, 1.135)).lineTo(1.218, 0.855).threePointArc((1.325, 0.722), (1.579, 0.664)).lineTo(2.157, 0.664).threePointArc((2.356, 0.618), (2.44, 0... | 31 | 43 | 1.511497 |
train_fb8c7af38f21d48d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1.226, 0, -1.619), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(1.062).extrude(1.294)
result = result.union(cq.Workplane(cq.Plane(origin=(-1.226, 0, -0.713), normal=(0.638, 0, 0.77), xDir=(0.77, 0, -0.638))).circle(1).extrude(1.653))
result = result... | 5 | 7 | 0.788643 |
train_80b67418f4de86ed | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.553, -0.611, 0.098), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.521, 1.424).lineTo(0.521, -0.203).lineTo(-0.521, -0.203).lineTo(-0.521, 0.122).lineTo(-0.312, 0.122).lineTo(-0.312, 0.448).lineTo(-0.104, 0.448).lineTo(-0.104, 0.774).lineTo(0.104... | 12 | 134 | 0.541486 |
train_19c85e272ea9fc7d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.197, 0.394).lineTo(-0.197, 0.197).lineTo(0.394, 0.197).lineTo(0.394, -0.394).lineTo(0.197, -0.394).lineTo(0.197, 0).lineTo(0, 0).lineTo(0, -0.197).lineTo(-0.394, -0.197).lineTo(-0.394, 0.394)... | 18 | 62 | 0.673146 |
train_41c9669ffa641f39 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.002, -0.085, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.862).extrude(0.297)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.864, -0.085, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).pushPoints([(0, 0), (-0.201, 0.554), (-0.712, 0.849), (-1.... | 8 | 67 | 0.674775 |
train_e1587417a1d1c28a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.257, 0.078, -0.282), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.351, -0.022).threePointArc((-0.017, 0.529), (0.351, -0.077)).lineTo(0.344, -0.508).lineTo(0.293, -0.529).lineTo(0.257, -0.483).lineTo(0.257, -0.058).threePointArc((0.099, 0.424),... | 18 | 276 | 0.634477 |
train_83da6bf5f275ad93 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.822, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.068, 1.599).lineTo(0.807, 1.388).lineTo(0.861, 0.457).lineTo(0.139, 0.045).lineTo(-0.574, 0.325).lineTo(-0.861, 1.167).lineTo(-0.068, 1.599).close().extrude(2)
result = result.cut(cq.Work... | 9 | 27 | 3.626258 |
train_4fc1d35f8eb7b2e5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.503, -0.008, -0.379), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.025, 0.362).threePointArc((0.33, 0.436), (0.497, 0.255)).lineTo(-0.084, -0.436).threePointArc((-0.193, -0.435), (-0.497, -0.241)).lineTo(0.025, 0.362).close().extrude(1.152)
resu... | 17 | 110 | 1.030271 |
train_8ecd554733aac12c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.955), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.797, 1.91).lineTo(0.797, 0.366).lineTo(1, 0.366).lineTo(1, 0).lineTo(0.255, 0).lineTo(0.255, 1.91).lineTo(0.797, 1.91).close().revolve(angleDegrees=360, axisStart=(0, 0, 0), axisEnd=(0, 1... | 2 | 18 | 3.799897 |
train_6c0fd8b7689ea3e4 | 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.14, 0.165).workplane(offset=2).rect(0.876, 0.168).loft()
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.494, -0.083, -0.007), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.019, 0.844).thre... | 5 | 26 | 0.145035 |
train_439a33a56f16b6a3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.068, -0.419), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.707, 0.726).threePointArc((0.914, 0.641), (1, 0.433)).lineTo(1, -0.54).lineTo(0.814, -0.54).lineTo(0.814, -0.726).lineTo(-0.843, -0.726).lineTo(-1, -0.57).lineTo(-1, 0.726).lineTo(0.70... | 9 | 36 | 1.715346 |
train_3c644b7b80030096 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.062), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.467, 0.931).lineTo(-0.467, -0.565).lineTo(1, -0.565).lineTo(1, -0.931).lineTo(-1, -0.931).lineTo(-1, 0.931).lineTo(-0.467, 0.931).close().extrude(0.168)
result = result.cut(cq.Workplane(c... | 14 | 15 | 0.258633 |
train_ec73b28a52cb28c3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.008, 0.039, -0.162), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.672, -0.39).threePointArc((0.104, 0.953), (0.625, -0.432)).threePointArc((0.514, -0.953), (-0.139, -0.707)).lineTo(-0.426, -0.606).lineTo(-0.672, -0.39).close().moveTo(-0.055, -0.... | 8 | 77 | 0.423513 |
train_fd7f873dc0644fad | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.011, -0.234), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.961, 0.297).lineTo(0.961, -0.174).threePointArc((0.911, -0.201), (0.79, -0.212)).lineTo(0.178, -0.212).threePointArc((0.053, -0.223), (0, -0.251)).lineTo(0, -0.293).threePointArc((-0.... | 13 | 150 | 0.206909 |
train_db2ddbeb0c92a98b | import cadquery as cq
import math
result = cq.Workplane('XZ').moveTo(1, 0.086).lineTo(0.697, 0).lineTo(1, -0.086).lineTo(0.291, -0.086).lineTo(0.291, 0.086).lineTo(1, 0.086).close().revolve(angleDegrees=360, axisStart=(0, 0, 0), axisEnd=(0, 1, 0))
result = result.cut(cq.Workplane(cq.Plane(origin=(0.341, -0.428, 0), nor... | 14 | 106 | 0.179907 |
train_423d49a39b3e8493 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.058, -0.452, 0.362), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.037, 0.494).threePointArc((0.171, 0.438), (0.227, 0.304)).lineTo(0.227, 0.23).threePointArc((0.171, 0.096), (0.037, 0.04)).threePointArc((0.023, 0.042), (0.012, 0.033)).lineTo(-0.... | 11 | 269 | 0.732879 |
train_a3ed7b1388135ce4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.214, 0.097, -0.132), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.635, 0.452).threePointArc((0.739, 0.414), (0.781, 0.325)).lineTo(0.781, -0.109).threePointArc((0.664, -0.35), (0.386, -0.452)).lineTo(-0.631, -0.452).threePointArc((-0.737, -0.413)... | 12 | 70 | 0.731716 |
train_25241bd225a6da76 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.281), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(1, 0.537).lineTo(1, 0).lineTo(-1, 0).lineTo(-1, 0.537).lineTo(-0.707, 0.537).lineTo(-0.707, 0.293).lineTo(0.707, 0.293).lineTo(0.707, 0.537).lineTo(1, 0.537).close().extrude(0.534, both=Tru... | 8 | 61 | 0.52398 |
train_e807b65fa5b00f2e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.455, 0, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).box(2.908, 1.454, 1.897)
result = result.edges().fillet(0.372)
result = result.cut(cq.Workplane(cq.Plane(origin=(1, 0.727, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(3.514, 0.64).lineTo(3.546, -0... | 17 | 166 | 1.993129 |
train_1bc3411d9e899900 | import cadquery as cq
import math
result = cq.Workplane('XZ').moveTo(0.51, 0.178).lineTo(0.606, 0.299).threePointArc((0.631, 0.321), (0.662, 0.333)).lineTo(0.736, 0.35).threePointArc((0.779, 0.351), (0.82, 0.334)).lineTo(0.88, 0.293).threePointArc((0.917, 0.25), (0.919, 0.193)).lineTo(0.883, 0.043).threePointArc((0.94,... | 2 | 41 | 1.078968 |
train_8eff6ca92d64d950 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.15, 0.099, -0.373), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.055).threePointArc((0.039, 0.039), (0.055, 0)).threePointArc((0.039, -0.039), (0, -0.055)).threePointArc((-0.039, -0.039), (-0.055, 0)).threePointArc((-0.039, 0.039), (0, 0.055))... | 3 | 25 | 0.255207 |
train_054069b394337557 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.088, -0.49), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.605, 0.69).lineTo(-0.605, -0.321).lineTo(1, -0.321).lineTo(1, -0.69).lineTo(-1, -0.69).lineTo(-1, 0.69).lineTo(-0.605, 0.69).close().extrude(0.819, taper=6.45)
result = result.union(cq... | 10 | 118 | 0.634929 |
train_389fa52c4221f9b0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.122, 0.001, -0.018), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.765, 0.336).threePointArc((0.845, 0.322), (0.878, 0.291)).lineTo(0.878, 0.19).threePointArc((0.855, 0.168), (0.8, 0.159)).lineTo(-0.252, 0.159).threePointArc((-0.38, 0.137), (-0.43... | 43 | 375 | 0.074279 |
train_e20d56fe48f856ea | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.202, 0.219).threePointArc((0.216, 0.213), (0.222, 0.199)).lineTo(0.222, 0.115).threePointArc((0.216, 0.1), (0.201, 0.093)).lineTo(-0.066, 0.093).threePointArc((-0.088, 0.084), (-0.098, 0.062))... | 4 | 32 | 0.267267 |
train_6214360c03dd5829 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.385, 0, -0.029), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.497, 0.698).lineTo(0.614, 0.581).lineTo(0.614, -0.698).lineTo(-0.561, -0.698).lineTo(-0.614, -0.645).lineTo(-0.614, 0.602).threePointArc((-0.585, 0.67), (-0.517, 0.698)).lineTo(0.497,... | 8 | 201 | 0.156028 |
train_f9cd1730cbbdadfd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.599, 0.686, 0.007), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.471, 1.589).threePointArc((-0.245, 1.514), (-0.068, 1.422)).threePointArc((0.067, 1.393), (0.205, 1.437)).threePointArc((0.373, 1.496), (0.556, 1.502)).threePointArc((0.716, 1.429... | 6 | 20 | 1.71492 |
train_136deed2accd6a62 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.242, 0.178, 0.142), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.029, 0.538).lineTo(0.064, 0.488).threePointArc((0.075, 0.484), (0.087, 0.482)).lineTo(0.479, 0.459).threePointArc((0.592, 0.307), (0.499, 0.092)).lineTo(0.377, 0.088).threePointAr... | 16 | 239 | 1.100475 |
train_3e429b830d2f4d5c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.007, 0, -0.256), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.137, 0.927).threePointArc((0.18, 0.91), (0.199, 0.869)).lineTo(0.199, 0.462).threePointArc((0.287, 0.268), (0.495, 0.186)).lineTo(0.85, 0.186).threePointArc((0.95, 0.146), (0.993, 0.0... | 32 | 377 | 0.608385 |
train_680aa0c1ab93ec59 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.456), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.571, 1).threePointArc((0.866, 0.866), (1, 0.571)).lineTo(1, -0.466).threePointArc((0.834, -0.834), (0.466, -1)).lineTo(-0.394, -1).threePointArc((-0.817, -0.817), (-1, -0.394)).lineTo(-1, ... | 14 | 57 | 1.718157 |
train_0ae3f613260d82bc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.237, 0, 0), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(1, 0.366).lineTo(0.841, 0).lineTo(1, -0.366).lineTo(0.191, -0.366).lineTo(0.191, 0.366).lineTo(1, 0.366).close().revolve(angleDegrees=360, axisStart=(0, 0, 0), axisEnd=(0, 1, 0))
result = re... | 18 | 83 | 0.884251 |
train_b9b18a14c71378a3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.293), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.821, 0.461).threePointArc((0.94, 0.409), (1, 0.287)).lineTo(1, -0.461).lineTo(-0.755, -0.461).lineTo(-1, -0.22).lineTo(-1, 0.461).lineTo(0.821, 0.461).close().extrude(0.447)
result = resul... | 13 | 93 | 0.539576 |
train_72a38d91eb88db7a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.105).threePointArc((0.084, 0.084), (0.105, 0)).threePointArc((0.084, -0.084), (0, -0.105)).threePointArc((-0.084, -0.084), (-0.105, 0)).threePointArc((-0.084, 0.084), (0, 0.105)).close().ex... | 21 | 25 | 0.806843 |
train_43262b3b7eb282a6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.155), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.573, 0.715).lineTo(1, 0.293).lineTo(1, -0.482).lineTo(0.763, -0.715).lineTo(-0.795, -0.715).threePointArc((-0.934, -0.657), (-1, -0.514)).lineTo(-1, 0.328).lineTo(-0.61, 0.715).lineTo(0.57... | 8 | 59 | 0.573062 |
train_db6eb94f53a535cc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.567), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.837, 0.311).threePointArc((0.947, 0.265), (1, 0.156)).lineTo(1, -0.311).lineTo(-0.742, -0.311).threePointArc((-0.918, -0.237), (-1, -0.057)).lineTo(-1, 0.08).threePointArc((-0.925, 0.243),... | 13 | 23 | 1.310215 |
train_b59841a2e0d84f07 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.331, 0, -0.061), normal=(0, 1, 0), xDir=(1, 0, 0))).moveTo(-0.448, -0.528).lineTo(-0.652, -0.048).lineTo(-0.668, 0.494).lineTo(-0.233, 0.73).lineTo(0.18, 0.731).lineTo(0.613, 0.535).lineTo(0.668, 0.009).lineTo(0.467, -0.458).lineTo(0.03, -0.731... | 10 | 91 | 1.336126 |
train_956ae517f3c1a2dc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.319, 0.345, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.514, 1.209).lineTo(-0.514, 0.205).lineTo(0.935, 0.205).lineTo(0.935, -0.215).lineTo(-0.935, -0.215).lineTo(-0.935, 1.209).lineTo(-0.514, 1.209).close().extrude(1.318)
result = result.... | 6 | 65 | 0.660643 |
train_c5d064f052924c34 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.436), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(1, 0.171).lineTo(1, 0).lineTo(-1, 0).lineTo(-1, 0.171).lineTo(-0.884, 0.171).lineTo(-0.884, 0.107).lineTo(0.884, 0.107).lineTo(0.884, 0.171).lineTo(1, 0.171).close().extrude(0.892, both=Tru... | 8 | 98 | 0.336762 |
train_70e6141cfe4610bc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.266), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(1, 0.526).lineTo(1, 0).lineTo(-1, 0).lineTo(-1, 0.526).lineTo(-0.575, 0.526).lineTo(-0.575, 0.42).lineTo(0.575, 0.42).lineTo(0.575, 0.526).lineTo(1, 0.526).close().extrude(0.342, both=True)... | 11 | 85 | 0.444978 |
train_23f745cc811569e6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.137), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.913, 0.195).lineTo(1, 0.109).lineTo(1, -0.195).lineTo(-0.893, -0.195).threePointArc((-0.968, -0.164), (-1, -0.089)).lineTo(-1, 0.047).threePointArc((-0.956, 0.152), (-0.851, 0.195)).lineTo... | 7 | 31 | 0.153895 |
train_208655bde7623769 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.455), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.527, 0.587).lineTo(-0.527, -0.365).lineTo(1, -0.365).lineTo(1, -0.587).lineTo(-1, -0.587).lineTo(-1, 0.587).lineTo(-0.527, 0.587).close().extrude(0.907)
result = result.cut(cq.Workplane(c... | 8 | 46 | 0.743939 |
train_7d5b76d92e5ee84c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.004, 0.402, -0.503), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.597).extrude(0.684)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.601, 0.402, -0.503), normal=(0, 0, 1), xDir=(1, 0, 0))).pushPoints([(0, 0), (-0.225, 0.465), (-0.73, 0.582),... | 5 | 56 | 1.004349 |
train_3838944a43d06077 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.999), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.784).extrude(1.799)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, 0.261), normal=(0.369, 0, 0.929), xDir=(0.929, 0, -0.369))).circle(0.393).extrude(0.794))
result = result.cut(... | 6 | 40 | 1.718535 |
train_7bae1571617f5c49 | import cadquery as cq
import math
result = cq.Workplane('XY').moveTo(-0.601, 0.654).threePointArc((-0.53, 0.614), (-0.499, 0.52)).lineTo(-0.499, 0.138).threePointArc((-0.468, 0.041), (-0.394, 0)).lineTo(0.811, 0).threePointArc((0.942, -0.073), (0.998, -0.245)).lineTo(0.998, -0.443).threePointArc((0.95, -0.591), (0.836,... | 3 | 18 | 1.378088 |
train_efe7b2a4a6efd434 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.118, 0.144), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.041, 0.428).lineTo(0.086, 0.383).lineTo(0.086, 0.299).lineTo(0.128, 0.257).lineTo(0.227, 0.257).lineTo(0.257, 0.227).lineTo(0.257, -0.387).lineTo(0.216, -0.428).lineTo(0.13, -0.428).li... | 12 | 209 | 0.272451 |
train_8c5c699536f28ffe | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.217, -0.142, -0.568), normal=(0.452, 0.234, 0.861), xDir=(-0.46, 0.888, 0))).moveTo(-0.105, 0.846).threePointArc((-0.031, 0.787), (0, 0.646)).lineTo(0, 0.495).threePointArc((0.033, 0.345), (0.112, 0.282)).lineTo(0.478, 0.282).threePointArc((0.5... | 4 | 100 | 1.028102 |
train_3569acf7b3d376c9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.136), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.803, 0.201).threePointArc((0.86, 0.176), (0.886, 0.113)).lineTo(0.886, -0.109).lineTo(0.796, -0.109).lineTo(0.796, -0.201).lineTo(-0.801, -0.201).lineTo(-0.801, -0.111).lineTo(-0.886, -0.1... | 10 | 79 | 0.222041 |
train_975718408f18579d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.025, -0.051), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.437, 0.851).lineTo(-0.028, 0.097).lineTo(0.807, -0.141).lineTo(1, -0.262).lineTo(0.896, -0.46).threePointArc((0.302, -0.851), (-0.794, -0.647)).lineTo(-1, -0.528).lineTo(-0.955, -0.37... | 14 | 118 | 0.226761 |
train_abba2d7cdb976d42 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.22), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.88, 0.44).lineTo(0.913, 0.35).lineTo(1, 0.154).lineTo(1, 0).lineTo(0.721, 0).lineTo(0.721, 0.132).lineTo(0.621, 0.35).lineTo(0, 0.165).lineTo(0, 0.44).lineTo(0.88, 0.44).close().revolve(an... | 8 | 43 | 0.732465 |
train_6086bb467218ca49 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.032, -0.136), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.846, 0.334).threePointArc((0.949, 0.316), (1, 0.273)).lineTo(1, 0.229).threePointArc((0.948, 0.185), (0.845, 0.167)).lineTo(0.477, 0.167).threePointArc((0.282, 0.132), (0.199, 0.051)).... | 13 | 254 | 0.426288 |
train_95c3d1338b23b8b2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.033, -0.076, -0.292), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.924).extrude(0.316)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.033, -0.076, -0.292), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.712).extrude(0.948, both=True))
result = ... | 14 | 114 | 0.593322 |
train_60d0f68a996bfd4a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.289, 0.373, -0.465), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.336, 0.358).lineTo(0.506, 0.271).lineTo(0.341, 0.223).threePointArc((0.318, 0.202), (0.333, 0.155)).lineTo(0.272, 0.069).lineTo(0.122, 0.1).lineTo(0.075, -0.115).threePointArc((-0... | 4 | 43 | 0.293259 |
train_b92faf1a2cae1b02 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.301), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.304, 0.802).lineTo(-0.304, -0.377).lineTo(0.877, -0.377).lineTo(0.877, -0.802).lineTo(-0.877, -0.802).lineTo(-0.877, 0.802).lineTo(-0.304, 0.802).close().extrude(0.601, taper=-11.496)
res... | 3 | 35 | 1.094676 |
train_baa26ff349ce645b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.088, 0.27, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.399, 0.6).lineTo(-0.399, -0.191).lineTo(0.808, -0.191).lineTo(0.808, -0.6).lineTo(-0.808, -0.6).lineTo(-0.808, 0.6).lineTo(-0.399, 0.6).close().extrude(0.291, taper=6.482, both=True)
r... | 26 | 161 | 0.651717 |
train_5f58dbd5b8f8d970 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.567, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.335, 1.401).lineTo(0.687, 0.857).lineTo(0.822, 0.223).lineTo(0.326, -0.246).lineTo(-0.358, -0.267).lineTo(-0.822, 0.234).lineTo(-0.674, 0.845).lineTo(-0.31, 1.294).lineTo(0.335, 1.401).cl... | 8 | 34 | 2.931377 |
train_e7724de49b1a5c75 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.741, 0.504, -0.252), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.215, 0.185).threePointArc((0.174, 0.146), (0.211, 0.084)).threePointArc((0.245, -0.008), (0.207, -0.072)).threePointArc((0.123, -0.067), (0.053, -0.041)).threePointArc((0.002, -0.... | 3 | 38 | 0.537637 |
train_6fdd1136d2146386 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.142), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.768, 2).extrude(0.284)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, -0.142), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.167, 0.783).lineTo(0.167, -0.783).lineTo(-0.167, -0.783).... | 9 | 21 | 0.244995 |
train_24650f11425c884a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.155), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.589, 2).extrude(0.311)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, -0.155), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.117, 0.817).lineTo(0.117, -0.817).lineTo(-0.117, -0.817).... | 11 | 142 | 0.112914 |
train_71cb1c45eb3275ec | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.273, -0.484, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.472, 0.654).threePointArc((-0.067, 0.75), (0.377, 0.49)).threePointArc((0.6, 0.026), (0.472, -0.37)).threePointArc((0.067, -0.465), (-0.377, -0.205)).threePointArc((-0.6, 0.259), (-0... | 13 | 177 | 1.280096 |
train_5594cfd63af1e6b1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.432), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.779, 0.509).threePointArc((0.986, 0.279), (0.929, -0.025)).threePointArc((0.624, -0.322), (0.151, -0.533)).threePointArc((-0.363, -0.602), (-0.779, -0.509)).threePointArc((-0.986, -0.279),... | 8 | 169 | 0.321047 |
train_22d53ed935c11c4e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.338), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(1, 0.649).lineTo(1, 0).lineTo(-1, 0).lineTo(-1, 0.649).lineTo(-0.645, 0.649).lineTo(-0.645, 0.35).lineTo(0.645, 0.35).lineTo(0.645, 0.649).lineTo(1, 0.649).close().extrude(0.217, both=True)... | 12 | 106 | 0.342174 |
train_112f64b4556d78ee | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.608, 0.048, 0.494), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.083, 0.561).lineTo(0.268, 0.504).lineTo(0.501, 0.234).lineTo(0.506, -0.122).lineTo(0.281, -0.398).lineTo(-0.069, -0.465).lineTo(-0.379, -0.291).lineTo(-0.506, 0.042).lineTo(-0.389... | 8 | 215 | 1.726034 |
train_c80262a93f40d592 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.397, 0.589).threePointArc((-0.361, 0.573), (-0.346, 0.537)).lineTo(-0.346, -0.122).threePointArc((-0.302, -0.224), (-0.2, -0.268)).lineTo(0.582, -0.268).threePointArc((0.642, -0.293), (0.667,... | 14 | 38 | 1.356139 |
train_00fe2268b9426217 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.103, 0.587, 0.473), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.026, 0.628).lineTo(0.39, 0.457).lineTo(0.492, 0.351).lineTo(0.522, 0.219).threePointArc((0.486, 0.148), (0.527, 0.078)).lineTo(0.356, -0.286).lineTo(-0.023, -0.422).lineTo(-0.387, ... | 8 | 66 | 1.743782 |
train_7eeeef5f10be91e2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.272, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.724).extrude(0.755, both=True)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0.272, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.171).extrude(0.417, both=True))
result = result.... | 11 | 80 | 2.023748 |
train_d951871593f37caf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.664, 0.544).lineTo(0.664, -0.544).lineTo(-0.664, -0.544).lineTo(-0.664, 0.544).lineTo(-0.266, 0.544).lineTo(-0.266, -0.145).lineTo(0.266, -0.145).lineTo(0.266, 0.544).lineTo(0.664, 0.544).clos... | 4 | 28 | 0.351812 |
train_d5816612688a6b78 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.843), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.412).workplane(offset=1.686).rect(1.444, 0.299).loft()
result = result.cut(cq.Workplane(cq.Plane(origin=(0.229, 0.063, -0.002), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(1.502, 1.538).li... | 7 | 72 | 0.708009 |
train_340914e8dbd169f6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.005, -0.226), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.301, 0).lineTo(0.301, 0.453).lineTo(0.245, 0.453).lineTo(0.245, 0.187).lineTo(1, 0.187).lineTo(1, 0).lineTo(0.301, 0).close().revolve(angleDegrees=360, axisStart=(0, 0, 0), axisEnd=(0... | 9 | 94 | 0.390467 |
train_af30174642b32bd9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.533, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.303).extrude(0.766)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.533, 0, -0.462), normal=(0.738, 0, 0.674), xDir=(0.674, 0, -0.738))).circle(0.666).extrude(1.438))
result = resu... | 8 | 55 | 1.345897 |
train_60e18b0d175c0925 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.139, -0.244, -0.251), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.728, 0.58).lineTo(0.728, -0.66).lineTo(-0.728, -0.66).lineTo(-0.728, 0.58).threePointArc((-0.637, 0.501), (-0.546, 0.58)).threePointArc((-0.454, 0.66), (-0.363, 0.58)).threePointA... | 7 | 88 | 1.688398 |
train_4d0648233d3c46eb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.068, 0.682, 0.132), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.237, 0.475).threePointArc((0.237, 0.475), (0.475, 0)).threePointArc((0.237, -0.475), (-0.237, -0.475)).threePointArc((-0.475, 0), (-0.237, 0.475)).close().sweep(cq.Workplane(cq.Pla... | 9 | 43 | 0.542919 |
train_f26b0eabe39201ce | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.069, 0.042, -0.357), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.538, 0.787).lineTo(0.178, 0.227).threePointArc((0.261, 0.094), (0.464, 0.148)).lineTo(0.823, 0.709).threePointArc((0.495, -0.851), (-0.823, 0.502)).lineTo(-0.086, 0.079).threePoin... | 2 | 11 | 1.835897 |
train_5153dfe2a8fa5796 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.006), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.739, 0.543).threePointArc((0.845, 0.491), (0.918, 0.397)).threePointArc((0.987, -0.151), (0.94, -0.332)).threePointArc((0.841, -0.455), (0.704, -0.532)).threePointArc((0.597, -0.546), (0.... | 5 | 31 | 1.584358 |
train_f2f5a7f1d02ed63a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.206, 0, -0.465), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.112, 0.929).lineTo(0.112, 0.112).lineTo(0.511, 0.112).lineTo(0.511, 0).lineTo(0, 0).lineTo(0, 0.929).lineTo(0.112, 0.929).close().extrude(1, both=True)
result = result.cut(cq.Workpla... | 4 | 32 | 0.295453 |
train_6ba2f267384029ea | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.439, 0.755).lineTo(-0.439, -0.489).lineTo(0.854, -0.489).lineTo(0.854, -0.755).lineTo(-0.854, -0.755).lineTo(-0.854, 0.755).lineTo(-0.439, 0.755).close().extrude(2, taper=-0.147)
result = res... | 3 | 28 | 1.943602 |
train_498dcf77f9fd0109 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.04), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.486, 0.43).threePointArc((0.784, 0.306), (0.906, 0.008)).lineTo(0.906, -0.136).threePointArc((0.82, -0.344), (0.614, -0.43)).lineTo(-0.486, -0.43).threePointArc((-0.784, -0.306), (-0.906, -0... | 10 | 56 | 0.884193 |
train_551e9f39ccff2954 | import cadquery as cq
import math
result = cq.Workplane('XY').moveTo(0.811, 0.667).lineTo(0.811, -0.667).lineTo(-0.811, -0.667).lineTo(-0.811, 0.667).lineTo(-0.531, 0.667).lineTo(-0.531, -0.387).lineTo(0.531, -0.387).lineTo(0.531, 0.667).lineTo(0.811, 0.667).close().extrude(1, both=True)
result = result.cut(cq.Workplan... | 4 | 36 | 1.693532 |
train_e9f34950cdcea5ec | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.348, -0.047, -0.081), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.388, -0.454).threePointArc((-0.648, -0.557), (-0.264, 0.433)).lineTo(0.617, 0.557).threePointArc((0.648, 0.554), (0.646, 0.533)).lineTo(0.088, -0.368).threePointArc((0.071, -0.38... | 9 | 87 | 0.397999 |
train_186e1149d7c0975b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.003, 0, -0.716), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(1).extrude(0.551)
result = result.cut(cq.Workplane(cq.Plane(origin=(1.003, 0, -0.716), normal=(0, 0, 1), xDir=(1, 0, 0))).pushPoints([(0, 0), (-0.114, 0.464), (-0.432, 0.823), (-0.88, 0.... | 4 | 55 | 1.779431 |
train_31c0ca655936defe | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.142, -0.439, -0.979), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.177, 0.07).lineTo(0.177, 0.019).lineTo(0.179, 0).lineTo(0.177, -0.02).lineTo(0.179, -0.027).lineTo(0.165, -0.066).threePointArc((0.153, -0.07), (0.144, -0.06)).lineTo(0.158, -0.... | 9 | 24 | 0.184034 |
train_b37941e4a124fa83 | import cadquery as cq
import math
result = cq.Workplane('XY').moveTo(1, 0.238).lineTo(1, -0.238).lineTo(-1, -0.238).lineTo(-1, 0.238).lineTo(-0.534, 0.238).lineTo(-0.534, -0.148).lineTo(0.534, -0.148).lineTo(0.534, 0.238).lineTo(1, 0.238).close().extrude(0.169, both=True)
result = result.cut(cq.Workplane(cq.Plane(origi... | 4 | 45 | 0.179137 |
train_3ebb1503405f06f9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.162, 0.084), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.333, 0.232).lineTo(0.333, 0.116).lineTo(1, 0.116).lineTo(1, 0).lineTo(0.333, 0).lineTo(0.333, -0.116).lineTo(-0.333, -0.116).lineTo(-0.333, -0.232).lineTo(-1, -0.232).lineTo(-1, 0.232).... | 6 | 59 | 0.367356 |
train_ee13c668339ad929 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.061, 0.147, 0.419), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.8, 0.313).lineTo(0.761, 0.248).threePointArc((0.721, 0.184), (0.991, -0.021)).threePointArc((1.045, -0.062), (0.952, -0.086)).lineTo(0.031, -0.359).threePointArc((-0.278, -0.397), (... | 10 | 114 | 0.714556 |
train_eb7b305ae0df42d8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.21, 0.415, -0.68), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.465, 0.47).lineTo(-0.465, -0.314).lineTo(0.789, -0.314).lineTo(0.789, -0.47).lineTo(-0.789, -0.47).lineTo(-0.789, 0.47).lineTo(-0.465, 0.47).close().extrude(0.729)
result = result.c... | 19 | 161 | 0.996017 |
train_9ed8c5327c9fad37 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.113, -0.011, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.887, 0.123).lineTo(0.887, -0.069).threePointArc((0.759, -0.111), (0.454, -0.129)).lineTo(-0.673, -0.129).threePointArc((-0.824, -0.12), (-0.887, -0.099)).lineTo(-0.887, 0.123).threePoi... | 9 | 64 | 0.059145 |
train_5e18a193f8219405 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.185), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(1).extrude(0.37)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, -0.185), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.739).extrude(1.109, both=True))
result = result.union(cq.Workpla... | 13 | 55 | 0.894518 |
train_396249700eb94a34 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.352, -0.259), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.473, 0.647).lineTo(0.473, -0.647).lineTo(-0.473, -0.647).lineTo(-0.473, 0.647).lineTo(0.473, 0.647).close().extrude(0.348)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.315, 0.35... | 17 | 224 | 0.214247 |
train_dec4975e59997eb7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.196, -0.001, -0.394), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.395, 0.244).threePointArc((0.085, 0.282), (0.559, 0.177)).threePointArc((0.677, -0.086), (0.109, -0.282)).threePointArc((-0.225, -0.271), (-0.468, -0.181)).threePointArc((-0.659,... | 5 | 46 | 0.276225 |
train_d0e7c200caa88a6d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.101, 0.003, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.146, 0.196).threePointArc((0.179, 0.186), (0.193, 0.162)).lineTo(0.193, 0.051).threePointArc((0.183, 0.035), (0.162, 0.028)).lineTo(-0.106, 0.028).threePointArc((-0.112, 0.026), (-0.11... | 23 | 214 | 0.153618 |
train_a110375624507818 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.514, 0.956, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.464, 1.315).threePointArc((0.464, 1.315), (0.925, 0.513)).threePointArc((0.464, -0.289), (-0.464, -0.289)).threePointArc((-0.925, 0.513), (-0.464, 1.315)).close().workplane(offset=0.3... | 9 | 263 | 4.41087 |
train_b1cdcf956a8cb0a0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.409, -0.238, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.818).threePointArc((0.579, 0.579), (0.818, 0)).lineTo(0.32, 0).threePointArc((0.226, 0.226), (0, 0.32)).lineTo(0, 0.818).close().extrude(2)
result = result.union(cq.Workplane(cq.P... | 4 | 20 | 1.03279 |
train_724c066e0027337d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.781), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(1, 1.562).lineTo(1, 1.065).lineTo(0.816, 1.065).lineTo(0.816, 0.703).lineTo(0.314, 0.703).lineTo(0.314, 0.204).lineTo(0.761, 0.204).lineTo(0.761, 0).lineTo(0, 0).lineTo(0, 1.562).lineTo(1, ... | 4 | 24 | 2.036512 |
train_d1d9ee48d1b88aea | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.188), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.867, -0.085).lineTo(0.992, -0.119).lineTo(0.981, -0.195).lineTo(0.852, -0.182).lineTo(0.831, -0.264).lineTo(0.946, -0.323).lineTo(0.918, -0.394).lineTo(0.796, -0.354).lineTo(0.758, -0.431)... | 3 | 127 | 0.976256 |
train_5fd6e4e07f461477 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.038, 0, -0.104), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(1).extrude(0.207)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.038, 0, -0.104), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.758).extrude(0.623, both=True))
result = result.union(c... | 15 | 58 | 0.264315 |
train_bf5f0a684fa1960b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.012, -0.319), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.837, 0.231).lineTo(1, 0.069).lineTo(1, -0.046).lineTo(0.815, -0.231).lineTo(-0.829, -0.231).lineTo(-1, -0.061).lineTo(-1, 0.071).lineTo(-0.839, 0.231).lineTo(0.837, 0.231).close().ext... | 17 | 92 | 0.270923 |
train_1e649af54a28eead | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.647), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.641).lineTo(1, -0.559).lineTo(0.909, -0.641).lineTo(-0.937, -0.641).lineTo(-0.937, -0.586).lineTo(-1, -0.586).lineTo(-1, 0.641).lineTo(1, 0.641).close().extrude(0.387)
result = result.u... | 12 | 88 | 0.883972 |
train_d96bc1729a117567 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.402, -0.006, -0.809), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.273, 0.518).lineTo(0.246, -0.326).threePointArc((0.463, -0.583), (0.692, -0.668)).lineTo(1.827, -0.668).lineTo(-0.914, -0.668).lineTo(-1.827, -0.668).lineTo(-1.476, -0.668).three... | 2 | 12 | 1.228905 |
train_dccba3bd611cef4b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.318, -0.138, 0.753), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.411, 0).threePointArc((0, -0.411), (-0.411, 0)).threePointArc((0, 0.411), (0.411, 0)).close().revolve(angleDegrees=90, axisStart=(-0.529, -0.687), axisEnd=(0.529, -0.687))
result... | 6 | 39 | 0.773498 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.