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_8b3d21f3a92b76b5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.287, 0.226, 0.226), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.774, 0.455).lineTo(0.774, 0.042).lineTo(-0.774, 0.042).lineTo(-0.774, 0.455).lineTo(0.774, 0.455).close().extrude(0.446)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.03, 0.... | 7 | 62 | 0.602482 |
train_af6ae19e4e54120b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.173, -0.312, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-1, 0.03).lineTo(-1, 0.4).lineTo(1, 0.4).lineTo(1, 0.03).lineTo(-1, 0.03).close().extrude(0.517)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.015, 0.038, -1.06), normal=(0, 0, 1)... | 18 | 158 | 0.306134 |
train_0f9c38fb1cb007f3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.387, -0.196, 0.03), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.097, 0.101).lineTo(0.126, 0.101).lineTo(0.126, -0.101).lineTo(0.171, -0.101).lineTo(-0.171, -0.101).lineTo(-0.171, 0.101).lineTo(-0.097, 0.101).close().sweep(cq.Workplane('XZ').s... | 8 | 82 | 0.084696 |
train_f646984fb518f972 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.151, 0.203, 0.302), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.292, 0.066).lineTo(-0.094, -0.27).lineTo(0.292, -0.268).lineTo(0.098, 0.066).lineTo(-0.098, 0.405).lineTo(-0.292, 0.066).close().extrude(0.462)
result = result.edges().chamfer(0.... | 30 | 199 | 0.335835 |
train_60915ee7970d1149 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.218, -0.064, 0.408), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.261, 0.726).lineTo(0.261, -0.503).threePointArc((-0.006, -0.601), (-0.261, -0.726)).lineTo(-0.261, 0.726).lineTo(0.261, 0.726).close().revolve(angleDegrees=270, axisStart=(0.261, ... | 11 | 102 | 0.652512 |
train_9d444c518df6db1f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.009, -0.09, 0.293), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.146).workplane(offset=0.314).circle(0.255).workplane(offset=0.267).circle(0.168).loft()
result = result.edges().chamfer(0.097)
result = result.faces('>X').shell(-0.056)
result = re... | 17 | 111 | 0.195681 |
train_8f9604b03bbbeebb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.079), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.892, 0.254).lineTo(-0.892, 0.208).lineTo(-0.954, 0.208).lineTo(-0.954, 0.146).lineTo(-1, 0.146).lineTo(-1, -0.192).lineTo(-0.954, -0.192).lineTo(-0.954, -0.254).lineTo(0.954, -0.254).line... | 4 | 24 | 0.235333 |
train_8dd452f37e750339 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.102, 1, -0.132), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.576, -0.24).threePointArc((-0.269, 0.331), (0.376, 0.388)).lineTo(0.576, 0.302).lineTo(0.576, -0.24).lineTo(-0.576, -0.24).close().extrude(2)
result = result.edges().fillet(0.038)
re... | 6 | 29 | 1.28938 |
train_52440f8b7703089d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.121, 0.225, 0.194), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.503, 0.501).lineTo(0.503, 0.501).lineTo(0.503, 0.482).lineTo(0.02, 0.482).lineTo(0.221, 0.366).lineTo(0.221, -0.161).lineTo(0.503, -0.161).lineTo(0.503, -0.501).lineTo(-0.503, -0... | 9 | 77 | 0.284593 |
train_fb459216f69fbbc7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.43), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.764).extrude(0.861)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0.083), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.034, 0.164).lineTo(0.034, 0.067).lineTo(-0.044, -0.005).line... | 17 | 72 | 2.144698 |
train_12c17560bdb69eb2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.642, 0.417, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(1, 0.025).lineTo(-1, 0.025).lineTo(-1, 0.118).lineTo(-0.882, 0.118).lineTo(-0.882, 0.143).lineTo(-1, 0.143).lineTo(-1, 0.783).lineTo(-0.882, 0.783).lineTo(-0.882, 0.809).lineTo(1, 0.809)... | 12 | 121 | 1.520588 |
train_df528ee899fc804b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.221, 0, -0.071), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.557, 1.928).extrude(0.143)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.844 + 0.2075, -0.771 + 0.193, -0.093), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.008, 0.009).lineTo(0.0... | 14 | 131 | 0.457029 |
train_6a5e05572c0b6968 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.1, 0.4, -0.205), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.338, 0.101).threePointArc((0.353, 0), (0.338, -0.101)).lineTo(-0.338, -0.101).threePointArc((-0.353, 0), (-0.338, 0.101)).lineTo(0.338, 0.101).close().sweep(cq.Workplane('YZ').spline(... | 7 | 118 | 0.188908 |
train_6130e0744f934ad1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.796, 0.155, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.209, 0.172).lineTo(-0.209, 0.245).lineTo(-0.195, 0.245).lineTo(-0.195, 1.363).lineTo(-0.209, 1.363).lineTo(-0.209, 1.4).lineTo(0.137, 1.4).lineTo(0.137, 1.42).lineTo(0.209, 1.42).line... | 8 | 88 | 0.208408 |
train_75e1cf9c9bebb99d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.036, -0.509, -0.078), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.146).sweep(cq.Workplane('YZ').spline([(0.217, -0.836), (0.374, -0.826), (0.531, -0.772), (0.688, -0.559), (0.844, -0.181), (1.001, 0.032), (1.157, 0.085), (1.314, 0.096)]))
resul... | 11 | 46 | 0.058833 |
train_dadf23c7e39d54fc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.468, 0, 0.958), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.124, 0.497).threePointArc((-0.527, -0.006), (-0.124, -0.51)).threePointArc((-0.011, -0.522), (0.102, -0.51)).lineTo(0.107, -0.53).threePointArc((0.527, -0.004), (0.102, 0.518)).threePo... | 3 | 16 | 0.185493 |
train_c807ccd88a51dca5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.059, -0.003, 0.51), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.033, 0.054).threePointArc((0.043, 0.05), (0.047, 0.04)).lineTo(0.047, -0.034).threePointArc((0.043, -0.044), (0.033, -0.048)).lineTo(-0.033, -0.048).threePointArc((-0.043, -0.044),... | 7 | 97 | 0.001654 |
train_842e1940b21b6fc6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.137, 0.122, -0.359), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.605, 0.322).lineTo(0.317, 0.524).lineTo(-0.124, 0.878).lineTo(-0.739, -0.26).lineTo(-0.878, -0.461).lineTo(-0.273, -0.916).lineTo(-0.188, -1.061).lineTo(0.142, -1.122).close().move... | 13 | 139 | 0.907168 |
train_8dce0c1245e2cb48 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.301, 0, -0.5), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.5, -0.699).lineTo(0.5, 1.301).lineTo(-0.5, 1.301).lineTo(-0.5, -0.699).lineTo(0.5, -0.699).close().revolve(angleDegrees=360, axisStart=(0.5, -0.699), axisEnd=(0.5, 1.301))
result = resu... | 13 | 39 | 5.920162 |
train_d53b40b4a77b64aa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.252, -0.041, -0.09), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.042, -0.161).threePointArc((0.21, -0.027), (0.261, 0.181)).lineTo(0.118, 0.098).threePointArc((-0.072, -0.044), (-0.261, 0.098)).lineTo(-0.186, -0.161).threePointArc((-0.072, -0.1... | 8 | 46 | 0.203888 |
train_2e902f9b370e8683 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.147, -0.21), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.015, -0.129).threePointArc((0.133, 0.107), (0.281, -0.129)).threePointArc((0.22, -0.213), (0.133, -0.271)).threePointArc((-0.281, 0), (0.133, 0.271)).threePointArc((-0.026, 0.102), ... | 9 | 56 | 0.316474 |
train_8588abaeeb8c814a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.084, 0.092, -0.1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.06, 0.343).lineTo(-0.06, -0.283).threePointArc((0, -0.343), (0.06, -0.283)).lineTo(0.06, -0.243).lineTo(0.02, -0.243).lineTo(0.02, 0.303).lineTo(0.06, 0.303).lineTo(0.06, 0.343).li... | 18 | 133 | 0.25465 |
train_debc0a15eb2b98b4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.116, 0.229, 0.093), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.328, -0.312).lineTo(-0.328, 0.312).lineTo(-0.301, 0.312).threePointArc((-0.301, 0.258), (-0.3, 0.312)).lineTo(-0.038, 0.312).lineTo(-0.038, 0.163).lineTo(0.328, 0.163).lineTo(0.328... | 5 | 28 | 0.376228 |
train_c471312f1d9e234e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-2.599, 1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-1, 1.599).lineTo(-1, 2.266).lineTo(-0.333, 2.266).lineTo(-0.333, 2.932).lineTo(-1, 2.932).lineTo(-1, 3.599).lineTo(0.333, 3.599).lineTo(1, 2.932).lineTo(0.333, 2.932).lineTo(0.333, 1.599).l... | 4 | 28 | 2.746175 |
train_79003e859d6284eb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.367, 0.048), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.37, -0.518).lineTo(-0.37, 1.515).lineTo(0.37, -0.518).lineTo(-0.37, -0.518).close().extrude(2)
result = result.edges().chamfer(0.28)
result = result.cut(cq.Workplane(cq.Plane(origin=(... | 21 | 130 | 0.51338 |
train_a2cc7ff7b663064d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.015, 0.102, -0.381), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.915, -0.008).lineTo(0.643, 0.616).lineTo(-0.004, 0.898).lineTo(-0.61, 0.65).lineTo(-0.884, -0.004).lineTo(-0.656, -0.629).lineTo(-0.028, -0.877).lineTo(0.646, -0.61).close().moveT... | 17 | 142 | 0.81354 |
train_f8403c7001dd0ecf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.125, -0.415, -0.832), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.633, 0.584).extrude(0.679)
result = result.union(cq.Workplane(cq.Plane(origin=(0.029, -0.446, -0.251), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.085, 0.083).extrude(1.264))
result =... | 9 | 99 | 0.444429 |
train_ca3b46ce49a5cc6e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.676, 0.285, 0.003), normal=(0, 1, 0), xDir=(0, 0, 1))).lineTo(1.055, 0.214).lineTo(-1.055, 0.213).lineTo(-1.061, 0.213).close().sweep(cq.Workplane('XY').spline([(-0.676, -0.091), (-0.317, -0.091), (-0.042, -0.254), (0.234, -0.418)]))
result = r... | 2 | 17 | 0.055543 |
train_0d4de01076354936 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.21, -0.502), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.219).extrude(1.005)
result = result.faces('>Z').shell(-0.097)
result = result.union(cq.Workplane(cq.Plane(origin=(0.131, -0.603, -0.196), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.115,... | 7 | 16 | 0.941943 |
train_5bb0fed97ab65e68 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.218, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.917, 0.446).extrude(0.833)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0.218, -0.184), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.156).extrude(0.639))
result = result.union(cq.Wo... | 11 | 89 | 0.525735 |
train_96b3bb48192bffa6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1.136, 0.237, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 0.136).lineTo(-0.771, 0.136).lineTo(-0.771, 0.433).lineTo(-0.457, 1.568).threePointArc((-0.287, 1.819), (0, 1.916)).threePointArc((0.287, 1.819), (0.457, 1.568)).lineTo(0.771, 0.433).... | 20 | 62 | 1.045215 |
train_cfe1ac4c3a365e7b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.071, 0, 0.192), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.804, -0.324).lineTo(-0.805, 0.32).lineTo(0.804, 0.324).lineTo(0.805, -0.32).lineTo(-0.804, -0.324).close().sweep(cq.Workplane('XZ').spline([(-0.199, -0.229), (-0.135, -0.179), (-0.071... | 8 | 49 | 0.554751 |
train_0910667db5a71da4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.746, -0.416, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, 0.746).lineTo(0.684, 1.43).lineTo(0.271, 0.746).lineTo(0.684, 0.063).lineTo(0, 0.476).lineTo(-0.684, 0.063).lineTo(0, 0.746).close().extrude(1.416)
result = result.union(cq.Workplane... | 14 | 106 | 0.606816 |
train_63f88d5274e54e3a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.28, -0.502, 0.502), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.502, 0.107).lineTo(-0.502, 0.609).lineTo(0.502, 0.609).lineTo(0.502, 0.107).lineTo(-0.502, 0.107).close().revolve(angleDegrees=180, axisStart=(-0.502, 0.107), axisEnd=(-0.502, 0.6... | 3 | 21 | 0.866462 |
train_f091e209d3ee13ec | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.321), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.962).extrude(0.643)
result = result.cut(cq.Workplane(cq.Plane(origin=(0 + 0.177 * math.cos(0.69 + 2 * math.pi * 0 / 3), 0.322 + 0.177 * math.sin(0.69 + 2 * math.pi * 0 / 3), -0.947), norm... | 9 | 26 | 1.210408 |
train_60420e89168dbc1e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.207, 0, -0.515), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.585, 1.307).extrude(1.03)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.096, -0.001, 0.101), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.902, 0.272).extrude(0.193))
result = result... | 16 | 162 | 1.651256 |
train_7d7039268ebf6b67 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.927, 0, -0.319), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.067, -0.079).threePointArc((-0.057, -0.088), (-0.044, -0.091)).lineTo(0.044, -0.091).threePointArc((0.064, -0.083), (0.072, -0.063)).lineTo(0.072, 0.063).threePointArc((0.064, 0.083),... | 2 | 14 | 0.091747 |
train_85e31536532c107a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.026, 0.404, -0.462), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.094, 0.02).lineTo(-0.048, 0.039).lineTo(0.023, 0.068).lineTo(0.094, 0.097).lineTo(0.08, 0.132).lineTo(-0.062, 0.075).lineTo(-0.094, 0.062).lineTo(-0.094, 0.02).close().revolve(an... | 5 | 68 | 0.174007 |
train_a068e25afc0d889b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.589, 1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.176).sweep(cq.Workplane('XY').spline([(0.589, 0.349), (0.88, 0.367), (1.171, 0.554), (1.462, 0.742), (1.752, 0.76)]))
result = result.edges().chamfer(0.036)
result = result.union(cq.Workpla... | 6 | 22 | 0.006931 |
train_e1a22890314c6342 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.231), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.682, 2).extrude(0.36)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.118, 0.479, -0.128), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2.019, 0.275).extrude(0.073))
result = result.cut(cq.W... | 22 | 46 | 1.190284 |
train_09b036d722b398a4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.615, 0.434, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.339, -0.047).threePointArc((0, -0.385), (0.339, -0.047)).lineTo(0.339, 0.083).threePointArc((0, 1.615), (-0.339, 0.083)).lineTo(-0.339, -0.047).close().workplane(offset=0.199).moveTo(... | 3 | 14 | 1.202548 |
train_4170dfabe01a56ae | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.196), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.235, 2).extrude(0.687)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.153, 0.107, -0.49), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.24).extrude(0.302))
result = result.cut(cq.Workp... | 19 | 58 | 1.427001 |
train_22d5c654fedc5e4f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.414, 0.561, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.136, 1.415).lineTo(-0.509, 1.287).lineTo(-0.804, 1.026).lineTo(-0.977, 0.672).lineTo(-1.001, 0.278).lineTo(-0.873, -0.095).lineTo(-0.611, -0.39).lineTo(-0.257, -0.563).lineTo(0.136, -... | 15 | 115 | 2.755378 |
train_3557e10c82e2f0ad | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.314, 0, 0.537), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.336).sweep(cq.Workplane('XZ').spline([(-0.263, 0.077), (-0.11, -0.03), (0.172, -0.005), (0.26, 0.109), (0.191, 0.236), (-0.008, 0.279), (-0.236, 0.192)]))
result = result.edges().fillet... | 5 | 23 | 0.431678 |
train_9f392aab3eced6f6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.616, -0.301, -0.005), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.769, 0.492).extrude(0.04)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.231, -0.276, 0.037), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.113, 0.101).lineTo(0.231, 0.101).... | 6 | 64 | 0.180777 |
train_52d7b5df4cc196aa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.223, -0.053), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.119, -0.349).lineTo(-0.021, -0.349).threePointArc((0.078, -0.308), (0.119, -0.209)).lineTo(0.119, 0.525).lineTo(-0.119, 0.525).lineTo(-0.119, -0.349).close().revolve(angleDegrees=360... | 3 | 9 | 0.532221 |
train_f154b632bef2865b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.637, 0.816, 0.063), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.132, 1.571).threePointArc((-0.77, 1.317), (-1.061, 0.697)).threePointArc((-1.063, 0.646), (-1.062, 0.594)).threePointArc((-0.775, -0.038), (-0.132, -0.297)).lineTo(1.009, 0.594).l... | 9 | 50 | 3.755727 |
train_5e1fd3d45fcee344 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.281), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, -0.007).lineTo(1, 0.572).lineTo(-0.949, 0.572).lineTo(-1, 0.283).lineTo(-0.949, -0.007).lineTo(-0.145, -0.572).lineTo(0.66, -0.007).lineTo(1, -0.007).close().moveTo(0, -0.158).lineTo(0.03... | 8 | 63 | 0.342911 |
train_5b2b13fe5830c8a7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.05, 0.447, -0.236), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.603, 0.651).extrude(0.406)
result = result.faces('>Z').shell(-0.017)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.074, 0.043, 0.008), normal=(0, 0, 1), xDir=(1, 0, 0))).cir... | 11 | 184 | 0.102664 |
train_4e981ff8c67f3937 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.213), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.543, 2).extrude(0.426)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0.01), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.364, 0.004).lineTo(-0.368, 0.004).lineTo(-0.368, -0.004).li... | 20 | 46 | 0.953381 |
train_bc50f4a959c20896 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.775, 0.98, 0.104), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.09, 0.206).threePointArc((0, -0.225), (-0.09, 0.206)).threePointArc((0, 0.225), (0.09, 0.206)).close().sweep(cq.Workplane('XY').spline([(0.775, -0.307), (0.883, -0.296), (0.991, -0.2... | 13 | 32 | 0.046523 |
train_b101a00d4a50215d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.132, -0.15, -0.771), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.664, 0.469).lineTo(-0.664, -0.298).lineTo(-0.4, -0.45).lineTo(-0.263, -0.528).lineTo(0, -0.681).lineTo(0.263, -0.528).lineTo(0.346, -0.482).lineTo(0.664, -0.298).lineTo(0.664, 0.... | 16 | 144 | 1.298274 |
train_8f20b2f8d28f6d4c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.247, -0.004), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.397, -0.442).threePointArc((-0.371, -0.424), (-0.341, -0.417)).lineTo(0.295, 0.375).threePointArc((0.313, 0.351), (0.341, 0.339)).threePointArc((0.368, 0.342), (0.39, 0.357)).lineTo... | 1 | 9 | 0.025805 |
train_ba99ef717ab7dd4b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.385, 0.127, 0.187), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.652, 0.084).lineTo(-0.652, -0.084).lineTo(0.652, -0.084).lineTo(0.652, 0.084).lineTo(-0.652, 0.084).close().transformed(offset=(0.282, -0.12, 0.133), rotate=(0, 0, 30)).moveTo(-0... | 4 | 56 | 0.074835 |
train_aa17df24a429a9e1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.327, -0.241, -0.438), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.346, 1.41).extrude(0.875)
result = result.union(cq.Workplane(cq.Plane(origin=(0.337, 0.689, -0.134), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.509, 0.515).extrude(0.138))
result = r... | 8 | 78 | 0.408776 |
train_aa3771ecc0fe6f5d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.473, -0.289, 0.226), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.632).sweep(cq.Workplane('XZ').spline([(-0.473, 0.226), (-0.234, 0.011), (0.006, -0.118), (0.246, -0.161), (0.485, -0.118), (0.725, 0.011), (0.965, 0.226)]))
result = result.edges... | 15 | 60 | 1.104875 |
train_047897fa3e0ea0f8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.574, -0.37, 0.091), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.199, 0.845).lineTo(-0.199, -0.105).threePointArc((0.199, 0.37), (-0.199, 0.845)).close().workplane(offset=0.434).moveTo(-0.372, 1.258).lineTo(-0.372, -0.519).threePointArc((0.372,... | 12 | 102 | 0.428369 |
train_d38c6ef29150a57d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1, -0.102), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.298, 0.244).lineTo(-0.298, -0.244).lineTo(0.226, -0.244).lineTo(0.226, -0.193).lineTo(0.298, -0.193).lineTo(0.298, 0.154).lineTo(0.171, 0.154).lineTo(0.171, 0.244).lineTo(-0.298, 0.244)... | 5 | 33 | 0.213221 |
train_d277e5608c9a7d76 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.378, 0.859), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.119).sweep(cq.Workplane('YZ').spline([(0.113, -0.298), (0.311, -0.114), (0.264, 0.095), (-0.009, 0.249), (-0.405, 0.29), (-0.769, 0.2)]))
result = result.cut(cq.Workplane(cq.Plane(ori... | 3 | 12 | 0.124388 |
train_ec193eea934ba107 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.026, 0, 0.048), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.009, -1).threePointArc((0.004, 0), (-0.009, 1)).lineTo(0.009, -1).close().sweep(cq.Workplane('XZ').spline([(0.026, 0.023), (0.054, 0.038), (0.082, 0.043), (0.111, 0.038)]))
| 1 | 4 | 0.000282 |
train_e221a03144287a30 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.082, -0.132, -0.395), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.837, 1.02).extrude(0.771)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.184, -0.132, -0.266), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.064).extrude(0.513))
result = result... | 15 | 93 | 0.580177 |
train_e7add873e2a6a8ff | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.165, 0.197, -0.57), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.293, 1.185).extrude(1.14)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.165, 0.197, -0.061), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.041).extrude(0.647))
result = result.uni... | 14 | 41 | 1.654544 |
train_6738cba3c9fccbef | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.052, -0.063, 0.248), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.34, 0.003).lineTo(0.34, 0.044).lineTo(-0.34, 0.044).lineTo(-0.34, 0.003).lineTo(0.34, 0.003).close().extrude(0.108)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.018, -0.124... | 18 | 130 | 0.062421 |
train_01cf554809139f22 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.486, -0.513, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.96, 0.024).lineTo(-0.96, 0.715).lineTo(-0.925, 0.715).lineTo(-0.925, 0.757).lineTo(0.96, 0.757).lineTo(0.96, 0.715).lineTo(0.919, 0.715).lineTo(0.919, 0.065).lineTo(-0.925, 0.065).li... | 4 | 27 | 0.87348 |
train_fd729a2d765db4d1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.019, 0.017, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.816, 0.292).lineTo(-0.609, -0.53).lineTo(-0.816, -0.411).threePointArc((-0.122, 0.269), (0.816, 0.53)).lineTo(0.816, 0.292).close().extrude(1.108)
result = result.edges().chamfer(0.07... | 9 | 56 | 0.599051 |
train_8154a3d552d2c79d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.566, 0.931), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.277).sweep(cq.Workplane('YZ').spline([(-0.566, -0.824), (-0.357, -0.824), (-0.315, -0.742), (-0.274, -0.66), (-0.232, -0.578)]))
result = result.union(cq.Workplane(cq.Plane(origin=(-0.... | 3 | 8 | 0.024643 |
train_c58587fc986cbe06 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.143, -0.294, -0.732), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.714, 0.949).extrude(1.292)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.046, -0.5, 0.545), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.055).extrude(0.187))
result = resul... | 11 | 89 | 1.545624 |
train_ee24d38fe006fd54 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.468, 0, -0.176), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.824).workplane(offset=0.494).circle(0.423).workplane(offset=0.442).circle(0.096).loft()
result = result.union(cq.Workplane(cq.Plane(origin=(0.047, 0.082, 0.642), normal=(0, 0, 1), xDi... | 12 | 87 | 0.654243 |
train_fe8db99218295c39 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.682, 0.256, -0.561), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.439, 0.882).lineTo(-0.439, -0.688).threePointArc((0, -0.712), (0.439, -0.688)).lineTo(0.439, 0.882).lineTo(-0.439, 0.882).close().extrude(1.364)
result = result.edges().chamfer(0... | 20 | 102 | 1.958937 |
train_020b09174e791874 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 1, -0.234), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.558).sweep(cq.Workplane('YZ').spline([(0.113, -0.821), (-0.185, -0.698), (-0.548, -0.65), (-0.917, -0.683)]))
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.101, 0.272, -0.815), norm... | 3 | 9 | 0.886687 |
train_684f38c1c9bb61dc | 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.762, 1.173).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.058, 0.048, 0.269), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.425, 0.521).extrude(0.75))
| 2 | 11 | 1.62579 |
train_133351dc8826500a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.038, 0.208, -0.729), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.091, 0.181).threePointArc((0, 0.144), (-0.091, 0.181)).lineTo(0, 0.014).lineTo(-0.091, -0.153).threePointArc((0, -0.116), (0.091, -0.153)).lineTo(0.091, 0.181).close().extrude(0.2... | 17 | 193 | 0.444981 |
train_0744bed69ae2ae0a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.057, -0.78, 0.711), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.366, -0.22).lineTo(-0.007, 0.402).lineTo(0.007, 0.402).lineTo(0.366, -0.22).lineTo(-0.366, -0.22).close().sweep(cq.Workplane('YZ').spline([(-0.78, -0.231), (-0.791, -0.074), (-0.8... | 4 | 29 | 0.26716 |
train_8b80588c0c1ee831 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.204, -0.201), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.23, 0.796).lineTo(-0.23, 0.53).lineTo(-0.69, 0.265).lineTo(-0.686, -0.264).lineTo(-0.683, -0.796).lineTo(-0.227, -0.53).lineTo(0.23, -0.793).lineTo(0.23, -0.262).lineTo(0.69, 0.007).li... | 14 | 71 | 0.433628 |
train_e533c5dc19212c11 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.217, -0.706), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.407, 0.574).lineTo(-0.407, -0.107).lineTo(-0.322, -0.107).lineTo(-0.322, -0.245).lineTo(0.331, -0.245).lineTo(0.331, -0.037).lineTo(-0.322, -0.037).lineTo(-0.322, 0.448).lineTo(0.407... | 11 | 67 | 0.544305 |
train_865a9a75706ecc06 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.709, -0.288), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.194, 0.291).lineTo(-0.194, -0.291).lineTo(0.194, -0.291).lineTo(0.194, -0.253).lineTo(-0.155, -0.253).lineTo(-0.155, 0.253).lineTo(0.155, 0.253).lineTo(0.155, 0.291).lineTo(-0.194, ... | 2 | 10 | 0.048095 |
train_4b4faa9685b4ddf3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.826, -0.105, -0.597), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.163, 0.15).lineTo(-0.163, -0.162).lineTo(-0.163, 0.162).lineTo(0.163, 0.162).lineTo(0.163, 0.048).lineTo(0.045, 0.15).lineTo(-0.163, 0.15).close().sweep(cq.Workplane('XZ').spline... | 2 | 9 | 0.02828 |
train_99228f3399a0f83b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.884, -0.488, -0.018), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.116).sweep(cq.Workplane('YZ').spline([(-0.337, -0.216), (-0.245, -0.209), (-0.153, -0.135), (-0.061, -0.061), (0.031, -0.054)]))
result = result.union(cq.Workplane(cq.Plane(origi... | 10 | 138 | 0.528356 |
train_b35d1d1733e7141e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.567, -0.239, 0.321), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.146, 0.445).threePointArc((0.308, 0.242), (-0.146, 0.039)).lineTo(-0.237, 0.039).threePointArc((-0.214, 0.107), (-0.283, 0.13)).lineTo(-0.283, 0.158).lineTo(-0.283, 0.186).lineTo... | 5 | 37 | 0.103696 |
train_70204ac39c3636e4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.944, -0.348, 0.249), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.719, 0.246).lineTo(-0.719, 0.022).lineTo(0.719, 0.246).lineTo(-0.719, 0.246).close().extrude(0.336)
result = result.edges().fillet(0.069)
result = result.union(cq.Workplane(cq.Pl... | 8 | 111 | 0.645612 |
train_2cecc2e5adee37fe | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.032, -0.048, 0.001), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.095, -0.082).lineTo(0.095, -0.082).lineTo(0.078, -0.018).lineTo(0.034, -0.018).lineTo(0.034, 0.11).threePointArc((0.016, 0.107), (0.002, 0.098)).threePointArc((-0.015, 0.062), (0... | 5 | 48 | 0.014386 |
train_28e0cbf2ed247f00 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, -1, 0.135), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.014, -0.02).threePointArc((-0.022, -0.022), (-0.016, -0.017)).lineTo(0.017, 0.019).lineTo(0.02, 0.022).lineTo(0.02, 0.018).lineTo(0.022, -0.016).threePointArc((0.019, -0.017), (0.01... | 1 | 9 | 0.001693 |
train_3720ac35f8c7928e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.06, -0.029, 0.11), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.94, -0.074).lineTo(-0.94, -0.034).lineTo(-0.833, -0.034).lineTo(-0.833, 0.074).lineTo(0.833, 0.074).lineTo(0.833, -0.034).lineTo(0.94, -0.034).lineTo(0.94, -0.074).lineTo(0.792, -... | 8 | 104 | 0.044955 |
train_ebe202ec31bfe262 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.503, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.618, 0.162).lineTo(-0.618, 0.162).lineTo(-0.618, 0.683).threePointArc((-0.021, 0.926), (0.618, 1.009)).lineTo(0.618, 0.879).lineTo(0.618, 0.683).lineTo(0.618, 0.162).close().revolve(angleD... | 17 | 180 | 1.107749 |
train_fd031a5f8b082e73 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.002, -0.378, -0.742), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.019, 0.376).lineTo(-0.258, 0.376).lineTo(-0.258, 0.056).lineTo(0.166, 0.056).lineTo(0.258, 0.216).lineTo(0.166, 0.376).lineTo(-0.019, 0.376).close().revolve(angleDegrees=270, ax... | 15 | 149 | 0.22677 |
train_3495b26cbf62482e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.207, 0.002, -0.046), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.781, -0.612).lineTo(0.814, -0.593).lineTo(0.776, 0.607).lineTo(-0.793, 0.592).close().moveTo(0, 0.043).lineTo(0.025, 0.125).lineTo(0.109, 0.106).lineTo(0.051, 0.169).lineTo(0.109... | 16 | 218 | 0.405634 |
train_b90b39a1750b7065 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.002, -0.085, -0.087), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.807, -0.591).lineTo(0.81, -0.606).lineTo(0.801, 0.592).lineTo(-0.784, 0.61).close().moveTo(-0.146, -0.121).lineTo(-0.165, -0.077).lineTo(-0.211, -0.059).lineTo(-0.256, -0.076).l... | 14 | 286 | 0.319798 |
train_703f5aa3374fbceb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.683), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.343).extrude(1.366)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.041, -0.161, 0.221), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.324).extrude(0.474))
result = result.edges().fille... | 7 | 79 | 3.360882 |
train_d43bc05a87d4960f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.642), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.094, 0.827).extrude(1.642)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.217, -0.381, 0.247), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.115, 0.068).extrude(0.061))
result = result.edg... | 16 | 200 | 1.431656 |
train_9b8477fbb3669bca | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.437, 0.727, 0.483), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.595, 0.306).lineTo(0.199, 0.306).lineTo(0.397, 0.65).lineTo(0.199, 0.994).lineTo(-0.199, 0.994).lineTo(0, 1.337).lineTo(-0.595, 0.994).lineTo(-0.595, 0.306).lineTo(-0.199, 0.306).l... | 20 | 127 | 0.68947 |
train_1be6d2aab0245eab | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.239, -0.071, 0.067), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.522, 1.281).moveTo(-0.166, -0.113).lineTo(0.168, -0.114).lineTo(0.168, 0.112).lineTo(-0.167, 0.113).close().extrude(0.238)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.593, ... | 10 | 60 | 0.635385 |
train_373412970cb83bc1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0, 0.505), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.125, -0.125).lineTo(-0.125, -0.115).lineTo(-0.005, -0.115).lineTo(-0.005, 0.125).lineTo(0.005, 0.125).lineTo(0.005, -0.115).lineTo(0.125, -0.115).lineTo(0.125, -0.125).lineTo(-0.125, -0.... | 1 | 10 | 0.003082 |
train_711c0f380dd54ff0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.588, -0.13, -0.245), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.333, 0.309).lineTo(0, 0.501).lineTo(0.111, 0.309).lineTo(-0.111, 0.309).lineTo(-0.222, 0.116).lineTo(-0.333, 0.309).lineTo(-0.333, -0.076).lineTo(-0.111, -0.076).lineTo(0, -0.268)... | 24 | 164 | 1.028744 |
train_c0ea393f01313e18 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.103, -0.372, -0.648), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.657, 1.046).extrude(0.776)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.322, -0.611, -0.526), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.11).extrude(0.24))
result = resul... | 13 | 75 | 0.425803 |
train_a06bf72b6ebb5278 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.121), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.409, 2).extrude(0.201)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.266, 0.121, 0.079), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.05).extrude(0.042))
result = result.cut(cq.Workp... | 7 | 27 | 0.466841 |
train_55eba01f9740143c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.756, 0, 0.386), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.408).sweep(cq.Workplane('XZ').spline([(0.454, -0.052), (0.389, 0.192), (-0.02, 0.363), (-0.301, 0.118), (-0.264, -0.156), (0.182, -0.183)]))
result = result.edges().chamfer(0.071)
resul... | 8 | 22 | 1.082957 |
train_c83362f3fd4dab48 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.284, 0.133, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.251, 1.662).lineTo(0.251, -1.093).threePointArc((-0.251, 0.284), (0.251, 1.662)).close().extrude(0.371)
result = result.edges().fillet(0.156)
result = result.union(cq.Workplane(cq.Plan... | 6 | 53 | 0.265612 |
train_c03a26901c71ffd7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.538, 1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.14).sweep(cq.Workplane('XY').spline([(0.538, -0.144), (0.699, -0.133), (0.859, -0.076), (1.019, 0.152), (1.179, 0.557), (1.339, 0.784), (1.5, 0.842), (1.66, 0.853)]))
result = result.edges(... | 4 | 24 | 0.002086 |
train_38cc0d5c4beab8d2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.003, 0.003, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1, 0.069).lineTo(1, 0.069).lineTo(1, 0.183).lineTo(-1, 0.183).lineTo(-1, 0.069).close().revolve(angleDegrees=270, axisStart=(0, 0), axisEnd=(0.053, 0))
result = result.edges().chamfer(... | 8 | 42 | 0.119655 |
train_1d211d6f61850af5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.08, 0.155), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.336, 0.387).lineTo(0.336, -0.387).lineTo(-0.336, -0.387).lineTo(-0.336, 0.387).lineTo(0.336, 0.387).close().sweep(cq.Workplane('XZ').spline([(0.005, -0.317), (0.631, -0.317), (1.258, -... | 15 | 27 | 0.243105 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.