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_80cc6298cf781a26 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.01), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.837, 0.764).lineTo(0.768, 0.931).lineTo(0.601, 1).lineTo(-0.601, 1).lineTo(-0.768, 0.931).lineTo(-0.837, 0.764).lineTo(-0.837, -0.764).lineTo(-0.768, -0.931).lineTo(-0.601, -1).lineTo(0.601,... | 14 | 200 | 1.303419 |
train_b4bb1d4caed5f4c7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.462, 1, -0.194), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.588, 0.212).lineTo(-0.416, -0.205).lineTo(0, -0.377).lineTo(0.416, -0.205).lineTo(0.588, 0.212).lineTo(0.416, 0.628).lineTo(0, 0.8).lineTo(-0.416, 0.628).lineTo(-0.588, 0.212).close(... | 11 | 113 | 1.23036 |
train_58a722135a210499 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.009, 0.629, -0.415), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.582, 0.582).extrude(0.806)
result = result.faces('<X').shell(-0.058)
result = result.union(cq.Workplane(cq.Plane(origin=(0.013, 0.648, 0.387), normal=(0, 0, 1), xDir=(1, 0, 0))).cir... | 14 | 220 | 0.246671 |
train_fbeff1f722e01e91 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.534, 0, -0.066), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.089, 0.846).lineTo(0.295, 0.846).lineTo(0.166, 1).lineTo(-0.295, 1).lineTo(-0.295, 0.846).lineTo(-0.218, 0.846).lineTo(-0.218, -0.692).lineTo(-0.295, -0.692).lineTo(-0.295, -1).lineTo... | 13 | 264 | 1.260164 |
train_f70a39a00076cb03 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.568, -0.141, -0.43), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.1, 1.038).threePointArc((-0.57, 0.568), (-0.1, 0.098)).lineTo(-0.025, 0.098).lineTo(0.495, 0.098).lineTo(0.57, 0.098).lineTo(0.57, 1.038).lineTo(0.495, 1.038).lineTo(-0.025, 1.03... | 12 | 65 | 0.805124 |
train_d93c60b786c4d023 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.878, 0.939, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.681, 1.145).lineTo(0, 1.145).lineTo(0, 1.881).lineTo(0.681, 1.881).lineTo(0.681, 0.409).lineTo(-0.681, 0.409).lineTo(-0.681, 1.145).close().revolve(angleDegrees=90, axisStart=(0, 0), ... | 9 | 101 | 2.000273 |
train_ba5174ed29977a6c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.011, 0.152), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.906, 0.785).lineTo(0, 0.262).lineTo(0.906, 0.785).lineTo(0, -0.785).lineTo(-0.906, 0.785).close().workplane(offset=0.185).moveTo(-0.938, 0.812).lineTo(0, 0.271).lineTo(0.938, 0.812).l... | 15 | 70 | 0.180415 |
train_f995353a9870412b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.299), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.966, 2).extrude(0.745)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.787 + 0.1965, -0.8 + 0.2, -0.446), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.081, -0.007).lineTo(0.077, -0.045... | 29 | 225 | 2.567752 |
train_c1cc5e0f73e2c586 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.616, -0.399, -0.049), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, 0).lineTo(0.7, 0.7).lineTo(0.277, 0).lineTo(0.7, -0.7).lineTo(0, -0.277).lineTo(-0.7, -0.7).lineTo(0, 0).close().extrude(0.209)
result = result.edges().fillet(0.057)
result = r... | 25 | 163 | 0.216074 |
train_f13469c091822098 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.348, 0.259, -0.461), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.187, 0.155).lineTo(0.174, 0.08).threePointArc((0.145, 0.063), (0.125, 0.035)).threePointArc((0.098, 0.031), (0.074, 0.019)).threePointArc((0.036, 0.017), (0, 0.007)).threePointArc(... | 11 | 146 | 0.416696 |
train_27df116c53816ec0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.428, -0.42, 0.005), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.082, -0.125).threePointArc((0, -0.149), (-0.082, -0.125)).threePointArc((-0.131, -0.071), (-0.149, 0)).threePointArc((-0.131, 0.071), (-0.082, 0.125)).threePointArc((0, 0.149), (0.0... | 5 | 57 | 0.434239 |
train_ed1da8aa861f70f1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.482), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.67, 0.838).lineTo(0.67, 0.838).lineTo(0.67, -0.838).lineTo(-0.67, -0.838).lineTo(-0.67, 0.838).close().workplane(offset=0.165).moveTo(-0.457, 0.572).lineTo(0.457, 0.572).lineTo(0.457, -0.... | 1 | 6 | 1.601017 |
train_5bc36f3af99a0a7c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.218, 0.008, 0.383), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.677, -0.027).lineTo(0.216, 0.624).lineTo(-0.533, 0.425).lineTo(-0.526, -0.423).lineTo(0.214, -0.641).close().moveTo(0.113, 0.352).lineTo(0.047, 0.451).lineTo(-0.11, 0.3).lineTo(0, ... | 18 | 142 | 0.472374 |
train_0dbb7ae01676b232 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.673, -0.98, -0.132), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.027, -0.389).lineTo(0.159, 0.107).lineTo(0.337, 0.107).lineTo(0.491, 0.195).lineTo(0.579, 0.349).lineTo(0.579, 0.526).lineTo(0.491, 0.68).lineTo(0.337, 0.768).lineTo(0.159, 0.768)... | 15 | 420 | 3.351316 |
train_d9b6c14d8acd4693 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.178, 0, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.601).workplane(offset=0.595).circle(0.647).workplane(offset=0.722).circle(0.681).workplane(offset=0.683).circle(0.538).loft()
result = result.edges().chamfer(0.287)
result = result.union(c... | 7 | 63 | 2.31914 |
train_ef4b0a7d94151279 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.08, 0.007, -0.168), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.001).lineTo(0.344, 0.993).lineTo(-0.802, 0.626).lineTo(-0.839, -0.566).lineTo(0.323, -1.007).close().moveTo(-0.164, 0.303).lineTo(0.166, 0.312).lineTo(0.162, 0.521).lineTo(-0.16... | 12 | 105 | 0.474514 |
train_57a8bd53021aa95f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.356, 0, -0.248), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.287, 0.911).extrude(0.051)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.014, 0, -0.201), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.244, -0.284).lineTo(0.244, 0.287).lineTo(-... | 4 | 29 | 0.177989 |
train_0c48e571d0720a62 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.004, 0, -0.123), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.197, 1.285).extrude(0.801)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.518 + 0.1715, 0.4, -0.901), normal=(1, 0, 0), xDir=(0, 1, 0))).moveTo(-0.035, 0.063).lineTo(-0.03, 0.055)... | 18 | 93 | 0.948185 |
train_761b9b44230dbc1c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.043, 0, -0.476), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.248, 1.447).extrude(0.951)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.043, 0, -0.618), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.572, 0.701).extrude(1.236))
result = result.un... | 10 | 20 | 1.482135 |
train_06182578e7550385 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.253), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.994).extrude(0.47)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.8 + 0.16, -0.798 + 0.266, -0.324), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.048, -0.151).lineTo(0.048, 0.151).li... | 40 | 131 | 1.621304 |
train_9850924dda15230c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.159, 0.193, -0.276), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.841, -0.797).lineTo(0.804, -0.775).lineTo(0.817, 0.762).lineTo(-0.834, 0.766).close().moveTo(0.144, 0).lineTo(0.075, 0.127).lineTo(-0.075, 0.127).lineTo(-0.145, -0.001).lineTo(-0... | 19 | 239 | 0.927855 |
train_64c3f123c62d052c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.608, 0.062, -0.656), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.322, 0.277).extrude(0.455)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.575, 0.007, -0.283), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.049, 0.079).extrude(0.94))
result = ... | 11 | 55 | 0.10469 |
train_73e69852a1d09151 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.159, 0, -0.754), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.681, 1.967).extrude(1.509)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.829, -0.398, -0.295), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.171).extrude(0.304))
result = result.e... | 3 | 39 | 5.005071 |
train_d15b674141edea97 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, 0.13, -0.095), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.395, 0.311).lineTo(-0.039, -0.001).lineTo(-0.001, -0.034).lineTo(0.362, -0.351).lineTo(0.378, -0.333).lineTo(0.395, -0.313).lineTo(0.037, -0.001).lineTo(-0.001, 0.033).lineTo(-0.3... | 14 | 115 | 0.4836 |
train_20843357b0749bed | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.24, 0.01, 0.544), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, 0.433).lineTo(0.763, 0.433).lineTo(0.704, -0.433).lineTo(0.506, -0.347).lineTo(0.223, -0.347).lineTo(0.223, 0.298).lineTo(-0.223, 0.298).lineTo(-0.223, -0.347).lineTo(-0.506, -0.34... | 16 | 140 | 1.117625 |
train_44f009d02c7d8714 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.303, -0.025, 0.746), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, -0.066).lineTo(-0.254, -0.066).lineTo(-0.254, 0.187).threePointArc((0, 0.247), (0.254, 0.187)).lineTo(0.254, -0.066).lineTo(0, -0.066).close().revolve(angleDegrees=360, axisStart... | 26 | 203 | 0.49756 |
train_b9be26960ddbfeb2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.037, -0.604, -0.134), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.301, 0.229).threePointArc((0.451, 0.194), (0.569, 0.095)).threePointArc((0.585, 0.212), (0.703, 0.196)).threePointArc((0.526, 0.343), (0.301, 0.396)).lineTo(-0.619, 0.396).threeP... | 24 | 111 | 0.392384 |
train_264a6e27162e5f33 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.137, -0.248, 0.306), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.118, 0.338).lineTo(-0.118, 0.338).lineTo(-0.118, -0.223).lineTo(0.118, -0.223).lineTo(0.118, 0.338).close().revolve(angleDegrees=270, axisStart=(0.118, 0.338), axisEnd=(-0.118, 0... | 16 | 155 | 0.165337 |
train_f1dccc034808d85a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.139, 0.014, 0.6), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.497, 0.332).lineTo(0.548, -0.332).lineTo(-0.548, -0.332).lineTo(-0.497, 0.332).lineTo(0.497, 0.332).close().extrude(0.783)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.063, ... | 15 | 102 | 0.779495 |
train_4e90204e8b1f2f5c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.063, -0.105, -0.104), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.937, 0.148).threePointArc((0, 0.224), (0.937, 0.148)).lineTo(0.937, 0.022).threePointArc((0, 0.099), (-0.937, 0.022)).lineTo(-0.937, 0.148).close().extrude(0.236)
result = resul... | 14 | 164 | 0.125748 |
train_016e58506cadc287 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.107, -0.342), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.174).extrude(0.684)
result = result.union(cq.Workplane(cq.Plane(origin=(0.357, 0.576, -0.175), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.355, 0.237).extrude(0.148))
result = result.c... | 10 | 44 | 1.21785 |
train_12be719aa6f4e103 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.41, 0.317, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(1, 0.591).lineTo(1, 0.043).lineTo(-1, 0.043).lineTo(-1, 0.591).lineTo(1, 0.591).close().extrude(0.821)
result = result.edges().chamfer(0.25)
result = result.cut(cq.Workplane(cq.Plane(orig... | 3 | 27 | 0.521114 |
train_165b788f7a404bc4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.139, 0, -0.237), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.054, 0.058).lineTo(-0.036, 0.058).lineTo(-0.037, 0.04).lineTo(-0.042, -0.022).lineTo(-0.043, -0.04).lineTo(-0.001, -0.04).lineTo(-0.003, -0.022).lineTo(-0.008, 0.04).lineTo(-0.009, 0.... | 5 | 88 | 0.005802 |
train_ff24543a828c61a3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.598, 0.556, -0.106), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.649, 1.212).threePointArc((0.247, -0.434), (0.649, 1.396)).threePointArc((-0.035, 1.546), (-0.649, 1.212)).close().extrude(1.195)
result = result.edges().fillet(0.168)
result = r... | 8 | 39 | 2.706568 |
train_b474649e4501a905 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.071, -0.17, -0.528), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.38, 1.333).extrude(1.056)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.042, -0.015, 0.488), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.586, -0.179).threePointArc((0.757... | 15 | 94 | 1.584864 |
train_a6809783d7d65084 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.072), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.177, 2).extrude(0.879)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.083, -0.391, 0.207), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.277).extrude(0.204))
result = result.union(result... | 3 | 12 | 3.701007 |
train_e4843058bf47b058 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.272, -0.228), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.99, 1.457).extrude(0.457)
result = result.union(cq.Workplane(cq.Plane(origin=(0.131, -0.699, -0.084), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.497, 0.601).extrude(0.174))
result = resul... | 4 | 23 | 0.646718 |
train_ef0337e34b4cf26b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.001, 0.572), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(1.082).workplane(offset=0.72).circle(0.908).workplane(offset=0.716).circle(0.49).loft()
result = result.edges().fillet(0.4)
result = result.union(cq.Workplane(cq.Plane(origin=(0.1, 0.09... | 20 | 130 | 2.779913 |
train_6bd8ca6a9298c0b1 | 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.161, 1.349).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.193, 0.51, -0.489), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.173).extrude(1.011))
result = result.edges().fillet(0.... | 20 | 83 | 2.751267 |
train_ff84df6e497ba1c5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.114, 0.238), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.942, -0.359).lineTo(-0.942, -0.097).lineTo(0, 0.359).lineTo(0.942, -0.097).lineTo(0.942, -0.359).lineTo(-0.942, -0.359).close().workplane(offset=0.083).moveTo(-0.968, -0.369).lineTo(-... | 6 | 54 | 0.493889 |
train_eff9a76d464a6c52 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.112, -0.298), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.639).extrude(0.596)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.394, -0.312, -0.238), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.12).extrude(0.299))
result = result.cut(cq... | 4 | 15 | 0.727932 |
train_fe3ca0a0ab41feb6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.317, -0.223, 0.275), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.378, 0.971).threePointArc((0, 0.786), (-0.378, 0.971)).lineTo(-0.267, -0.72).threePointArc((0, -0.971), (0.267, -0.72)).lineTo(0.378, 0.971).close().workplane(offset=0.09).moveTo(... | 34 | 195 | 1.106719 |
train_efa72a7adefbf357 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.423, -0.425, 0.133), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.641, 1.425).lineTo(0.641, -0.575).lineTo(-0.403, -0.575).lineTo(-0.403, -0.246).lineTo(-0.641, -0.246).lineTo(-0.641, 1.096).lineTo(-0.403, 1.096).lineTo(-0.403, 1.425).lineTo(0.6... | 18 | 167 | 2.501342 |
train_81f0f38b6cc61d66 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.626, -0.428, -0.151), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.049).lineTo(0.849, 0.049).lineTo(0.849, 0.778).lineTo(-0.849, 0.778).lineTo(-0.849, 0.049).lineTo(0, 0.049).close().extrude(1.272)
result = result.edges().chamfer(0.033)
resul... | 18 | 76 | 1.617696 |
train_6eebb0b9a2d65c1e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.184, -0.044, -0.205), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.511, 0.511).extrude(0.472)
result = result.faces('>Z').shell(-0.042)
result = result.union(cq.Workplane(cq.Plane(origin=(0.207, 0.026, -0.267), normal=(0, 0, 1), xDir=(1, 0, 0))).re... | 9 | 72 | 0.10557 |
train_02fb010ba703c909 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.254, 0.206, 0.057), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.746, -0.479).lineTo(0.762, -0.482).lineTo(0.726, 0.498).lineTo(-0.736, 0.495).close().moveTo(0.064, 0.137).lineTo(0.034, 0.191).lineTo(-0.033, 0.192).lineTo(-0.062, 0.137).lineTo(... | 14 | 81 | 0.131928 |
train_f34dc227be6614f6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.016, -0.002, -0.179), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.984, 0.016).lineTo(0.48, 0.875).lineTo(-0.506, 0.876).lineTo(-1.016, -0.003).lineTo(-0.471, -0.872).lineTo(0.525, -0.867).close().moveTo(-0.267, -0.243).lineTo(0.267, -0.245).line... | 9 | 136 | 0.608604 |
train_f05638ad77c39288 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.662, 0.122), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.306, 0.013).lineTo(-0.306, 0.626).lineTo(-0.92, 0.626).lineTo(-0.92, 1.24).lineTo(0.306, 1.24).lineTo(0.306, 0.626).lineTo(0.92, 0.626).lineTo(0.306, 0.013).close().extrude(2)
result =... | 11 | 103 | 1.285309 |
train_c74f10b1c8e7bb91 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, -0.003, 0.004), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.994, -0.023).lineTo(0.666, 0.664).lineTo(-0.013, 1.003).lineTo(-0.691, 0.687).lineTo(-0.992, 0.039).lineTo(-0.666, -0.724).lineTo(-0.002, -0.997).lineTo(0.666, -0.703).close().mov... | 11 | 98 | 0.567187 |
train_59fd56de01ca1f4d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.374), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.788, 2).extrude(0.748)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.519, 0, -0.213), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.789, 0.236).extrude(0.427))
result = result.edges().fill... | 11 | 94 | 2.079899 |
train_233552ecb6f29f76 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.562), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.541, 1.574).extrude(1.562)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.315, 0.535, -0.029), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.285, 0.53).extrude(0.497))
result = result.cut(c... | 18 | 65 | 2.856568 |
train_60a98271e281558f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.017, 0, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.246, 0.246).threePointArc((0.421, 0.174), (0.493, 0)).lineTo(0.493, -0.246).lineTo(-0.493, -0.246).lineTo(-0.493, 0).threePointArc((-0.421, 0.174), (-0.246, 0.246)).lineTo(0.246, 0.246).c... | 12 | 66 | 0.724195 |
train_d93a44f291758a2d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.007, -0.051, -0.077), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.036, -0.057).lineTo(-0.045, 0.01).lineTo(-0.036, 0.115).lineTo(0.045, 0.048).lineTo(0.036, -0.057).close().extrude(0.102)
result = result.edges().chamfer(0.013)
result = result.u... | 5 | 60 | 0.006603 |
train_3b2c148142b45832 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.739, 0.005, 0.015), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.295, -0.271).threePointArc((0.208, 0.232), (0.295, 0.734)).lineTo(-0.295, 0.734).lineTo(-0.295, -0.271).lineTo(0.295, -0.271).close().revolve(angleDegrees=270, axisStart=(0.295, 0.... | 3 | 20 | 1.201844 |
train_870247440714929b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.126, 0.502, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.753, 0.126).lineTo(-0.753, 0.126).lineTo(-0.753, 1.13).lineTo(-0.251, 1.13).lineTo(-0.251, 0.628).lineTo(0.251, 0.628).lineTo(0.251, 1.13).lineTo(0.753, 0.628).lineTo(0.753, 0.126).clo... | 4 | 43 | 1.415929 |
train_01a9066145202e01 | 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.134, 0.159).extrude(0.567)
result = result.union(cq.Workplane(cq.Plane(origin=(0.002, -0.033, -0.441), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.029, 0.05).extrude(0.275))
result = result.union(... | 19 | 172 | 0.014564 |
train_9ed5374fadc0ee4d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.32, -0.515, 0.041), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.089, 1.166).lineTo(0.295, 1.166).lineTo(0.166, 1.32).lineTo(-0.295, 1.32).lineTo(-0.295, 1.166).lineTo(-0.218, 1.166).lineTo(-0.218, 0.474).threePointArc((-0.256, 0.466), (-0.295, ... | 48 | 415 | 0.44547 |
train_954ae171f444f5b7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.121, -0.245, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.045).lineTo(1, 0.045).lineTo(1, 0.445).lineTo(-1, 0.445).lineTo(-1, 0.045).close().extrude(0.241)
result = result.edges().chamfer(0.085)
result = result.cut(cq.Workplane(cq.Plane(... | 4 | 38 | 0.135943 |
train_5f00a7f7df53292f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.356, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-1, 0.713).lineTo(-1, 0.671).lineTo(0.163, 0.671).lineTo(0.163, 0.203).lineTo(0.206, 0.203).lineTo(0.206, 0.671).lineTo(1, 0.671).lineTo(1, 0.713).lineTo(-1, 0.713).close().revolve(angleDegr... | 3 | 18 | 0.209624 |
train_f6d71d2a21c3ecca | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.354, -0.611, -0.569), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.318, -0.646).lineTo(0.318, -0.646).lineTo(0.318, -0.132).lineTo(0.277, 1.084).lineTo(-0.318, 1.084).lineTo(-0.318, -0.646).close().extrude(0.589)
result = result.edges().fillet(... | 28 | 421 | 1.076637 |
train_68cbd7ac77b8d5f0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.212, -0.945, -0.204), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.243, 0.788).lineTo(-0.243, -0.788).lineTo(-0.121, -0.788).threePointArc((0, -0.667), (0.121, -0.788)).lineTo(0.243, -0.788).lineTo(0.243, 0.788).lineTo(0.121, 0.788).threePointA... | 2 | 17 | 0.865593 |
train_c970816d238b1f73 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.324, -0.001, 0.098), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.445, 0.043).lineTo(-0.445, 0.266).lineTo(-0.315, 0.266).threePointArc((0, 0.489), (0.315, 0.266)).lineTo(0.445, 0.266).lineTo(0.445, 0.043).lineTo(0.315, 0.043).lineTo(-0.315, 0.... | 14 | 33 | 0.067406 |
train_b25213b487e7972f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.767), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.808).extrude(1.534)
result = result.cut(cq.Workplane(cq.Plane(origin=(0 + 0.448 * math.cos(1.217 + 2 * math.pi * 0 / 6), 0 + 0.448 * math.sin(1.217 + 2 * math.pi * 0 / 6), -0.997), normal... | 18 | 83 | 4.757437 |
train_c5380def350b14c5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.482, 0.135, -0.559), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.594, 0.453).extrude(0.566)
result = result.union(cq.Workplane(cq.Plane(origin=(-1.034, 0.31, -0.276), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.101, 0.333).lineTo(-0.164, 0.246).... | 10 | 115 | 0.770827 |
train_9b54453d4948b3df | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, 0, -0.388), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.114, -0.22).lineTo(-0.114, -0.252).lineTo(-0.033, -0.22).lineTo(-0.033, -0.318).lineTo(-0.028, -0.318).threePointArc((0, -0.302), (0.028, -0.318)).lineTo(0.033, -0.318).lineTo(0.033, -0.2... | 5 | 39 | 0.189323 |
train_1a9a21b19635c811 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.637, -0.244, -0.392), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.199, 0.098).lineTo(0.181, 0.031).lineTo(-0.069, 0.098).lineTo(-0.213, 0.137).lineTo(-0.608, 0.242).lineTo(-0.59, 0.309).lineTo(-0.572, 0.376).lineTo(-0.178, 0.27).lineTo(0.15, 0.... | 9 | 86 | 0.552085 |
train_be22ee170af21a8e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.275), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.11, 1).lineTo(-0.329, 1).lineTo(0.11, 0.24).lineTo(0.329, 0.62).lineTo(0.11, 1).close().revolve(angleDegrees=360, axisStart=(0, 0), axisEnd=(0.477, 0))
result = result.edges().chamfer(0.12... | 5 | 19 | 0.926799 |
train_a7678f761a7a05c2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.031, -0.256), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.209).extrude(0.209)
result = result.union(cq.Workplane(cq.Plane(origin=(0.474, 0.024, -0.536), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.06).extrude(0.296))
result = result.union(cq... | 8 | 34 | 0.081589 |
train_ace2af7086e1764a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.238, -0.108, 0.428), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.219, 0.063).lineTo(-0.105, 0.202).lineTo(0.219, -0.063).lineTo(0.105, -0.202).lineTo(-0.156, 0.012).lineTo(-0.219, 0.063).close().extrude(0.065)
result = result.edges().chamfer(0... | 18 | 169 | 0.10433 |
train_ffe5b7b44ffd9271 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.145, -0.111, -0.096), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.855, 0.019).lineTo(-0.855, 0.202).lineTo(0.855, 0.202).lineTo(0.855, 0.019).lineTo(-0.855, 0.019).close().extrude(0.192)
result = result.edges().chamfer(0.028)
result = result.un... | 15 | 59 | 0.041297 |
train_bf9e93e84930a2d2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.059, 0, -0.641), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.216, 0.598).extrude(0.485)
result = result.union(cq.Workplane(cq.Plane(origin=(0.059, 0.006, -0.159), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.245).extrude(0.105))
result = result.edg... | 17 | 207 | 0.547304 |
train_66c1293e9a8f6845 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.247, 0.01, -0.056), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.753, -0.019).lineTo(0.371, 0.644).lineTo(-0.398, 0.647).lineTo(-0.766, 0.012).lineTo(-0.383, -0.645).lineTo(0.394, -0.667).close().moveTo(-0.206, 0.067).lineTo(0.208, 0.066).lineTo(... | 15 | 107 | 0.234039 |
train_2cfd3be1b1e60dd3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.502, -0.285, -0.6), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.997, 1.142).extrude(0.934)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.189, -0.11, -0.153), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.45, 0.185).extrude(0.394))
result = re... | 12 | 58 | 0.580122 |
train_eec6b222624d279e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.115, -0.234, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.805, 0.343).lineTo(-0.805, 0.061).lineTo(0.805, 0.061).lineTo(0.805, 0.343).lineTo(0.326, 0.343).lineTo(0.326, 0.278).lineTo(-0.326, 0.278).lineTo(-0.326, 0.408).lineTo(-0.436, 0.408... | 11 | 54 | 0.054954 |
train_39ea24190ddf304c | 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.885, 1.581).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.623, 0.105, -0.062), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.672, 0.581).extrude(0.352))
result = result.edges().fill... | 3 | 51 | 5.772822 |
train_e25bed3409533e13 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.65), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.895, 1.842).extrude(1.165)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, -0.737 + 0.3685, -0.825), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.127, -0.008).lineTo(0.002, 0.122).lineTo(... | 37 | 210 | 2.725779 |
train_8758ab959b70c69a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.87, 0.073, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.839, 1.073).lineTo(-0.839, -0.927).lineTo(0.839, -0.927).lineTo(0.839, -0.67).lineTo(-0.581, -0.67).lineTo(-0.581, 1.073).lineTo(-0.839, 1.073).close().extrude(1.741)
result = result.e... | 2 | 38 | 1.516242 |
train_bf8f4c908e9bd011 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.448, -0.1, 0.667), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.312, 0.077).threePointArc((0.27, 0.109), (0.226, 0.138)).threePointArc((0.007, 0.231), (-0.229, 0.254)).threePointArc((-0.226, 0.166), (-0.312, 0.147)).lineTo(-0.272, -0.089).lineTo... | 4 | 28 | 0.347307 |
train_35398b51cd73e316 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.118, -0.38, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.704, 0.034).lineTo(-0.998, 0.034).lineTo(-0.998, 0.294).threePointArc((-1, 0.33), (-0.998, 0.366)).lineTo(-0.998, 0.622).lineTo(-0.713, 0.626).lineTo(-0.704, 0.626).threePointArc((-0.... | 4 | 78 | 0.505064 |
train_8e506f9c0477f0b9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.418, -0.206, -0.149), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.193, -0.227).lineTo(0, -0.367).lineTo(0.193, -0.227).lineTo(0.119, 0).lineTo(0, 0.367).lineTo(-0.119, 0).lineTo(-0.193, -0.227).close().sweep(cq.Workplane('XZ').spline([(-0.418,... | 19 | 140 | 0.259498 |
train_1016d43d59fb8e31 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.944, 0.734, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.076, 1.76).threePointArc((0, 1.749), (0.076, 1.76)).lineTo(1.078, 0.483).threePointArc((0, 0.138), (-1.078, 0.483)).lineTo(-0.076, 1.76).close().extrude(1.469)
result = result.edges()... | 14 | 52 | 2.533506 |
train_7ec4f329ecb3173a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.293, -0.454, 0.581), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.419, 0.872).lineTo(0.419, 0.035).lineTo(-0.419, 0.035).lineTo(-0.419, 0.872).lineTo(0.115, 0.872).lineTo(0.115, 0.827).lineTo(0.128, 0.823).lineTo(0.12, 0.798).lineTo(0.108, 0.803... | 3 | 67 | 0.170839 |
train_5d3cddad1eb9502e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.428, 0.039, -0.588), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.314, 0.179).lineTo(-0.412, 0.22).lineTo(-0.412, -0.121).lineTo(-0.171, -0.363).lineTo(-0.13, -0.264).lineTo(0.13, -0.264).lineTo(0.171, -0.363).lineTo(0.412, -0.121).lineTo(0.412... | 16 | 115 | 0.104737 |
train_d618c48ff5a03fa9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.186, -0.567, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.419, 1.134).threePointArc((-0.574, 1.045), (-0.712, 0.931)).lineTo(0, 0.219).lineTo(0.712, 0.931).threePointArc((0.574, 1.045), (0.419, 1.134)).threePointArc((0, 1.226), (-0.419, 1.13... | 7 | 41 | 1.858058 |
train_81f70ee6ecb7166d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, -0.034, 0.089), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.021, 0.033).lineTo(0.021, -0.033).lineTo(-0.016, -0.033).threePointArc((-0.021, 0), (-0.016, 0.033)).lineTo(0.021, 0.033).close().sweep(cq.Workplane('YZ').spline([(-0.034, 0.041),... | 12 | 98 | 0.031386 |
train_3e6e8597114c2f1f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.182, 0.167, -0.001), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.023, 0.465).extrude(0.181)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.55, 0.25, 0.017), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.103).extrude(0.086))
result = result.un... | 27 | 65 | 0.25368 |
train_510a01b3f11735ca | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.448, -0.41, -0.445), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.104, 1.104).extrude(0.729)
result = result.union(cq.Workplane(cq.Plane(origin=(0.503, -0.355, 0.279), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.993, 0.993).extrude(0.095))
result = r... | 12 | 72 | 0.961627 |
train_9adaa1870d3db40f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.199, 0, -0.28), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.603, 0.999).extrude(0.412)
result = result.faces('<Y').shell(-0.031)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.787, -0.193, -0.156), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0... | 5 | 21 | 0.142634 |
train_4df4ddaaa2760914 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.484, -0.349, -0.475), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.516, 0.644).lineTo(-0.516, 0.499).lineTo(-0.072, 0.499).lineTo(-0.072, 0.055).lineTo(0.072, 0.055).lineTo(0.072, 0.499).lineTo(0.516, 0.499).lineTo(0.516, 0.644).lineTo(-0.516, ... | 26 | 236 | 0.195345 |
train_b800945336df75c3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.432, -0.237, -0.175), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.135, 1.444).extrude(0.358)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.734, -0.582, 0.028), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.2).extrude(0.087))
result = result.... | 25 | 251 | 0.555439 |
train_4707144ef11f4c73 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.129, -0.337, -0.167), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.974, 0.602).extrude(0.166)
result = result.union(cq.Workplane(cq.Plane(origin=(0.129, -0.337, -0.001), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.205).extrude(0.018))
result = resu... | 23 | 147 | 0.216537 |
train_e3573163daafc203 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.734, -0.461, 0.45), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.161, 1.223).lineTo(0.31, 0.72).lineTo(0.365, 0.72).lineTo(0.458, 0.409).lineTo(0.411, 0.378).lineTo(0.55, -0.09).lineTo(-0.08, -0.277).lineTo(-0.161, -0.3).lineTo(-0.55, 1.013).lin... | 7 | 56 | 2.249142 |
train_6381a1a7725b681e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.729), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.562, 2).extrude(1.459)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.186, 0.117, -0.264), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.312, 0.811).extrude(1.02))
result = result.edges().... | 3 | 51 | 4.248736 |
train_a49301eeca44a5da | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.066, 0.457, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.462, -0.399).threePointArc((0, -0.188), (0.462, -0.399)).lineTo(1.063, -0.053).threePointArc((0, 0.5), (-1.063, -0.053)).lineTo(-0.462, -0.399).close().extrude(0.951)
result = result.... | 19 | 148 | 0.736342 |
train_dc3b71b649b11d26 | 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.25).workplane(offset=0.378).circle(0.245).workplane(offset=0.301).circle(0.226).workplane(offset=0.364).circle(0.21).workplane(offset=0.358).circle(0.23).workplane(offset=0.307).circle(0.283).... | 10 | 48 | 0.330352 |
train_ed4cd27dcb90b1a1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.149, 0, -0.797), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.293, 2).extrude(1.594)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.639, 0.286, -0.196), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.157).extrude(0.798))
result = result.cut(cq... | 4 | 64 | 4.0091 |
train_d58745d87bdce3a6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.396, -0.244, -0.357), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.208, 1.208).extrude(1.208)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.276, -0.112, 0.046), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.166, 0.186).extrude(0.15))
result = ... | 19 | 122 | 1.42467 |
train_f83e56def3a6292d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.125, -0.489, -0.12), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.045, 0.033).threePointArc((-0.051, 0.025), (-0.056, 0.016)).threePointArc((-0.047, 0.005), (-0.043, -0.009)).threePointArc((0, -0.052), (0.043, -0.009)).threePointArc((0.047, 0.... | 11 | 124 | 0.082413 |
train_e8248f08309fb002 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.073, 0.202, -0.269), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.176, 0.252).threePointArc((0.001, 0.428), (0.176, 0.25)).lineTo(0.176, -0.25).threePointArc((0.001, -0.428), (-0.176, -0.252)).lineTo(-0.176, 0.252).close().sweep(cq.Workplane('YZ... | 29 | 129 | 0.153719 |
train_3ad188946f625fe6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.412), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.946).extrude(0.823)
result = result.cut(cq.Workplane(cq.Plane(origin=(0 + 0.166 * math.cos(1.407 + 2 * math.pi * 0 / 5), 0.412 + 0.166 * math.sin(1.407 + 2 * math.pi * 0 / 5), -1.712), no... | 11 | 67 | 2.960239 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.