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_ab3a4becdc6363f3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.889, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).lineTo(1, 1.213).threePointArc((0.942, 1.354), (0.8, 1.413)).lineTo(0.751, 1.413).lineTo(0, 1.413).lineTo(-0.751, 1.413).lineTo(-0.8, 1.413).threePointArc((-0.942, 1.354), (-1, 1.213)).lineTo(-1, ... | 7 | 23 | 0.492695 |
train_6ba45fad3541fe33 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.421, 0, -0.488), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.235, -0.48).threePointArc((0.194, -0.686), (0.253, -0.888)).threePointArc((0.157, -0.699), (0.167, -0.488)).threePointArc((0.193, -0.347), (0.147, -0.212)).threePointArc((-0.027, -0.05... | 9 | 66 | 0.487799 |
train_90dd0a53032cf563 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.231, 0.493, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.034, -0.231).lineTo(0.034, -0.231).lineTo(0.034, 0.276).lineTo(-0.034, 0.276).lineTo(-0.034, -0.231).close().revolve(angleDegrees=270, axisStart=(-0.034, -0.231), axisEnd=(0.031, -0.23... | 4 | 74 | 0.012954 |
train_254d7d60f07cfcd1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.164, 0, 0.005), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.836, -0.021).lineTo(-0.836, -0.021).lineTo(-0.836, 0.021).lineTo(-0.737, 0.021).lineTo(-0.737, 0).lineTo(0.836, 0).lineTo(0.836, -0.021).close().extrude(0.01)
result = result.edges().... | 6 | 57 | 0.000322 |
train_0888e9db293c696b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.012, 0.62, -0.109), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.328, -0.244).threePointArc((0.379, -0.266), (0.401, -0.214)).lineTo(-0.328, 1.571).threePointArc((-0.379, 1.592), (-0.401, 1.54)).lineTo(-0.325, 1.354).lineTo(0.328, -0.244).close()... | 10 | 254 | 0.516252 |
train_1f6f392a1d4d107f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.139, -0.074, -0.661), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.393, 0.291).extrude(0.908)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.139, -0.074, 0.216), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.213, 0.168).extrude(0.36))
result =... | 10 | 64 | 0.176988 |
train_683415a2017d1d17 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.631, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.682).workplane(offset=0.44).circle(0.749).workplane(offset=0.609).circle(0.741).workplane(offset=0.583).circle(0.76).loft()
result = result.edges().chamfer(0.68)
result = result.union(cq.W... | 4 | 15 | 1.32313 |
train_c86033968d8e7381 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.196, -0.009, -0.154), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.804, -0.018).lineTo(0.401, 0.715).lineTo(-0.408, 0.719).lineTo(-0.785, -0.015).lineTo(-0.423, -0.676).lineTo(0.421, -0.701).close().moveTo(-0.25, 0.345).lineTo(-0.212, 0.343).line... | 15 | 137 | 0.238641 |
train_c40f28f83452f1eb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.677, -0.056, -0.124), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.386, 0.253).threePointArc((-0.327, 0.397), (-0.183, 0.457)).lineTo(0.183, 0.457).threePointArc((0.327, 0.397), (0.386, 0.253)).lineTo(0.386, 0.05).lineTo(-0.386, 0.05).lineTo(-0... | 9 | 101 | 0.815798 |
train_592e0a01eb2c46c7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.003, 0, 0.548), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.113, -0.114).lineTo(0.118, -0.11).lineTo(0.008, -0.001).lineTo(0.118, 0.11).lineTo(0.114, 0.114).lineTo(0.004, 0.004).lineTo(-0.001, 0.009).lineTo(-0.006, 0.004).lineTo(-0.114, 0.112).... | 8 | 58 | 0.182443 |
train_45bee6a70835750e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.51, 0.552, 0.117), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.169, 1.04).threePointArc((-0.268, 0.977), (-0.254, 0.861)).threePointArc((-0.052, 0.296), (-0.254, -0.269)).threePointArc((-0.268, -0.385), (-0.169, -0.448)).lineTo(0.169, -0.448).... | 10 | 87 | 0.445461 |
train_94b76a514907268d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.424, 0.311, -0.648), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.352, -0.041).lineTo(0.352, -0.394).lineTo(-0.352, -0.394).lineTo(-0.352, -0.041).lineTo(-0.176, -0.041).lineTo(-0.176, 1.015).lineTo(0.176, 1.015).lineTo(0.176, -0.041).lineTo(0.3... | 14 | 214 | 0.558337 |
train_15dc63b691d5c957 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.239, 0.13, 1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.023, 0.256).lineTo(-0.015, 0.243).lineTo(-0.023, 0.23).lineTo(-0.015, 0.216).lineTo(-0.008, 0.23).lineTo(0, 0.216).lineTo(-0.008, 0.203).lineTo(0.257, -0.256).lineTo(-0.288, -0.256).lin... | 2 | 39 | 0.185664 |
train_c64049569b8dbd99 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.035, 0.413, -0.066), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.356, 0.679).threePointArc((-0.328, 0.54), (-0.248, 0.423)).lineTo(-0.248, 0.679).threePointArc((0, 0.431), (0.248, 0.679)).lineTo(0.248, 0.423).lineTo(0.248, -0.828).lineTo(0.248... | 3 | 15 | 0.37652 |
train_7b90a1998ee6c76f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.304, -0.003, -0.759), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.13, 0.241).lineTo(0.13, 0.34).lineTo(-0.13, 0.34).lineTo(-0.13, -0.335).lineTo(0.13, -0.335).lineTo(0.13, 0.241).close().extrude(0.193)
result = result.edges().fillet(0.021)
resu... | 9 | 80 | 0.171808 |
train_29e13c8da1cdc702 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.66, 0.448, 0.035), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.89, 0.132).lineTo(-0.89, 1.319).lineTo(0.89, 1.319).lineTo(0.89, 0.878).lineTo(0.551, 0.878).lineTo(0.551, 0.819).lineTo(0.89, 0.819).lineTo(0.89, 0.632).lineTo(0.551, 0.632).lineT... | 7 | 78 | 1.163403 |
train_9c569bc6558b48af | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.008, -0.054, -0.124), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.008, 0.279).threePointArc((-0.09, 0.263), (-0.178, 0.217)).threePointArc((-0.302, -0.031), (-0.178, -0.279)).threePointArc((0.302, -0.129), (0.008, 0.279)).close().extrude(0.552... | 10 | 67 | 0.283376 |
train_f45d5ea74e639b4f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.219, 0.096), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.781, -0.781).lineTo(-0.347, -0.347).lineTo(-0.487, 0.316).lineTo(0, 0).lineTo(-0.347, 0.347).lineTo(0.316, 0.487).lineTo(0.347, 0.347).lineTo(0.487, -0.316).lineTo(0.781, -0.507).lin... | 2 | 16 | 1.759082 |
train_90bf2f8e44d07052 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.527, -0.691), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.758, 0.081).threePointArc((0, 0.722), (0.758, 0.081)).lineTo(0.808, 0.031).lineTo(1.009, 0.231).threePointArc((0, 1.001), (-1.009, 0.231)).lineTo(-0.808, 0.031).lineTo(-0.758, 0.081)... | 7 | 65 | 0.799845 |
train_8f00fc71c6c7661c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.097, 0.113, 0.824), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.099, 0.095).lineTo(0.099, 0.095).lineTo(0.099, 0.028).lineTo(0.091, 0.028).lineTo(0.091, 0.087).lineTo(-0.091, 0.087).lineTo(-0.091, -0.095).lineTo(-0.099, -0.095).lineTo(-0.099,... | 1 | 10 | 0.005702 |
train_61617cd6c72d7821 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.017, 0.027, 0.284), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.375).sweep(cq.Workplane('XY').spline([(-0.603, 0.027), (-0.172, 0.027), (0.26, 0.027), (0.448, -0.165), (0.638, -0.359)]))
result = result.edges().chamfer(0.374)
result = result.uni... | 4 | 12 | 0.419121 |
train_557e7ea434a79e9a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.444), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.063, 0.046).lineTo(0, 0.046).threePointArc((-0.044, 0.065), (-0.063, 0.109)).threePointArc((-0.044, 0.153), (0, 0.171)).lineTo(0.063, 0.171).lineTo(0.063, 0.109).lineTo(0.063, 0.046).close(... | 5 | 20 | 0.009709 |
train_b4cf27a3fe5fcae7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.951, 0.663, -0.128), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, -0.207).lineTo(-0.872, -0.207).lineTo(-0.872, 1.533).lineTo(0.862, 1.533).lineTo(0.862, 1.462).lineTo(0.872, -0.207).lineTo(0, -0.207).close().extrude(1.903)
result = result.edge... | 11 | 53 | 5.001527 |
train_4ebbd9d8e00a32f6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.63), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.716, 2).extrude(1.26)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.395, 0, -0.037), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.975, 1.427).extrude(0.073))
result = result.edges().fille... | 13 | 89 | 4.029749 |
train_691357463001fee3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.147, -0.232, -0.342), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.574, 1.414).extrude(0.441)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.147, -0.683, -0.137), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.694, 0.541).extrude(0.03))
result = re... | 32 | 178 | 0.993522 |
train_359423d7ef2be2b9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.469, -0.28, -0.591), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.022, 0.108).threePointArc((0.014, 0.066), (0.055, 0.031)).threePointArc((0.228, -0.023), (0.401, 0.031)).threePointArc((0.443, 0.066), (0.477, 0.108)).threePointArc((0.531, 0.28)... | 3 | 34 | 0.829287 |
train_a29b4da2ee6a2d4d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.073, -0.011, -0.859), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.191, 0.134).extrude(0.155)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.059, 0.01, -0.731), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.054, 0.023).extrude(0.334))
result =... | 11 | 48 | 0.01655 |
train_0b6e809df3741957 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, -0.029, -0.12), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.124, 1.036).lineTo(0.124, -0.597).lineTo(0.028, -0.979).threePointArc((-0.05, -0.466), (-0.124, 0.048)).lineTo(0.124, 1.036).close().extrude(0.214)
result = result.edges().chamfer... | 34 | 171 | 0.056743 |
train_49e1d7b1d207f1f4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.504), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.245, 1.008).lineTo(-0.245, 0.126).lineTo(0.245, 0.126).lineTo(0.245, 1.008).lineTo(-0.245, 1.008).close().revolve(angleDegrees=180, axisStart=(0, 0), axisEnd=(0.38, 0))
result = result.ed... | 11 | 56 | 0.60962 |
train_45bed4031c908b60 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.559, 0, 0.53), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.468, 0.84).lineTo(-0.468, -0.84).lineTo(0.468, -0.84).lineTo(0.468, 0.84).lineTo(-0.468, 0.84).close().sweep(cq.Workplane('XZ').spline([(0.559, -0.545), (1.058, -0.242), (1.558, -0.163)... | 3 | 51 | 1.330789 |
train_74d8f44e76a46bba | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.539, 0.557, -0.261), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.739, 1.232).lineTo(0.739, -0.247).lineTo(-0.739, -0.247).lineTo(-0.739, 0.444).lineTo(0.041, 0.444).lineTo(0.041, 1.232).lineTo(0.739, 1.232).close().extrude(1.155)
result = resul... | 11 | 80 | 1.829794 |
train_30d2e56121635c85 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.232, -0.156), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.542, 1.536).extrude(0.167)
result = result.union(cq.Workplane(cq.Plane(origin=(0, -0.232, 0.01), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.553).extrude(0.023))
result = result.union(c... | 12 | 34 | 0.501991 |
train_6cd4f9f34b0580c9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.463, -1.693, -0.06), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.584, -0.858).lineTo(-0.584, 2.146).lineTo(0.584, 2.146).lineTo(0.584, -0.858).close().revolve(angleDegrees=90, axisStart=(0.584, -0.858), axisEnd=(-0.584, 2.146))
result = result... | 15 | 86 | 0.561818 |
train_2d1126f1270e16d9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.625, 0, 0.302), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.375, -0.772).lineTo(-0.375, -0.772).lineTo(-0.375, 0.694).lineTo(-0.296, 0.694).lineTo(-0.296, 0.772).lineTo(0.375, 0.772).lineTo(0.375, -0.772).close().sweep(cq.Workplane('XZ').spline... | 1 | 8 | 0.141993 |
train_c259b941413c2ed8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.018, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.151, 0.393).threePointArc((-0.173, 0.353), (-0.192, 0.313)).lineTo(-0.158, 0.442).lineTo(0.192, 0.348).lineTo(-0.01, -0.406).lineTo(-0.083, -0.386).lineTo(0.043, 0.087).lineTo(0.051, 0.1... | 3 | 24 | 0.079055 |
train_f7ac1e7e4372fef4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.215, -0.217, -0.337), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.147, -0.166).lineTo(0.098, -0.166).lineTo(0.061, -0.13).lineTo(0.107, -0.13).lineTo(0.138, -0.166).lineTo(0.444, -0.166).lineTo(0.444, -0.13).lineTo(0.113, -0.13).lineTo(0.073,... | 6 | 40 | 0.336443 |
train_01d1d2dfb470c6b6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.846, -0.209, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.4).lineTo(0.91, 0.4).lineTo(0.708, 0.198).lineTo(0.708, -0.4).lineTo(-0.708, -0.4).lineTo(-0.708, 0.198).lineTo(-0.91, 0.4).lineTo(0, 0.4).close().sweep(cq.Workplane('XY').spline(... | 10 | 68 | 1.926665 |
train_627c30b3ad650c00 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.138, -0.481, -0.287), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.722, 1.037).extrude(0.911)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.229, 0.206, 0.022), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.396, 0.355).extrude(0.455))
result =... | 23 | 121 | 0.625923 |
train_d6ae793a9fee6953 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.31, -0.569, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.345, 0.431).threePointArc((-0.357, 0.426), (-0.362, 0.414)).lineTo(-0.362, 0.168).lineTo(-0.362, 0.029).lineTo(-0.362, -0.217).threePointArc((-0.357, -0.228), (-0.345, -0.233)).lineTo... | 14 | 254 | 0.351207 |
train_8ce909afc07af4d6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.143, -0.45), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.18, 1.714).extrude(0.852)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.211, 0.078, -0.476), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.022).extrude(1.023))
result = result.cut(cq.... | 15 | 87 | 1.66249 |
train_9a2cb41b43090cf7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.444, -0.899, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.573, -0.101).lineTo(-0.452, -0.101).threePointArc((-0.537, -0.065), (-0.573, 0.02)).lineTo(-0.573, 0.982).threePointArc((-0.537, 1.067), (-0.452, 1.103)).lineTo(0.573, 1.103).lineTo(0... | 12 | 75 | 0.983815 |
train_072a99d777a8cbae | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.212, 0, -0.004), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.12, -1).lineTo(0.12, 1).lineTo(-0.073, 1).lineTo(-0.12, 0.953).lineTo(-0.12, -1).lineTo(0.12, -1).close().sweep(cq.Workplane('XZ').spline([(0.002, -0.162), (0.142, -0.162), (0.283, -... | 10 | 71 | 0.141174 |
train_21fe0122d8b1c7e3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.407, -0.248), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.578, -0.593).lineTo(0.578, -0.415).lineTo(0.623, -0.415).lineTo(0.623, 0.585).lineTo(0.578, 0.585).lineTo(0.578, 0.873).lineTo(0.623, 0.873).lineTo(0.623, 1.407).lineTo(-0.578, 1.407)... | 2 | 24 | 2.138854 |
train_b6f68b6dd9b9becb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.316, -0.24, 0.119), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.195, 0.357).threePointArc((-0.138, 0.129), (-0.044, -0.263)).threePointArc((-0.039, -0.268), (-0.033, -0.273)).threePointArc((-0.002, -0.296), (0.031, -0.316)).lineTo(0.031, -0.279... | 6 | 47 | 1.250135 |
train_3e938aab7ac958b1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.705, -0.269, -0.152), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.717, -0.094).threePointArc((0.48, 1.211), (0.554, -0.559)).lineTo(0.717, -0.602).threePointArc((0.568, -0.679), (0.41, -0.731)).lineTo(0.14, -0.648).threePointArc((-0.174, -0.53... | 2 | 10 | 1.358919 |
train_4dae28feaebc6045 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.068, -0.148, -0.005), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.041, -0.008).lineTo(0.041, 0.02).lineTo(-0.041, 0.02).lineTo(-0.041, -0.008).lineTo(0.041, -0.008).close().extrude(0.063)
result = result.edges().fillet(0.006)
result = result.un... | 20 | 261 | 0.286248 |
train_1af7df71245a86ed | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.5, -0.522, 0.5), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.5, 0.255).lineTo(0.5, -0.011).lineTo(0.5, 0.122).lineTo(0.454, 0.122).lineTo(0.454, 0.255).lineTo(-0.5, 0.255).lineTo(-0.5, 0.922).lineTo(0.5, 0.922).lineTo(0.5, 0.255).close().revolv... | 6 | 22 | 0.961201 |
train_0d25834be687c095 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.302, 0.075, -0.195), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.395, 0.897).extrude(0.676)
result = result.faces('>Z').shell(-0.055)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.028, 0.695, -0.084), normal=(0, 0, 1), xDir=(1, 0, 0))).c... | 10 | 124 | 0.355805 |
train_1f53821cd7590923 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.129, -0.318, -0.501), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.25, -0.083).threePointArc((0.158, 0.324), (-0.25, 0.413)).threePointArc((-0.136, 0.028), (0.25, -0.083)).close().extrude(0.636)
result = result.edges().fillet(0.069)
result = res... | 8 | 29 | 0.148035 |
train_6563f0cfd5ad853e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.138, 0, -0.448), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.148, 0.578).extrude(0.521)
result = result.union(cq.Workplane(cq.Plane(origin=(0.418, -0.107, 0.051), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.022, -0.032).lineTo(-0.022, -0.183).li... | 8 | 41 | 0.311927 |
train_84f7417493d8c030 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.423, -0.286), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.293).workplane(offset=0.339).circle(0.524).workplane(offset=0.384).circle(0.24).workplane(offset=0.318).circle(0.483).workplane(offset=0.382).circle(0.512).loft()
result = result.unio... | 4 | 17 | 1.07248 |
train_9125c8fa388275f6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.503, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.965, 1.006).lineTo(-0.668, 1.006).lineTo(-0.668, 0.384).lineTo(0.965, 0.384).lineTo(0.965, 0.007).lineTo(-0.965, 0.007).lineTo(-0.965, 1.006).close().revolve(angleDegrees=180, axisStart=(... | 17 | 158 | 0.588912 |
train_5453feb3c0982154 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.595, -0.242, 0.084), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.71, 0.213).lineTo(-0.71, 0.071).lineTo(-0.568, 0.071).lineTo(-0.568, -0.071).lineTo(-0.71, -0.071).lineTo(-0.71, -0.213).lineTo(0.71, -0.213).lineTo(0.71, -0.071).lineTo(0.568, ... | 14 | 98 | 0.394428 |
train_d119f88a739f8274 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.11, -1), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.003, 0.004).lineTo(-0.004, -0.004).lineTo(-0.003, -0.004).lineTo(-0.002, 0.001).lineTo(-0.001, -0.002).lineTo(0.001, -0.002).lineTo(0.002, 0.001).lineTo(0.003, -0.004).lineTo(0.004, -0.00... | 1 | 12 | 0.000011 |
train_7789925c3da899ab | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.269), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.29).extrude(0.538)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.483, 0.439, 0.237), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.215, 0.155).extrude(0.033))
result = result.cut(cq.Wor... | 12 | 55 | 1.172356 |
train_8b027639680541e3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.362, -0.436, 0.116), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.684, 0.362).lineTo(0.6, 0.362).lineTo(0.6, 0.563).lineTo(0.431, 0.563).lineTo(0.431, 0.362).lineTo(-0.52, 0.362).threePointArc((-0.684, 0.198), (-0.52, 0.034)).lineTo(0.684, 0.034... | 9 | 132 | 0.325968 |
train_39dca0e02372f681 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.16, 0.154).lineTo(-0.16, 0.166).lineTo(-0.23, 0.166).lineTo(-0.23, -0.166).lineTo(0.23, -0.166).lineTo(0.23, 0.061).lineTo(0.217, 0.061).lineTo(0.217, 0.141).lineTo(0.23, 0.141).lineTo(0.23, 0... | 8 | 61 | 0.104047 |
train_2c21772b13d5e57d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.034, -0.421, 0.616), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.291, -0.146).lineTo(-0.291, -0.346).lineTo(0.291, -0.346).lineTo(0.291, 0.224).lineTo(-0.148, 0.224).lineTo(-0.148, 0.346).lineTo(-0.255, 0.346).lineTo(-0.255, 0.212).lineTo(0.2... | 3 | 22 | 0.108029 |
train_6b1f19aac1443705 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.605, 0, -0.17), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.582, 0.582).lineTo(0.582, 0).lineTo(-0.582, -0.582).lineTo(-0.582, 0).lineTo(0.582, 0.582).close().sweep(cq.Workplane('XZ').spline([(0.034, -1.057), (0.247, -1.052), (0.46, -1.023), (... | 4 | 18 | 0.895662 |
train_b18e853109839c41 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.475, -0.098, -0.304), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.091, 0.815).lineTo(-0.123, -0.81).lineTo(-0.089, -0.815).lineTo(0.123, 0.815).lineTo(0.091, 0.815).close().sweep(cq.Workplane('XY').spline([(0.01, -0.198), (0.172, -0.195), (0.3... | 3 | 36 | 0.238069 |
train_0cddf990f3e20566 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.056, 0.055, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.955, 0.108).threePointArc((-0.987, 0.095), (-1, 0.063)).lineTo(-1, 0.031).threePointArc((-0.992, 0.012), (-0.973, 0.004)).lineTo(0.955, 0.004).threePointArc((0.987, 0.017), (1, 0.049)... | 8 | 48 | 0.022338 |
train_cdadb9238278c209 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.227, -0.141, -0.068), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.083, -0.773).lineTo(-0.083, 1.227).lineTo(0.083, 1.227).lineTo(0.083, -0.773).lineTo(-0.083, -0.773).close().extrude(0.282)
result = result.edges().chamfer(0.044)
result = resul... | 8 | 52 | 0.050946 |
train_cbae20f03856ac36 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.133, 0, -0.356), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.733, 1.626).extrude(0.713)
result = result.union(cq.Workplane(cq.Plane(origin=(0.862, -0.048, -0.09), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.138).extrude(0.312))
result = result.cu... | 4 | 43 | 1.814604 |
train_7ba5a00c6dea7cf3 | 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.688).workplane(offset=0.982).circle(0.528).workplane(offset=1.018).circle(0.367).loft()
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.115, -0.259, -0.922), normal=(0, 0, 1), xDir=(1, 0,... | 5 | 22 | 1.51337 |
train_2fdcdfb2be4de5a7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.012, -0.001, 0.072), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.057, 0.057).lineTo(0.057, 0.057).lineTo(0.057, 0.029).lineTo(-0.029, 0.029).lineTo(-0.029, -0.057).lineTo(-0.057, -0.057).lineTo(-0.057, 0.057).close().sweep(cq.Workplane('YZ').m... | 6 | 45 | 0.006414 |
train_5be6698122ccb5dd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.637, -0.805, -0.505), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.047, 0.084).lineTo(-0.255, 0.084).lineTo(-0.509, 0.525).lineTo(-0.255, 0.965).lineTo(0.255, 0.965).lineTo(0.509, 0.525).lineTo(0.255, 0.084).lineTo(0.047, 0.084).close().extrude(... | 34 | 135 | 0.816686 |
train_c9855c31d841a20d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.674, -0.401), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.91, -0.262).threePointArc((0, 0.175), (0.91, -0.262)).lineTo(1.021, -0.262).threePointArc((0, 0.262), (-1.021, -0.262)).lineTo(-0.91, -0.262).close().sweep(cq.Workplane('YZ').spline... | 2 | 26 | 0.396607 |
train_5020dac4c94cb9a2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.349, 0.37, 0.356), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.655, -0.64).lineTo(0.655, 1.322).lineTo(-0.655, 1.322).lineTo(-0.655, -0.64).close().extrude(0.913)
result = result.edges().chamfer(0.019)
result = result.cut(cq.Workplane(cq.Plane... | 15 | 132 | 0.935307 |
train_f09d869b1c80a452 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.472, -0.382, -0.063), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.571, -0.188).lineTo(0.571, 0.953).lineTo(-0.285, 0.953).threePointArc((-0.369, 0.751), (-0.571, 0.667)).lineTo(-0.571, 0.097).lineTo(-0.571, -0.188).lineTo(-0.285, -0.188).lineTo... | 6 | 42 | 1.148235 |
train_6227368f10b42a2b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.919, -0.373, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.75, 0.25).threePointArc((-1, 0), (-0.75, -0.25)).lineTo(1, -0.25).lineTo(1, 0.25).lineTo(0.117, 0.25).lineTo(-0.75, 0.25).close().sweep(cq.Workplane('XY').spline([(-0.454, -0.373), ... | 3 | 14 | 0.627043 |
train_482a22da370ca932 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.589, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.749, 0.089).lineTo(0.417, 0.089).lineTo(0.417, 0.422).lineTo(0.749, 0.422).lineTo(0.749, 1.088).lineTo(-0.417, 1.088).lineTo(-0.417, 0.755).lineTo(-0.749, 0.755).lineTo(-0.749, 0.089).line... | 8 | 30 | 1.946058 |
train_b44b86c2b12079c9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.093, -0.681), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.059).extrude(1.361)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.376, 0.523, -0.358), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.827, 0.199).extrude(0.21))
result = result.c... | 7 | 29 | 2.753567 |
train_716dde1b7f9f3ba1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.638, 0.211), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.249, 0.382).lineTo(-0.383, -0.25).lineTo(-0.252, -0.382).lineTo(0.383, 0.246).lineTo(0.249, 0.382).close().extrude(0.341)
result = result.edges().fillet(0.049)
result = result.union(c... | 15 | 114 | 0.100295 |
train_623170b2af041da1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.389, -0.005), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.232, 0.373).lineTo(-0.178, 0.357).lineTo(-0.186, 0.328).lineTo(-0.241, 0.138).lineTo(-0.213, 0.13).lineTo(-0.164, 0.302).lineTo(-0.113, 0.13).lineTo(-0.086, 0.138).lineTo(-0.032, 0.... | 1 | 17 | 0.079858 |
train_1035f0d84d253b81 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.982, 0, -0.007), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.295, 0.308).threePointArc((-0.331, 0.285), (-0.375, 0.277)).threePointArc((-0.418, 0.285), (-0.455, 0.308)).lineTo(0.295, -0.394).threePointArc((0.289, -0.228), (0.455, -0.223)).lineT... | 6 | 18 | 0.072339 |
train_aabf1611ab85364b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.28, 0.197), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1, -0.589).lineTo(1, 0.589).lineTo(-1, 0.186).lineTo(-1, -0.589).lineTo(1, -0.589).close().extrude(0.479)
result = result.edges().chamfer(0.125)
result = result.union(cq.Workplane(cq.Pla... | 16 | 109 | 0.627339 |
train_9fe3751a41ba99d0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.09, 0, -0.159), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.329, 0.177).threePointArc((-0.35, 0.163), (-0.363, 0.143)).lineTo(-0.363, 0.096).lineTo(-0.363, -0.182).lineTo(0.363, -0.182).lineTo(0.363, 0.177).lineTo(-0.282, 0.177).threePointArc(... | 11 | 71 | 0.443971 |
train_85d6c0831de9cbcc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.866, -0.43, -0.205), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.013, 0.161).lineTo(0.064, -0.134).lineTo(0.013, -0.134).lineTo(0.015, -0.134).lineTo(0.015, -0.02).lineTo(-0.064, -0.02).lineTo(-0.064, 0.161).lineTo(0.013, 0.161).close().extrude... | 23 | 380 | 0.308234 |
train_d578ed91734d78a4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.032, -1, 0.135), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.26).sweep(cq.Workplane('YZ').spline([(-0.192, 0.051), (0.632, 0.051), (0.886, 0.296), (1.14, 0.542)]))
result = result.edges().chamfer(0.136)
result = result.union(cq.Workplane(cq.Pl... | 20 | 110 | 0.304531 |
train_0562d6875c64e64f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.452, -0.444, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.635, 0.519).lineTo(-0.635, 0.188).lineTo(0.635, 0.188).lineTo(0.635, 0.519).lineTo(-0.635, 0.519).close().workplane(offset=0.174).moveTo(-0.759, 0.552).lineTo(-0.759, 0.155).lineTo(0... | 30 | 52 | 0.634211 |
train_b59c2f8aee6e40d6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.106, -0.275, -0.392), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.688, 0.783).extrude(0.16)
result = result.union(cq.Workplane(cq.Plane(origin=(0.628, -0.227, -0.314), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.084, 0.032).threePointArc((-0.051,... | 15 | 117 | 0.406225 |
train_d9603e4717e537b1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.242, 0.524, -0.572), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.415, 0.292).threePointArc((0.334, 0.096), (0.138, 0.015)).threePointArc((0.067, 0.025), (0, 0.052)).threePointArc((-0.067, 0.025), (-0.138, 0.015)).threePointArc((-0.415, 0.292), ... | 6 | 48 | 0.140736 |
train_73e52ab24ed30625 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.335, 0.013, -0.072), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.665, 0.01).lineTo(0.463, 0.485).lineTo(-0.013, 0.667).lineTo(-0.488, 0.486).lineTo(-0.698, 0).lineTo(-0.499, -0.485).lineTo(0.021, -0.692).lineTo(0.477, -0.49).close().moveTo(-0.28... | 16 | 164 | 0.145463 |
train_13d816e84430f900 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.349, 0.009, -0.3), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.438, 0.026).lineTo(0.215, 0.364).lineTo(-0.214, 0.391).lineTo(-0.433, -0.014).lineTo(-0.215, -0.377).lineTo(0.223, -0.388).close().moveTo(-0.121, -0.22).lineTo(0.12, -0.218).lineTo(... | 15 | 99 | 0.665891 |
train_f845b509ab019c29 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.363, -0.019, -0.098), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.171, 0.591).lineTo(-0.171, 0.027).lineTo(0.171, 0.027).lineTo(0.171, 0.591).lineTo(-0.171, 0.591).close().extrude(0.401)
result = result.edges().fillet(0.039)
result = result.u... | 8 | 72 | 0.099979 |
train_2f913c52aef52d6a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.167, -0.145), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.875, 0.358).lineTo(-0.75, 0.141).lineTo(-0.625, 0.358).lineTo(-0.5, 0.141).lineTo(-0.375, 0.358).lineTo(-0.25, 0.141).lineTo(-0.125, 0.358).lineTo(0, 0.141).lineTo(0.125, 0.358).line... | 7 | 134 | 0.082439 |
train_b8cd2ff110bd976d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.076, 0.002, 0.001), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.12, 0.001).lineTo(0.057, 0.103).lineTo(-0.064, 0.102).lineTo(-0.121, 0.003).lineTo(-0.065, -0.107).lineTo(0.065, -0.103).close().moveTo(0.018, 0.034).lineTo(0.009, 0.05).lineTo(-0.0... | 15 | 154 | 0.024292 |
train_bbe46dc2e69fa052 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.088, -0.533, -0.213), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.015, 1.01).threePointArc((-0.463, 0.533), (0.015, 0.055)).threePointArc((0.463, 0.367), (0.325, 0.896)).threePointArc((0.18, 0.981), (0.015, 1.01)).close().extrude(1.088)
result ... | 4 | 21 | 1.649973 |
train_7208bd599a8112c6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.065, -0.485, -0.258), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.875, 1.029).extrude(0.515)
result = result.faces('>Z').shell(-0.021)
result = result.union(cq.Workplane(cq.Plane(origin=(0.183, 0.221, 0.032), normal=(0, 0, 1), xDir=(1, 0, 0))).rec... | 7 | 39 | 0.10593 |
train_752dabcc6d01cb1e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.036, 0.001, 0.072), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.054, 0.059).lineTo(-0.036, 0.059).lineTo(-0.038, 0.041).lineTo(-0.042, -0.023).lineTo(-0.003, -0.023).lineTo(-0.008, 0.041).lineTo(-0.009, 0.059).lineTo(0.054, 0.059).lineTo(0.05... | 15 | 232 | 0.016996 |
train_67da58faefa5927c | 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.083, 1.179).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.128, 0.492, 0.106), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.569, 0.206).extrude(0.527))
result = result.edges().chamf... | 9 | 123 | 2.12854 |
train_e86c435a1cd912dc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.387, -0.468, -0.036), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.456, 0.38).extrude(0.318)
result = result.union(cq.Workplane(cq.Plane(origin=(0.108, -0.468, 0.074), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.663, 0.3).extrude(0.096))
result = re... | 7 | 56 | 0.296756 |
train_7c5793fcd5e727b4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.924, -0.305), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.004, 1.184).lineTo(0.074, 1.076).lineTo(0.696, 1.076).lineTo(0.861, 1.924).lineTo(0.309, 1.924).lineTo(-0.807, 1.832).lineTo(-0.861, 1.775).lineTo(-0.76, 1.666).lineTo(-0.76, 0.903).l... | 5 | 63 | 0.719703 |
train_4a87002985a4fcd5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.245, 0.274, -0.483), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.456).workplane(offset=0.15).circle(0.386).workplane(offset=0.121).circle(0.317).workplane(offset=0.131).circle(0.247).workplane(offset=0.146).circle(0.178).loft()
result = result.... | 21 | 114 | 0.315222 |
train_af302df08eafbe83 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.224, 0.291, -0.297), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.446, -0.776).lineTo(-0.446, 0.302).threePointArc((-0.415, 0.502), (-0.326, 0.684)).threePointArc((-0.086, 0.895), (0.223, 0.971)).lineTo(0.446, 0.971).lineTo(0.446, 0.525).lineTo... | 6 | 59 | 0.822401 |
train_08c9c5aec5e3aec2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.149, 0.073, -0.633), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.55, 1.128).lineTo(-0.55, 0.028).lineTo(-0.55, -1.073).lineTo(0.55, -1.073).lineTo(0.55, 1.128).close().extrude(1.06)
result = result.edges().fillet(0.141)
result = result.union(cq... | 20 | 88 | 1.278771 |
train_f5bf9561de3da81f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1, -0.306), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.497).sweep(cq.Workplane('YZ').spline([(-0.264, -0.563), (0.008, -0.417), (0.28, -0.346), (0.552, -0.381), (0.824, -0.492)]))
result = result.edges().chamfer(0.136)
result = result.cut(cq... | 18 | 69 | 0.873034 |
train_e6abb1f418cbc907 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.019, -0.476, 0.21), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.216, 0.066).lineTo(-0.216, -0.066).lineTo(-0.031, -0.066).lineTo(-0.031, -0.004).lineTo(0.216, -0.004).lineTo(0.216, 0.066).lineTo(-0.216, 0.066).close().sweep(cq.Workplane('XY').... | 9 | 49 | 0.125003 |
train_3570d1a93a873ecd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.233, 0, -0.041), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.535, 1.255).extrude(0.108)
result = result.union(cq.Workplane(cq.Plane(origin=(0.075, 0.142, 0.066), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.144).extrude(0.028))
result = result.uni... | 8 | 40 | 0.197599 |
train_12da3a25e4437efb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.069, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.478, 0.841).extrude(0.865)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.2415, -1.961), normal=(1, 0, 0), xDir=(0, 1, 0))).moveTo(-0.035, 0.04).lineTo(-0.022, 0.04).lineTo(-0.023, 0... | 24 | 96 | 0.692836 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.