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_cff29d39bfcfd884 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.937, -0.34, 0.133), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.055, -0.041).threePointArc((0.027, -0.063), (-0.008, -0.068)).lineTo(-0.063, -0.027).lineTo(-0.055, 0.041).lineTo(0.008, 0.068).lineTo(0.063, 0.027).lineTo(0.055, -0.041).close().t... | 2 | 8 | 0.010299 |
train_55fc5699272f06d4 | 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.295, 1.489).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.091, 0.426, -0.8), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.335).extrude(1.225))
result = result.cut(cq.Workplane(cq... | 10 | 105 | 3.018346 |
train_313f659099e5c03c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.056, -0.412, -0.087), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.194, -0.227).lineTo(-0.194, 0.227).lineTo(0.194, 0.227).lineTo(0.194, -0.227).lineTo(0.159, -0.227).lineTo(0.159, 0.19).lineTo(-0.159, 0.19).lineTo(-0.159, -0.227).lineTo(-0.19... | 7 | 75 | 0.080821 |
train_d1d383d6e38329e5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.157, 0.24, -0.698), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.767, 1.519).extrude(1.396)
result = result.union(cq.Workplane(cq.Plane(origin=(0.208, -0.745, -0.408), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.337, 0.511).extrude(0.452))
result = r... | 3 | 14 | 1.748376 |
train_4257ab0e4bdc8bd3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.105, 0, -0.433), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.79, 0.816).extrude(0.867)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.245, 0.057, -0.219), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.1).extrude(0.075))
result = result.cut(cq.... | 12 | 45 | 1.221844 |
train_3e23ba80faa4fa75 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.001, 0.854, -0.064), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.702, 1.079).threePointArc((0.092, 0.44), (0.945, -0.118)).threePointArc((0.022, -0.599), (-0.945, -0.987)).threePointArc((-0.876, 0.052), (-0.702, 1.079)).close().extrude(1.475)
... | 19 | 178 | 2.097082 |
train_af398dda0d32a020 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.016, -0.836, 0.034), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.069).sweep(cq.Workplane('YZ').spline([(-0.601, -0.036), (-0.324, 0.02), (-0.047, 0.051), (0.23, 0.047), (0.507, 0.02)]))
result = result.edges().chamfer(0.058)
result = result.uni... | 32 | 490 | 0.074827 |
train_085fc03ee326e8e9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.394, 0, -0.152), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.832, 0.214).extrude(0.207)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.895, 0.019, -0.026), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.211, 0.103).extrude(0.054))
result = res... | 10 | 44 | 0.064624 |
train_5b3539651c003a01 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.035, -0.113, -0.39), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.144, 0.692).extrude(0.514)
result = result.faces('>Z').shell(-0.033)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.102, 0.369, -0.122), normal=(0, 0, 1), xDir=(1, 0, 0))).re... | 7 | 47 | 0.240299 |
train_5f1c36cb7ff106c7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.379, 0.97, 0.004), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.349, -0.385).lineTo(0.761, -0.629).lineTo(-0.417, 1.411).lineTo(-0.761, 0.328).lineTo(-0.349, -0.385).close().extrude(1.94)
result = result.edges().chamfer(0.037)
result = result.c... | 13 | 48 | 1.999332 |
train_076ca5f934855553 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.39), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.684).extrude(1.084)
result = result.union(cq.Workplane(cq.Plane(origin=(0 + 0.159 * math.cos(4.191 + 2 * math.pi * 0 / 4), 0.542 + 0.159 * math.sin(4.191 + 2 * math.pi * 0 / 4), 0.61), nor... | 13 | 60 | 3.477491 |
train_83eb4db17ac08699 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.803, 0.426), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.117, 0.197).lineTo(0.117, -0.175).lineTo(-0.135, -0.175).lineTo(-0.135, 0.066).lineTo(-0.263, 0.066).lineTo(-0.263, -0.197).lineTo(0.263, -0.197).lineTo(0.263, -0.175).lineTo(0.252, -... | 2 | 16 | 0.200208 |
train_ed453c7e3a8bfcc8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.961, -0.212), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.009, 0.217).lineTo(0.119, 0.237).lineTo(0.271, 0.237).lineTo(0.271, 0.034).lineTo(0.245, 0.034).lineTo(0.245, -0.131).lineTo(0.061, -0.237).lineTo(-0.082, -0.155).lineTo(-0.095, -0.177... | 3 | 26 | 0.106394 |
train_abd2ef3630d57cb7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.17, -0.393, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.458, 1.17).lineTo(-0.208, 1.17).lineTo(-0.208, 0.337).lineTo(-0.458, 0.087).lineTo(-0.458, -0.58).lineTo(-0.314, -0.83).lineTo(0.458, -0.83).lineTo(0.458, 1.17).close().extrude(0.787)
... | 3 | 48 | 1.144354 |
train_43043ad98cdc21dd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.506, 0.062, 0.493), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.34, 0.192).lineTo(-0.34, 0.938).lineTo(0.34, 0.938).lineTo(0.34, 0.192).lineTo(-0.34, 0.192).close().revolve(angleDegrees=360, axisStart=(-0.34, 0.192), axisEnd=(-0.34, 0.258))
re... | 25 | 343 | 0.907081 |
train_924e684e294b8402 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.642, 0, 0.493), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.314, -0.09).threePointArc((0.244, 0), (0.314, 0.09)).threePointArc((0.336, 0.093), (0.358, 0.09)).threePointArc((0.348, 0.121), (0.336, 0.151)).threePointArc((-0.358, 0), (0.336, -0.151... | 4 | 21 | 0.13761 |
train_334b16e1a88a0292 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.855, -0.409, -0.076), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.486, 1.025).lineTo(-0.486, -0.145).lineTo(0.486, -0.145).lineTo(0.486, 1.025).lineTo(-0.486, 1.025).close().extrude(0.997)
result = result.edges().chamfer(0.157)
result = result... | 13 | 139 | 0.691751 |
train_dd14795ff5e75a0b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.044, 0.101, -0.008), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.185, 1.044).lineTo(-0.185, -0.956).lineTo(0.185, -0.956).lineTo(0.185, 1.044).lineTo(-0.185, 1.044).close().extrude(0.202)
result = result.union(cq.Workplane(cq.Plane(origin=(0.1... | 12 | 44 | 0.142108 |
train_1eb150eb3c275c56 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.827, 0.025), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1.005, -0.173).lineTo(1.005, -0.173).lineTo(0.671, 1.838).lineTo(-1.005, 1.838).lineTo(-1.005, -0.173).close().revolve(angleDegrees=90, axisStart=(-1.005, -0.173), axisEnd=(-0.671, -0.... | 20 | 85 | 3.519301 |
train_7ea66b43972ec79a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.075, -1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.077, 0).lineTo(0.077, 0.029).lineTo(-0.039, 0.029).threePointArc((-0.084, 0.01), (-0.102, -0.035)).lineTo(-0.102, -0.116).lineTo(-0.18, -0.116).lineTo(-0.18, -0.035).threePointArc((-0.174,... | 6 | 53 | 0.048596 |
train_b659305fa87997bb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.63, 0.458, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.349, 0.256).lineTo(-0.352, 0.256).threePointArc((-0.373, 0.247), (-0.382, 0.226)).lineTo(-0.382, 0.224).lineTo(-0.382, -0.225).lineTo(-0.382, -0.239).threePointArc((-0.377, -0.251), (-... | 3 | 55 | 0.143557 |
train_a1b3072eea1cbb9a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.447), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.102).extrude(0.894)
result = result.faces('>Z').shell(-0.071)
result = result.edges().chamfer(0.019)
| 3 | 51 | 0.500144 |
train_970cb40687dcc1fc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.344, 0.698, -0.02), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-1.064, 0.237).threePointArc((-0.921, 0.769), (-0.532, 1.159)).threePointArc((0, 1.301), (0.532, 1.159)).threePointArc((0.921, 0.769), (1.064, 0.237)).threePointArc((0.532, 0.094), (... | 16 | 102 | 0.330501 |
train_20a1352da568c1f3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.162, 0.038, -0.026), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1.141, -0.528).threePointArc((0.071, -0.348), (-0.968, -0.032)).threePointArc((-1.141, 0.362), (-0.745, 0.528)).threePointArc((0.228, 0.053), (1.141, -0.528)).close().extrude(0.299)... | 7 | 37 | 0.312528 |
train_32755c8f659e3474 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.596, 0.082, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.461).sweep(cq.Workplane('XY').spline([(-0.596, -0.385), (-0.267, -0.301), (0.062, -0.301), (0.392, -0.385)]))
result = result.edges().chamfer(0.064)
result = result.cut(cq.Workplane(cq... | 10 | 5 | 0.245795 |
train_43907b1f07773128 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.067), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.901, 2).extrude(0.105)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.76 + 0.1905, -0.8 + 0.16, 0.038), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.038, -0.082).lineTo(0.038, -0.082... | 21 | 246 | 0.413017 |
train_37653a62074e6d91 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.601, -0.015, 0.011), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.461, 0.439).lineTo(-0.461, 0.439).lineTo(-0.461, 1.087).lineTo(0.461, 1.087).lineTo(0.461, 0.439).close().revolve(angleDegrees=270, axisStart=(0.461, 0.439), axisEnd=(-0.461, 0.43... | 11 | 82 | 0.717575 |
train_e6a1572d43b8d217 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.418, -0.246, -0.192), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.1, 0.587).threePointArc((0, -0.587), (0.1, 0.587)).lineTo(0.09, 0.526).lineTo(0, 0.004).lineTo(-0.09, 0.526).lineTo(-0.1, 0.587).close().sweep(cq.Workplane('XY').spline([(0.038... | 5 | 18 | 1.393813 |
train_0b4206f547a78fa8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.273, -0.435, -0.064), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.405, 0.062).lineTo(0.405, 0.647).lineTo(-0.27, 0.647).threePointArc((-0.365, 0.607), (-0.405, 0.512)).lineTo(-0.405, 0.062).lineTo(0.405, 0.062).close().workplane(offset=0.103).m... | 21 | 70 | 0.263296 |
train_0de640c4769c6998 | 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.778, 1.368).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.101, -0.012, -0.169), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.095).extrude(1.2))
result = result.cut(cq.Workplane(c... | 10 | 112 | 2.032761 |
train_1fb7d923c3b35f68 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.359), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, 1).lineTo(0.325, 1).lineTo(0.483, 0.295).lineTo(0.483, -0.295).lineTo(0.325, -1).lineTo(-0.325, -1).lineTo(-0.483, -0.295).lineTo(-0.483, 0.295).lineTo(-0.325, 1).lineTo(0, 1).close().ext... | 34 | 120 | 0.616463 |
train_3a428d9d705098b7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.655, -0.328, -0.004), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.052, -0.054).threePointArc((-0.054, -0.04), (-0.057, -0.026)).lineTo(0.011, 0.042).lineTo(0.011, 0.102).lineTo(0.21, 0.301).lineTo(-0.052, 0.301).lineTo(-0.052, 0.216).lineTo(0.... | 22 | 186 | 0.837059 |
train_a51524bdf40ce08b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.655, -0.042, 0.274), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.195, -0.166).threePointArc((0, -0.255), (0.195, -0.166)).threePointArc((0.223, -0.127), (0.243, -0.083)).threePointArc((0.223, 0.131), (0.048, 0.255)).threePointArc((0, 0.236), ... | 16 | 92 | 0.321308 |
train_8f7d6a7e2f9fc563 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.041, -0.151), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.702).sweep(cq.Workplane('XY').spline([(-1.182, -0.041), (-0.591, -0.531), (0, -0.693), (0.591, -0.531), (1.182, -0.041)]))
result = result.edges().fillet(0.418)
result = result.union(... | 25 | 272 | 1.487095 |
train_d0a05aca5cc372ba | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.368, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.663).workplane(offset=0.737).circle(0.702).workplane(offset=0.631).circle(0.807).loft()
result = result.edges().chamfer(0.249)
result = result.union(cq.Workplane(cq.Plane(origin=(0.157, 0.... | 4 | 17 | 2.054628 |
train_8d973ad95be700a0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.008, -0.072, 0.042), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.788, 0.6).extrude(0.71)
result = result.union(cq.Workplane(cq.Plane(origin=(0.069, -0.115, 0.736), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.067).extrude(0.264))
result = result.c... | 21 | 114 | 0.280496 |
train_a6b79a2e6569869f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.14, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.685, -0.238).lineTo(-0.685, -0.292).lineTo(-0.529, -0.292).lineTo(-0.529, 0.238).lineTo(0.53, 0.238).lineTo(0.53, -0.292).lineTo(0.685, -0.292).lineTo(0.685, -0.238).lineTo(0.584, -0.238).l... | 2 | 14 | 0.215917 |
train_26306ea134981e81 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.223, 0.504, -0.235), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.103, 0.464).threePointArc((-0.086, 0.378), (-0.02, 0.319)).threePointArc((0.034, 0.309), (0.087, 0.319)).lineTo(0.358, 0.182).threePointArc((0.034, 0.028), (-0.291, 0.182)).three... | 12 | 75 | 0.167007 |
train_89186d43aaf9cfb8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.038), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1, 0.467).threePointArc((0.025, 0.128), (-1, 0.013)).lineTo(-1, -0.467).lineTo(1, -0.467).lineTo(1, 0.467).close().extrude(0.144)
result = result.union(cq.Workplane(cq.Plane(origin=(0.1, 0.0... | 15 | 69 | 0.185394 |
train_5cee2bbc246c98a6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.255, 0.154, -0.277), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.489, 0.781).extrude(0.872)
result = result.faces('>Z').shell(-0.035)
result = result.union(cq.Workplane(cq.Plane(origin=(0.557, 0.083, -0.595), normal=(0, 0, 1), xDir=(1, 0, 0))).rec... | 22 | 59 | 0.248279 |
train_3856b00b4d1269c8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.223, 0.437, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.469, -0.777).lineTo(-0.469, -0.777).lineTo(-0.469, 1.223).lineTo(0.469, 1.223).lineTo(0.469, -0.777).close().extrude(0.874)
result = result.edges().fillet(0.038)
result = result.cut(cq... | 47 | 261 | 1.007048 |
train_39f805dc9d8b20bc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.65, -0.782, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.612, 0.372).lineTo(-0.531, 0.56).lineTo(-0.437, 0.56).lineTo(-0.437, 0.779).lineTo(-0.26, 1.192).lineTo(0.26, 1.192).lineTo(0.427, 0.802).lineTo(0.531, 0.56).lineTo(0.612, 0.372).line... | 4 | 20 | 1.045316 |
train_cbe9723b9478503f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.932, 0.922, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.778, 1.7).threePointArc((-0.322, 0.6), (0.778, 0.144)).lineTo(0.778, 0.922).lineTo(0.778, 1.7).lineTo(0, 1.7).lineTo(-0.778, 1.7).close().extrude(1.932)
result = result.cut(cq.Workpla... | 15 | 36 | 3.578968 |
train_7f91e361df466f69 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.217, -0.196, 0.195), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.084).sweep(cq.Workplane('YZ').spline([(-0.196, 0.195), (-0.043, 0.195), (-0.008, 0.266), (0.026, 0.337)]))
result = result.union(cq.Workplane(cq.Plane(origin=(-0.217, -0.124, 0.0... | 16 | 156 | 0.581522 |
train_9d46231d5d1f1c61 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.147, -0.256, 0.464), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.855, 0.62).extrude(0.085)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.207, -0.256, 0.488), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.026, 0.164).extrude(0.025))
result = re... | 19 | 289 | 0.413978 |
train_839e947dae321cb4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.742, -0.206, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.018, -0.258).threePointArc((0.186, 0.134), (0.423, 0.506)).lineTo(0.057, 0.762).threePointArc((-0.201, 0.357), (-0.423, -0.069)).lineTo(-0.018, -0.258).close().extrude(0.412)
result ... | 4 | 28 | 0.307229 |
train_d3b4f6c3f377f4a9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.027, 0, -0.31), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.602, 2).extrude(0.117)
result = result.union(cq.Workplane(cq.Plane(origin=(0.107, 0.1, -0.193), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.721).extrude(0.01))
result = result.union(cq.Wo... | 9 | 70 | 0.389396 |
train_71f4a417580818ec | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.744, -0.449, -0.519), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.118, 0.615).threePointArc((0.505, -0.07), (-0.159, -0.493)).lineTo(-0.505, -0.426).lineTo(-0.449, -0.196).lineTo(-0.113, -0.261).threePointArc((0.276, -0.013), (0.048, 0.389)).li... | 5 | 71 | 1.061346 |
train_c8c2d1a37946d766 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.249, 0.707), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.784, 0.016).lineTo(-0.784, -0.751).lineTo(0.784, -0.751).lineTo(0.784, 0.751).lineTo(-0.784, 0.751).lineTo(-0.784, 0.016).close().extrude(1.414)
result = result.edges().fillet(0.229)... | 18 | 123 | 2.363352 |
train_10d3fe38a4e6c9cc | 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.438).workplane(offset=0.325).circle(0.251).workplane(offset=0.405).circle(0.512).workplane(offset=0.39).circle(0.544).workplane(offset=0.425).circle(0.624).workplane(offset=0.454).circle(0.567... | 10 | 17 | 0.979979 |
train_1e7520bb2640e11c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.935, -0.935, -0.445), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.8, 1.475).lineTo(-0.006, 1.003).lineTo(-0.018, 0.079).lineTo(0.789, 0.53).lineTo(0.8, 1.455).lineTo(0.006, 1.927).lineTo(-0.8, 1.475).close().revolve(angleDegrees=90, axisStart=... | 11 | 77 | 1.332248 |
train_dd3796dba5b8f846 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.415, -0.002, -0.209), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.791, 0.414).lineTo(0.57, 0.414).lineTo(0.57, 0.058).lineTo(-0.791, 0.058).lineTo(-0.791, 0.414).lineTo(0.791, 0.414).close().revolve(angleDegrees=270, axisStart=(0.791, 0.414), a... | 12 | 102 | 0.341815 |
train_155c9b47e30c4d1b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.298, -0.389, -0.11), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.702, 0.132).lineTo(-0.702, 0.019).lineTo(0.702, 0.019).lineTo(0.702, 0.132).lineTo(0.561, 0.132).lineTo(0.491, 0.202).lineTo(0.421, 0.132).lineTo(0.281, 0.132).lineTo(0.211, 0.20... | 12 | 263 | 0.049129 |
train_b2bf7ef481e11129 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.221, -0.295, -0.074), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.083, 0.83).extrude(0.057)
result = result.union(cq.Workplane(cq.Plane(origin=(0.28, -0.121, -0.017), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.303, 0.317).extrude(0.012))
result = r... | 8 | 62 | 0.186974 |
train_5eb8e85bdbab4d15 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.227, -0.281, -0.169), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.547, 1.29).extrude(0.084)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.035, 0.127, -0.074), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.195, 1.035).lineTo(0.343, 1.035).... | 8 | 176 | 0.796641 |
train_762a5d6f67841921 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1.36, 0.004, 0.096), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.094, -2.139).lineTo(-0.094, 2.36).lineTo(0.094, 2.36).lineTo(0.094, -2.139).close().revolve(angleDegrees=270, axisStart=(0.094, -2.139), axisEnd=(-0.094, 2.36))
| 1 | 4 | 0.124779 |
train_4263254dfcc844e0 | 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.785, 0.349).extrude(0.959)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, -0.07), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.56, 0.201).extrude(0.382))
result = result.edges().chamfer(... | 11 | 131 | 0.30534 |
train_2e1264310339d3d0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.002, 0.003, -0.337), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.981, -0.792).lineTo(0.975, -0.822).lineTo(0.998, 0.816).lineTo(-1.002, 0.796).close().center(-0.319, 0).circle(0.146).moveTo(0.732, -0.019).lineTo(0.705, -0.084).lineTo(0.64, -0.1... | 15 | 140 | 1.444153 |
train_dfee456ff788b1bc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.83, 0.275, -0.516), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.14, -0.17).lineTo(-0.14, 0.151).threePointArc((-0.074, 0.215), (0.006, 0.26)).lineTo(0.14, 0.26).threePointArc((0.076, 0.048), (0.113, -0.17)).lineTo(-0.088, -0.17).lineTo(-0.14, ... | 18 | 144 | 0.224347 |
train_36142824fa41dac8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.162, 0.587, -0.061), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.301, 0.019).lineTo(-0.301, 0.319).lineTo(0.301, 0.319).lineTo(0.301, 0.019).lineTo(-0.188, 0.019).lineTo(-0.188, -0.019).lineTo(0.301, -0.019).lineTo(0.301, -0.319).lineTo(-0.301,... | 13 | 90 | 0.20861 |
train_b091ec3415eb397d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.519, 0.104, -0.12), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.182, -0.714).threePointArc((0, -0.896), (-0.182, -0.714)).lineTo(-0.182, 1.104).lineTo(0.182, 1.104).lineTo(0.182, -0.714).close().extrude(0.383)
result = result.edges().fillet(0.0... | 8 | 60 | 0.437489 |
train_aeb6c5e98d8693b6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.971, 0.45, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.027, -0.017).threePointArc((-0.027, 0), (0.027, 0.017)).lineTo(0.003, 0.017).lineTo(0.003, -0.017).lineTo(0.027, -0.017).close().sweep(cq.Workplane('XY').spline([(0.971, -0.15), (0.993, ... | 1 | 6 | 0.004012 |
train_be58eddf1b7ae517 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.04, -0.314, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.114, 0.047).lineTo(-0.892, 0.75).lineTo(0.892, 0.277).lineTo(-0.114, 0.047).close().extrude(2)
result = result.edges().fillet(0.179)
result = result.cut(cq.Workplane(cq.Plane(origin=(... | 19 | 82 | 0.334404 |
train_1f86747e57118664 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.15, 0.031, -0.084), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.316).workplane(offset=0.272).circle(0.245).workplane(offset=0.308).circle(0.211).workplane(offset=0.271).circle(0.252).loft()
result = result.edges().chamfer(0.029)
result = resul... | 16 | 117 | 0.125787 |
train_f14fc8f8f031a1ce | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.419, 0.03, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.143, 1.419).threePointArc((0.502, 1.183), (0.844, 0.586)).threePointArc((0.596, 0.442), (0.369, 0.266)).threePointArc((0.201, 0.102), (0.052, -0.08)).threePointArc((-0.102, -0.321), (-... | 2 | 32 | 0.876403 |
train_414ecd4151c2e032 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.008, 0.041, -0.773), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.676, 1.497).extrude(1.561)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.031, 0.842, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.606, 0.849).lineTo(0.606, 0.704).lineTo... | 7 | 33 | 3.927273 |
train_390db6f67a03e8d1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.259, -0.222, 0.058), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.348, 0.145).lineTo(0.348, 0.048).threePointArc((0.048, 0.445), (-0.348, 0.145)).close().extrude(0.444)
result = result.edges().chamfer(0.153)
result = result.union(cq.Workplane(c... | 15 | 68 | 0.100024 |
train_5581546771ac5a38 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.559, 0.076, -0.443), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.441).transformed(offset=(0.458, 0.002, 0.235), rotate=(20, 0, 0)).circle(0.361).transformed(offset=(0.916, -0.204, 0.693), rotate=(0, 20, 0)).circle(0.198).loft()
result = result.... | 14 | 57 | 0.122596 |
train_5508ce2d3cf46c1d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.084, -0.278), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.852, 1.831).extrude(0.556)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.741 + 0.148, -0.817 + 0.183, -0.361), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.065, -0.003).lineTo(0.0... | 34 | 131 | 1.870996 |
train_7d1275ef9e5f37f4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 1, 0.139), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.403).workplane(offset=0.569).circle(0.38).workplane(offset=0.539).circle(0.326).workplane(offset=0.526).circle(0.383).loft()
result = result.edges().chamfer(0.185)
result = result.cut(cq.W... | 17 | 111 | 0.403038 |
train_b94db6d0b7686739 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.013, -0.439, -0.138), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.614, 0.028).lineTo(0.305, 0.517).lineTo(-0.305, 0.532).lineTo(-0.64, 0.005).lineTo(-0.299, -0.561).lineTo(0.32, -0.559).close().moveTo(-0.176, 0.195).lineTo(-0.16, 0.248).lineTo(-... | 21 | 370 | 0.208993 |
train_802bb9f5092aa002 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.257, -0.242, 0.132), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.049, -0.165).lineTo(-0.05, -0.165).lineTo(-0.05, -0.088).lineTo(-0.126, -0.01).lineTo(-0.204, -0.01).lineTo(-0.204, 0.088).lineTo(-0.126, 0.088).lineTo(-0.048, 0.165).lineTo(0.049,... | 13 | 91 | 0.200456 |
train_45e7d838eb3371b1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.827, -0.467, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.2, 0.36).lineTo(0.867, 0.36).lineTo(1, 0.494).lineTo(0.377, 1.116).lineTo(0.2, 1.294).lineTo(0.2, 1.19).threePointArc((0.104, 1.171), (0.022, 1.116)).lineTo(-0.6, 0.494).lineTo(-0.734... | 7 | 49 | 0.380103 |
train_c327402e6a506593 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.625, -0.397, -0.154), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.375, -0.375).lineTo(0.375, -0.375).lineTo(0.25, 0.375).lineTo(0.125, 0.375).lineTo(0, 0.063).lineTo(-0.125, 0.375).lineTo(-0.375, 0.375).lineTo(-0.375, -0.375).close().revolve(a... | 6 | 50 | 0.776173 |
train_a29a612de9a07edd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.367, -0.062, -0.45), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.867, 0.867).extrude(1.347)
result = result.faces('<X').shell(-0.072)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.307, -0.037, 0.888), normal=(0, 0, 1), xDir=(1, 0, 0))).r... | 24 | 87 | 0.426104 |
train_29126f4793fb302c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.126, -0.093, -0.485), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.748, 0.97).extrude(0.752)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.126, 0.123, -0.109), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.168, 0.208).lineTo(0, 0.376).lineT... | 15 | 141 | 1.157141 |
train_d9c4d8153af49aee | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.205, 0, -0.536), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.59, 1.584).extrude(1.072)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.175, -0.111, -0.007), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.087).extrude(0.231))
result = result.cut... | 17 | 50 | 1.993041 |
train_61856d0b7f4d5699 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.175, 0.118, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.118, -0.511).lineTo(0.118, 0.782).lineTo(-0.118, 0.782).lineTo(-0.118, -0.511).lineTo(0.118, -0.511).close().revolve(angleDegrees=90, axisStart=(0.118, -0.511), axisEnd=(0.118, 0.098))... | 15 | 97 | 0.052567 |
train_fd4cf42dd9570507 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.018, -0.016, -0.486), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.376, 0.9).extrude(0.148)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.113, -0.119, -0.341), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.445, 0.513).extrude(0.049))
result = ... | 16 | 226 | 0.567066 |
train_5c446ad0e5e91d6c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.247, 0.936), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.078, 0).lineTo(-0.235, 0.271).lineTo(-0.391, 0).lineTo(-0.235, -0.271).lineTo(0.391, -0.271).lineTo(0.235, 0).lineTo(0.391, 0.271).lineTo(0.078, 0.271).lineTo(-0.078, 0).close().sweep(... | 1 | 10 | 0.235045 |
train_7d20344653dfdeb7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.511, -0.096, 0.523), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.308).sweep(cq.Workplane('XZ').spline([(0.233, 0.005), (0.156, 0.225), (-0.106, 0.24), (-0.241, 0.005), (-0.106, -0.229), (0.156, -0.215)]))
result = result.edges().fillet(0.08)
r... | 9 | 60 | 0.876344 |
train_1c8c3770f4a357d3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.099, -0.198, -0.481), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.764, 1.127).extrude(0.963)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.024, 0.558, -0.292), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.351, 0.405).extrude(0.226))
result ... | 9 | 153 | 0.949472 |
train_557359c8e0e03ab1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1, 0.521), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.133, -0.32).lineTo(0.133, -0.32).lineTo(-0.133, 0.32).lineTo(-0.133, -0.32).close().sweep(cq.Workplane('YZ').spline([(-0.409, 0.371), (-0.175, 0.065), (0.06, -0.089), (0.294, -0.089), (0... | 1 | 5 | 0.053791 |
train_d15198ab874f4731 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.166, -0.24, -0.057), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.019, 0.029).lineTo(-0.022, 0.029).lineTo(-0.023, 0.026).lineTo(-0.019, 0.026).lineTo(-0.03, -0.008).lineTo(-0.002, -0.029).lineTo(0.027, -0.008).lineTo(0.028, -0.011).lineTo(0.03... | 2 | 25 | 0.017416 |
train_063f3d77e10ac930 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.303, 0.18, 0.242), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.173, 0.197).lineTo(0, 0.013).lineTo(0.028, -0.013).lineTo(-0.115, -0.11).threePointArc((-0.101, -0.118), (-0.09, -0.131)).threePointArc((-0.085, -0.15), (-0.088, -0.171)).threePoint... | 6 | 61 | 0.202426 |
train_e493dc6af7726b3a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.079, -0.087, -0.129), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.085, 0.1).extrude(0.118)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.073, -0.102, -0.027), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.01, 0.023).extrude(0.265))
result = ... | 9 | 71 | 0.015842 |
train_56de58c4a77c821a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.15, 0.243, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.609).sweep(cq.Workplane('XY').spline([(0.679, 0.243), (0.266, 0.436), (-0.193, 0.363), (-0.503, 0.054), (-0.531, -0.359), (-0.266, -0.699)]))
result = result.edges().chamfer(0.169)
res... | 17 | 80 | 1.648964 |
train_6670de8a3fe52245 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.86, 0.424, 0.571), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.14, 0.385).lineTo(0.14, -0.385).lineTo(-0.14, -0.385).lineTo(-0.14, 0.385).lineTo(0.14, 0.385).close().transformed(offset=(0.127, 0.125, 0.099), rotate=(20, 0, 0)).moveTo(0.068, 0.... | 1 | 6 | 0.122154 |
train_7642f114f84e4843 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.103, -0.239, -0.018), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.394, 0.438).lineTo(-0.263, 0.438).lineTo(-0.263, 0.307).lineTo(0.263, 0.307).lineTo(0.263, 0.438).lineTo(0.394, 0.438).lineTo(0.394, 0.044).lineTo(-0.394, 0.044).lineTo(-0.394, ... | 5 | 83 | 0.20773 |
train_4b779ae2dd14a791 | 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.935, 1.972).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.231, 0.692, -0.073), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.911, 0.62).extrude(0.384))
result = result.cut(cq.Workp... | 14 | 217 | 5.357801 |
train_5198d74d3a32e888 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.034, 0, 0.501), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.398, 0.432).extrude(0.381)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.034 + 0.046 * math.cos(0.418 + 2 * math.pi * 0 / 4), 0 + 0.046 * math.sin(0.418 + 2 * math.pi * 0 / 4), 0.44... | 21 | 203 | 0.119523 |
train_a44c00862b643dd3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.066, -0.006, -0.141), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.037, 0.532).lineTo(-0.134, 0.628).lineTo(-0.134, 0.938).lineTo(-0.077, 1.006).lineTo(0.079, 1.006).lineTo(0.134, 0.938).lineTo(0.134, 0.628).lineTo(0.037, 0.532).lineTo(0.037, -... | 4 | 25 | 0.053682 |
train_55ba2d16e0dcb287 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.918, -0.398, -0.031), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.904, 0.648).threePointArc((0.96, 0.17), (0.484, 0.096)).lineTo(-0.582, 0.842).lineTo(-0.821, 1.01).threePointArc((-0.946, 1.172), (-0.96, 1.375)).threePointArc((-0.96, 1.538), (-... | 11 | 80 | 1.035281 |
train_f11a39aa63ac98ca | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.063, -0.961, 0.012), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(1.012, -0.863).threePointArc((0.841, 0.063), (1.012, 0.989)).lineTo(0.231, 0.989).lineTo(-0.086, 0.989).threePointArc((-1.012, 0.063), (-0.086, -0.863)).lineTo(0.231, -0.863).lineTo... | 6 | 35 | 5.238701 |
train_efb8fda61657678f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.431, -0.714, -0.073), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.691, -0.421).lineTo(0.691, 1.308).lineTo(-0.099, 1.308).lineTo(-0.099, 0.443).lineTo(-0.395, 0.443).lineTo(-0.691, -0.421).lineTo(0.691, -0.421).close().extrude(1.548)
result = r... | 7 | 61 | 2.640441 |
train_509703bf0b3b265a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.233, 0.47, -0.342), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.038, 1.061).extrude(0.987)
result = result.faces('<X').shell(-0.079)
result = result.union(cq.Workplane(cq.Plane(origin=(0.308, -0.25, -0.012), normal=(0, 0, 1), xDir=(1, 0, 0))).circ... | 15 | 124 | 0.491935 |
train_e02e7a7761855125 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.063, -0.187, -0.551), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.355, 1.187).lineTo(-0.355, 1.187).lineTo(-0.355, -0.534).lineTo(0.355, -0.534).lineTo(0.355, 1.187).close().extrude(1.103)
result = result.edges().fillet(0.142)
result = result.u... | 4 | 34 | 1.3178 |
train_b7553a0973aeda4c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.254, 0.269, -0.58), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.243, 0.918).extrude(1.029)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.09, 0.474, -0.611), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.114, 0.247).extrude(1.235))
result = res... | 22 | 94 | 1.048998 |
train_ee33e48b86cc0d66 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.631, 0.057, -0.401), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.738, 0.876).extrude(0.802)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.522, -0.295, -0.106), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.2, 0.212).lineTo(0.2, 0.295).lineTo(... | 13 | 106 | 0.490859 |
train_6e7165e96a3a95b1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.134, -0.323, -0.052), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.358, 1.354).extrude(0.07)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.339, -0.4, 0.018), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.106).extrude(0.011))
result = result... | 18 | 216 | 0.143119 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.