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_2aa77ffd1f32ea7a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.507, 0, -0.278), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.987, 0.996).extrude(0.053)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.172, 0, -0.239), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.557, 0.267).lineTo(-0.557, 0.089).lineTo... | 3 | 54 | 0.229502 |
train_04734180405dc6aa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.367, 0, 0.079), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.075, -0.075).lineTo(-0.075, 0.025).lineTo(-0.025, 0.075).lineTo(-0.025, -0.025).lineTo(0.025, -0.025).lineTo(0.025, 0.025).lineTo(0.075, 0.025).lineTo(0.075, -0.075).lineTo(-0.075, -... | 12 | 96 | 0.014314 |
train_ac395727ef478a31 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.088, -0.185, -0.128), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.614, 0.164).lineTo(0.811, 0.164).lineTo(0.811, 0.011).lineTo(-0.811, 0.011).lineTo(-0.811, 0.164).lineTo(-0.614, 0.164).close().extrude(0.371)
result = result.edges().chamfer(0.... | 13 | 82 | 0.085628 |
train_1930d5e4e23e0b1a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.004, -0.233, -0.412), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.036, 1.385).extrude(0.824)
result = result.faces('>Z').shell(-0.036)
result = result.union(cq.Workplane(cq.Plane(origin=(0.742, -0.375, -0.041), normal=(0, 0, 1), xDir=(1, 0, 0))).... | 5 | 22 | 0.339421 |
train_2168f5cea2019376 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.749, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.589, 0.144).lineTo(0.589, 0.08).lineTo(0.652, 0.08).lineTo(0.652, 1.29).lineTo(0.589, 1.29).lineTo(0.589, 1.417).lineTo(-0.652, 1.417).lineTo(-0.652, 0.08).lineTo(-0.589, 0.08).lineTo(-0.... | 3 | 64 | 1.076487 |
train_54d7aab5d826a3a6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.093, 0.172), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.45, 0.45).threePointArc((-0.45, -0.45), (0.45, -0.45)).lineTo(0.337, -0.337).threePointArc((-0.337, -0.337), (-0.337, 0.337)).lineTo(-0.45, 0.45).close().sweep(cq.Workplane('XZ').spli... | 2 | 9 | 0.295238 |
train_192b072bd93eb1d5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.457, 0.197, -0.062), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.514, 0.976).extrude(0.125)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.457, -0.056, 0.069), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.131, 0.223).lineTo(0.131, 0.038).... | 12 | 105 | 0.349054 |
train_fa30307c8c713705 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.133, 0.331, 0.573), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 0.326).threePointArc((-0.192, 0.247), (-0.272, 0.055)).lineTo(-0.272, -0.176).threePointArc((-0.26, -0.205), (-0.231, -0.217)).lineTo(0.231, -0.217).threePointArc((0.26, -0.205), ... | 20 | 183 | 0.348565 |
train_6b3c3e313c7b67fd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.325, -0.21), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.435, 1.351).extrude(0.623)
result = result.faces('<X').shell(-0.07)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.077, -0.027, 0.233), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0... | 7 | 48 | 0.42942 |
train_1df41c3c9754c766 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.596, -0.755, -0.004), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.691, 0.491).threePointArc((0.042, -0.244), (0.691, 0.566)).threePointArc((0.596, 0.82), (0.41, 1.018)).threePointArc((0.326, 1.451), (0.004, 1.755)).threePointArc((-0.354, 1.451... | 24 | 98 | 1.28744 |
train_22dd2d1708069415 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.06, -0.288, -0.477), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.717, 1.039).extrude(0.565)
result = result.union(cq.Workplane(cq.Plane(origin=(0.076, -0.842, -0.165), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.237, 0.086).extrude(0.078))
result = ... | 10 | 116 | 0.908986 |
train_c454a87b173e37a2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.086, 0.027, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.002).lineTo(-1, 0.052).lineTo(1, 0.052).lineTo(1, 0.002).lineTo(-1, 0.002).close().extrude(0.171)
result = result.edges().chamfer(0.011)
result = result.cut(cq.Workplane(cq.Plane(o... | 13 | 155 | 0.015813 |
train_2bbd409d4dd66c34 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.173, -0.183, 0.009), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.065).workplane(offset=0.045).circle(0.06).workplane(offset=0.046).circle(0.054).workplane(offset=0.048).circle(0.048).workplane(offset=0.037).circle(0.042).workplane(offset=0.042)... | 2 | 9 | 0.071098 |
train_e589a41a6235ff8f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.048, -0.274, -0.003), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.986, 0.011).threePointArc((-0.992, 0.057), (-1.003, 0.103)).lineTo(1.003, 0.103).lineTo(1.003, 0.011).lineTo(-0.986, 0.011).close().extrude(0.204)
result = result.edges().chamfe... | 11 | 120 | 0.103029 |
train_6dbaa861b238734b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.157, 0, 0.5), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.5, 0.433).lineTo(-0.5, 0.155).lineTo(-0.334, 0.155).lineTo(-0.334, 0.322).lineTo(0.5, 0.322).lineTo(0.5, 0.433).lineTo(-0.5, 0.433).close().revolve(angleDegrees=360, axisStart=(-0.5, 0.... | 4 | 54 | 0.385177 |
train_586e172c5a87f79a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.338, 0.25), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.146, 0.662).threePointArc((0.044, -0.01), (-0.146, -0.662)).close().sweep(cq.Workplane('YZ').spline([(0.338, -0.091), (0.575, 0.004), (0.812, 0.048), (1.049, 0.041)]))
result = result.un... | 3 | 75 | 0.085659 |
train_e69795765aea79ae | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.296, 0.128), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.383, -0.383).lineTo(-0.383, 0.383).lineTo(0.383, -0.383).lineTo(-0.383, -0.383).close().sweep(cq.Workplane('YZ').spline([(-0.744, -0.309), (-0.488, -0.094), (-0.232, 0.013), (0.023, 0... | 15 | 10 | 0.420395 |
train_ae4af27b692170cc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.291), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.883, 2).extrude(0.582)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0.072), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.423).center(0.017, -0.031).circle(0.141).extrude(0.244))
re... | 14 | 52 | 1.604309 |
train_03eccac7a6749f21 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.061, 0.002, 0.028), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.091, -0.102).lineTo(0.089, -0.105).lineTo(0.093, 0.101).lineTo(-0.092, 0.105).close().moveTo(0, 0.015).lineTo(0.003, 0.024).lineTo(0.013, 0.024).lineTo(0.005, 0.03).lineTo(0.008, ... | 16 | 248 | 0.022624 |
train_ac1b33f6d164fb9f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.081, -0.102, 0.423), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.136, 0.192).lineTo(-0.136, 0.011).lineTo(0.136, 0.011).lineTo(0.136, 0.192).lineTo(-0.136, 0.192).close().extrude(0.162)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.05... | 4 | 15 | 0.008228 |
train_6c6907c69e8cdbb8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.978, 0.748, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.081, 0.047).lineTo(0.886, 0.047).lineTo(1.047, 0.208).lineTo(0.081, 1.175).lineTo(0.241, 1.335).lineTo(0.081, 1.496).lineTo(-1.047, 0.368).lineTo(-0.886, 0.208).lineTo(-0.725, 0.047).l... | 8 | 71 | 2.682439 |
train_f84f2fc9fc43414c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.558, 0, -0.362), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.196).sweep(cq.Workplane('XZ').spline([(0.029, -0.725), (0.323, -0.714), (0.617, -0.606), (0.911, -0.498), (1.204, -0.487)]))
result = result.edges().chamfer(0.061)
result = result.un... | 9 | 114 | 0.337955 |
train_662b979c493a857d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.573), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.038, 1.238).extrude(1.573)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.088, 0.033, -0.84), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.231, 0.43).extrude(1.888))
result = result.union(... | 3 | 35 | 1.909831 |
train_75b6d13065bc0a21 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.645), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.342).extrude(0.293)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, -0.352), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.347, -0.172).lineTo(0.346, -0.169).lineTo(0.342, -0.08)... | 18 | 195 | 1.202621 |
train_c5471463e2261d15 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.468, 0.005, -0.5), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.035, -0.236).lineTo(0.035, -0.236).lineTo(0.035, 0.236).lineTo(-0.035, 0.236).lineTo(-0.035, -0.236).close().sweep(cq.Workplane('YZ').spline([(-0.045, -0.581), (0.029, -0.581), (0.1... | 6 | 47 | 0.355369 |
train_42241f8f557467ee | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.628), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.64).extrude(1.255)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.532, -0.115, -0.495), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.097, 1.969).extrude(0.074))
result = result.cut(cq.W... | 14 | 219 | 3.770339 |
train_ac522cfd78b588d6 | 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.068, 1.641).extrude(1.747)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.069, -0.127, 0.72), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.318).extrude(0.28))
result = result.cut(cq.Workp... | 4 | 41 | 3.073412 |
train_0ab81377e159e4ba | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.429, 1.083, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.86, 0.083).lineTo(0.86, 1.231).lineTo(0, 1.231).lineTo(0, 2.091).threePointArc((-0.608, 1.839), (-0.86, 1.231)).lineTo(-0.86, 0.083).lineTo(0, 0.083).lineTo(0.86, 0.083).close().extrud... | 5 | 52 | 1.341781 |
train_5c00fb64c32b9af2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.148, 0.314, -0.108), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.239, 1.207).threePointArc((0.239, 0.148), (-0.239, -0.912)).lineTo(-0.239, 1.207).close().extrude(0.629)
result = result.edges().chamfer(0.087)
result = result.cut(cq.Workplane(c... | 5 | 29 | 0.2981 |
train_90ff7a934995a20d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.268, -0.092, -0.395), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.464, 1.147).extrude(1.112)
result = result.union(cq.Workplane(cq.Plane(origin=(0.232, -0.037, -0.548), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.82, 1.028).extrude(0.166))
result = ... | 10 | 55 | 1.563036 |
train_d4cafd2ce96f72eb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.97, -0.011, -0.022), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.003, -0.055).lineTo(0.03, -0.055).lineTo(0.03, -0.022).threePointArc((0.014, -0.038), (-0.003, -0.022)).lineTo(-0.003, 0.055).lineTo(-0.03, 0.055).lineTo(-0.03, -0.055).lineTo(-... | 4 | 22 | 0.002135 |
train_d45fbe22342f0a5e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 1, 0.347), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.288, 0.271).lineTo(-0.288, 0.335).lineTo(-0.225, 0.335).lineTo(-0.225, 0.306).lineTo(0.237, 0.306).lineTo(0.237, 0.301).lineTo(0.288, 0.301).lineTo(0.288, 0.271).lineTo(0.237, 0.271).lineT... | 3 | 23 | 0.43586 |
train_4be8749052c12bac | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.703), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.406).extrude(1.407)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.491, -0.14, -0.404), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.315).extrude(0.464))
result = result.edges().cham... | 8 | 95 | 3.264424 |
train_18f52fc8ed3292f1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.064, 0.119), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.099, 0.468).threePointArc((-0.567, 0), (-0.099, -0.468)).lineTo(-0.099, -0.601).lineTo(-0.025, -0.468).lineTo(0.493, -0.468).lineTo(0.567, -0.468).lineTo(0.567, 0.468).lineTo(0.567, 0... | 16 | 104 | 0.617921 |
train_3b560da2b1670c3e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.151, -0.471, 0.198), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.401, 0.669).lineTo(-0.401, 0.547).lineTo(0.23, 0.547).lineTo(0.23, 0.08).lineTo(0.401, 0.08).lineTo(0.401, 0.547).lineTo(0.304, 0.547).lineTo(0.304, 0.669).lineTo(0.23, 0.669).l... | 7 | 64 | 0.409537 |
train_b464ae876bb93cd7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.472, -0.553, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.941, 1.209).lineTo(-1, -0.455).lineTo(1, -0.455).lineTo(1, 1.209).lineTo(-0.941, 1.209).close().extrude(1.106)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.211, 0.137, 0.251)... | 10 | 44 | 3.49002 |
train_62598dd33a857f0b | 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.193).workplane(offset=0.353).circle(0.214).workplane(offset=0.366).circle(0.205).workplane(offset=0.346).circle(0.205).workplane(offset=0.329).circle(0.204).workplane(offset=0.333).circle(0.19... | 2 | 5 | 0.250712 |
train_5aadf6d0252e30e4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.353, 0, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.724, 0).lineTo(0.724, -0.614).threePointArc((-0.063, -0.456), (-0.724, 0)).threePointArc((-0.063, 0.456), (0.724, 0.614)).lineTo(0.724, 0).close().extrude(2)
result = result.edges().chamf... | 5 | 33 | 1.712382 |
train_74ec98a21d93c8fa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.12, -0.136, -0.11), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.238, -0.404).lineTo(0.238, -0.88).lineTo(-0.238, -0.88).lineTo(-0.238, 1.12).lineTo(0.238, 1.12).lineTo(0.238, -0.404).close().extrude(0.249)
result = result.edges().chamfer(0.031)... | 13 | 259 | 0.169609 |
train_a60a277f40127727 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.701), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.103, 2).extrude(1.403)
result = result.cut(cq.Workplane(cq.Plane(origin=(0 + 0.261 * math.cos(2.32 + 2 * math.pi * 0 / 5), 0.701 + 0.261 * math.sin(2.32 + 2 * math.pi * 0 / 5), -1.418), norm... | 16 | 54 | 2.960899 |
train_5387e45574e6b283 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.288, 0, -0.484), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, 0.288).lineTo(0.516, 0.288).lineTo(0.516, 0.546).lineTo(0.258, 0.546).lineTo(0.258, 0.804).lineTo(-0.516, 0.804).lineTo(-0.516, 0.546).lineTo(0, 0.546).lineTo(0, 0.288).close().revol... | 7 | 53 | 0.407345 |
train_6430d676a1cd571b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1.235, 0.079, 0.144), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.654, 0.556).lineTo(-0.663, 0.556).lineTo(-0.663, 0.555).lineTo(-0.672, 0.235).lineTo(0.672, 0.235).lineTo(0.672, 0.364).lineTo(-0.654, 0.364).lineTo(-0.654, 0.428).lineTo(0.672, 0... | 9 | 55 | 0.405049 |
train_332d772eb0439c62 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.182, 0, -0.427), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.636, 1.525).extrude(0.854)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.085, -0.107, -0.195), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.188, 1.83).extrude(0.268))
result = resul... | 17 | 79 | 1.32202 |
train_efd0af29491ca318 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.536, 0, -0.148), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.751, 0.312).extrude(0.228)
result = result.union(cq.Workplane(cq.Plane(origin=(0.048, 0.014, -0.06), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.263, 0.106).extrude(0.07))
result = result.... | 8 | 56 | 0.09419 |
train_0abee280d5a0d2d9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.61, -0.022, -0.292), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.557, -0.719).lineTo(-0.741, -0.535).lineTo(-0.416, -0.211).lineTo(-0.092, 0.114).lineTo(0.233, 0.438).lineTo(0.557, 0.763).lineTo(0.741, 0.579).lineTo(-0.557, -0.719).close().ext... | 5 | 47 | 1.05201 |
train_1ec70be3b0026fba | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.023, -0.197, -0.321), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.613, -0.066).lineTo(-0.613, 0.043).lineTo(-0.679, 0.043).lineTo(-0.679, 0.066).lineTo(0.679, 0.066).lineTo(0.679, 0.043).lineTo(0.031, 0.043).lineTo(0.031, -0.066).lineTo(-0.163... | 18 | 251 | 0.182826 |
train_10f56bb9cf80f7ad | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.421, 0.975, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.902, 0.942).threePointArc((0.521, 1.323), (0, 1.463)).lineTo(-0.902, 0.942).lineTo(-0.902, -0.1).lineTo(0, -0.621).threePointArc((0.521, -0.482), (0.902, -0.1)).lineTo(0.902, 0.942).cl... | 21 | 90 | 4.936919 |
train_3c76e82964194e09 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.081, 0.047, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.468, 1.199).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.139, -0.097, -0.071), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.221).extrude(1.099))
result = result.cut(cq.... | 15 | 88 | 2.836165 |
train_f44d08c163aa6beb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.537, 0.968, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.032, -0.021).lineTo(-0.033, -0.02).threePointArc((-0.032, -0.017), (-0.035, -0.016)).lineTo(-0.036, -0.014).lineTo(-0.031, -0.007).lineTo(-0.02, -0.001).lineTo(-0.018, -0.001).lineTo(0... | 1 | 16 | 0.001146 |
train_eeb3de8a634c5ad2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.006, 0, -0.729), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.29, 0.413).extrude(0.581)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.006, 0, -0.156), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.095).extrude(0.189))
result = result.union(... | 12 | 88 | 0.093706 |
train_c8e7357243117f93 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, 0.131, 0.125), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.318, -0.321).lineTo(0.318, 0.321).lineTo(-0.251, 0.321).lineTo(-0.251, 0.242).lineTo(-0.318, 0.242).lineTo(-0.318, -0.321).lineTo(0.318, -0.321).close().sweep(cq.Workplane('XZ').spline(... | 9 | 44 | 0.621292 |
train_c197f2b169e2d03e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.398, 0.207, -0.429), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.286, -0.179).lineTo(0.349, -0.142).lineTo(0.349, 1.216).lineTo(0.286, 1.179).lineTo(0.169, 1.112).lineTo(0.169, 1.268).lineTo(0.286, 1.336).lineTo(-0.34, 1.336).lineTo(-0.34, 0.97... | 6 | 43 | 0.216887 |
train_ed6558dec45c1d61 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.362), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1, 0.622).lineTo(-1, -0.622).lineTo(1, -0.622).lineTo(1, 0.622).lineTo(-1, 0.622).close().extrude(0.724)
result = result.edges().fillet(0.188)
result = result.cut(cq.Workplane(cq.Plane(orig... | 15 | 55 | 1.366112 |
train_15d7c9f00b2673a3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.556), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.319).extrude(1.112)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.378, -0.258), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.132).extrude(0.515))
result = result.edges().chamfer(0... | 5 | 110 | 2.860631 |
train_5d137ac5a7c90bb1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.746, -0.493), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.509, 0.509).extrude(1.148)
result = result.union(cq.Workplane(cq.Plane(origin=(0, -0.048, -0.235), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.152, 1.166).extrude(0.632))
result = result.u... | 10 | 35 | 0.392615 |
train_eb413bd064aa67ef | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.294, 0.267, -0.295), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.605, 0.647).extrude(0.149)
result = result.union(cq.Workplane(cq.Plane(origin=(0.294, 0.096, -0.134), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.081, 0.206).lineTo(-0.142, 0.101).... | 24 | 233 | 0.272222 |
train_4cc335b289e90e2e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.279, 0.013, -0.09), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.177, 1.356).extrude(0.743)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.165, 0.188, -0.25), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.293).extrude(0.172))
result = result... | 20 | 71 | 0.635832 |
train_a67d68dd874ce946 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.212, -0.088, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.114, 1.088).lineTo(-0.114, -0.798).threePointArc((0, -0.912), (0.114, -0.798)).lineTo(0.114, 1.088).lineTo(-0.114, 1.088).close().extrude(0.114)
result = result.edges().chamfer(0.034... | 6 | 319 | 0.013906 |
train_879175adf2965373 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.228, 0, -0.125), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.326, 1.611).extrude(1.125)
result = result.union(cq.Workplane(cq.Plane(origin=(0.531, -0.084, 0.573), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.135).lineTo(0.232, 0.135).lineTo(0.2... | 9 | 37 | 1.957806 |
train_194b36e118516589 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.002, 0.052, 0.097), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.719, 0.002).lineTo(-0.719, 0.03).lineTo(0.719, 0.03).lineTo(0.719, 0.002).lineTo(-0.719, 0.002).close().extrude(0.121)
result = result.edges().chamfer(0.01)
result = result.cut(cq.... | 16 | 151 | 0.105972 |
train_1a22283b5146cbe0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.505, 0, 0.151), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.991, 1.026).extrude(0.389)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.196, 0.029, 0.27), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.846, -0.062).threePointArc((-0.818, -0.0... | 5 | 57 | 0.251254 |
train_7c2733ca08169788 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.292, 0.003, -0.199), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.417, 1.65).extrude(0.541)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.807, 0.186, -0.004), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.203).extrude(0.19))
result = result.e... | 30 | 236 | 0.69435 |
train_87d5e06ee9ab2fd0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.002, -0.075, -0.23), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.193, 0.368).lineTo(0.193, -0.368).lineTo(-0.133, -0.368).lineTo(-0.133, -0.145).threePointArc((-0.193, 0), (-0.133, 0.145)).lineTo(-0.133, 0.354).lineTo(-0.133, 0.368).lineTo(0.19... | 4 | 20 | 0.427502 |
train_22f706e769252b43 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.217, -0.079, 0.67), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.33, 0.167).lineTo(-0.33, 0.563).threePointArc((0.33, 0.365), (-0.33, 0.167)).close().revolve(angleDegrees=180, axisStart=(-0.33, 0.167), axisEnd=(-0.33, 0.563))
result = result.cu... | 10 | 81 | 0.733076 |
train_9f29338a160d8a93 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.152, -0.555, -0.253), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.266, 0.524).lineTo(-0.266, 0.156).threePointArc((0, -0.11), (0.266, 0.156)).lineTo(0.266, 0.524).lineTo(-0.266, 0.524).close().extrude(0.805)
result = result.edges().chamfer(0.18... | 13 | 106 | 0.691851 |
train_91a7739095d934ef | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.202, -1), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.17, 0.175).lineTo(-0.17, -0.175).lineTo(0.17, -0.175).lineTo(0.17, 0.175).lineTo(-0.17, 0.175).close().sweep(cq.Workplane('YZ').spline([(-0.202, -1), (0.2, -0.441), (0.24, 0.231), (-0.0... | 5 | 21 | 0.112125 |
train_a83c9099bce6e6dd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.104, 1, 0.053), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.052, -0.059).lineTo(-0.052, 0.059).lineTo(0.052, 0.059).lineTo(0.052, -0.059).lineTo(-0.052, -0.059).close().sweep(cq.Workplane('XY').spline([(0.104, 0.778), (0.207, 0.86), (0.31, 0.88... | 14 | 85 | 0.01609 |
train_2931e434a40377d2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.902, 0.292, -0.319), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.314, 0.728).threePointArc((-0.413, 0.772), (-0.512, 0.728)).threePointArc((-0.462, 0.58), (-0.611, 0.531)).lineTo(-0.611, 0.471).threePointArc((-0.606, 0.44), (-0.611, 0.41)).lin... | 11 | 75 | 1.106218 |
train_f1abe85765e8ea23 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.007, 0.048, 0.195), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.128).workplane(offset=0.108).circle(0.122).workplane(offset=0.15).circle(0.108).workplane(offset=0.104).circle(0.119).loft()
result = result.edges().fillet(0.053)
result = result.... | 25 | 152 | 0.0533 |
train_f1f64b9356e4e196 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.789, -0.486, -0.001), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.104, -0.233).threePointArc((-0.105, -0.222), (-0.113, -0.214)).threePointArc((-0.224, 0.097), (0.076, 0.234)).threePointArc((0.243, -0.03), (0.014, -0.241)).threePointArc((0.00... | 2 | 23 | 0.138118 |
train_02e791fe04075e3f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.294, 0.203, 0.276), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.362, 0.164).threePointArc((-0.054, 0.472), (0.253, 0.164)).lineTo(0.253, -0.551).threePointArc((0.309, -0.524), (0.362, -0.493)).threePointArc((-0.116, 0.94), (-0.362, -0.551)).li... | 14 | 133 | 0.490072 |
train_ccd85d5ffb3adb56 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.615, -0.361, -0.261), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.385, 0.019).lineTo(0.385, 0.704).lineTo(0, 0.704).lineTo(-0.238, 0.657).lineTo(-0.385, 0.361).lineTo(-0.238, 0.065).lineTo(0, 0.019).lineTo(0.385, 0.019).close().extrude(0.522)
re... | 11 | 81 | 0.218664 |
train_085fa7f0b87a56f7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.188, -0.031, -0.829), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.702, 0.684).extrude(0.926)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.027, 0.154, -0.564), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.125, 0.331).extrude(0.513))
result = re... | 22 | 316 | 0.328776 |
train_c2c87abcaefe0ea7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.194, 0, -0.39), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.611, 1.724).extrude(0.955)
result = result.faces('>Z').shell(-0.049)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.12, 0.076, -0.395), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.674,... | 5 | 27 | 0.556827 |
train_3a85fd0312febb32 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.565, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.971).workplane(offset=0.451).circle(0.524).workplane(offset=0.637).circle(0.014).loft()
result = result.union(cq.Workplane(cq.Plane(origin=(-0.753, -0.323, -0.249), normal=(0, 0, 1), xDir=... | 9 | 38 | 0.894624 |
train_0a0b8cabf7c2c349 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.336, 0.21, -0.37), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.702, 0.828).extrude(0.429)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.301, -0.121, 0.071), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.293, 0.699).lineTo(0.293, 0.441).li... | 12 | 139 | 0.570589 |
train_043fde1cc3d5284f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.412, 0, -0.247), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.196, -0.137).lineTo(-0.196, 0.804).threePointArc((0, 1), (0.196, 0.804)).lineTo(0.196, -0.137).lineTo(0.196, -0.529).lineTo(0.118, -0.529).lineTo(0.118, -1).lineTo(-0.118, -1).lineTo... | 5 | 30 | 1.004836 |
train_4a52d129eff666ca | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.125, 0, -0.077), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.125, 1).lineTo(-0.125, -1).lineTo(0.125, -1).lineTo(0.125, 1).lineTo(-0.125, 1).close().revolve(angleDegrees=360, axisStart=(-0.125, 1), axisEnd=(-0.125, -0.125))
result = result.edg... | 5 | 19 | 0.322977 |
train_4908fb8376359023 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, 0.219, 0.002), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-1.002, 0.1).lineTo(-1.002, 0.338).lineTo(1.002, 0.338).lineTo(1.002, 0.1).lineTo(-1.002, 0.1).close().revolve(angleDegrees=90, axisStart=(-1.002, 0.1), axisEnd=(-1.002, 0.338))
result = ... | 3 | 24 | 0.650094 |
train_469c78bcd9d843bc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.116, -0.668), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.742, 1.065).extrude(0.987)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.176, -0.303, -0.569), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.16, 0.24).extrude(0.471))
result = result.e... | 13 | 188 | 0.242037 |
train_bdafdfd9480760ab | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.384), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.284, 2).extrude(0.769)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, -0.5), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.799, 1.011).extrude(0.999))
result = result.edges().fillet(0.0... | 7 | 58 | 1.320383 |
train_34b4b8e6f39a0b39 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.267, 0.141, 0.1), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.065, 0.086).lineTo(-0.065, 0).lineTo(-0.032, 0).lineTo(-0.032, -0.086).lineTo(0.032, -0.086).lineTo(0.032, 0).lineTo(0.065, 0).lineTo(0.065, 0.04).lineTo(0.021, 0.04).threePointArc((... | 30 | 98 | 0.094646 |
train_a2d1828c9cb54ac0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.233, 1, 0.184), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.809, -0.065).threePointArc((0.767, -0.072), (0.76, -0.113)).lineTo(0.544, -0.113).lineTo(0.354, -0.113).lineTo(0.245, -0.113).lineTo(0.245, -0.13).lineTo(0.054, -0.13).lineTo(0.054, -0... | 5 | 43 | 0.857548 |
train_46d2467dbcfd1b3e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.228, 0.117), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.605, 0.013).threePointArc((0.046, -0.151), (-0.337, -0.592)).threePointArc((-0.585, -0.026), (-0.605, 0.592)).threePointArc((0.079, 0.467), (0.605, 0.013)).close().sweep(cq.Workplane('X... | 7 | 57 | 0.972686 |
train_72096372dcb27627 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.042), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, 0.401).lineTo(-0.033, 0.442).lineTo(-0.033, 1).threePointArc((0, -1), (0.033, 1)).lineTo(0.033, 0.445).lineTo(0, 0.401).close().extrude(0.084)
result = result.edges().fillet(0.013)
result... | 7 | 78 | 0.259594 |
train_3ec1d17b97f1fdcc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.374, 0, -0.258), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.289, 0.525).lineTo(-0.289, 0.635).lineTo(-0.095, 0.079).lineTo(0.289, 0.525).close().revolve(angleDegrees=360, axisStart=(0, 0), axisEnd=(0.247, 0))
result = result.edges().fillet(0.... | 6 | 26 | 0.574189 |
train_1c83863f54a6b738 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.61, 0.378, 0.343), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.35, -0.285).lineTo(0.35, -0.066).threePointArc((0, 0.285), (-0.35, -0.066)).lineTo(-0.35, -0.285).lineTo(0.35, -0.285).close().sweep(cq.Workplane('XY').spline([(0.242, 0.378), (0.174... | 3 | 18 | 0.209267 |
train_32393e8436ff01e8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.419, -0.149, -0.009), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.356, 0.376).lineTo(0.36, 0.377).lineTo(0.359, 0.2).lineTo(0.075, 0.208).lineTo(0.086, -0.36).lineTo(-0.082, -0.374).lineTo(-0.077, 0.215).lineTo(-0.353, 0.208).close().moveTo(-0.... | 17 | 224 | 0.524094 |
train_7248f917ed227736 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.15, -0.433, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.281).sweep(cq.Workplane('XY').spline([(0.15, -0.056), (0.292, -0.2), (0.434, -0.273), (0.576, -0.273), (0.718, -0.2), (0.86, -0.056)]))
result = result.union(cq.Workplane(cq.Plane(orig... | 2 | 9 | 0.178012 |
train_d7fce692eeb982c2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.076, -0.285, -0.267), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.675, 0.984).extrude(0.534)
result = result.union(cq.Workplane(cq.Plane(origin=(0.147, 0.271, -0.214), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.399, 0.155).extrude(0.305))
result = ... | 19 | 181 | 0.205875 |
train_2ed4316e37ac95a4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.273, 0.094, -0.172), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.727, 0.006).lineTo(-0.727, -0.006).lineTo(0.727, -0.006).lineTo(0.727, 0.006).lineTo(-0.727, 0.006).close().rect(0.406, 0.303).extrude(0.252)
result = result.cut(cq.Workplane(cq.P... | 7 | 50 | 0.069757 |
train_a59927b9f928203f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.045, -0.071, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.132).lineTo(-1, 0.01).lineTo(1, 0.01).lineTo(1, 0.132).lineTo(-1, 0.132).close().extrude(0.09)
result = result.edges().chamfer(0.042)
result = result.cut(cq.Workplane(cq.Plane(ori... | 5 | 47 | 0.012832 |
train_7ed3e4493ef916d7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.134, 0, -0.519), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.732, 1.073).extrude(1.039)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.563 + 0.1075, 0.312, -1.645), normal=(1, 0, 0), xDir=(0, 1, 0))).moveTo(-0.04, 0.038).lineTo(-0.04, 0.007... | 22 | 131 | 1.908708 |
train_0927000ab29dad28 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.608, 0.121, -0.187), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.394, -0.008).lineTo(0.305, 0.288).lineTo(0.017, 0.418).lineTo(-0.295, 0.288).lineTo(-0.422, 0.003).lineTo(-0.301, -0.294).lineTo(0.011, -0.417).lineTo(0.285, -0.294).close().moveTo... | 10 | 243 | 0.187311 |
train_ccd55097acc9876d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.207, 0, 0), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.206, 1).lineTo(0.207, -1).lineTo(-0.207, -1).lineTo(-0.207, 1).lineTo(0.206, 1).close().revolve(angleDegrees=360, axisStart=(0.206, 1), axisEnd=(0.207, -1))
result = result.edges().fillet... | 2 | 5 | 1.062932 |
train_0c298cfba74aada0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.505, 0.524, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.941, -0.436).lineTo(0.941, 1.446).lineTo(-0.941, 1.446).lineTo(-0.941, 0.861).lineTo(0.355, 0.861).lineTo(0.355, -0.436).lineTo(0.941, -0.436).close().workplane(offset=0.323).moveTo(0.... | 3 | 40 | 1.302845 |
train_88daaa139a0351a5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.51), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.517).extrude(1.02)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.808, 0.162, -0.408), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.404, 0.59).extrude(0.581))
result = result.cut(cq.Work... | 8 | 49 | 2.617954 |
train_7a186caf3a9ab3d5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.01, 0, -0.742), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.383, 0.697).extrude(1.129)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.01, 0, 0.336), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.22, 0.386).extrude(0.664))
result = result.unio... | 5 | 23 | 0.355949 |
train_86326ca1139e7c15 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.62, -0.149, -0.207), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, -0.589).threePointArc((0.369, -0.49), (0.639, -0.22)).lineTo(0.852, 0.148).lineTo(0.639, 0.517).lineTo(0.426, 0.886).lineTo(0, 0.886).lineTo(-0.426, 0.886).lineTo(-0.639, 0.517).... | 6 | 68 | 1.825873 |
train_92e57edcc7e3a5b5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.23).workplane(offset=0.359).circle(0.229).workplane(offset=0.297).circle(0.171).workplane(offset=0.313).circle(0.239).workplane(offset=0.33).circle(0.108).workplane(offset=0.359).circle(0.137)... | 2 | 5 | 0.231366 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.