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_94874441b084c14f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.085, 0.016, -0.17), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.67, 0.019).lineTo(0.195, 0.618).lineTo(-0.528, 0.415).lineTo(-0.534, -0.372).lineTo(0.221, -0.651).close().moveTo(-0.027, 0.411).lineTo(0.025, 0.409).lineTo(0.026, 0.281).lineTo(0....
10
103
0.220017
train_51c5aa63c6e6287d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.074, -0.006, 0.059), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.096).threePointArc((-0.098, 0.017), (-0.043, -0.096)).threePointArc((-0.024, -0.078), (0, -0.072)).threePointArc((0.024, -0.078), (0.043, -0.096)).threePointArc((0.098, 0.017),...
10
63
0.474797
train_f4bf62647fc6e7df
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.248, 0, 0.166), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.376, 0.652).lineTo(-0.251, 0.485).lineTo(-0.251, 0.585).lineTo(-0.174, 0.485).lineTo(-0.125, 0.419).lineTo(0.125, 0.419).lineTo(0.125, 0.32).lineTo(0.251, 0.485).lineTo(0.174, 0.485).l...
7
68
0.543849
train_23afc209dbb8ae75
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.663, -0.016, -0.183), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.161, 0.161).extrude(0.305) result = result.union(cq.Workplane(cq.Plane(origin=(0.866, -0.016, -0.09), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.268, 0.041).extrude(0.12)) result = r...
9
53
0.035082
train_685d92c19a850616
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.053, 0, -0.541), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.167, 2).extrude(1.082) result = result.cut(cq.Workplane(cq.Plane(origin=(0.48, 0.14, 0.224), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.08, 2.4).extrude(0.116)) result = result.cut(cq.Wor...
15
132
2.34514
train_b85497e24e72159f
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.611).extrude(0.537) result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.269, -1.316), normal=(0, 1, 0), xDir=(1, 0, 0))).rect(0.89, 0.145).center(0.041, 0.005).circle(0.022).center(-0....
16
65
1.303056
train_0620383d0b60773d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.363, -0.338, -0.059), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.442, 1.203).threePointArc((0.442, -0.586), (-0.2, 1.304)).threePointArc((-0.324, 1.261), (-0.442, 1.203)).close().extrude(0.726) result = result.edges().fillet(0.127) result = r...
4
32
2.151305
train_4cf77c170ac863e1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.379, 0, 1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.29, -0.192).threePointArc((0.348, 0), (0.29, 0.192)).lineTo(0.225, 0.127).threePointArc((0.182, 0.182), (0.127, 0.225)).lineTo(0.192, 0.29).threePointArc((0, 0.348), (-0.192, 0.29)).lineTo...
3
36
0.186242
train_bf64bcaaace17550
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.782, 0, -0.001), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.418, 0.782).lineTo(-0.428, 0.782).lineTo(-0.436, 1.514).lineTo(0.436, 1.825).lineTo(0.436, 1.226).lineTo(-0.418, 0.782).close().revolve(angleDegrees=360, axisStart=(-0.418, 0.782), a...
10
25
1.722707
train_fe646e82815a071c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.263, 0, 0.09), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.322, 0.176).lineTo(0.373, 0.176).lineTo(0.373, 0.292).lineTo(0.109, 0.336).lineTo(0.105, 0.337).threePointArc((0.072, 0.357), (0.059, 0.393)).lineTo(0.059, 0.819).lineTo(0.418, 0.931)....
13
54
1.059655
train_d6daafc2f00ac80e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.302, -0.213, -0.053), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.692, -0.696).lineTo(0.701, -0.697).lineTo(0.684, 0.676).lineTo(-0.698, 0.706).close().moveTo(0.007, 0.282).lineTo(-0.016, 0.254).lineTo(-0.062, 0.233).lineTo(-0.071, 0.192).line...
13
110
0.289938
train_799cc632e57a6682
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.739, -0.84, -0.006), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.522, 0.059).extrude(0.07) result = result.union(cq.Workplane(cq.Plane(origin=(0.818, -0.843, 0.059), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.021).extrude(0.071)) result = result....
7
69
0.027304
train_dbced29b844d697c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.029, 0.001, -0.366), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.951, 0.012).lineTo(0.675, 0.698).lineTo(0.021, 0.999).lineTo(-0.715, 0.667).lineTo(-1.008, 0.004).lineTo(-0.668, -0.694).lineTo(0.003, -1.001).lineTo(0.704, -0.691).close().moveTo(...
10
72
1.538574
train_51301255d937f3f8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.641, -0.926), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.051, 1.162).threePointArc((0, 0.119), (-1.051, 1.162)).lineTo(1.051, 1.162).close().extrude(0.954) result = result.edges().fillet(0.269) result = result.union(cq.Workplane(cq.Plane(or...
11
139
1.684125
train_5bfb73a5d3113671
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.001, 0, -0.147), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.677).sweep(cq.Workplane('XZ').spline([(-0.894, -0.535), (-0.446, -0.528), (0.001, -0.542), (0.448, -0.586), (0.895, -0.652)])) result = result.union(cq.Workplane(cq.Plane(origin=(-0.34...
2
9
2.773029
train_0c0c45fd4684f1df
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -1, 0.375), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.104, 0.103).lineTo(0.381, -0.18).lineTo(0.407, -0.193).lineTo(0.399, -0.191).lineTo(-0.407, 0.082).lineTo(-0.402, 0.083).lineTo(-0.328, 0.18).lineTo(-0.171, 0.1).lineTo(-0.148, 0.102).li...
2
17
0.036196
train_d6e78bc4d682bf42
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.445, -0.606), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1, 0.016).lineTo(-1, 0.875).lineTo(1, 0.875).lineTo(1, 0.016).lineTo(-1, 0.016).close().extrude(1.249) result = result.edges().chamfer(0.239) result = result.union(cq.Workplane(cq.Plan...
8
59
1.47288
train_002ba8271c40843d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.207, 0.02, -0.626), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.586, 1.407).extrude(0.925) result = result.union(cq.Workplane(cq.Plane(origin=(-0.103, -0.068, 0.423), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.207, -0.096).lineTo(0.207, 0.096).l...
13
55
1.809315
train_7de62eb889209a86
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.087), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.969).extrude(0.145) result = result.union(cq.Workplane(cq.Plane(origin=(-0.8 + 0.4, -0.788 + 0.2625, 0.059), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.164, -0.122).lineTo(0.164, -0.114)...
7
66
0.574276
train_94e08c019ca65671
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.821, -0.947), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1, 0.986).lineTo(-0.195, 0.986).lineTo(0.413, 0.119).lineTo(1, 0.144).lineTo(0.041, 0.986).lineTo(-0.571, 1.524).lineTo(-1, 1.476).lineTo(-1, 0.986).close().extrude(1.322) result = res...
2
17
1.347163
train_537dadc2def41d09
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.346, 0.035, -0.308), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.346, 0.005).lineTo(-0.346, 0.032).lineTo(0.346, 0.032).lineTo(0.346, 0.005).lineTo(-0.346, 0.005).close().revolve(angleDegrees=270, axisStart=(-0.346, 0.005), axisEnd=(-0.346, 0.0...
3
36
0.103185
train_efe67f981adb12c8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.261, 0.304, 0.111), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.155, 0.187).lineTo(-0.148, 0.186).lineTo(-0.148, -0.145).lineTo(0.148, -0.145).lineTo(0.148, 0.133).lineTo(0.15, 0.133).lineTo(0.155, 0.132).lineTo(0.155, -0.187).lineTo(0.148, -0....
5
53
0.372372
train_d86726aadfbcb9f7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.083, -0.501), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.5, 0.159).lineTo(0.5, 0.006).lineTo(-0.5, 0.006).lineTo(-0.5, 0.159).lineTo(0.5, 0.159).close().revolve(angleDegrees=270, axisStart=(0.5, 0.159), axisEnd=(0.5, 0.006)) result = resul...
3
78
0.35364
train_1dfb8b43b2e49083
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.046, -0.311, -0.076), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.22, 0.22).extrude(0.152) result = result.union(cq.Workplane(cq.Plane(origin=(-0.046, -0.698, -0.032), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.098, 0.604).extrude(0.063)) result =...
15
153
0.015919
train_aefb1d58ed91153f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.045, 0.063, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.69, 0.69).extrude(1.577) result = result.union(cq.Workplane(cq.Plane(origin=(0.451, 0.022, -0.316), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.217, 0.523).lineTo(0.351, 0.729).lineTo(0...
7
35
0.85022
train_7ab3e9598858cffe
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.089, -0.045, 0.245), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.147, -0.45).lineTo(-0.147, 0.584).lineTo(0, 0.584).lineTo(0, 0.766).lineTo(0.147, 0.766).lineTo(0.147, -0.45).lineTo(-0.147, -0.45).close().extrude(0.199) result = result.edges()...
7
71
0.520898
train_516c7a232118be29
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.032, 0.844, -0.447), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.008, -0.115).threePointArc((0.129, 0.115), (-0.129, 0.084)).lineTo(0.01, 0.084).threePointArc((0.062, 0.032), (0.01, -0.021)).lineTo(-0.129, -0.021).threePointArc((-0.075, -0.089)...
4
24
0.105058
train_31f205522a54d2b8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.157, 0.857, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.387).workplane(offset=0.154).circle(0.355).workplane(offset=0.124).circle(0.324).workplane(offset=0.162).circle(0.292).workplane(offset=0.164).circle(0.26).workplane(offset=0.138).cir...
17
83
0.34688
train_b1a201c5f3d59b47
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.134, -0.12, 0.216), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.352).sweep(cq.Workplane('XY').spline([(-0.134, 0.334), (0.072, 0.6), (0.278, 0.689), (0.484, 0.6), (0.69, 0.334)])) result = result.edges().chamfer(0.108) result = result.union(cq...
6
26
0.34796
train_4bded3579d8c34d0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1, -0.012, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.033, -0.132).lineTo(0.264, -0.132).lineTo(0.198, -0.066).lineTo(0, 0.132).lineTo(-0.033, 0.099).lineTo(-0.099, 0.099).lineTo(-0.264, -0.066).lineTo(-0.231, -0.099).lineTo(-0.198, -0.132)....
1
11
0.049081
train_6cc43219bd83ce53
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.007, -0.182, 0.44), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.035, -0.487).threePointArc((0.192, -0.532), (0.239, -0.306)).lineTo(0.363, -0.007).threePointArc((0.481, 0.216), (0.239, 0.291)).threePointArc((0.164, 0.532), (-0.059, 0.414)).th...
7
86
0.980383
train_17ae5956d8696d2a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.351), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.988, 2).extrude(0.702) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.004, 0.501, -0.119), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.41, 1.051).extrude(0.399)) result = result.cut(cq.W...
21
43
2.331939
train_0b293a3d70f46af6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.838, 0.201, 0.071), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.929, 0.091).lineTo(-0.929, 0.091).lineTo(-0.929, 1.585).lineTo(0.929, 1.585).lineTo(0.929, 0.091).close().extrude(0.355) result = result.edges().chamfer(0.061) result = result.unio...
14
83
0.900938
train_6e48d1cd29ee061d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1, 0, -0.321), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.251).sweep(cq.Workplane('XZ').spline([(-0.465, -0.531), (-0.251, -0.358), (-0.036, -0.272), (0.177, -0.272), (0.392, -0.358), (0.606, -0.531)])) result = result.edges().fillet(0.051) res...
9
38
0.189249
train_75d0348ca15f7f01
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.569, 0, -0.025), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.862, 0.086).extrude(0.09) result = result.union(cq.Workplane(cq.Plane(origin=(0.449, -0.001, 0.061), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.031).extrude(0.079)) result = result.unio...
5
21
0.006733
train_39db9efb18e8a242
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.168, -0.116), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1.026, 0.013).threePointArc((0, 0.323), (1.026, 0.013)).lineTo(-1.026, 0.013).close().extrude(0.308) result = result.edges().chamfer(0.031) result = result.union(cq.Workplane(cq.Plane(...
9
40
0.131919
train_d556c594f8d57bb6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1, 0.835, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.861, 1.534).lineTo(-0.861, 0.055).lineTo(-0.129, 0.788).lineTo(0.861, 0.788).lineTo(0.861, 1.534).lineTo(-0.861, 1.534).close().extrude(2) result = result.cut(cq.Workplane(cq.Plane(origin...
3
37
2.977788
train_0618bd6ad844ac59
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.18, -0.089, -0.427), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.252, 0.002).lineTo(-0.252, 0.06).threePointArc((-0.327, 0.059), (-0.402, 0.057)).threePointArc((-0.384, 0.062), (-0.365, 0.067)).threePointArc((-0.309, 0.076), (-0.252, 0.079)).t...
23
310
0.234984
train_7227d05e696ee180
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.599, -0.189, -0.074), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.401, 0.802).threePointArc((0.401, 0), (-0.401, -0.802)).lineTo(-0.401, -0.401).threePointArc((0, 0), (-0.401, 0.401)).lineTo(-0.401, 0.802).close().sweep(cq.Workplane('XZ').spl...
12
39
1.210735
train_ce44332f75a38343
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.262), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.77, -0.333).lineTo(-0.385, -1).lineTo(0.385, -1).lineTo(0.77, -0.333).lineTo(0.385, 0.333).lineTo(-0.77, 1).lineTo(-0.77, -0.333).close().circle(0.218).extrude(0.139) result = result.cut(...
5
32
0.389716
train_34fc08135e6e8dcb
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.497, 0.998, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).lineTo(-0.137, -0.266).threePointArc((-0.147, -0.283), (-0.162, -0.296)).threePointArc((-0.224, -0.306), (-0.269, -0.266)).threePointArc((-0.157, -0.183), (-0.178, -0.17)).threePointArc((-0.204,...
2
13
0.004793
train_13811d99890ac1d7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1, -0.275, -0.125), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.496, 0.206).lineTo(-0.496, 0.488).threePointArc((-0.428, 0.655), (-0.261, 0.723)).lineTo(0.261, 0.723).threePointArc((0.428, 0.655), (0.496, 0.488)).lineTo(0.496, 0.206).lineTo(-0.4...
17
95
0.706958
train_b06f32f28789a6a0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.36, -0.093, -0.011), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.13, -0.043).lineTo(-0.13, 0.223).lineTo(0.13, 0.223).lineTo(0.13, -0.043).lineTo(-0.13, -0.043).close().revolve(angleDegrees=360, axisStart=(-0.13, -0.043), axisEnd=(-0.13, 0.223)...
7
28
0.090591
train_3e3c433e02637997
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.08), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.869, 2).extrude(0.159) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.747 + 0.3735, -0.8 + 0.16, -0.104), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.083, -0.072).lineTo(0, 0.072).lineT...
12
266
0.564571
train_a1e37941cd16e2b3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.457, -1, -0.388), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.371, 0.839).lineTo(-0.371, -0.24).lineTo(0.371, -0.24).lineTo(0.371, 0.839).lineTo(-0.371, 0.839).close().extrude(2) result = result.edges().fillet(0.047) result = result.cut(cq.Wor...
36
138
1.416668
train_b2ef7f1f12ad1b31
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.106, -0.189, -0.156), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.753, 0.348).lineTo(0.753, 0.242).lineTo(0.844, 0.242).lineTo(0.844, 0.136).lineTo(0.753, 0.136).lineTo(0.753, 0.075).lineTo(0.48, 0.075).lineTo(0.48, 0.029).lineTo(-0.844, 0.029)...
11
106
0.093477
train_734ee2eb637f4b58
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1, -0.359, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.43, 0.454).threePointArc((0, 0.883), (0.43, 0.454)).lineTo(0, -0.292).lineTo(-0.43, 0.454).close().extrude(2) result = result.edges().chamfer(0.145) result = result.cut(cq.Workplane(cq.P...
14
75
1.095521
train_8d625679125d75e8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.544, 0.067, 0.226), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.131, -0.06).lineTo(0.131, 0.202).lineTo(-0.066, 0.202).threePointArc((-0.085, 0.155), (-0.131, 0.136)).lineTo(-0.131, 0.005).threePointArc((-0.085, -0.014), (-0.066, -0.06)).lineT...
11
151
0.040086
train_a168cc24b4f0b9c4
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.281, -0.008, -0.605), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.395, -0.2).lineTo(0.395, 0.216).lineTo(-0.309, 0.216).threePointArc((-0.37, 0.191), (-0.395, 0.13)).lineTo(-0.395, 0.008).threePointArc((-0.384, -0.048), (-0.352, -0.096)).lineTo...
7
54
0.255436
train_89410a1e71edaf99
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.798, 1.38).extrude(1.531) result = result.edges().chamfer(0.13) result = result.faces('>Z').shell(-0.093) result = result.union(cq.Workplane(cq.Plane(origin=(0.134, -0.066, 0.487), normal=(0, 0,...
8
75
0.52784
train_872a976baba0f3c0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.186, 0, 0.065), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.089, -0.09).threePointArc((-0.07, -0.093), (-0.05, -0.098)).lineTo(0.089, 0.056).lineTo(0.085, 0.098).lineTo(-0.089, -0.09).close().extrude(0.075) result = result.cut(cq.Workplane(cq...
12
62
0.009669
train_246bfbfc095320cf
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.238, 0.148, 0.334), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.039, 0.21).threePointArc((0, 0.205), (-0.039, 0.21)).lineTo(-0.103, -0.081).threePointArc((0, -0.21), (0.103, -0.081)).lineTo(0.039, 0.21).close().transformed(offset=(0.118, -0.122...
3
38
0.076063
train_830c04b6140be102
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.571, 0, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-1, 0.571).lineTo(1, 0.571).lineTo(1, 0.015).lineTo(-1, 0.015).lineTo(-1, 0.571).close().revolve(angleDegrees=360, axisStart=(-1, 0.571), axisEnd=(1, 0.571)) result = result.edges().chamfer(...
13
58
1.35906
train_ad4caf62bbeaf4a5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.464, -0.391, -0.072), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.464, 0.718).lineTo(0.464, -0.486).lineTo(-0.464, -0.486).lineTo(-0.464, 0.718).lineTo(-0.404, 0.718).lineTo(-0.404, 0.277).lineTo(0.404, 0.277).lineTo(0.404, 0.718).lineTo(0.464,...
8
94
1.627648
train_19d701e66cc2d244
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.012, -0.016, -0.359), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.012, 0.014).lineTo(0.72, 0.736).lineTo(-0.018, 1.012).lineTo(-0.685, 0.703).lineTo(-0.988, 0.017).lineTo(-0.714, -0.741).lineTo(-0.002, -0.98).lineTo(0.733, -0.692).close().cente...
11
83
1.395218
train_87052445487fbdf1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.399, -0.198, -0.563), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.939, 1.002).extrude(1.082) result = result.cut(cq.Workplane(cq.Plane(origin=(0.532, -0.128, 0.035), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.078).extrude(0.375)) result = result....
16
75
0.865648
train_9cdb6d054696c202
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.246, 0.2, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.632, 0.735).lineTo(-0.632, 0.754).lineTo(-0.737, 0.754).lineTo(-0.737, 0.677).lineTo(-0.718, 0.677).lineTo(-0.718, 0.649).lineTo(-0.737, 0.649).lineTo(-0.737, -0.271).lineTo(-0.661, -0...
5
53
0.751383
train_86c1abb37a833272
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.611, 0.527), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.465, 0.664).threePointArc((-0.465, 0), (0.465, -0.664)).lineTo(0.465, -0.28).threePointArc((-0.123, 0), (0.465, 0.28)).lineTo(0.465, 0.664).close().sweep(cq.Workplane('YZ').spline([(-0....
7
23
0.996643
train_8dc1876491386abe
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.512, 0.006, 0.119), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.11, 0.566).threePointArc((0.02, 0.316), (0.11, 0.048)).lineTo(-0.11, 0.048).lineTo(-0.11, 0.566).close().revolve(angleDegrees=270, axisStart=(0, 0), axisEnd=(0.18, 0)) result = r...
10
72
0.151737
train_56599dbea1d8f668
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.008, -0.58, 0.06), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.261, 0.553).lineTo(0.261, 0.587).lineTo(0.261, -0.42).lineTo(-0.261, -0.42).lineTo(-0.261, 0.553).close().revolve(angleDegrees=360, axisStart=(-0.261, 0.553), axisEnd=(0.261, 0.587...
11
91
1.028039
train_c1756fc0085e8c8d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.219, 0, -0.487), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.634, 0.423).threePointArc((0, 0.298), (0.634, 0.424)).lineTo(0.127, 1.009).threePointArc((0.001, 1.001), (-0.125, 1.008)).lineTo(-0.634, 0.423).close().revolve(angleDegrees=180, axis...
9
66
0.641531
train_601d44fc6977d681
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.24, -0.245), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.267, 1.24).lineTo(-0.267, -0.493).threePointArc((0, -0.76), (0.267, -0.493)).lineTo(0.267, 1.24).lineTo(0.133, 1.24).threePointArc((0, 1.107), (-0.133, 1.24)).lineTo(-0.267, 1.24).clo...
8
50
0.463189
train_73261f2037a75d15
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.298, -0.667, 0.223), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.777, 0.914).threePointArc((-0.67, 1.173), (-0.411, 1.28)).lineTo(0.411, 1.28).threePointArc((0.67, 1.173), (0.777, 0.914)).lineTo(0.777, 0.42).threePointArc((0.67, 0.162), (0.411...
4
57
1.472063
train_7cb5613c2a3da654
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.143, -0.689, -0.214), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.428, 0.427).threePointArc((0.629, 0.344), (0.712, 0.143)).threePointArc((0.629, -0.058), (0.428, -0.141)).lineTo(-0.428, -0.141).threePointArc((-0.629, -0.058), (-0.712, 0.143))....
13
206
1.185991
train_b88a56df6579fc62
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.38, 0.152, 0.149), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.144, 1.697).extrude(0.797) result = result.cut(cq.Workplane(cq.Plane(origin=(0.764, 0.152, 0.506), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.198).extrude(0.082)) result = result.edge...
25
240
1.205502
train_c1588872d0bc3bfa
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.259, 0.932, 0.003), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.057, 0.15).threePointArc((0, 0.139), (-0.057, 0.152)).threePointArc((-0.006, -0.152), (0.057, 0.15)).close().sweep(cq.Workplane('XY').spline([(0.259, 0.381), (0.446, 0.608), (0.632,...
3
4
0.087785
train_478acc594bce95d6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.063, 0, 0.093), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.301, 0.291).extrude(0.359) result = result.union(cq.Workplane(cq.Plane(origin=(0.148, -0.034, 0.426), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.009).extrude(0.574)) result = result.unio...
5
76
0.065884
train_8ac97e55fdc090e9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.606, -0.689, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.667, 0.112).threePointArc((-0.577, 0.445), (-0.333, 0.689)).threePointArc((0, 0.779), (0.333, 0.689)).threePointArc((0.244, 0.356), (0, 0.112)).threePointArc((0.333, 0.023), (0.667, ...
9
68
1.994242
train_9a369c829b52ea19
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.015, -0.246, -0.258), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.087, -0.157).threePointArc((-0.104, -0.114), (-0.148, -0.096)).lineTo(-0.148, 0.096).threePointArc((-0.104, 0.114), (-0.087, 0.157)).lineTo(0.087, 0.157).threePointArc((0.104, 0...
25
121
0.284179
train_0eed27fd3c7e7d8b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.508, -0.3, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.269, 1.3).threePointArc((-0.347, 1.268), (-0.379, 1.19)).lineTo(-0.379, -0.59).threePointArc((-0.347, -0.668), (-0.269, -0.7)).lineTo(0.269, -0.7).threePointArc((0.347, -0.668), (0.379...
4
36
1.19541
train_e0b66315eaaef166
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1, 0.314, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.42, -0.037).lineTo(-0.42, 1.085).lineTo(0.42, 1.085).lineTo(0.42, -0.037).lineTo(-0.42, -0.037).close().extrude(1.572) result = result.edges().fillet(0.057) result = result.faces('>Z').sh...
17
102
1.227646
train_1becd823ec141f62
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.169, 0.056, -0.523), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.038, -0.158).lineTo(-0.207, -0.06).lineTo(0.038, 0.363).lineTo(0.207, 0.266).lineTo(-0.038, -0.158).close().extrude(0.201) result = result.edges().chamfer(0.072) result = result.f...
12
178
0.253345
train_73486353b0298775
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.022, 0, 0.162), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.328, 0.246).threePointArc((0, 0.125), (0.328, 0.246)).threePointArc((0, -0.246), (-0.328, 0.246)).close().sweep(cq.Workplane('XZ').spline([(-0.708, -0.175), (-0.343, -0.089), (0.022, -...
14
24
0.311487
train_cac068dad180eda0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.469), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.464).extrude(0.938) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.8 + 0.4, 0.2815, -1.42), normal=(0, 1, 0), xDir=(1, 0, 0))).moveTo(-0.129, 0.101).lineTo(-0.129, -0.093).lineTo(-0...
11
6
2.746464
train_ae2405c4d6718ded
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.366, -0.309, -0.783), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.634, 0.513).lineTo(0.634, -0.111).lineTo(-0.634, -0.111).lineTo(-0.634, 0.513).lineTo(0.634, 0.513).close().extrude(1.28) result = result.edges().chamfer(0.134) result = result.c...
24
157
0.655835
train_835c5bd731d0464c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.325, -0.002, -0.196), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.171, 0.848).lineTo(0.192, 0.832).lineTo(0.194, 0.185).lineTo(0.697, 0.159).lineTo(0.689, -0.176).lineTo(0.184, -0.153).lineTo(0.185, -0.843).lineTo(-0.175, -0.842).lineTo(-0.185...
17
90
0.301153
train_ce007c4a34341159
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.011, -0.223, -0.001), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.015, -0.452).lineTo(0.13, -0.452).lineTo(0.294, -0.616).lineTo(0.294, -0.847).lineTo(0.13, -1.011).lineTo(-0.101, -1.011).lineTo(-0.265, -0.847).lineTo(-0.265, -0.616).lineTo(-0.1...
8
104
0.242375
train_08db615cc7ffe508
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.08, -0.602), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.082).extrude(1.203) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.394, 0.005, 0.177), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.425, 1.298).extrude(0.143)) result = result.cut(c...
14
82
1.921494
train_9f88ada5181c8392
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.115, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.528, 1.528).extrude(1.814) result = result.union(cq.Workplane(cq.Plane(origin=(-0.758, -0.06, -0.483), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.243, 0.262).extrude(0.424)) result = result.u...
14
291
3.200286
train_cac30b0ba7275c69
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.263, 0, -0.203), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, -0.851).lineTo(0.16, -0.277).lineTo(0.737, -0.425).lineTo(0.32, 0).lineTo(0.737, 0.425).lineTo(0.16, 0.277).lineTo(0, 0.851).lineTo(-0.16, 0.277).lineTo(-0.737, 0.425).lineTo(-0.32, ...
11
116
0.274903
train_bd6a79b5845064e2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.086, 0, 0.5), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.5, 0.023).lineTo(-0.5, 0.148).lineTo(0.5, 0.148).lineTo(0.5, 0.023).lineTo(-0.5, 0.023).close().revolve(angleDegrees=270, axisStart=(-0.5, 0.023), axisEnd=(-0.5, 0.148)) result = result...
6
96
0.288862
train_a7a8eeb5279037d1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.37, 0.18, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.18, 0.37).lineTo(1, 0.37).lineTo(1, 0.01).lineTo(-1, 0.01).lineTo(-1, 0.37).lineTo(-0.18, 0.37).close().revolve(angleDegrees=180, axisStart=(-0.18, 0.37), axisEnd=(0.18, 0.37)) result =...
5
22
0.397641
train_c1a6e99db548a5c1
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.847, 0.747).extrude(2) result = result.cut(cq.Workplane(cq.Plane(origin=(0.09, 0.086, -0.166), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.477, 0.425).extrude(1.196)) result = result.cut(cq.Workpl...
14
88
0.529642
train_03d373091a7659fa
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.053, -0.894), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.142, 1.456).extrude(1.266) result = result.union(cq.Workplane(cq.Plane(origin=(-0.196, 0.881, -0.379), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.119).extrude(0.319)) result = result.un...
17
115
1.435964
train_e9618014b0987d62
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.009, 0.111, -0.87), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.396, 0.283).extrude(0.199) result = result.cut(cq.Workplane(cq.Plane(origin=(0.074, 0.091, -0.74), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.149, 0.339).extrude(0.033)) result = resul...
26
164
0.870006
train_1273f8b6d14323bd
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.318, -0.092, -0.007), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.087, 0.3).lineTo(-0.087, -0.3).lineTo(0.087, 0.2).lineTo(-0.087, 0.3).close().sweep(cq.Workplane('XZ').spline([(-0.134, -0.112), (0.051, -0.118), (0.235, -0.182)])) result = re...
13
134
0.209732
train_544ea42010b0d061
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 1, -0.061), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.354).workplane(offset=0.405).circle(0.304).workplane(offset=0.425).circle(0.291).workplane(offset=0.424).circle(0.396).workplane(offset=0.33).circle(0.325).workplane(offset=0.416).circle(...
3
9
0.685312
train_80378289d367041f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.174, -0.733, -0.281), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.719, 0.116).lineTo(-0.719, 0.502).threePointArc((-0.531, 0.957), (-0.075, 1.146)).lineTo(0.719, 1.146).lineTo(0.719, 0.116).lineTo(-0.719, 0.116).close().extrude(0.319) result ...
18
63
0.824594
train_558613dfe1dcc4c8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.047, -0.002, -0.978), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.022, 0.008).lineTo(0.022, -0.003).lineTo(-0.022, 0.005).lineTo(-0.022, 0.008).lineTo(0.022, 0.008).close().extrude(0.094) result = result.union(cq.Workplane(cq.Plane(origin=(-0.0...
4
20
0.000087
train_3493ddc7e0d48e13
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.591, -0.085, -0.193), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.409, -0.355).lineTo(0.095, 0.068).lineTo(-0.314, 0.355).lineTo(-0.409, 0.219).lineTo(0.409, -0.355).close().sweep(cq.Workplane('XZ').spline([(-0.591, -0.193), (-0.192, -0.063), ...
3
14
0.0518
train_b9f0962dd1e3d5a9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.371, -0.206, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.559, 0.053).lineTo(0.559, -0.726).lineTo(0.389, -0.726).lineTo(0.474, -0.658).lineTo(0.389, -0.59).lineTo(0.389, 0.053).lineTo(-0.424, 0.053).lineTo(-0.424, 0.155).lineTo(-0.491, 0.23...
3
24
0.703372
train_c99a27c1883ed613
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.161), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, -1).lineTo(0.239, -0.415).lineTo(0.866, -0.5).lineTo(0.479, 0).lineTo(0.866, 0.5).lineTo(0.239, 0.415).lineTo(0, 1).lineTo(-0.239, 0.415).lineTo(-0.866, 0.5).lineTo(-0.479, 0).lineTo(-0.8...
14
72
0.244964
train_f516c4f9f9c735b9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.306, 0.005, -0.874), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, -0.5).lineTo(0.077, -0.5).lineTo(0.077, -0.837).lineTo(-0.077, -0.837).lineTo(-0.077, 0.847).lineTo(0.077, 0.847).lineTo(0.077, -0.163).lineTo(0, -0.163).lineTo(0, -0.5).close()....
6
172
0.132972
train_8f6db4311df8ae15
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1.069, 0.947, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.13, 1.939).threePointArc((-1, 1.069), (-0.13, 0.198)).lineTo(1, 0.198).lineTo(1, 0.546).lineTo(-0.13, 0.546).threePointArc((-0.652, 1.069), (-0.13, 1.591)).lineTo(1, 1.591).lineTo(1, ...
4
20
2.913325
train_dbd0ba33c26c0a4d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.868, -0.129, -0.453), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.084, -0.371).lineTo(0.084, 0.445).lineTo(-0.132, 0.445).lineTo(-0.132, -0.375).lineTo(0.084, -0.375).lineTo(0.084, -0.445).lineTo(0.132, -0.417).lineTo(0.132, -0.399).lineTo(0.084...
1
10
0.109589
train_a3c41a5094d30d72
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.377, 0.104, 0.399), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.623, 0.082).lineTo(-0.623, -0.134).lineTo(0.361, -0.134).lineTo(0.361, -0.026).lineTo(0.492, -0.026).lineTo(0.492, 0.082).lineTo(0.623, 0.082).lineTo(0.623, 0.134).lineTo(0.361, 0...
28
102
0.505346
train_32628ae7304b7a5d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -1.085, -0.652), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1, 2.084).lineTo(-1, 1.084).threePointArc((-0.707, 0.377), (0, 0.085)).lineTo(1, 0.085).lineTo(1, 1.084).lineTo(1, 2.084).lineTo(0, 2.084).lineTo(-1, 2.084).close().extrude(1.304) resu...
8
54
2.748735
train_899a3d4719909229
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.448, -0.183, 0.087), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.55, -0.431).lineTo(0.552, -0.441).lineTo(0.533, 0.434).lineTo(-0.552, 0.443).close().moveTo(-0.232, 0.08).lineTo(-0.073, 0.079).lineTo(-0.073, 0.099).lineTo(-0.213, 0.099).lineTo(...
18
133
0.263477
train_8020f0e2c8430f6b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.727, -0.221, 0.038), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.187, -1.727).lineTo(-0.187, 2.005).lineTo(0.187, -1.727).lineTo(-0.187, -1.727).close().extrude(0.442) result = result.edges().fillet(0.104) result = result.cut(cq.Workplane(cq.Pl...
8
46
0.196881
train_3a3ac7ee102f616c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.026, 0.177, -0.026), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.881, 0.247).lineTo(0.974, 0.223).lineTo(0.379, 0.601).lineTo(-0.852, 0.247).lineTo(-1.026, -0.019).lineTo(-0.677, -0.592).lineTo(0.628, -0.643).close().moveTo(-0.344, 0.116).lineTo...
10
153
0.242814