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_2972524528fb53e5 | 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, 0.319).workplane(offset=1.999).rect(1.943, 0.172).loft()
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.16, -0.001), normal=(0, -1, 0), xDir=(1, 0, 0))).polarArray(0.758, 22.5, 360, 8).... | 2 | 22 | 0.677142 |
train_9bf81693690284e3 | 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.63).extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, 0.39), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.329).extrude(1.215))
result = result.cut(cq.Workplane(cq.Plane(origi... | 12 | 32 | 0.6783 |
train_ed52685f75575e76 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.002, -0.142, 0), normal=(0, 1, 0), xDir=(1, 0, 0))).moveTo(1, -0.084).lineTo(1.002, -0.132).lineTo(1, -0.181).lineTo(0.994, -0.229).lineTo(0.985, -0.276).lineTo(0.972, -0.322).lineTo(0.956, -0.367).lineTo(0.936, -0.41).lineTo(0.914, -0.452).lin... | 8 | 317 | 0.652315 |
train_be8e57e9234723a0 | import cadquery as cq
import math
result = cq.Workplane('XZ').moveTo(1, 0.162).lineTo(0.924, 0).lineTo(1, -0.162).lineTo(0.293, -0.162).lineTo(0.293, 0.162).lineTo(1, 0.162).close().revolve(angleDegrees=360, axisStart=(0, 0, 0), axisEnd=(0, 1, 0))
result = result.cut(cq.Workplane(cq.Plane(origin=(0.548, 0, 0), normal=(... | 10 | 39 | 0.574991 |
train_71e598dafa1b2906 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.058, -0.325, -0.004), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.366, 0.123).threePointArc((0.382, 0.05), (0.429, -0.056)).threePointArc((0.437, -0.186), (0.364, -0.277)).threePointArc((0.243, -0.287), (0.133, -0.247)).threePointArc((0.048, -... | 9 | 231 | 0.674226 |
train_d868008747e77378 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.091).threePointArc((0, 0.105), (0.045, 0.079)).lineTo(0.079, 0.045).threePointArc((0.091, 0.052), (0.091, 0)).lineTo(0.079, -0.045).threePointArc((0.091, -0.052), (0.045, -0.079)).lineTo(0,... | 2 | 30 | 0.070341 |
train_1eda9902cf4ef128 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.733, -0.859, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.535, 1.859).lineTo(0.324, 1.717).lineTo(0.974, 1.125).lineTo(0.649, 0.3).lineTo(-0.092, -0.141).lineTo(-0.958, 0.209).lineTo(-0.974, 1.107).lineTo(-0.535, 1.859).close().extrude(1.46... | 9 | 59 | 3.764069 |
train_410d2ab95238a010 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.16, -0.137, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.839, 0.363).threePointArc((0.839, 0.846), (0.504, -0.846)).lineTo(0.168, -0.605).lineTo(-0.839, 0.363).close().extrude(0.181, both=True)
result = result.cut(cq.Workplane(cq.Plane(orig... | 11 | 82 | 1.045321 |
train_7e398ab325f7ed48 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.001, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.615, 0.998).threePointArc((0.804, 0.938), (0.884, 0.796)).lineTo(0.884, -0.619).threePointArc((0.734, -0.886), (0.381, -0.998)).lineTo(-0.44, -0.998).threePointArc((-0.752, -0.899), (-0.884... | 2 | 23 | 1.204087 |
train_adeed11c79a4be9c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.06, 0.075, 0.222), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.046, 0.55).threePointArc((0.247, 0.466), (0.331, 0.266)).lineTo(0.331, -0.019).threePointArc((0.247, -0.22), (0.046, -0.304)).lineTo(-0.046, -0.304).threePointArc((-0.247, -0.22), ... | 7 | 45 | 1.032043 |
train_3bedefaef842ac58 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.237), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.058, 0.315).threePointArc((0.151, 0.302), (0.19, 0.271)).lineTo(0.19, 0.124).threePointArc((0.245, 0.081), (0.373, 0.063)).lineTo(0.856, 0.063).threePointArc((0.924, 0.054), (0.952, 0.031)... | 3 | 49 | 0.281245 |
train_f6210d976c07b31f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.316, -0.077, -1.786), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.197).extrude(1.39)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.316, -0.077, -0.813), normal=(0.465, 0, 0.885), xDir=(0.885, 0, -0.465))).circle(0.405).extrude(1.835))
... | 6 | 21 | 0.670892 |
train_7ea607d99a2e3865 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.003, 0, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.072, 0.124).lineTo(0.144, 0).lineTo(-0.072, -0.124).lineTo(-0.072, 0.124).close().extrude(1, both=True)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.003, 0, 1), normal=(0, 0, 1), ... | 13 | 56 | 0.923443 |
train_003ce84c428d397e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.999, 0.194, -0.113), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.026, 0.44).lineTo(0.274, 0.312).lineTo(0.393, 0.081).lineTo(0.301, -0.143).lineTo(0.167, -0.373).lineTo(-0.106, -0.344).lineTo(-0.248, -0.141).lineTo(-0.393, 0.091).lineTo(-0.249,... | 9 | 100 | 0.830626 |
train_4e7507f09bf3b843 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.466, 0, -0.604), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.177, 1.208).lineTo(0.177, 0.177).lineTo(0.932, 0.177).lineTo(0.932, 0).lineTo(0, 0).lineTo(0, 1.208).lineTo(0.177, 1.208).close().extrude(1, both=True)
result = result.cut(cq.Workpla... | 5 | 20 | 0.614461 |
train_871ab85fb115119c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.219, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.329, 0.906).threePointArc((0.757, 0.728), (0.935, 0.3)).lineTo(0.935, 0.137).threePointArc((0.757, -0.291), (0.329, -0.468)).lineTo(-0.305, -0.468).threePointArc((-0.733, -0.291), (-0.91, ... | 7 | 47 | 3.558544 |
train_0a05004503c30c0d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.002, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.482, 0.88).threePointArc((-0.421, 0.863), (-0.396, 0.823)).lineTo(-0.396, -0.379).threePointArc((-0.351, -0.449), (-0.245, -0.479)).lineTo(0.835, -0.479).threePointArc((0.951, -0.512), (1,... | 16 | 234 | 0.412131 |
train_e7695a576b6dec8d | import cadquery as cq
import math
result = cq.Workplane('XY').moveTo(0.014, 0.064).lineTo(0.04, 0.051).lineTo(0.058, 0.029).lineTo(0.065, 0).lineTo(0.058, -0.029).lineTo(0.04, -0.051).lineTo(0.014, -0.064).lineTo(-0.014, -0.064).lineTo(-0.04, -0.051).lineTo(-0.058, -0.029).lineTo(-0.065, 0).lineTo(-0.058, 0.029).lineTo... | 8 | 79 | 0.03552 |
train_e2dd1c3acc6b5a52 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.657, -0.309, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.343, 0.29).lineTo(0.343, 0.174).lineTo(-0.171, 0.174).lineTo(-0.171, 0.058).lineTo(0.343, 0.058).lineTo(0.343, -0.29).lineTo(-0.343, -0.29).lineTo(-0.343, -0.174).lineTo(0.171, -0.174... | 5 | 173 | 0.302249 |
train_d0df6aa29f96a76d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.132, -0.095), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.152, 0.19).lineTo(0.152, 0).lineTo(-0.152, 0).lineTo(-0.152, 0.19).lineTo(-0.01, 0.19).lineTo(-0.01, 0.142).lineTo(0.01, 0.142).lineTo(0.01, 0.19).lineTo(0.152, 0.19).close().extrude(... | 7 | 49 | 0.059484 |
train_b2c4ff5aa577ade8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.028, -0.04), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.003, 0.392).lineTo(0.19, 0.206).lineTo(0.19, -0.206).lineTo(0.003, -0.392).lineTo(-0.19, -0.392).lineTo(-0.19, 0.233).lineTo(-0.031, 0.233).lineTo(-0.031, 0.392).lineTo(0.003, 0.392).c... | 5 | 30 | 0.165397 |
train_3cfc2c1c84c2550f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.252, -0.118, 0.282), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.075, 0.462).lineTo(0.356, -0.323).threePointArc((-0.356, -0.462), (0.075, 0.462)).close().extrude(3.157, both=True).intersect(cq.Workplane(cq.Plane(origin=(0.252, -0.118, 0.282), n... | 12 | 131 | 1.052033 |
train_8fa2888917ebb135 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.434, -0.357, -0.29), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.562, 0.422).lineTo(0.562, 0.14).lineTo(0, 0.14).lineTo(0, -0.422).lineTo(-0.562, -0.422).lineTo(-0.562, 0.422).lineTo(0.562, 0.422).close().extrude(1.172)
result = result.union(cq... | 11 | 62 | 0.36431 |
train_2b1fc7ae41668b7b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1.057, -0.986, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.923, 1.092).lineTo(0.923, 0.058).lineTo(-0.923, 0.058).lineTo(-0.923, 1.092).lineTo(-0.756, 1.092).lineTo(-0.756, 0.383).lineTo(-0.588, 0.383).lineTo(-0.588, 1.092).lineTo(-0.42, 1.09... | 9 | 610 | 2.065353 |
train_c097ce65ad0c917a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.017, -0.114), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.605, 0.228).lineTo(0.912, 0.138).lineTo(1, 0.08).lineTo(1, 0).lineTo(0.87, 0).lineTo(0.87, 0.069).lineTo(0.774, 0.138).lineTo(0, 0.106).lineTo(0, 0.228).lineTo(0.605, 0.228).close().... | 10 | 40 | 0.21293 |
train_2764c1b8114e9975 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.148), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.062, 0.296).lineTo(0.062, 0.269).lineTo(0.357, 0.269).lineTo(0.357, 0).lineTo(-0.357, 0).lineTo(-0.357, 0.269).lineTo(-0.062, 0.269).lineTo(-0.062, 0.296).lineTo(0.062, 0.296).close().ext... | 6 | 37 | 0.264813 |
train_c0ae605117b4f47a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.157, -0.875, 0.044), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.082, 0.125).threePointArc((0.091, 0.121), (0.094, 0.113)).lineTo(0.094, -0.113).threePointArc((0.091, -0.121), (0.082, -0.125)).lineTo(-0.082, -0.125).threePointArc((-0.091, -0.1... | 3 | 16 | 0.566225 |
train_dcefaa724b09ab55 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.001, 0.061), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.289).extrude(1.06, both=True)
result = result.union(cq.Workplane(cq.Plane(origin=(0, -0.001, 0.061), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.227).extrude(1.082, both=True))
result ... | 11 | 37 | 0.096507 |
train_2d370400172b1189 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.001, -0.628), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.837, -0.125).lineTo(0.983, -0.182).lineTo(0.953, -0.304).lineTo(0.799, -0.275).lineTo(0.751, -0.391).lineTo(0.871, -0.49).lineTo(0.803, -0.596).lineTo(0.668, -0.52).lineTo(0.584, -0.61... | 3 | 83 | 0.565015 |
train_73c1920588895d6a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.234, -0.6), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.16, 0.766).lineTo(0.16, 0.255).lineTo(0.799, 0.255).lineTo(0.799, -0.766).lineTo(-0.799, -0.766).lineTo(-0.799, -0.255).lineTo(-0.479, -0.255).lineTo(-0.479, 0.255).lineTo(-0.16, 0.255)... | 9 | 38 | 0.908797 |
train_f072c639e3e1e925 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.251), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.731, 0.502).lineTo(0.92, 0.281).lineTo(1, 0.176).lineTo(1, 0).lineTo(0.914, 0).lineTo(0.914, 0.151).lineTo(0.814, 0.281).lineTo(0, 0.416).lineTo(0, 0.502).lineTo(0.731, 0.502).close().rev... | 7 | 36 | 0.441324 |
train_157b12e8bbfe4090 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.655), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 1).lineTo(1, -0.332).lineTo(-0.332, -0.332).lineTo(-0.332, -1).lineTo(-1, -1).lineTo(-1, 0.332).lineTo(-0.332, 0.332).lineTo(-0.332, 1).lineTo(1, 1).close().extrude(1.31)
result = result.... | 9 | 32 | 3.30589 |
train_4889d5b493848f7a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.172), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.177).lineTo(1, -0.133).threePointArc((0.979, -0.164), (0.948, -0.177)).lineTo(-0.954, -0.177).lineTo(-1, -0.138).lineTo(-1, 0.145).lineTo(-0.96, 0.145).lineTo(-0.96, 0.177).lineTo(1, 0.... | 9 | 49 | 0.171566 |
train_301416efc8de8402 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.107, 0.152, 0.21), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.315, 0.669).threePointArc((0.407, 0.63), (0.446, 0.538)).lineTo(0.446, -0.076).threePointArc((0.49, -0.179), (0.594, -0.223)).lineTo(0.743, -0.223).threePointArc((0.848, -0.268), (0.... | 4 | 47 | 1.272488 |
train_179683ada269db8e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.014, 0.033, -0.178), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.4, 0.835).threePointArc((0.008, 0.577), (0.461, 0.735)).threePointArc((0.557, 0.18), (0.986, -0.172)).threePointArc((0.795, -0.539), (0.458, -0.769)).lineTo(-0.551, -0.835).threeP... | 7 | 29 | 0.682553 |
train_90740818a69c6181 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.526), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.499, 0.866).lineTo(1, 0).lineTo(0.499, -0.866).lineTo(-0.499, -0.866).lineTo(-1, 0).lineTo(-0.499, 0.866).lineTo(0.499, 0.866).close().extrude(1.051)
result = result.cut(cq.Workplane(cq.Pl... | 3 | 34 | 2.552265 |
train_2c59bdc2f47756fe | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.002, 0.002, -0.15), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.952, -0.179).lineTo(0.978, -0.213).lineTo(0.967, -0.262).lineTo(0.932, -0.261).lineTo(0.867, -0.43).lineTo(0.885, -0.469).lineTo(0.86, -0.512).lineTo(0.827, -0.503).lineTo(0.719, -... | 8 | 218 | 0.697461 |
train_5a03b10a9bae4841 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.026, -0.666), normal=(0, 0, 1), xDir=(1, 0, 0))).workplane(offset=0).moveTo(-0.037, 0.771).threePointArc((0.429, 0.481), (0.778, 0.028)).lineTo(-0.039, -0.771).threePointArc((-0.337, -0.315), (-0.778, -0.043)).threePointArc((-0.27, 0.204), (... | 4 | 138 | 2.190471 |
train_73bf5979968b9caa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.675, -0.42, -0.249), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.323, -0.196).lineTo(0.316, -0.212).lineTo(0.305, -0.228).lineTo(0.29, -0.242).lineTo(0.271, -0.255).lineTo(0.249, -0.266).lineTo(0.225, -0.275).lineTo(0.198, -0.281).lineTo(0.17, ... | 18 | 322 | 1.030271 |
train_a98941425dd13668 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.079, 0.014, -0.156), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.867, 0.721).threePointArc((0.311, -0.721), (-0.867, 0.24)).lineTo(0.867, 0.721).close().extrude(0.312, taper=-9.519)
result = result.union(cq.Workplane(cq.Plane(origin=(0.021, -1.... | 4 | 77 | 0.641992 |
train_aa8f742a7d8b3fae | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.757, -0.515, -0.54), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 1.514).threePointArc((1.071, 1.071), (1.514, 0)).lineTo(0.825, 0).threePointArc((0.583, 0.583), (0, 0.825)).lineTo(0, 1.514).close().extrude(1.08)
result = result.union(cq.Workpl... | 6 | 20 | 2.530705 |
train_fc93f79d9666cd86 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.251), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(1, 0.502).lineTo(1, 0).lineTo(-1, 0).lineTo(-1, 0.502).lineTo(-0.822, 0.502).lineTo(-0.822, 0.179).lineTo(0.822, 0.179).lineTo(0.822, 0.502).lineTo(1, 0.502).close().extrude(0.367, both=Tru... | 7 | 79 | 0.356899 |
train_021992e52264b8c5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.511), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(1).extrude(1.022)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, -0.511), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.573).extrude(3.071, both=True))
result = result.union(cq.Workpl... | 15 | 41 | 1.719697 |
train_89af16ce025b13df | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.091, 0.004, 0.207), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.177, 0.909).threePointArc((0.297, 0.882), (0.41, 0.838)).threePointArc((0.513, 0.78), (0.604, 0.71)).threePointArc((0.682, 0.63), (0.747, 0.544)).threePointArc((0.798, 0.454), (0.8... | 11 | 375 | 0.477098 |
train_8e8715df5b42f083 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, 0, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.024, 0.092).lineTo(0.052, 0.079).lineTo(0.075, 0.059).lineTo(0.09, 0.03).lineTo(0.095, 0).lineTo(0.09, -0.03).lineTo(0.075, -0.059).lineTo(0.052, -0.079).lineTo(0.024, -0.092).lineTo(-0.00... | 9 | 72 | 0.018321 |
train_ebde8f916d95b9bd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.999, 0.114, 0.09), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.11, 0.124).threePointArc((0, 0.014), (-0.11, 0.124)).threePointArc((0, 0.233), (0.11, 0.124)).close().revolve(angleDegrees=180, axisStart=(-0.145, -0.132), axisEnd=(0.145, -0.132))
... | 20 | 32 | 0.094728 |
train_bb4625882223bc7e | import cadquery as cq
import math
result = cq.Workplane('XY').box(1.527, 2, 1.076)
result = result.edges().fillet(0.147)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.285).extrude(3.055, both=True))
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0), nor... | 9 | 114 | 2.111911 |
train_d712672ae8a6d105 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.123), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.861).lineTo(1, -0.861).lineTo(-1, -0.861).lineTo(-1, 0.861).lineTo(-0.523, 0.861).lineTo(-0.523, -0.392).lineTo(0.523, -0.392).lineTo(0.523, 0.861).lineTo(1, 0.861).close().extrude(0.36... | 5 | 21 | 0.792689 |
train_174c434c538246b0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.004, 0.293, -0.162), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.032, 0.595).lineTo(0.417, 0.457).lineTo(0.458, 0.064).lineTo(0.352, -0.293).lineTo(-0.018, -0.486).lineTo(-0.388, -0.277).lineTo(-0.458, 0.106).lineTo(-0.442, 0.197).lineTo(-0.369,... | 15 | 285 | 1.015569 |
train_d7b4cb5bb0849a4b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.062, 0, 0.161), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.679, 0.745).threePointArc((0.853, 0.656), (0.927, 0.445)).lineTo(0.927, -0.617).threePointArc((0.896, -0.707), (0.822, -0.745)).lineTo(0.519, -0.745).threePointArc((0.371, -0.67), (0.3... | 3 | 63 | 1.259657 |
train_2af93eb8a4e847d9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.547, 0, 0), normal=(1, 0, 0), xDir=(0, 1, 0))).moveTo(-0.828, -0.249).lineTo(-0.521, 0.987).lineTo(0.502, 1).lineTo(0.828, -0.228).lineTo(0.006, -1).close().moveTo(0.142, 0.17).lineTo(0.238, 0.17).lineTo(0.238, -0.027).lineTo(0.509, -0.027).lin... | 17 | 79 | 2.087113 |
train_cffe000a23de0516 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.328, -0.609), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.03, 0.672).threePointArc((0.103, 0.641), (0.134, 0.567)).lineTo(0.134, 0.464).threePointArc((0.153, 0.421), (0.196, 0.403)).lineTo(0.336, 0.403).threePointArc((0.383, 0.383), (0.403, ... | 7 | 108 | 0.929989 |
train_fd79b622113d06b1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.423), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.566, 1).threePointArc((0.766, 0.909), (0.846, 0.712)).lineTo(0.846, -0.859).threePointArc((0.809, -0.954), (0.716, -1)).lineTo(-0.672, -1).threePointArc((-0.796, -0.94), (-0.846, -0.817)).... | 10 | 61 | 0.752918 |
train_7ef3147037bcc6a8 | 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.74, 0.39).workplane(offset=2).rect(1.457, 0.251).loft()
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.116, 0.016, -0.815), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.167, 0.358).threePoi... | 12 | 152 | 0.628648 |
train_df44edd75da5290d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.17), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.915, 0.34).lineTo(0.92, 0.171).lineTo(1, 0.119).lineTo(1, 0).lineTo(0.803, 0).lineTo(0.803, 0.102).lineTo(0.703, 0.171).lineTo(0, 0.143).lineTo(0, 0.34).lineTo(0.915, 0.34).close().revolve... | 4 | 15 | 0.614559 |
train_8a63db0ebdec7ed8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.92), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.805, 0.199).lineTo(1, 0.004).lineTo(1, -0.199).lineTo(-0.839, -0.199).lineTo(-0.839, -0.038).lineTo(-1, -0.038).lineTo(-1, 0.004).threePointArc((-0.942, 0.141), (-0.805, 0.199)).lineTo(0.80... | 9 | 22 | 0.808842 |
train_b98b6416efae8fcf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.454), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.73, 0.498).threePointArc((0.913, 0.419), (1, 0.232)).lineTo(1, -0.313).threePointArc((0.937, -0.443), (0.81, -0.498)).lineTo(-0.903, -0.498).threePointArc((-0.966, -0.472), (-1, -0.409)).l... | 16 | 118 | 0.784228 |
train_6e7b9b79155a36f7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.758, 0.789, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.148, 1.789).lineTo(0.391, 1.282).lineTo(0.94, 1.16).lineTo(0.622, 0.697).lineTo(0.792, 0.16).lineTo(0.231, 0.204).lineTo(-0.148, -0.211).lineTo(-0.391, 0.296).lineTo(-0.94, 0.417).line... | 14 | 279 | 2.106916 |
train_7d0dc364a0b47f58 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.055, 0.558, 0.059), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1.784, 1.427).threePointArc((-0.357, 0.357), (1.071, 0.357)).lineTo(1.368, 0.357).threePointArc((1.412, 0.342), (1.427, 0.297)).lineTo(1.427, 0).threePointArc((2.141, 0), (2.498, -0.... | 19 | 375 | 2.192788 |
train_29acd33509faec08 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.003, -0.289), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.361).lineTo(1, 0.269).threePointArc((0.974, 0.251), (0.933, 0.243)).lineTo(-0.332, 0.243).threePointArc((-0.546, 0.204), (-0.637, 0.112)).lineTo(-0.637, -0.125).threePointArc((-0.5... | 5 | 32 | 0.374965 |
train_55e0bf12c8dc2071 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.011, 0, -0.14), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(1).extrude(0.321)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.011, 0, -0.14), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.829).extrude(0.958, both=True))
result = result.union(cq.... | 16 | 71 | 0.674379 |
train_07d933423143b99b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.266, 0, -0.128), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.694, -0.121).lineTo(0.719, -0.145).lineTo(0.71, -0.183).lineTo(0.68, -0.182).lineTo(0.639, -0.296).lineTo(0.657, -0.325).lineTo(0.638, -0.36).lineTo(0.61, -0.353).lineTo(0.541, -0.452... | 6 | 125 | 0.331415 |
train_5fe2192d5bad5490 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.219, -0.314, -0.575), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.062, 0.251).lineTo(0.062, 0.084).lineTo(0.31, 0.084).lineTo(0.31, -0.084).lineTo(0.186, -0.084).lineTo(0.186, -0.251).lineTo(-0.31, -0.251).lineTo(-0.31, -0.084).lineTo(-0.186, -0... | 20 | 418 | 0.562166 |
train_94e8601b2c23155b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.524, -0.049, -0.623), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 1.048).threePointArc((0.742, 0.742), (1.048, 0)).lineTo(0.307, 0).threePointArc((0.218, 0.218), (0, 0.307)).lineTo(0, 1.048).close().extrude(0.917)
result = result.union(cq.Work... | 9 | 77 | 1.268348 |
train_f32ec1dfef2e124a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.297, -0.105, 0.177), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.131, 0.387).lineTo(0.118, 0.303).threePointArc((0.148, 0.261), (0.179, 0.219)).lineTo(0.181, 0.135).threePointArc((0.156, 0.097), (0.151, 0.052)).lineTo(0.131, -0.032).threePointA... | 3 | 71 | 0.406317 |
train_7312d146826db4e7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.091, 0.022), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.909, 0.138).lineTo(0.544, 0).lineTo(0.909, -0.138).lineTo(0.544, -0.138).lineTo(0.544, 0.138).lineTo(0.909, 0.138).close().revolve(angleDegrees=360, axisStart=(0, 0, 0), axisEnd=(0, 1... | 15 | 176 | 0.16104 |
train_f1cd176cde358027 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.819, -0.639, -0.988), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 1.639).threePointArc((1.159, 1.159), (1.639, 0)).lineTo(1.218, 0).threePointArc((0.861, 0.861), (0, 1.218)).lineTo(0, 1.639).close().extrude(1.976)
result = result.union(cq.Work... | 5 | 52 | 2.248328 |
train_5d0da45a26e41baf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.007, -0.176), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.063, 0.993).threePointArc((0.425, 0.815), (0.755, 0.58)).threePointArc((0.869, 0.337), (0.907, 0.072)).threePointArc((0.684, -0.132), (0.677, -0.435)).threePointArc((0.403, -0.572), (0... | 2 | 12 | 0.845339 |
train_ea8f8cdca748ab26 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.999), normal=(0, 0, 1), xDir=(1, 0, 0))).workplane(offset=0).moveTo(0.033, 0.283).lineTo(0.18, 0.222).threePointArc((0.201, 0.199), (0.224, 0.178)).lineTo(0.281, 0.042).threePointArc((0.28, 0.009), (0.281, -0.025)).lineTo(0.231, -0.152).t... | 1 | 55 | 0.367611 |
train_92f154b511d9eb7a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.594), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.81, 0.899).threePointArc((0.879, 0.875), (0.908, 0.816)).lineTo(0.908, -0.48).threePointArc((0.76, -0.774), (0.412, -0.899)).lineTo(-0.614, -0.899).threePointArc((-0.82, -0.825), (-0.908, ... | 22 | 232 | 2.60021 |
train_ce675c62520e5f9e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.922, 0, -0.241), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.063, 0).threePointArc((0, -0.063), (-0.063, 0)).threePointArc((0, 0.063), (0.063, 0)).close().transformed(offset=(0.089, -0.168, 0.063), rotate=(0, 10, 0)).moveTo(0.162, 0).threePoint... | 6 | 19 | 0.164229 |
train_c40dffd495a974c0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-2.142, 0, -7.056), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(1.288).extrude(7.017)
result = result.union(cq.Workplane(cq.Plane(origin=(-2.142, 0, -2.144), normal=(0.647, 0, 0.762), xDir=(0.762, 0, -0.647))).circle(0.501).extrude(3.699))
result = ... | 9 | 26 | 1.264354 |
train_5e4d3d45f740ad69 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.391, -0.089), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.452, 0.175).lineTo(0.452, 0).lineTo(-0.452, 0).lineTo(-0.452, 0.175).lineTo(-0.316, 0.175).lineTo(-0.316, 0.135).lineTo(0.316, 0.135).lineTo(0.316, 0.175).lineTo(0.452, 0.175).close()... | 7 | 59 | 0.210371 |
train_cac0059db5bdeb64 | 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.301, 0.314).workplane(offset=2).rect(0.547, 0.335).loft()
final_result = result
| 1 | 6 | 0.597037 |
train_b735d00b50a608ec | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.177, 0, -0.16), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.165, 0.753).lineTo(-0.165, 0.452).lineTo(0.165, 0.452).lineTo(0.165, 0.151).lineTo(0.823, 0.151).lineTo(0.823, -0.452).lineTo(0.494, -0.452).lineTo(0.494, -0.753).lineTo(0.165, -0.753)... | 11 | 26 | 0.350087 |
train_1bbbd18b79a9db46 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.175, -0.06, 0.446), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.794, 0.15).threePointArc((0.953, 0.15), (1.112, -0.15)).lineTo(0.953, -0.15).lineTo(-0.794, -0.15).threePointArc((-1.112, 0), (-0.794, 0.15)).lineTo(0.794, 0.15).close().moveTo(-0.8... | 21 | 32 | 0.132708 |
train_c5598db87701bcec | import cadquery as cq
import math
result = cq.Workplane('XY').moveTo(-0.007, 0.047).lineTo(0.02, 0.043).lineTo(0.04, 0.025).lineTo(0.048, 0).lineTo(0.04, -0.025).lineTo(0.02, -0.043).lineTo(-0.007, -0.047).lineTo(-0.032, -0.036).lineTo(-0.046, -0.013).lineTo(-0.046, 0.013).lineTo(-0.032, 0.036).lineTo(-0.007, 0.047).cl... | 5 | 17 | 0.013852 |
train_66fd29d240f76a0e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.003, 0, -0.335), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.173, 0.977).lineTo(0.34, 0.932).threePointArc((0.391, 0.679), (0.498, 0.858)).lineTo(0.639, 0.762).threePointArc((0.599, 0.505), (0.762, 0.639)).lineTo(0.858, 0.498).threePointArc((0.... | 10 | 159 | 0.900422 |
train_7c9fff12e84b086d | import cadquery as cq
import math
result = cq.Workplane('XY').moveTo(0, 0.121).lineTo(0.061, 0.106).lineTo(0.106, 0.061).lineTo(0.121, 0).lineTo(0.106, -0.061).lineTo(0.061, -0.106).lineTo(0, -0.121).lineTo(-0.061, -0.106).lineTo(-0.106, -0.061).lineTo(-0.121, 0).lineTo(-0.106, 0.061).lineTo(-0.061, 0.106).lineTo(0, 0.... | 8 | 50 | 0.055865 |
train_d614c40860b23a49 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.005, 0.01, 0.027), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.202, 0.233).lineTo(0.43, 0.004).lineTo(0.43, -0.233).lineTo(-0.43, -0.233).lineTo(-0.43, 0.004).lineTo(-0.202, 0.233).lineTo(0.202, 0.233).close().extrude(0.238, both=True)
result = ... | 15 | 120 | 0.226365 |
train_62588e4e55e72035 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.015, 0.001), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.124, 0.972).threePointArc((0.575, 0.424), (0.233, 0.15)).lineTo(0.176, 0.012).lineTo(0.26, -0.112).lineTo(0.667, -0.386).lineTo(0.732, -0.511).threePointArc((0.218, -0.984), (-0.218, -0... | 1 | 42 | 0.213946 |
train_e6dced0fd5de43a7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.75), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.875, 1).threePointArc((0.947, 0.97), (0.977, 0.899)).lineTo(0.977, -0.794).threePointArc((0.915, -0.939), (0.769, -1)).lineTo(-0.651, -1).threePointArc((-0.88, -0.904), (-0.977, -0.678)).li... | 12 | 41 | 3.154097 |
train_7ed122d8df09c337 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.19, -0.736), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.12, 1.19).threePointArc((0.6, 0.991), (0.799, 0.511)).lineTo(0.799, -0.13).threePointArc((0.6, -0.611), (0.12, -0.809)).lineTo(-0.12, -0.809).threePointArc((-0.6, -0.611), (-0.799, -0.... | 4 | 10 | 4.12033 |
train_896aaf42fc493d4c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-2.057, 0.031, 0.051), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.772, 1.669).threePointArc((1.874, 1.594), (1.918, 1.416)).lineTo(1.918, 0.906).threePointArc((1.858, 0.66), (1.717, 0.556)).lineTo(1.393, 0.556).threePointArc((1.312, 0.497), (1.27... | 4 | 6 | 2.592055 |
train_c2387fc7f179f83c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.211, 0, -0.847), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.193, 1.694).lineTo(0.193, 0.193).lineTo(0.422, 0.193).lineTo(0.422, 0).lineTo(0, 0).lineTo(0, 1.694).lineTo(0.193, 1.694).close().extrude(1, both=True)
result = result.cut(cq.Workpla... | 6 | 32 | 0.562802 |
train_9f3e841dbe91d80b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.029, -0.281), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.187, 0.213).threePointArc((0.212, 0.203), (0.223, 0.177)).lineTo(0.223, -0.166).lineTo(0.176, -0.213).lineTo(-0.154, -0.213).threePointArc((-0.203, -0.193), (-0.223, -0.144)).lineTo(-... | 9 | 41 | 0.181997 |
train_bab8bb262fd1ae55 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.147, -0.146, -0.024), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.437, 0.834).threePointArc((-0.318, 0.802), (-0.267, 0.728)).lineTo(-0.267, 0.384).threePointArc((-0.164, 0.231), (0.082, 0.167)).lineTo(0.525, 0.167).threePointArc((0.719, 0.115... | 12 | 129 | 0.287382 |
train_6152e4086530ec5a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.034, 0.529, 0.069), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.816, 0.466).threePointArc((0.898, 0.432), (0.933, 0.351)).lineTo(0.933, 0.071).threePointArc((0.912, 0.021), (0.862, 0)).lineTo(0.625, 0).threePointArc((0.513, -0.047), (0.466, -0.... | 8 | 185 | 0.406244 |
train_df1f3548dd730185 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.655, 0, -0.116), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.297, 0.231).lineTo(0.297, 0).lineTo(-0.297, 0).lineTo(-0.297, 0.231).lineTo(-0.178, 0.231).lineTo(-0.178, 0.118).lineTo(0.178, 0.118).lineTo(0.178, 0.231).lineTo(0.297, 0.231).close()... | 8 | 60 | 0.22364 |
train_75e4d30489888419 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.111), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.631, 0.674).threePointArc((0.891, 0.566), (1, 0.306)).lineTo(1, -0.511).threePointArc((0.952, -0.625), (0.837, -0.674)).lineTo(-1, -0.674).lineTo(-1, 0.674).lineTo(0.631, 0.674).close().ex... | 17 | 44 | 0.356112 |
train_e44dd8ffb71ad896 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0, -0.236), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.27, 0.471).lineTo(0.27, 0.27).lineTo(2, 0.27).lineTo(2, 0).lineTo(0, 0).lineTo(0, 0.471).lineTo(0.27, 0.471).close().extrude(0.251, both=True)
result = result.cut(cq.Workplane(cq.Plane(o... | 5 | 30 | 0.255232 |
train_773b357e779e41b3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.015), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.988, 0.176).lineTo(1, -0.169).lineTo(0.305, -0.176).lineTo(0.304, -0.061).lineTo(0.875, -0.055).lineTo(0.874, 0.06).lineTo(0.302, 0.054).lineTo(0.301, 0.169).lineTo(0.988, 0.176).close().r... | 9 | 318 | 0.882974 |
train_8bb5dcce437cf8a2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.05), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.925, 0.3).lineTo(1, 0.233).lineTo(1, -0.201).lineTo(0.893, -0.3).lineTo(-0.951, -0.3).threePointArc((-0.98, -0.288), (-1, -0.259)).lineTo(-1, 0.228).lineTo(-0.92, 0.228).lineTo(-0.92, 0.3).... | 8 | 37 | 0.189216 |
train_26d76fb71941ba95 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.076, 0, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.349).extrude(0.893, both=True)
result = result.union(cq.Workplane(cq.Plane(origin=(0.076, 0, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.249).extrude(1, both=True))
result = result.cut(... | 8 | 39 | 0.766265 |
train_d07e12c6fbb9f77a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.302), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.87, 0.838).lineTo(0.87, 0.721).lineTo(1, 0.721).lineTo(1, -0.771).lineTo(0.92, -0.771).lineTo(0.92, -0.838).lineTo(-0.873, -0.838).lineTo(-0.873, -0.724).lineTo(-1, -0.724).lineTo(-1, 0.74... | 14 | 111 | 0.724458 |
train_e0109b1ac37d8f2f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.488, -0.726, -0.247), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.366, 1.405).threePointArc((0.434, 1.277), (0.441, 1.133)).lineTo(0.508, 0.86).threePointArc((0.46, 0.684), (0.298, 0.591)).lineTo(0.434, 0.32).threePointArc((0.439, 0.173), (0.36... | 13 | 607 | 1.016667 |
train_d231f6aa20eec072 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.119, 0.777, 0.159), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.205, 0.039).threePointArc((0.031, 0.323), (0.205, -0.023)).lineTo(0.205, -0.291).threePointArc((0.192, -0.323), (0.116, -0.296)).lineTo(0.116, -0.004).threePointArc((0.104, 0.2), ... | 3 | 23 | 0.130293 |
train_8d37552a8bd80349 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.004, -0.738, -0.082), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.173, 1.738).threePointArc((0.25, 1.584), (0.527, 1.052)).threePointArc((0.495, 0.452), (0.173, 0.137)).threePointArc((-0.25, 0.291), (-0.527, 0.824)).threePointArc((-0.495, 1.42... | 3 | 40 | 2.425505 |
train_4133987a8c563393 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.597, 0.526, 0.017), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.662, 0.981).threePointArc((0.909, 0.867), (1.017, 0.702)).threePointArc((0.971, 0.509), (0.777, 0.319)).threePointArc((0.464, 0.161), (0.081, 0.058)).threePointArc((-0.315, 0.026),... | 10 | 811 | 1.446594 |
train_cd6953c9b88bcafe | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.201), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.473).lineTo(1, -0.473).lineTo(-1, -0.473).lineTo(-1, 0.413).threePointArc((-0.981, 0.456), (-0.938, 0.473)).lineTo(1, 0.473).close().extrude(0.113)
result = result.union(cq.Workplane(cq... | 11 | 172 | 0.210271 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.