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_9ee37ffe67b4f9d9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.1, -0.388), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, -1.051).lineTo(0.309, -0.425).lineTo(1, -0.325).lineTo(0.499, 0.162).lineTo(0.618, 0.851).lineTo(0, 0.525).lineTo(-0.618, 0.851).lineTo(-0.499, 0.162).lineTo(-1, -0.325).lineTo(-0.309, ... | 12 | 222 | 0.47734 |
train_d7702bfd87992af6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.006, 0.421, -0.591), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.409, 0.005).threePointArc((0, -0.404), (0.409, 0.005)).lineTo(0.409, 0.415).lineTo(0, 0.415).threePointArc((-0.289, 0.295), (-0.409, 0.005)).close().extrude(0.841)
result = resul... | 9 | 98 | 0.448328 |
train_8d3a9f56f53200cc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.056, -0.272, -0.982), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.107, 0.11).threePointArc((-0.156, 0.061), (-0.107, 0.012)).lineTo(0.107, 0.012).threePointArc((0.156, 0.061), (0.107, 0.11)).lineTo(-0.107, 0.11).close().revolve(angleDegrees=180... | 6 | 55 | 0.073039 |
train_d200ef31ab8f3d1c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.256), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.525, 0.07).lineTo(-0.525, 0.07).lineTo(-0.525, 0.881).lineTo(-0.644, 0.881).lineTo(-0.644, 1).lineTo(-0.525, 1).lineTo(-0.525, 0.941).lineTo(0.239, 1).lineTo(0.644, 1).lineTo(0.644, 0.941)... | 3 | 22 | 3.722753 |
train_dc1ce48b775169f5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.819, 0, 0.025), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.004, 0.268).lineTo(-0.174, 0.056).lineTo(-0.373, -0.195).lineTo(0.182, -0.195).lineTo(0.212, -0.268).lineTo(0.373, -0.207).lineTo(0.364, -0.195).lineTo(0.164, 0.056).lineTo(-0.004, 0... | 24 | 72 | 0.024388 |
train_234581727cf91416 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.161, -0.151, -0.373), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.408, 1.698).extrude(0.175)
result = result.union(cq.Workplane(cq.Plane(origin=(0.231, -0.066, -0.198), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.633).extrude(0.02))
result = resul... | 8 | 73 | 0.801858 |
train_99da8fe7c16012e1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.015, -0.011, 0.005), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.163, 0.181).lineTo(-0.109, -0.091).threePointArc((-0.131, -0.079), (-0.156, -0.074)).threePointArc((-0.216, -0.179), (-0.095, -0.181)).lineTo(0.003, -0.055).lineTo(0.216, 0.128).l... | 1 | 13 | 0.027347 |
train_2916a32ab2c9eb16 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.086, -0.84, 0.131), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, 0.013).lineTo(-0.175, 0.079).threePointArc((0, 0.203), (0.175, 0.079)).lineTo(0, 0.013).close().extrude(0.672)
result = result.edges().fillet(0.009)
result = result.union(cq.Workp... | 32 | 196 | 0.062966 |
train_5ebd2f397667d0bc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.235, -0.096), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.44, 0.34).threePointArc((-0.382, 0.56), (-0.22, 0.721)).threePointArc((0, 0.78), (0.22, 0.721)).lineTo(0.44, 0.34).lineTo(0.22, -0.042).threePointArc((0, -0.101), (-0.22, -0.042)).li... | 26 | 120 | 0.613019 |
train_3ee45022bbf99921 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.031, 0.311, 0.686), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.301).workplane(offset=0.062).circle(0.296).workplane(offset=0.065).circle(0.282).workplane(offset=0.065).circle(0.315).workplane(offset=0.084).circle(0.338).loft()
result = result.... | 5 | 20 | 0.131638 |
train_ad77be1f95e8dcb2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.607, 0, 0.14), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.786, 0.928).extrude(0.749)
result = result.union(cq.Workplane(cq.Plane(origin=(0.369, 0.16, 0.357), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.261, 0.136).extrude(0.038))
result = result.u... | 5 | 81 | 0.486384 |
train_17e951283b21d3c8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.285, -0.416, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.156, 0.332).lineTo(-0.156, 0.021).lineTo(0.156, 0.021).lineTo(0.156, 0.332).lineTo(-0.156, 0.332).close().extrude(0.318)
result = result.edges().fillet(0.016)
result = result.union(c... | 5 | 41 | 0.034348 |
train_b0db3b5e0debe826 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.37, 0.026, 0.476), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.003, 1.1).extrude(0.046)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.031, 0.081, 0.523), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.074, -0.279).threePointArc((0.247, -0.3... | 7 | 134 | 0.57979 |
train_8f352e0d4b9bb037 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.963, -0.875), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.11, -0.031).threePointArc((-0.994, 0.853), (-0.11, 1.957)).threePointArc((0.994, 1.074), (0.11, -0.031)).close().extrude(1.75)
result = result.edges().chamfer(0.121)
result = result.c... | 10 | 11 | 5.280366 |
train_45316437390e97a1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.761, 0.889, 0.003), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.995, 0.968).threePointArc((0.923, 1.189), (0.801, 1.386)).threePointArc((0.536, 1.623), (0.205, 1.753)).lineTo(0.205, 1.59).lineTo(-0.162, 1.59).lineTo(-0.162, 1.759).threePointArc... | 3 | 98 | 4.152091 |
train_d2c74b33d29254a1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.226, -0.482), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.529).extrude(0.964)
result = result.union(cq.Workplane(cq.Plane(origin=(0.132, -0.751, 0.151), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.24).extrude(0.172))
result = result.union(cq... | 11 | 76 | 1.115613 |
train_c9ee3da5a4fa489b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.547, 0.018), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.172, 1.01).lineTo(-0.172, 0.13).lineTo(0.172, 0.13).lineTo(0.172, 1.01).lineTo(-0.172, 1.01).close().revolve(angleDegrees=180, axisStart=(0, 0), axisEnd=(0.161, 0))
result = result.ed... | 10 | 53 | 0.394423 |
train_ed49ca71a819f40f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.519, 0.068, -0.337), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.663, 0.381).lineTo(-0.663, 0.381).lineTo(-0.663, -0.244).lineTo(0.663, -0.244).lineTo(0.663, -0.067).lineTo(0, -0.067).lineTo(0, 0.198).lineTo(0.663, 0.198).lineTo(0.663, 0.381).c... | 16 | 100 | 1.226288 |
train_7b922678a3c0844d | 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(2, 1.173).extrude(0.749)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.866, 0.203, 0.107), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.283, 0.11).extrude(0.062))
result = result.cut(cq.Wo... | 13 | 107 | 1.496627 |
train_30274a546e4fed99 | 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(1.885, 2).extrude(0.825)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.273, -0.215, -0.058), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.34).extrude(0.482))
result = result.cut(cq.Workp... | 38 | 443 | 1.602397 |
train_4050f09b721a2daf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.27, 0, -0.742), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.797, 1.166).extrude(0.022)
result = result.union(cq.Workplane(cq.Plane(origin=(0.193, -0.1, -0.722), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.232).extrude(0.03))
result = result.union(... | 14 | 121 | 0.392942 |
train_164b739ac939378d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.547, 0.352, -0.49), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.78, 0.603).extrude(0.211)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.541, 0.821, -0.468), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.179).extrude(0.095))
result = result... | 16 | 217 | 0.814814 |
train_4ee08122b85e1077 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.364, 0.215, 0.339), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.142, 0.225).threePointArc((-0.162, 0.313), (-0.142, 0.401)).lineTo(-0.25, 0.401).lineTo(-0.25, 0.519).lineTo(0.044, 0.519).threePointArc((0.25, 0.313), (0.044, 0.107)).threePointA... | 21 | 219 | 0.192349 |
train_413443c0a542ff0a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.711, -0.154, 0.149), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.158, 0.152).lineTo(-0.158, 0.165).lineTo(0.158, 0.165).lineTo(0.158, 0.152).lineTo(-0.146, 0.152).lineTo(-0.146, -0.165).lineTo(-0.158, -0.165).lineTo(-0.158, 0.152).close().swe... | 7 | 52 | 0.153471 |
train_71e3a69e9dd0740f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.072, -0.384), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.849).extrude(0.862)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.06, -0.202, 0.04), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.05).extrude(0.028))
result = result.cut(cq.Work... | 11 | 54 | 3.037703 |
train_3389871737d25c71 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.438, 0.025), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.206, -0.06).lineTo(0.147, 0.083).lineTo(0.356, 0.291).lineTo(0.356, 0.586).lineTo(0.498, 0.644).lineTo(0.206, 0.936).lineTo(-0.206, 0.936).lineTo(-0.498, 0.644).lineTo(-0.498, 0.232).l... | 6 | 62 | 1.427613 |
train_c9aa80ef35e47463 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.168, -0.027, -0.136), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.311, 0.47).lineTo(-0.382, 0.349).threePointArc((-0.403, 0.317), (-0.421, 0.283)).threePointArc((-0.467, 0.081), (-0.421, -0.121)).threePointArc((-0.403, -0.155), (-0.382, -0.187... | 31 | 330 | 0.376903 |
train_6d0cbccae089f18a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.587, 0.02, -0.191), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.526, 0.859).extrude(0.222)
result = result.union(cq.Workplane(cq.Plane(origin=(0.651, -0.003, -0.227), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.271, 0.335).extrude(0.039))
result = r... | 14 | 145 | 0.16727 |
train_51d6c7aa05d77e97 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.071, -0.646, -0.058), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.182, 1.29).lineTo(0.182, -0.354).lineTo(-0.182, -0.354).lineTo(-0.182, 1.29).lineTo(0.182, 1.29).close().revolve(angleDegrees=180, axisStart=(0.182, 1.29), axisEnd=(0.182, 0.138))... | 11 | 69 | 0.462675 |
train_c3d7b74508c57234 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.218, 0.104, -0.059), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.101).workplane(offset=0.055).circle(0.098).workplane(offset=0.057).circle(0.06).workplane(offset=0.067).circle(0.113).workplane(offset=0.068).circle(0.1).loft()
result = result.ed... | 24 | 91 | 0.055365 |
train_223fcbeab6899738 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.099, -0.595, -0.176), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.119, 0.395).lineTo(0.106, 0.407).lineTo(0.089, 0.093).lineTo(0.533, 0.106).lineTo(0.529, -0.113).lineTo(0.092, -0.096).lineTo(0.1, -0.405).lineTo(-0.096, -0.386).lineTo(-0.107, ... | 18 | 104 | 0.186149 |
train_8174b063d7ba684f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.953, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(1.08).workplane(offset=0.992).circle(0.812).workplane(offset=0.915).circle(0.855).loft()
result = result.edges().chamfer(0.214)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.499, 0.44... | 8 | 115 | 3.470881 |
train_39859b734fba7062 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.04, -0.017, -0.06), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.062).workplane(offset=0.266).circle(0.057).workplane(offset=0.336).circle(0.061).loft()
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.017, -0.547, -0.084), normal=(0, 0, 1)... | 37 | 147 | 0.013434 |
train_58d19023313ba839 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, -0.774, 0.333), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.279).sweep(cq.Workplane('YZ').spline([(-0.073, 0.015), (0.065, -0.083), (0.203, -0.045), (0.341, 0.188), (0.479, -0.141), (0.617, 0.036), (0.755, 0.145), (0.893, 0.015)]))
result... | 4 | 15 | 0.277883 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.