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_835b20125c5ddede | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.35, -0.124), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.65).extrude(0.099)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, -0.35, -0.124), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.426).extrude(0.297, both=True))
result = result.unio... | 8 | 49 | 0.407552 |
train_3641b1f8310338e3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.195, 0.344, -0.413), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.251, 0.432).lineTo(0.4, 0.343).lineTo(0.4, 0.25).threePointArc((0.255, 0.021), (0.4, 0.021)).lineTo(0.4, -0.186).lineTo(0.076, -0.432).lineTo(-0.044, -0.432).lineTo(-0.044, -0.186... | 11 | 114 | 0.88809 |
train_658a0f1edda6b271 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.212, -0.218, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.086, 0.111).lineTo(0.097, 0.095).lineTo(0.089, 0.07).lineTo(0.046, -0.015).lineTo(-0.04, -0.077).lineTo(-0.067, -0.111).lineTo(-0.097, -0.104).lineTo(-0.089, -0.079).lineTo(-0.081, -0... | 10 | 134 | 0.092072 |
train_2541f3e7a1201fbb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.023, -0.212, 0.134), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.193, 0.442).lineTo(-0.193, 0.147).lineTo(0, 0.147).lineTo(0, 0.295).lineTo(0.193, 0.295).lineTo(0.193, 0.147).lineTo(0.386, 0.147).lineTo(0.386, 0).lineTo(0, 0).lineTo(0, -0.147).... | 6 | 95 | 0.682433 |
train_43d7520b66c58651 | import cadquery as cq
import math
result = cq.Workplane('XY').moveTo(0.375, 1).threePointArc((0.463, 0.963), (0.5, 0.875)).lineTo(0.5, 0.127).threePointArc((0.538, 0.038), (0.627, 0)).lineTo(0.867, 0).threePointArc((0.96, -0.04), (1, -0.133)).lineTo(1, -0.664).threePointArc((0.9, -0.9), (0.664, -1)).lineTo(-0.411, -1).... | 7 | 52 | 3.476354 |
train_fd0fe506c727bdaa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.058, -0.074, -0.235), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.737, 0.484).lineTo(0.852, 0.242).lineTo(0.926, 0.169).lineTo(0.926, 0).lineTo(0.706, 0).lineTo(0.706, 0.145).lineTo(0.614, 0.242).lineTo(0, 0.263).lineTo(0, 0.484).lineTo(0.737, ... | 10 | 98 | 0.812684 |
train_18ae08b1f3d48533 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.227), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.903, 0.608).lineTo(0.903, 0).lineTo(-0.903, 0).lineTo(-0.903, 0.608).lineTo(-0.806, 0.608).lineTo(-0.806, 0.098).lineTo(0.806, 0.098).lineTo(0.806, 0.608).lineTo(0.903, 0.608).close().ext... | 7 | 43 | 0.279837 |
train_e3775b8b2bf70963 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.001, -0.581, 0.349), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.585, 0.982).threePointArc((-0.508, 0.949), (-0.475, 0.872)).lineTo(-0.475, 0.032).threePointArc((-0.436, -0.061), (-0.343, -0.1)).lineTo(1.224, -0.1).threePointArc((1.317, -0.14),... | 11 | 56 | 1.00547 |
train_a70b7aa7a0672360 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.081, -0.043, -0.275), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.5, 0.568).threePointArc((0.899, 0.022), (0.607, -0.238)).threePointArc((0.084, -0.403), (-0.146, -0.308)).threePointArc((-0.669, -0.473), (-0.899, -0.377)).threePointArc((-0.837,... | 3 | 36 | 0.108957 |
train_4e7b5f4788e2ed2e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.268), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.884, 0.536).lineTo(0.912, 0.267).lineTo(1, 0.187).lineTo(1, 0).lineTo(0.806, 0).lineTo(0.806, 0.161).lineTo(0.707, 0.267).lineTo(0, 0.346).lineTo(0, 0.536).lineTo(0.884, 0.536).close().re... | 8 | 21 | 0.881575 |
train_58bf7fad8655926e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.171, 0, -0.194), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.747, 0.314).threePointArc((0.773, 0.303), (0.784, 0.277)).lineTo(0.784, -0.277).lineTo(0.746, -0.314).lineTo(-0.703, -0.314).threePointArc((-0.76, -0.291), (-0.784, -0.234)).lineTo(-0... | 10 | 94 | 0.363504 |
train_3273373f527599d2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.543, -0.313, 0.029), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.393, 0.703).lineTo(0.235, 0.473).threePointArc((0.117, 0.297), (-0.115, 0.222)).threePointArc((-0.429, 0.25), (-0.559, 0.536)).lineTo(-0.567, 0.894).lineTo(-0.432, 1.092).lineTo(0... | 7 | 37 | 1.051026 |
train_cd84e6df4f9fa076 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.439), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.514, 1).lineTo(0.514, -1).lineTo(-0.514, -1).lineTo(-0.514, 1).lineTo(0.514, 1).close().extrude(0.877)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, -0.168), normal=(0, 0, 1), xD... | 9 | 62 | 1.03391 |
train_e3228af469149e84 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.239, -0.353, -0.574), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.378, 0.551).lineTo(-0.378, -0.287).lineTo(0.761, -0.287).lineTo(0.761, -0.551).lineTo(-0.761, -0.551).lineTo(-0.761, 0.551).lineTo(-0.378, 0.551).close().extrude(0.854, taper=7.9... | 28 | 175 | 0.959865 |
train_17c465b607c5f5a1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.529), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(1, 1.058).lineTo(1, 0.275).lineTo(0.908, 0.275).lineTo(0.908, 0).lineTo(0.502, 0).lineTo(0.502, 1.058).lineTo(1, 1.058).close().revolve(angleDegrees=360, axisStart=(0, 0, 0), axisEnd=(0, 1,... | 3 | 17 | 2.181453 |
train_d4f37575d882bf0f | import cadquery as cq
import math
result = cq.Workplane('XY').moveTo(0, 0.102).lineTo(0.031, 0.097).lineTo(0.06, 0.082).lineTo(0.082, 0.06).lineTo(0.097, 0.031).lineTo(0.102, 0).lineTo(0.097, -0.031).lineTo(0.082, -0.06).lineTo(0.06, -0.082).lineTo(0.031, -0.097).lineTo(0, -0.102).lineTo(-0.031, -0.097).lineTo(-0.06, -... | 3 | 28 | 0.042277 |
train_c99257547c800cca | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.368, 0, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).box(1.262, 0.804, 0.967)
result = result.edges().fillet(0.206)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.368, 0, 0), normal=(1, 0, 0), xDir=(0, 1, 0))).circle(0.292).extrude(2.524, both=Tr... | 10 | 108 | 0.413454 |
train_8685647170ac6404 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.995, 0.996, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.299, 1.843).threePointArc((-0.092, 1.87), (0.091, 1.731)).threePointArc((0.192, 1.524), (0.268, 1.386)).threePointArc((0.413, 1.337), (0.626, 1.28)).threePointArc((0.788, 1.136), (0.8... | 3 | 117 | 3.483625 |
train_4c3cd3d4ba080a44 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.34, 0.211, 0.308), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.102, 0.283).threePointArc((0.187, 0.239), (0.175, 0.114)).threePointArc((0.178, 0.047), (0.274, -0.008)).threePointArc((0.304, -0.104), (0.213, -0.157)).threePointArc((0.141, -0.19... | 4 | 68 | 0.196426 |
train_c168b7d4743bd4ea | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.446, -0.377, -0.135), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.539, -0.412).lineTo(0.536, -0.424).lineTo(0.531, -0.436).lineTo(0.524, -0.446).lineTo(0.515, -0.456).lineTo(0.505, -0.464).lineTo(0.494, -0.471).lineTo(0.481, -0.475).lineTo(0.469... | 3 | 224 | 0.990564 |
train_2290f8e1cdb0a7a9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.325, -0.09), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1, 0.827).lineTo(1, -0.474).lineTo(0.922, -0.741).lineTo(0.02, -0.827).lineTo(-0.317, -0.575).lineTo(-1, 0.827).close().extrude(0.179, taper=8.319)
result = result.cut(cq.Workplane(cq.Pl... | 23 | 123 | 0.151239 |
train_852f9891a50230ce | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.166, 0, 0.31), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.267, 0.875).lineTo(0.295, 0.706).lineTo(-0.035, 0.652).lineTo(0.121, 0.356).lineTo(0.077, 0.332).lineTo(0.077, -0.603).lineTo(0.031, -0.603).lineTo(-0.188, -0.872).lineTo(-0.26, -0.875).... | 8 | 119 | 0.426066 |
train_92bc5b194a7971e7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.269, -0.243, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.038, 1.242).threePointArc((0.209, 1.118), (0.4, 0.759)).threePointArc((0.484, 0.262), (0.438, -0.241)).threePointArc((0.274, -0.613), (0.038, -0.757)).threePointArc((-0.209, -0.632),... | 15 | 168 | 0.773899 |
train_2cccaab5f3032f09 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.207), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.573, 0.413).lineTo(0.92, 0.276).lineTo(1, 0.144).lineTo(1, 0).lineTo(0.825, 0).lineTo(0.825, 0.124).lineTo(0.725, 0.276).lineTo(0, 0.238).lineTo(0, 0.413).lineTo(0.573, 0.413).close().rev... | 6 | 25 | 0.504729 |
train_2c379f16e7fbb795 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.286, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.571).threePointArc((0.404, 0.404), (0.571, 0)).lineTo(0.153, 0).threePointArc((0.107, 0.107), (0, 0.153)).lineTo(0, 0.571).close().extrude(2)
result = result.union(cq.Workplane(cq.Plan... | 3 | 13 | 0.6495 |
train_76cfadb721eec2f2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.39), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.545, 0.667).threePointArc((-0.396, 0.604), (-0.333, 0.455)).lineTo(-0.333, 0.198).threePointArc((-0.274, 0.059), (-0.135, 0)).lineTo(0.816, 0).threePointArc((0.945, -0.055), (1, -0.184)).l... | 27 | 570 | 0.992887 |
train_e61df021e426b95e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.198, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.239, 0.385).threePointArc((0.426, 0.198), (0.239, 0.011)).lineTo(-0.239, 0.011).threePointArc((-0.426, 0.198), (-0.239, 0.385)).lineTo(0.239, 0.385).close().extrude(2)
result = result.cut(... | 19 | 69 | 0.54372 |
train_cdfef0930d2ec08b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.238, 0.413, 0.266), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.154, 0.433).lineTo(0.125, 0.144).lineTo(0.122, -0.144).lineTo(0.154, -0.433).threePointArc((0, -0.587), (-0.154, -0.433)).lineTo(-0.154, 0.433).threePointArc((0, 0.587), (0.154, 0... | 2 | 11 | 0.128228 |
train_c11f1d127d175202 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.588, -0.409, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 1.176).threePointArc((0.83, 0.83), (1.176, 0)).lineTo(0.437, 0).threePointArc((0.309, 0.309), (0, 0.437)).lineTo(0, 1.176).close().extrude(2)
result = result.union(cq.Workplane(cq.P... | 7 | 35 | 1.970513 |
train_73d7afcc9577446a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.12, 0, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.023, 0.196).threePointArc((-0.007, 0.189), (0, 0.173)).lineTo(0, 0.113).threePointArc((0.005, 0.103), (0.016, 0.098)).lineTo(0.12, 0.098).threePointArc((0.173, 0.076), (0.196, 0.023)).lineT... | 4 | 61 | 0.142351 |
train_e7df290050362424 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.195, 0, -0.618), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.774, 0.074).threePointArc((0.774, -0.074), (0.626, -0.074)).threePointArc((0.626, 0.074), (0.774, 0.074)).close().sweep(cq.Workplane(cq.Plane(origin=(-0.195, 0, -0.618), normal=(0, 0... | 11 | 116 | 0.514002 |
train_d1dda800567b7ea4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.911, 0.941, -0.001), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.692, 0.78).threePointArc((0.696, 0.683), (0.682, 0.586)).threePointArc((0.658, 0.491), (0.49, 0.481)).threePointArc((0.375, 0.517), (0.397, 0.459)).threePointArc((0.5, 0.256), (0.... | 3 | 28 | 3.384186 |
train_4c0dff02c4a838dc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.296, -0.692, -0.607), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.71, 0.847).threePointArc((-0.65, 0.813), (-0.625, 0.732)).lineTo(-0.625, 0.454).threePointArc((-0.587, 0.333), (-0.498, 0.282)).lineTo(0.908, 0.282).threePointArc((1.002, 0.229)... | 19 | 14 | 0.232692 |
train_33f106e2f827190d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.005, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.87).extrude(1.262)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.875, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.27, 0.27).extrude(3.783, both=True))
result = result.cut(cq.Wo... | 14 | 112 | 0.845928 |
train_d6cf595adcb26a87 | 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.111, 0.108).lineTo(0.111, -0.108).lineTo(0, -0.108).lineTo(0, -0.036).lineTo(-0.111, -0.036).lineTo(-0.111, 0.036).lineTo(0.056, 0.036).lineTo(0.056, 0.108).lineTo(0.111, 0.108).close().extrud... | 4 | 50 | 0.047675 |
train_74ed410daa9e9d3b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(2.663, 17.07, -4.957), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-2.665, 9.947).threePointArc((9.947, 2.665), (2.665, -9.947)).threePointArc((-9.947, -2.665), (-2.665, 9.947)).close().sweep(cq.Workplane(cq.Plane(origin=(2.663, 17.07, -4.957), norm... | 16 | 12 | 0.225179 |
train_76dc2cb98ea718a8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.328, -1.274, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.679, 2.207).lineTo(0.679, 0.34).threePointArc((-0.679, 1.273), (0.679, 2.207)).close().workplane(offset=0.085).moveTo(0.324, 1.719).lineTo(0.324, 0.827).threePointArc((-0.324, 1.273),... | 8 | 222 | 0.469231 |
train_851023427e3cff4a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.003, -0.001, -0.213), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.884, -0.157).lineTo(0.981, -0.2).lineTo(0.97, -0.242).lineTo(0.87, -0.223).lineTo(0.818, -0.372).lineTo(0.899, -0.438).lineTo(0.88, -0.475).lineTo(0.788, -0.433).lineTo(0.7, -0.56... | 19 | 276 | 0.557324 |
train_3a3d35056a0e47b6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.003, 0, -0.142), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.334, 1.002).lineTo(1.002, -0.667).lineTo(0.334, -1.002).lineTo(0.334, -0.334).lineTo(-1.002, -0.667).lineTo(-1.002, 0).lineTo(0, 0.334).lineTo(-0.334, 0.667).lineTo(0.334, 1.002).close... | 5 | 72 | 0.46209 |
train_573818871d5fd968 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-3.838, 0.316, 0.134), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(3.426, 1.103).threePointArc((4.349, 1.042), (4.738, 0.9)).lineTo(4.738, -0.935).threePointArc((4.417, -1.053), (3.655, -1.103)).lineTo(1.024, -1.103).threePointArc((0.305, -1.055), (... | 13 | 11 | 0.192311 |
train_723290166123bc49 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.116, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.393).extrude(1.951)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.116, 0, 0.365), normal=(0.406, 0, 0.914), xDir=(0.914, 0, -0.406))).circle(0.457).extrude(0.571))
result = resul... | 7 | 37 | 0.219832 |
train_d61511f5087e9d77 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.407, 0.563).lineTo(1, -0.563).lineTo(0.999, -0.376).threePointArc((0.505, -0.425), (0.268, -0.049)).lineTo(0.031, 0.326).lineTo(0.407, 0.563).close().revolve(angleDegrees=360, axisStart=(0, 0,... | 5 | 53 | 1.082755 |
train_3fb99b01b1a0f0d6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.312, -0.323, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.623, 0.543).threePointArc((0.726, 0), (0.623, -0.543)).lineTo(0.208, -0.543).lineTo(-0.208, -0.543).lineTo(-0.623, -0.543).threePointArc((-0.726, 0), (-0.623, 0.543)).lineTo(-0.208, 0.... | 11 | 141 | 0.654621 |
train_51eeb9d0ad038ba2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.149, -0.516), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.933, 0.265).threePointArc((0.933, -0.267), (-0.06, 0.267)).lineTo(0.933, 0.265).close().moveTo(0.257, 0.007).lineTo(0.285, 0.001).lineTo(0.328, -0.054).lineTo(0.319, -0.084).lineTo(0.2... | 13 | 127 | 1.176626 |
train_68049ed9c2cdcf9d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.091, -0.81, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.425, 1.091).threePointArc((0.01, 0.929), (0.438, 0.277)).threePointArc((0.61, -0.485), (0.425, -0.909)).threePointArc((-0.01, -0.748), (-0.438, -0.095)).threePointArc((-0.61, 0.666), ... | 9 | 30 | 1.250506 |
train_050d17b49e29ba7d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.438, 0.544, 0.176), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, 0.417).threePointArc((0.295, 0.295), (0.417, 0)).threePointArc((0.295, -0.295), (0, -0.417)).threePointArc((-0.295, -0.295), (-0.417, 0)).threePointArc((-0.295, 0.295), (0, 0.417)... | 19 | 179 | 0.792423 |
train_f52e483f2c44ce03 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.062, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.142, 0.856).lineTo(0.101, 0.436).lineTo(0.191, 0.592).lineTo(0.386, 0.592).threePointArc((0.438, 0.657), (0.505, 0.706)).lineTo(0.38, 0.237).lineTo(0.856, 0.142).lineTo(0.436, -0.101).lin... | 2 | 28 | 1.353319 |
train_d9c3c6d1f3db7336 | import cadquery as cq
import math
result = cq.Workplane('XY').moveTo(0, 0.138).lineTo(0.098, 0.098).lineTo(0.138, 0).lineTo(0.098, -0.098).lineTo(0, -0.138).lineTo(-0.098, -0.098).lineTo(-0.138, 0).lineTo(-0.098, 0.098).lineTo(0, 0.138).close().extrude(1, both=True)
final_result = result
| 1 | 10 | 0.108192 |
train_fcef3975a4c551bd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.364), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.49, 0.765).threePointArc((0.851, 0.615), (1, 0.255)).lineTo(1, -0.36).lineTo(0.595, -0.765).lineTo(-1, -0.765).lineTo(-1, 0.457).lineTo(-0.693, 0.457).lineTo(-0.693, 0.765).lineTo(0.49, 0.... | 6 | 33 | 1.1282 |
train_ec6af45589a16648 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.049, 0, -0.535), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.114, 1.07).lineTo(0.114, 0.114).lineTo(0.645, 0.114).lineTo(0.645, 0).lineTo(0, 0).lineTo(0, 1.07).lineTo(0.114, 1.07).close().extrude(1, both=True)
result = result.union(cq.Workplane... | 4 | 24 | 0.402112 |
train_2d4e8bb4e1617f62 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.161, -0.123, 0.314), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.116, -0.047).threePointArc((0.097, -0.094), (0.049, -0.114)).lineTo(-0.046, -0.114).threePointArc((-0.093, -0.094), (-0.112, -0.047)).lineTo(-0.121, -0.021).threePointArc((-0.13, -... | 2 | 17 | 0.106457 |
train_a8b74deeb7190c01 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.198, 0, -0.134), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.802, 0.683).lineTo(0.802, -0.683).lineTo(-0.802, -0.683).lineTo(-0.802, 0.683).lineTo(0.802, 0.683).close().extrude(0.267)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.627, 0, 0... | 9 | 63 | 0.499968 |
train_bf07374bd7a4fb89 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.019, 0, -0.077), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.734, 0.214).threePointArc((0.772, 0.254), (0.793, 0.214)).lineTo(0.945, 0.167).lineTo(0.99, 0.108).lineTo(0.966, 0.061).lineTo(1, 0.011).lineTo(0.896, -0.127).lineTo(0.708, -0.254).li... | 6 | 85 | 0.556575 |
train_d0698a57495fb93d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.246), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(1).extrude(0.42)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, -0.246), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.931).extrude(1.257, both=True))
result = result.union(cq.Workpla... | 11 | 36 | 0.349136 |
train_3696c0c4171c84ea | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.171), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(1).extrude(0.341)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, -0.171), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.563).extrude(1.024, both=True))
result = result.union(cq.Workpl... | 12 | 32 | 0.809885 |
train_bd2d627a7d579be8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.16, -0.016, -0.305), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.182, 0.903).threePointArc((0.494, 0.984), (0.598, 0.727)).lineTo(0.347, -0.176).lineTo(0.208, -0.311).lineTo(-0.046, -0.984).lineTo(-0.598, -0.776).lineTo(-0.312, -0.019).lineTo(-... | 18 | 86 | 0.19127 |
train_4cb72d4434dc06ac | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.177), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.424, 1).threePointArc((0.666, 0.899), (0.766, 0.658)).lineTo(0.766, -0.558).threePointArc((0.637, -0.869), (0.324, -1)).lineTo(-0.466, -1).lineTo(-0.466, -0.7).lineTo(-0.766, -0.7).lineTo(... | 4 | 38 | 0.642103 |
train_0190c19b160ab746 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.638), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(1.019).extrude(0.58)
result = result.cut(cq.Workplane(cq.Plane(origin=(1.019, 0, -0.638), normal=(0, 0, 1), xDir=(1, 0, 0))).pushPoints([(0, 0), (-0.299, 0.72), (-1.019, 1.019), (-1.739, 0.7... | 8 | 64 | 1.559875 |
train_6f984910c954b2e4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.495, -0.042, -0.183), normal=(0.491, -0.524, -0.696), xDir=(0.73, 0.683, 0))).moveTo(-0.129, 0.35).lineTo(0.027, 0.156).lineTo(0.238, 0.287).lineTo(0.148, 0.055).lineTo(0.368, -0.063).lineTo(0.122, -0.101).lineTo(0.129, -0.35).lineTo(-0.027, -0.... | 5 | 102 | 0.364042 |
train_0b901e1455895037 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.152, -0.799, -1.539), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.174, 0.201).lineTo(0.174, 0.029).lineTo(-0.105, 0.029).lineTo(-0.105, -0.029).lineTo(0.174, -0.029).lineTo(0.174, -0.201).lineTo(-0.174, -0.201).lineTo(-0.174, -0.143).lineTo(0.1... | 21 | 78 | 1.542803 |
train_a2e0849aea0b9533 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.765), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(1, 1.137).lineTo(1, 0.393).lineTo(0.119, 0.393).lineTo(0.119, 0).lineTo(0, 0).lineTo(0, 1.137).lineTo(1, 1.137).close().revolve(angleDegrees=360, axisStart=(0, 0, 0), axisEnd=(0, 1, 0))
res... | 6 | 11 | 2.094184 |
train_ee87d14734e3eb57 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.199), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.937, 0.355).lineTo(1, 0.293).lineTo(1, -0.294).lineTo(0.938, -0.294).lineTo(0.938, -0.355).lineTo(-0.896, -0.355).threePointArc((-0.969, -0.325), (-1, -0.253)).lineTo(-1, 0.279).threePoint... | 13 | 115 | 0.120302 |
train_f6dae4ae6428f831 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.005, -0.363), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(1.001).extrude(0.725)
result = result.cut(cq.Workplane(cq.Plane(origin=(1.001, -0.005, -0.363), normal=(0, 0, 1), xDir=(1, 0, 0))).pushPoints([(0, 0), (-0.078, 0.384), (-0.294, 0.707), ... | 7 | 71 | 0.813101 |
train_02868e1ccc1be8e6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.771, 0.804, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.86, 0.771).threePointArc((0, -0.094), (-0.86, 0.771)).threePointArc((0, 1.631), (0.86, 0.771)).close().workplane(offset=0.534).moveTo(0.475, 0.771).threePointArc((0, 0.296), (-0.475, 0... | 9 | 116 | 2.454071 |
train_20bc69ed985dfbb8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.131, -0.931), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.862, 0.119).threePointArc((0.894, 0.119), (0.835, -0.116)).lineTo(0.835, -0.241).threePointArc((0.902, -0.241), (0.839, -0.445)).lineTo(0.839, -0.517).lineTo(0.006, -0.517).lineTo(0.0... | 5 | 33 | 4.098637 |
train_9af7db1073657410 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.023, 0.6, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.237, 0.058).threePointArc((0.507, 0.048), (0.2, 0.05)).lineTo(-0.206, -0.036).threePointArc((-0.48, -0.07), (-0.465, -0.029)).lineTo(0.006, 0.068).threePointArc((0.17, 0.07), (0.237, 0.05... | 1 | 11 | 0.890385 |
train_32efddfeee5e979e | import cadquery as cq
import math
result = cq.Workplane('XY').moveTo(0.985, 0.332).lineTo(0.985, 0.247).lineTo(0.154, 0.247).lineTo(0.154, -0.247).lineTo(0.985, -0.247).lineTo(0.985, -0.332).lineTo(-0.985, -0.332).lineTo(-0.985, -0.247).lineTo(-0.154, -0.247).lineTo(-0.154, 0.247).lineTo(-0.985, 0.247).lineTo(-0.985, 0... | 6 | 48 | 0.658136 |
train_af0227fe2789d66a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.236, 0, -0.127), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.2, 0.637).threePointArc((0.238, 0.621), (0.255, 0.582)).lineTo(0.255, 0.228).threePointArc((0.225, 0.157), (0.154, 0.127)).lineTo(0.049, 0.127).threePointArc((0.015, 0.113), (0, 0.078... | 7 | 42 | 0.164897 |
train_1922c9b8348f6695 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.637, 0, -0.135), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.724, 1.735).extrude(0.271)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.637, 0, -0.135), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.153, 0.079).lineTo(0.153, -0.079).lineTo(-0.1... | 13 | 131 | 0.121315 |
train_3a8cbd86c51cd8f4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.162, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.495, 1.118).lineTo(0.292, 0.592).lineTo(1.262, 0.438).lineTo(0.668, -0.258).lineTo(0.495, -1.118).lineTo(-0.292, -0.592).lineTo(-1.262, -0.438).lineTo(-0.668, 0.258).lineTo(-0.495, 1.118)... | 5 | 40 | 0.394069 |
train_ce072110288afae3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.109), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.812, 0.368).threePointArc((0.945, 0.313), (1, 0.181)).lineTo(1, -0.368).lineTo(-0.834, -0.368).lineTo(-0.834, -0.202).lineTo(-1, -0.202).lineTo(-1, 0.255).lineTo(-0.887, 0.368).lineTo(0.81... | 13 | 238 | 0.265726 |
train_50797d2a49161152 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.492), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.329).lineTo(1, 0.227).lineTo(0.214, 0.227).lineTo(0.214, -0.329).lineTo(-0.214, -0.329).lineTo(-0.214, 0.227).lineTo(-1, 0.227).lineTo(-1, 0.329).lineTo(1, 0.329).close().extrude(0.983,... | 2 | 14 | 0.217431 |
train_1ac21546a7fa0b44 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.18), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.671, 0.806).threePointArc((1, 0), (0.671, -0.806)).lineTo(-0.671, -0.806).threePointArc((-1, 0), (-0.671, 0.806)).lineTo(0.671, 0.806).close().extrude(0.36)
result = result.cut(cq.Workplane... | 5 | 68 | 0.971813 |
train_287dea3aaafc136f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.756), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.501, 0.866).lineTo(1, 0).lineTo(0.501, -0.866).lineTo(-0.501, -0.866).lineTo(-1, 0).lineTo(-0.501, 0.866).lineTo(0.501, 0.866).close().extrude(1.512)
result = result.cut(cq.Workplane(cq.Pl... | 6 | 34 | 1.348741 |
train_bf001f7c514599e9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.051, 0.224, -0.029), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.375, 0.423).threePointArc((0.643, -0.041), (0.268, -0.465)).threePointArc((-0.375, -0.423), (-0.643, 0.041)).threePointArc((-0.268, 0.465), (0.375, 0.423)).close().sweep(cq.Workpl... | 9 | 60 | 0.437074 |
train_20417e589a524115 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.063, -0.067), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.156).lineTo(1, -0.031).threePointArc((0.057, -0.156), (1, 0.156)).close().moveTo(0.683, -0.031).lineTo(0.683, -0.094).threePointArc((0.308, 0.031), (0.683, -0.031)).close().extrude(... | 12 | 136 | 0.420342 |
train_6870849d77a0abc3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.3, -0.027, 0.192), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.573, 0.802).threePointArc((0.661, 0.647), (0.718, 0.37)).threePointArc((0.766, -0.429), (-0.164, -0.966)).threePointArc((-0.766, -0.281), (-0.382, 0.664)).lineTo(-0.26, 0.633).threeP... | 7 | 34 | 0.238114 |
train_3f44ca1ed05fbe3c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.122), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.628, 0.282).lineTo(0.628, 0.136).lineTo(1, 0.136).lineTo(1, 0).lineTo(0.291, 0).lineTo(0.291, 0.282).lineTo(0.628, 0.282).close().revolve(angleDegrees=360, axisStart=(0, 0, 0), axisEnd=(0... | 4 | 40 | 0.462995 |
train_84ece659f78de113 | 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.157, 0.157).threePointArc((0.222, 0), (0.157, -0.157)).threePointArc((0, -0.222), (-0.157, -0.157)).threePointArc((-0.222, 0), (-0.157, 0.157)).threePointArc((0, 0.222), (0.157, 0.157)).close(... | 2 | 12 | 0.275674 |
train_38e50efd46cc8cf6 | 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.363, 0.394).threePointArc((0.38, 0.388), (0.387, 0.374)).lineTo(0.387, -0.327).threePointArc((0.363, -0.374), (0.305, -0.394)).lineTo(-0.265, -0.394).threePointArc((-0.351, -0.364), (-0.387, -... | 4 | 18 | 0.604681 |
train_8096464f23bdbb60 | import cadquery as cq
import math
result = cq.Workplane('XY').moveTo(0.563, 1).lineTo(0.563, 0.597).lineTo(-0.282, 0.597).lineTo(-0.282, 0.199).lineTo(0.563, 0.199).lineTo(0.563, -1).lineTo(-0.563, -1).lineTo(-0.563, -0.597).lineTo(0.282, -0.597).lineTo(0.282, -0.199).lineTo(-0.563, -0.199).lineTo(-0.563, 1).lineTo(0.5... | 2 | 70 | 0.873513 |
train_7580273d1e6cc2eb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.253), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.9, 1).lineTo(0.9, -1).lineTo(-0.9, -1).lineTo(-0.9, 1).lineTo(0.9, 1).close().extrude(0.506)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.17, 0.943, 0), normal=(-1, 0, 0), xDir=(0, ... | 12 | 155 | 1.681261 |
train_2abcbcd411ff5ccd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.092, 0, -0.94), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.865, 0.282).workplane(offset=1.939).rect(0.665, 0.401).loft()
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.092, 0.417, -1.503), normal=(1, 0, 0), xDir=(0, 1, 0))).moveTo(-0.039, ... | 10 | 40 | 0.500435 |
train_7f26410aacbe6d6d | 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.778, 0.327).threePointArc((0.928, 0.263), (1, 0.11)).lineTo(1, -0.007).lineTo(0.675, -0.327).lineTo(-0.675, -0.327).lineTo(-1, -0.007).lineTo(-1, 0.064).threePointArc((-0.916, 0.25), (-0.7... | 6 | 51 | 0.245182 |
train_4ab247e49bcc5c25 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.745), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.983, 1).lineTo(0.983, 0.628).lineTo(-0.536, 0.628).lineTo(-0.536, -0.628).lineTo(0.983, -0.628).lineTo(0.983, -1).lineTo(-0.983, -1).lineTo(-0.983, 1).lineTo(0.983, 1).close().extrude(1.48... | 3 | 31 | 1.156118 |
train_e429bc219c00a837 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.003, -0.17), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.932, -0.146).lineTo(0.977, -0.173).lineTo(0.971, -0.203).lineTo(0.922, -0.196).lineTo(0.881, -0.337).lineTo(0.919, -0.374).lineTo(0.907, -0.4).lineTo(0.862, -0.386).lineTo(0.796, -0.51... | 9 | 160 | 0.612803 |
train_951ff100da615b64 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.138), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.797, 2).extrude(0.276)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, -0.138), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.203, -0.695).lineTo(0.203, -0.805).lineTo(-0.203, -0.805)... | 11 | 22 | 0.390639 |
train_d27d41e3ad87fa82 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.411, -0.763, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.192, 0.56).lineTo(0.538, 0.243).lineTo(0.429, -0.195).lineTo(0.173, -0.56).lineTo(-0.29, -0.524).lineTo(-0.538, -0.17).lineTo(-0.519, 0.227).lineTo(-0.248, 0.534).lineTo(0.192, 0.56).... | 4 | 40 | 1.154151 |
train_47a554562a341fee | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.006, 0.189, 0.536), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.41, -0.137).threePointArc((0.525, -0.243), (0.656, -0.396)).threePointArc((0.753, -0.595), (0.609, -0.688)).threePointArc((0.292, -0.635), (0.091, -0.567)).threePointArc((-0.043, ... | 16 | 863 | 1.243735 |
train_882fff7b9fd62a01 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.179, -0.268, -0.05), normal=(-0.211, 0.818, 0.535), xDir=(-0.968, -0.25, 0))).moveTo(-0.177, 0.588).lineTo(0.312, 0.214).lineTo(0.219, -0.073).lineTo(0.054, 0.053).lineTo(-0.154, -0.588).lineTo(-0.312, -0.467).lineTo(-0.104, 0.175).lineTo(-0.27... | 11 | 104 | 0.264776 |
train_e3b3470020d529df | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.732, 0.658, 0.585), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.008, 0.341).lineTo(0.164, 0.264).lineTo(0.212, 0.082).lineTo(0.099, -0.069).lineTo(-0.09, -0.075).lineTo(-0.212, 0.069).lineTo(-0.175, 0.254).lineTo(-0.008, 0.341).close().revolve... | 10 | 235 | 0.772818 |
train_e6f0a9bc2a0de84d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.141, 0.052, 0.388), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.348, 0.059).threePointArc((0.393, -0.067), (0.598, -0.138)).threePointArc((0.813, -0.818), (-0.034, -0.748)).threePointArc((-0.078, -0.718), (-0.244, -0.693)).threePointArc((-0.508,... | 18 | 278 | 2.121873 |
train_fa52b1b8e26e6425 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.305), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(1, 0.847).lineTo(1, 0).lineTo(-1, 0).lineTo(-1, 0.847).lineTo(-0.827, 0.847).lineTo(-0.827, 0.087).lineTo(0.827, 0.087).lineTo(0.827, 0.847).lineTo(1, 0.847).close().extrude(0.183, both=Tru... | 4 | 31 | 0.249709 |
train_f71fe10c9ee6c2da | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.391), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(1, 0.781).lineTo(1, 0).lineTo(-1, 0).lineTo(-1, 0.781).lineTo(-0.588, 0.781).lineTo(-0.588, 0.412).lineTo(0.588, 0.412).lineTo(0.588, 0.781).lineTo(1, 0.781).close().extrude(0.208, both=Tru... | 4 | 14 | 0.457094 |
train_ca657ec187b758b3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.217), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.872, 1).lineTo(0.872, -1).lineTo(-0.55, -1).lineTo(-0.55, -0.667).lineTo(-0.872, -0.667).lineTo(-0.872, 0.598).lineTo(-0.481, 1).lineTo(0.872, 1).close().extrude(0.434)
result = result.cut... | 7 | 35 | 0.612272 |
train_3679243f39b9f65b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1.238, 0, -0.775), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.958, 1).lineTo(-0.958, -0.606).lineTo(1.518, -0.606).lineTo(1.518, -1).lineTo(-1.518, -1).lineTo(-1.518, 1).lineTo(-0.958, 1).close().extrude(1.55)
result = result.edges().fillet(0.05... | 9 | 65 | 1.680983 |
train_6ab8e8828adfbad1 | import cadquery as cq
import math
result = cq.Workplane('XY').moveTo(0.792, 0.522).threePointArc((1, 0), (0.792, -0.522)).lineTo(0.264, -0.522).lineTo(-0.264, -0.522).lineTo(-0.792, -0.522).threePointArc((-1, 0), (-0.792, 0.522)).lineTo(-0.264, 0.522).lineTo(0.264, 0.522).lineTo(0.792, 0.522).close().extrude(0.886, bot... | 3 | 23 | 3.396198 |
train_5a30cf5019da5397 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.103, 0, -0.126), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.448, 2).extrude(0.089)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.103, 0, -0.126), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.623, -0.103).lineTo(0.623, -0.888).lineTo(-0.623,... | 9 | 35 | 0.087616 |
train_555c2f6788ef2611 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.004, 0, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.284, 0.325).threePointArc((0.284, 0.267), (0.325, 0.099)).threePointArc((0.33, -0.188), (0.137, -0.443)).threePointArc((0.105, -0.482), (0.061, -0.724)).threePointArc((-0.306, -0.997), (-0... | 3 | 29 | 1.196127 |
train_bbaae4f12acdd868 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.266, 0.544, -0.298), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.253, 0.139).lineTo(0.253, 0).lineTo(0.322, 0).lineTo(0.322, 0.069).lineTo(0.392, 0.069).lineTo(0.392, -0.069).lineTo(0.322, -0.069).lineTo(0.322, -0.139).lineTo(0.253, -0.139).line... | 9 | 160 | 0.147053 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.