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_fb225ce92e86ec1d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.278, 0.066, -0.075), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.793, 0.067).lineTo(-0.722, 0.067).lineTo(-0.722, 0.303).lineTo(0.793, 0.303).lineTo(0.793, 0.067).lineTo(-0.793, 0.067).close().revolve(angleDegrees=270, axisStart=(0, 0), axisEn... | 12 | 120 | 0.330003 |
train_c45fde3e795dc08c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.091, -0.188, 0.056), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.121, 1.091).lineTo(0.121, 1.091).lineTo(0.121, -0.909).lineTo(-0.121, -0.909).lineTo(-0.121, 1.091).close().extrude(0.342)
result = result.edges().fillet(0.014)
result = result.u... | 9 | 99 | 0.165291 |
train_d9a20c365960f7e7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.072, -0.206, -0.484), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.516, 0.034).lineTo(0.516, 0.379).lineTo(-0.516, 0.379).lineTo(-0.516, 0.348).lineTo(-0.367, 0.348).lineTo(-0.367, 0.065).lineTo(-0.347, 0.065).lineTo(-0.347, 0.348).lineTo(-0.14... | 4 | 172 | 0.048335 |
train_3fafa85f043856e0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.178).workplane(offset=0.31).circle(0.215).workplane(offset=0.379).circle(0.171).workplane(offset=0.347).circle(0.171).workplane(offset=0.341).circle(0.211).workplane(offset=0.342).circle(0.252... | 15 | 47 | 0.170897 |
train_54785ff2c90f9ae6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.535, 0, 0.102), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.401, -0.108).threePointArc((-0.38, -0.449), (-0.042, -0.406)).lineTo(0.133, -0.196).lineTo(0.232, -0.077).lineTo(0.393, 0.115).lineTo(0.401, 0.125).threePointArc((0.368, 0.449), (0.04... | 2 | 18 | 0.520346 |
train_42d5e51b2b65eabb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.255, 0, -0.3), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.073, 0.035).lineTo(0.688, 0.22).lineTo(-0.024, 0.568).lineTo(-0.243, 0.489).lineTo(-0.745, 0.284).lineTo(-0.656, -0.269).lineTo(0.209, -0.461).close().moveTo(-0.218, 0.044).lineTo(0.22,... | 18 | 170 | 0.216082 |
train_f9a4f2f609f5fa1d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.018, -0.002, -0.658), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.457, 0.241).extrude(0.634)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.018, -0.002, -0.044), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.083).extrude(0.204))
result = re... | 12 | 97 | 0.112514 |
train_73184142a46d568d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.205, 0.251, -0.202), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.203, 0.592).lineTo(0.203, 0.019).lineTo(-0.203, 0.019).lineTo(-0.203, 0.592).lineTo(0.203, 0.592).close().revolve(angleDegrees=360, axisStart=(0.203, 0.592), axisEnd=(0.203, 0.402... | 11 | 70 | 0.229123 |
train_810aaab6484ee5e9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.001, 0.035, 0.194), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.316, -0.688).threePointArc((-0.001, -0.965), (-0.319, -0.688)).lineTo(-0.358, -0.393).lineTo(-0.365, -0.345).threePointArc((-0.179, -0.23), (-0.388, -0.167)).lineTo(-0.395, -0.119)... | 24 | 212 | 0.242044 |
train_89bd3fd1bd23a7bf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.504, -0.297, 0.032), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.446, -0.765).lineTo(0.446, -0.04).lineTo(0.004, -0.04).lineTo(0.004, 1.359).lineTo(-0.446, 1.359).lineTo(-0.446, -0.765).lineTo(0.446, -0.765).close().workplane(offset=0.274).move... | 9 | 88 | 0.240915 |
train_41be6d380947cd77 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.591, -0.344, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.103, 0.207).threePointArc((0.13, 0.203), (0.155, 0.193)).lineTo(0.155, 0.103).lineTo(0.155, -0.103).lineTo(0.207, -0.103).threePointArc((0.193, -0.155), (0.155, -0.193)).threePointArc(... | 5 | 12 | 0.014895 |
train_3d74bffeb7406e82 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.013, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.424, -0.103).lineTo(-0.424, 0.159).lineTo(0.424, 0.159).lineTo(0.424, -0.134).lineTo(-0.424, -0.134).lineTo(-0.424, -0.103).close().extrude(0.893)
result = result.edges().fillet(0.087)
r... | 10 | 68 | 0.154921 |
train_dac3a99a703b8a62 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.007, -0.252, -0.825), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.055, 0.062).lineTo(0.076, 0.062).lineTo(0.076, 0.161).lineTo(0.175, 0.161).lineTo(0.175, 0.03).lineTo(0.158, 0.03).lineTo(0.158, -0.077).lineTo(0.039, -0.146).lineTo(-0.053, -0.0... | 10 | 98 | 0.094868 |
train_07b3d7b04654666a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.537, 0.045, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.06, 0.537).lineTo(-0.06, 0.537).lineTo(-0.06, -0.418).lineTo(-0.02, -0.418).lineTo(-0.02, -0.259).lineTo(0.06, -0.259).lineTo(0.06, -0.053).threePointArc((0.038, 0.016), (-0.02, 0.06))... | 6 | 70 | 0.207698 |
train_6aa68c8208112591 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.353, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.499, 0.037).lineTo(0.499, 0.037).lineTo(0.499, 1.313).lineTo(-0.39, 0.558).threePointArc((-0.47, 0.452), (-0.499, 0.322)).lineTo(-0.499, 0.037).close().extrude(2)
result = result.edges().... | 3 | 31 | 1.56943 |
train_176b3740cd1be313 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.324, -0.246, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.176, 1.182).lineTo(0, 1.258).lineTo(-0.176, 1.182).lineTo(-0.294, 1.131).lineTo(-0.294, -0.754).lineTo(0.294, -0.754).lineTo(0.294, 1.131).lineTo(0.176, 1.182).close().extrude(0.647)
... | 4 | 41 | 0.701439 |
train_254d6188e1dfbfd5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.297, -0.211, -0.294), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.075, -0.09).threePointArc((-0.102, -0.08), (-0.113, -0.053)).lineTo(-0.113, 0.082).threePointArc((0, 0.09), (0.113, 0.082)).lineTo(0.113, -0.053).threePointArc((0.102, -0.08), ... | 22 | 93 | 0.321328 |
train_295bec3a98c331ca | 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.26, 1.177).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.129, 0.304, 0.003), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.569, 0.598).extrude(0.557))
result = result.cut(cq.Workpla... | 7 | 34 | 2.636936 |
train_9b2a047d4055d19b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.586, -0.061, -0.512), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.226).workplane(offset=0.107).circle(0.226).workplane(offset=0.095).circle(0.189).workplane(offset=0.084).circle(0.167).workplane(offset=0.089).circle(0.184).workplane(offset=0.1... | 8 | 62 | 0.430124 |
train_eb1ca75b8ce853e4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.309, -0.231, -0.102), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.185, -0.627).lineTo(-0.185, -0.046).lineTo(0.325, -0.046).lineTo(0.325, 0.046).lineTo(-0.185, 0.046).lineTo(-0.185, 0.627).lineTo(-0.325, 0.627).lineTo(-0.325, -0.627).lineTo(-0... | 15 | 141 | 0.30245 |
train_087eb6ce41eb5d81 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.617, 0.443, 0.569), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.458, 0.067).lineTo(0.458, 0.757).lineTo(-0.458, 0.612).lineTo(-0.458, 0.067).close().extrude(0.657)
result = result.edges().chamfer(0.137)
result = result.union(cq.Workplane(cq.Pl... | 11 | 56 | 0.467959 |
train_6281535cd296083b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.517, -0.304), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.025, -0.038).lineTo(-0.044, -0.055).lineTo(-0.03, -0.049).lineTo(-0.025, -0.047).lineTo(-0.018, -0.044).lineTo(-0.002, -0.038).lineTo(0.13, -0.038).lineTo(0.107, 0.006).lineTo(0.082... | 4 | 141 | 0.029853 |
train_1504d1dec0ebcf29 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.001, -0.004, -0.188), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.205, 0.411).threePointArc((-0.213, 0.389), (-0.236, 0.38)).lineTo(-0.236, -0.358).threePointArc((-0.257, -0.411), (-0.205, -0.389)).lineTo(0.226, -0.389).lineTo(0.257, -0.389).li... | 10 | 62 | 0.702861 |
train_e88604e3f211b777 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.368, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.651).workplane(offset=0.328).circle(0.427).workplane(offset=0.377).circle(0.329).workplane(offset=0.33).circle(0.464).workplane(offset=0.333).circle(0.278).loft()
result = result.union(cq.... | 3 | 12 | 0.790501 |
train_5b097e3fd62cc763 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.692), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.747).extrude(1.385)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.337, 0.056, 0.471), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.544, 0.613).extrude(0.227))
result = result.cut(cq.W... | 13 | 80 | 2.411828 |
train_f11e57963dafc15e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.173, -0.227, -0.654), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.931, 1.254).extrude(1.067)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0.664, -0.429), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1, 0.113).threePointArc((0.817, 0.17), ... | 5 | 25 | 1.15438 |
train_939efa91eaeed065 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.222, 0.003, 0.14), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.138, 0.674).lineTo(-0.138, 1.01).lineTo(0.138, 1.01).lineTo(0.138, -0.778).lineTo(-0.138, -0.778).lineTo(-0.138, 0.674).close().revolve(angleDegrees=270, axisStart=(-0.138, 0.674),... | 30 | 73 | 0.289264 |
train_307b1ad399e4f5f3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.322), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.247).extrude(0.643)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.36, -0.087, -0.035), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.334, 1.497).extrude(0.061))
result = result.edges().... | 13 | 91 | 1.367809 |
train_009d937591206b7c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.103, 0, -0.025), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.482, 0.604).extrude(0.303)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.236, 0.052, 0.125), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.108).extrude(0.104))
result = result.uni... | 22 | 425 | 0.191706 |
train_18f60d456955119c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.252, 1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.742, 0.192).threePointArc((-0.719, 0.18), (-0.696, 0.166)).threePointArc((-0.666, 0.149), (-0.638, 0.133)).lineTo(-0.992, -0.018).threePointArc((-0.841, -0.077), (-0.696, -0.152)).threePo... | 3 | 34 | 0.387825 |
train_87fccad52b3b680e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.5, -0.351, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.5, 0.586).lineTo(-0.5, 0.117).lineTo(0.5, 0.117).lineTo(0.5, 0.586).lineTo(-0.5, 0.586).close().revolve(angleDegrees=360, axisStart=(-0.5, 0.586), axisEnd=(-0.5, 0.569))
result = result... | 5 | 63 | 1.320315 |
train_a2331f8716c8b45a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.178, -0.201, -0.106), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.147, 0.257).lineTo(0.639, 0.257).lineTo(0.639, 0.031).lineTo(-0.639, 0.031).lineTo(-0.639, 0.577).lineTo(0.147, 0.577).lineTo(0.147, 0.257).close().extrude(0.289)
result = result.... | 18 | 124 | 0.11646 |
train_5d277d0213977345 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.502, -1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.27, -0.124).lineTo(-0.27, 0.259).threePointArc((-0.168, 0.505), (0.078, 0.607)).lineTo(0.105, 0.607).lineTo(0.688, 0.607).lineTo(0.688, 1.025).lineTo(0.688, 1.128).lineTo(0.105, 1.128).l... | 13 | 31 | 1.605544 |
train_4406c8556b22fbca | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.454).workplane(offset=0.146).circle(0.45).workplane(offset=0.204).circle(0.531).workplane(offset=0.186).circle(0.476).workplane(offset=0.155).circle(0.517).workplane(offset=0.168).circle(0.466... | 6 | 22 | 0.668823 |
train_84d5a485f63f6bd1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.213, 0.265, 0.517), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.168, 0.08).lineTo(0.168, -0.036).lineTo(-0.168, -0.036).lineTo(-0.168, 0.08).lineTo(0.168, 0.08).close().extrude(0.486)
result = result.edges().fillet(0.006)
result = result.cut(cq... | 18 | 322 | 0.233589 |
train_4a3effc41531de98 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.271, 0, -0.049), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.22, 0.27).lineTo(-0.314, 0.287).lineTo(-0.313, 0.297).lineTo(0.314, 0.187).lineTo(0.313, 0.176).lineTo(0.252, 0.187).lineTo(0.252, -0.297).lineTo(0.242, -0.297).lineTo(0.242, -0.244)... | 14 | 112 | 0.214804 |
train_e41159e2f6ee28f2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.714, -0.143, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.279, -0.272).lineTo(-0.265, -0.286).lineTo(-0.25, -0.272).lineTo(0.279, 0.257).lineTo(0.25, 0.286).lineTo(-0.279, -0.243).lineTo(-0.265, -0.257).lineTo(-0.279, -0.272).close().sweep... | 1 | 9 | 0.00112 |
train_b447cb38c721769e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.871, 0.597, -0.027), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.113, 0.113).threePointArc((0, 0.226), (-0.113, 0.113)).lineTo(-0.113, -0.113).threePointArc((0, -0.226), (0.113, -0.113)).lineTo(0.113, 0).lineTo(0.113, 0.113).close().transforme... | 1 | 7 | 0.030411 |
train_a98d8965b9e3da13 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0, -0.668), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.048, 0).lineTo(0.048, -0.144).lineTo(-0.048, -0.144).lineTo(-0.048, 0.144).lineTo(0.048, 0.144).lineTo(0.048, 0).close().sweep(cq.Workplane('XZ').spline([(-0.46, -0.734), (-0.28, -0.232)... | 1 | 7 | 0.03432 |
train_679b89246eab8057 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.544, 0, -0.522), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.913, 1.572).extrude(1.373)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.789, -0.174, -0.385), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.443, 0.679).extrude(0.483))
result = resu... | 8 | 75 | 0.889683 |
train_45ddf0b8f76a7b1c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.177, -0.291, -0.522), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.647, 0.763).extrude(1.044)
result = result.union(cq.Workplane(cq.Plane(origin=(0.364, 0.129, 0.015), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.224, 0.087).extrude(0.109))
result = r... | 10 | 59 | 1.568191 |
train_fe6abfcc37e15190 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.008, 0.013, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.313, 0.307).extrude(1.809)
result = result.union(cq.Workplane(cq.Plane(origin=(0.156, 0.092, 0.079), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.016, 0.045).extrude(0.228))
result = resul... | 6 | 26 | 0.17788 |
train_fb271dcc5d5dba96 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.157), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.45, -1).lineTo(-0.45, -0.29).lineTo(-0.35, -0.29).lineTo(-0.35, 1).lineTo(0.45, 1).lineTo(0.45, -1).lineTo(-0.45, -1).close().workplane(offset=0.17).moveTo(-0.3, -0.667).lineTo(-0.3, -0.1... | 13 | 77 | 0.208763 |
train_6005004ed059d8ce | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.176, -0.14, 0.021), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.775, 0.918).extrude(0.052)
result = result.union(cq.Workplane(cq.Plane(origin=(0.235, -0.075, 0.072), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.205).extrude(0.02))
result = result.u... | 20 | 211 | 0.136241 |
train_319e6c3e421fa62f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.504, -0.213, -0.059), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.37, -0.454).threePointArc((0, -0.824), (0.37, -0.454)).lineTo(0.37, 0.88).threePointArc((0, 1.25), (-0.37, 0.88)).lineTo(-0.37, -0.454).close().workplane(offset=0.201).moveTo(-0... | 3 | 19 | 1.340739 |
train_3e31e9bf0eaebf3a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.257, 0.246, 0.791), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.591).workplane(offset=0.296).circle(0.545).workplane(offset=0.33).circle(0.317).workplane(offset=0.346).circle(0.717).workplane(offset=0.3).circle(0.431).workplane(offset=0.31).cir... | 14 | 256 | 1.268787 |
train_e535728cee99f5aa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.269, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.428, 0.302).threePointArc((0, 0.827), (0.428, 0.302)).threePointArc((0, -0.046), (-0.428, 0.302)).close().extrude(2)
result = result.edges().chamfer(0.188)
result = result.faces('>Z').sh... | 15 | 47 | 1.034794 |
train_a6bbcd08300484af | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.328), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.154, 2).extrude(0.561)
result = result.union(cq.Workplane(cq.Plane(origin=(0.058, 0.1, 0.229), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.519).extrude(0.063))
result = result.union(cq.Workp... | 4 | 15 | 1.265704 |
train_5f17dd1d4f0ecb84 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.293, 0, 0.188), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.055, -0.754).lineTo(0.754, 0.055).lineTo(0.055, 0.754).lineTo(-0.754, -0.055).lineTo(-0.055, -0.754).close().extrude(0.377)
result = result.edges().fillet(0.112)
result = result.cut(... | 10 | 42 | 0.260751 |
train_26e97cdf5ce2bda5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.133, 0.649, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.495, 0.759).threePointArc((-0.35, 0.997), (-0.103, 1.124)).threePointArc((-0.002, 1.133), (0.098, 1.124)).threePointArc((0.353, 0.99), (0.495, 0.74)).lineTo(0.326, 0.74).threePointArc... | 11 | 57 | 0.64878 |
train_978269f3d3ac8568 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.329, -0.008, -0.182), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.204, 0.604).lineTo(0.204, 0.604).lineTo(0.204, -0.191).lineTo(-0.204, 0.604).close().extrude(0.479)
result = result.edges().fillet(0.077)
result = result.union(cq.Workplane(cq.P... | 5 | 36 | 0.069023 |
train_fae053053be3abc2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.355, 0.099, 0.023), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.202, -0.157).lineTo(-0.202, 0.091).lineTo(-0.303, 0.091).lineTo(-0.303, 0.338).lineTo(-0.101, 0.338).lineTo(-0.101, 0.091).lineTo(0.303, 0.091).lineTo(0.303, 0.021).lineTo(-0.101,... | 25 | 233 | 0.232038 |
train_86f6d04493a17e13 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.593, 0, -0.757), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.224).workplane(offset=0.439).circle(0.242).workplane(offset=0.377).circle(0.225).workplane(offset=0.37).circle(0.222).loft()
result = result.edges().fillet(0.196)
result = result.unio... | 18 | 172 | 0.250315 |
train_4944f3630053c60d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.154, 0.436), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.539, 0.158).lineTo(-0.539, -0.158).lineTo(0.539, -0.158).lineTo(0.539, 0.158).lineTo(-0.539, 0.158).close().sweep(cq.Workplane('YZ').spline([(0.154, 0.033), (0.418, 0.218), (0.682, 0.2... | 4 | 19 | 0.323608 |
train_3ce0e00009f94025 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.905, -0.007, 0.53), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.005, 0.088).lineTo(-0.005, 0.013).lineTo(-0.066, -0.047).threePointArc((-0.038, -0.069), (-0.005, -0.083)).threePointArc((0.03, -0.088), (0.066, -0.083)).lineTo(0.066, 0.013).lin... | 1 | 9 | 0.061978 |
train_73c1515700535467 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.1, 0.256, -0.759), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.154, -0.229).lineTo(0.244, -0.477).lineTo(0.124, -0.52).lineTo(0.019, -0.229).lineTo(-0.244, 0.491).threePointArc((-0.185, 0.516), (-0.125, 0.539)).lineTo(0.154, -0.229).close().ext... | 8 | 124 | 0.600984 |
train_e77a337e7a6ec5aa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.083, -0.636, 0.102), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.898, -0.309).threePointArc((0, 0.309), (-0.898, -0.309)).lineTo(-0.148, -0.309).lineTo(-0.065, -0.309).lineTo(0.898, -0.309).close().sweep(cq.Workplane('XY').spline([(-0.083, -0.... | 3 | 18 | 0.614596 |
train_1d950ee3e8ea8973 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.052, -0.129, -0.297), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.182, -0.052).lineTo(0, -0.052).lineTo(0, 0.129).lineTo(0.182, 0.129).lineTo(0.182, 0.819).lineTo(-0.182, 0.819).lineTo(-0.182, -0.052).close().revolve(angleDegrees=180, axisSta... | 23 | 119 | 0.440378 |
train_152b85754ea7adf8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.261, 0, 0.732), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.739, 0.623).lineTo(0.739, 0.623).lineTo(0.739, -0.623).lineTo(-0.739, -0.623).lineTo(-0.739, 0.623).close().extrude(1.192)
result = result.edges().fillet(0.195)
result = result.union... | 6 | 37 | 2.198896 |
train_4383aa869b7dce9c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.092, -0.556, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.415, -0.282).lineTo(-0.352, -0.22).lineTo(0.352, -0.22).lineTo(0.415, -0.282).lineTo(1, -0.282).lineTo(1, -0.22).lineTo(0.44, -0.22).lineTo(0.372, -0.153).lineTo(0, 0.282).lineTo(-0.3... | 4 | 31 | 0.215785 |
train_6edba0ffed68e8d0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.196, -0.214, 0.028), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.242, -0.282).lineTo(0.242, -0.282).lineTo(0.129, -0.04).lineTo(0.242, 0.282).lineTo(-0.242, 0.282).lineTo(-0.242, -0.282).close().sweep(cq.Workplane('XZ').spline([(0.196, -0.648),... | 13 | 82 | 0.259937 |
train_894ca0ae6635283d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.583), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.26, -1).lineTo(0.26, -1).lineTo(0.26, 1).lineTo(-0.26, 1).lineTo(-0.26, -1).close().extrude(1.165)
result = result.edges().chamfer(0.081)
result = result.cut(cq.Workplane(cq.Plane(origin=... | 3 | 28 | 1.154806 |
train_547aa6bbb125ea48 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.068, 0.252, -0.66), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.515, 0.745).lineTo(-0.773, 0.637).lineTo(0.35, -1.138).lineTo(0.492, -1.252).lineTo(0.569, -0.712).lineTo(0.91, -0.546).close().moveTo(0.043, 0.748).lineTo(-0.135, 0.748).lineTo(-... | 16 | 87 | 1.014556 |
train_9c5287e0d3a18a3d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.148, -0.231), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.749, 0.148).lineTo(-0.749, 0.148).lineTo(-0.662, -0.148).lineTo(0.662, -0.148).lineTo(0.749, 0.148).close().revolve(angleDegrees=360, axisStart=(0.749, 0.148), axisEnd=(-0.749, 0.148)... | 7 | 18 | 0.283368 |
train_819687cfa9d7b7a5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.279), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.076).extrude(0.558)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.279, -0.978), normal=(0, 1, 0), xDir=(1, 0, 0))).moveTo(0.083, 0.058).lineTo(0.067, 0).lineTo(0.025, -0.043).lin... | 15 | 82 | 0.762853 |
train_c77563006e439493 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1.173, 0.661, 0.001), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.824, 2.173).lineTo(-0.824, 2.173).lineTo(-0.824, 0.997).threePointArc((0, 0.173), (0.824, 0.997)).lineTo(0.824, 2.173).close().extrude(1.323)
result = result.edges().fillet(0.622)
... | 8 | 47 | 2.200416 |
train_015bcb235c5e54d6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.131, -0.128, 0.436), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.436, 0.131).lineTo(-0.436, 0.035).lineTo(0.436, 0.035).lineTo(0.436, 0.228).lineTo(-0.436, 0.228).lineTo(-0.436, 0.131).close().revolve(angleDegrees=270, axisStart=(-0.436, 0.131... | 10 | 50 | 0.31197 |
train_6065a2aa0dc801a7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.455, -1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.392, 0.582).lineTo(0.789, 0.582).lineTo(0.789, 0.056).lineTo(-0.789, 0.056).lineTo(-0.789, 0.855).lineTo(-0.392, 0.855).lineTo(-0.392, 0.582).lineTo(0.392, 0.582).close().extrude(1.027)
r... | 14 | 196 | 1.206437 |
train_edfa2a6ddb789cc4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.98, 0.037).lineTo(-1, 0.037).lineTo(-1, 0.042).lineTo(1, 0.155).lineTo(1, 0.037).lineTo(-0.98, 0.037).close().revolve(angleDegrees=270, axisStart=(0, 0), axisEnd=(0.075, 0))
result = result.c... | 10 | 57 | 0.02191 |
train_162f0bf07c45cb6e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.089, 0.115, -0.049), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.895, 0.242).lineTo(0.087, 0.742).lineTo(-0.579, 0.549).lineTo(-1.089, -0.002).lineTo(-0.439, -0.583).lineTo(-0.514, -0.64).lineTo(0.647, -0.58).lineTo(0.911, -0.456).close().moveTo... | 9 | 72 | 0.228876 |
train_60f00f26104b41b9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.263, 0.214, 0.048), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.138, 0.469).lineTo(-0.044, 0.469).lineTo(-0.044, 0.152).lineTo(0.138, 0.152).lineTo(0.138, -0.084).lineTo(-0.044, -0.084).lineTo(-0.044, -0.26).lineTo(-0.138, -0.26).lineTo(-0.138... | 8 | 73 | 0.066062 |
train_a1c8f2637fc25748 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.125, -0.485, 0.342), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.191, -0.228).lineTo(-0.191, 0.515).lineTo(-0.304, 0.515).lineTo(0.304, 0.515).lineTo(0.304, -0.228).lineTo(-0.191, -0.228).close().revolve(angleDegrees=270, axisStart=(-0.191, -0... | 12 | 66 | 0.906009 |
train_1dd563c5cb0984af | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.009, -0.06, -0.006), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.214, 0.298).extrude(0.054)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.148, -0.019, 0.003), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.037).extrude(0.022))
result = resu... | 19 | 143 | 0.022688 |
train_8dcc5726df708732 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.368, 0.397, -0.022), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.381, 0.049).lineTo(0.381, 1.368).lineTo(-0.115, 1.368).lineTo(-0.381, -0.894).lineTo(0.381, 0.049).close().extrude(0.795)
result = result.edges().fillet(0.112)
result = result.cut... | 5 | 96 | 0.747512 |
train_59c88ff327270470 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.156, 0, -0.346), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.051, 2).extrude(0.691)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.497, 0.194, -0.23), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.194).extrude(0.34))
result = result.union(cq.... | 13 | 97 | 0.527681 |
train_b367f280d86d759c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.398, -0.038), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.047, -0.177).lineTo(-0.185, -0.177).lineTo(0.004, 0.177).lineTo(0.185, 0.081).lineTo(0.047, -0.177).close().sweep(cq.Workplane('YZ').spline([(-0.67, -0.247), (-0.407, -0.181), (-0.145... | 8 | 58 | 0.146972 |
train_408967ca35ee346a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.338, 0.272, -0.138), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.323, 0.198).extrude(0.115)
result = result.union(cq.Workplane(cq.Plane(origin=(0.633, 0.22, -0.124), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.734, 0.055).extrude(0.062))
result = r... | 8 | 43 | 0.660199 |
train_fcd55f1d27682957 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.311), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.402).extrude(0.946)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.339, 0.036, -0.398), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.136, 0.187).extrude(0.09))
result = result.edges(... | 9 | 72 | 2.45001 |
train_1bded1858dc437a1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.501), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.567, -0.333).lineTo(0.567, -0.333).lineTo(0.122, -0.248).lineTo(-0.058, -0.214).lineTo(-0.2, -0.187).lineTo(-0.231, -0.102).lineTo(-0.256, -0.033).lineTo(-0.388, 0.333).lineTo(-0.441, 0.1... | 6 | 34 | 0.202758 |
train_2243c42c009b8ca5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.51, -1.897, -0.1), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.754, 2.897).lineTo(0.754, 2.897).lineTo(0.754, -0.34).lineTo(0.024, 1.227).lineTo(-0.754, 2.897).close().extrude(1.168)
result = result.edges().fillet(0.351)
result = result.union(... | 13 | 78 | 1.559425 |
train_f73541adaa9da8d7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.447), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.785).extrude(0.952)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.14, -0.13, 0.138), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2.4, 0.098).extrude(0.053))
result = result.cut(cq.Workp... | 8 | 34 | 3.34292 |
train_78384bc9264e1d4c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.428), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.904).extrude(1.117)
result = result.union(cq.Workplane(cq.Plane(origin=(0 + 0.311 * math.cos(5.979 + 2 * math.pi * 0 / 8), 0 + 0.311 * math.sin(5.979 + 2 * math.pi * 0 / 8), -0.689), norm... | 19 | 24 | 4.375719 |
train_d641e74b1b02064f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.322, 0.286, -0.203), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.286, 0.894).lineTo(-0.286, -0.251).lineTo(0.286, -0.251).lineTo(0.286, 0.894).lineTo(-0.286, 0.894).close().revolve(angleDegrees=180, axisStart=(-0.286, 0.894), axisEnd=(-0.286, ... | 4 | 32 | 0.957222 |
train_eb00434fcf014ef7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.107, 0.162, -0.373), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.481, 1.113).extrude(1.373)
result = result.union(cq.Workplane(cq.Plane(origin=(0.066, -0.011, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.144).extrude(0.648))
result = result.u... | 14 | 90 | 1.195597 |
train_16b084fde118840f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.031, 0.294, -0.051), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.603, 0.624).extrude(0.48)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.439, 0.322, 0.05), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.362, 0.555).extrude(0.279))
result = res... | 11 | 66 | 0.48897 |
train_c81e5d91efbdee02 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.143, -0.055, 0), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.284, -0.035).lineTo(0.857, -0.035).lineTo(0.857, 0.035).lineTo(-0.785, 0.035).lineTo(-0.857, -0.035).lineTo(-0.284, -0.035).close().revolve(angleDegrees=270, axisStart=(-0.284, -0.0... | 4 | 18 | 0.01578 |
train_793843cbcb0c01ab | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.014, 0.043, -0.013), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.12, -0.343).lineTo(0.12, 1.014).lineTo(-0.02, 1.014).lineTo(-0.02, -0.343).lineTo(-0.12, -0.343).lineTo(-0.12, -0.986).lineTo(0.12, -0.986).lineTo(0.12, -0.343).close().revolve(an... | 20 | 75 | 0.056134 |
train_8312d2e3eacad0ad | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.025, -0.21, -0.294), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.95, 1.484).extrude(0.804)
result = result.union(cq.Workplane(cq.Plane(origin=(0.241, 0.772, -0.214), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.227, 1.007).lineTo(-0.14, 0.92).li... | 6 | 31 | 1.959178 |
train_a0481d04d347c60a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.386, -0.201, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, -0.147).lineTo(0.169, 0.145).lineTo(0.169, 0.147).lineTo(-0.169, 0.147).lineTo(-0.169, 0.145).lineTo(0, -0.147).close().sweep(cq.Workplane('XY').spline([(-0.044, -0.201), (-0.19, -0.1... | 2 | 13 | 0.073863 |
train_dc1fdccc502b0744 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.122, -0.307, -0.097), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.167, 1.386).extrude(0.198)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.064, -0.238, 0.1), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.525).extrude(0.033))
result = resul... | 17 | 112 | 0.429985 |
train_1be84dd8bc339fb4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.173, -0.075, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.94, 0.046).lineTo(0.94, -0.046).lineTo(-0.94, -0.046).lineTo(-0.94, 0.046).lineTo(0.94, 0.046).close().sweep(cq.Workplane('XY').spline([(0.326, -0.075), (0.826, -0.106), (1.325, -0.3... | 19 | 107 | 0.271081 |
train_a76bc7164e20c74f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.372), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.248).extrude(0.801)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.499 + 0.2495, 0.24, -1.672), normal=(1, 0, 0), xDir=(0, 1, 0))).moveTo(-0.084, 0.104).lineTo(-0.093, 0.12).lineTo(... | 6 | 11 | 2.001762 |
train_c0dbc691c4a46090 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.479, 0.017, -0.504), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.043, 0.146).extrude(0.172)
result = result.union(cq.Workplane(cq.Plane(origin=(0.507, 0.055, -0.44), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.987, 0.04).extrude(0.067))
result = re... | 9 | 55 | 0.105387 |
train_552c6890e15fd137 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.007, 0.004, -0.397), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.079, -0.886).lineTo(0.079, 0.9).lineTo(-0.039, 0.9).lineTo(-0.079, 0.831).lineTo(-0.079, -0.817).lineTo(-0.039, -0.886).lineTo(0.079, -0.886).close().workplane(offset=0.061).moveT... | 3 | 35 | 0.044765 |
train_21798ddecc66460a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.136, -0.048), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.523).sweep(cq.Workplane('YZ').spline([(0.448, -0.369), (0.354, 0.653), (-0.063, 0.942), (-0.448, 0.612), (-0.453, -0.554), (-0.068, -0.951)]))
result = result.cut(cq.Workplane(cq.Pla... | 8 | 37 | 1.266474 |
train_a7d6f291d08dc2bc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.785, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1.106, 0.099).lineTo(1.106, 0.099).threePointArc((0, 1.196), (-1.106, 0.099)).close().extrude(2)
result = result.edges().chamfer(0.526)
result = result.union(cq.Workplane(cq.Plane(origin=(... | 15 | 34 | 1.720006 |
train_4d04939c5fbfacc0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.046, 0, -0.667), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.167, 1.688).extrude(1.003)
result = result.union(cq.Workplane(cq.Plane(origin=(0.748, 0.014, -0.41), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.503, 0.987).extrude(0.195))
result = resul... | 16 | 131 | 1.230988 |
train_26585909a7934239 | 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(2, 1.591).extrude(0.702)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.351, -1.651), normal=(1, 0, 0), xDir=(0, 1, 0))).rect(0.741, 0.227).center(0.014, 0.016).rect(0.214, 0.063).extr... | 16 | 48 | 1.690471 |
train_c26f99f0ee11b3bc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.006, 0.094, 0.003), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.445, 0.445).extrude(0.876)
result = result.faces('<X').shell(-0.039)
result = result.union(cq.Workplane(cq.Plane(origin=(0.008, 0.144, 0.869), normal=(0, 0, 1), xDir=(1, 0, 0))).circ... | 17 | 347 | 0.125408 |
train_d4f715c5869e9629 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.374, -0.163, -0.299), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.816, 0.61).extrude(0.689)
result = result.union(cq.Workplane(cq.Plane(origin=(0.19, -0.266, 0.377), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.052).extrude(0.177))
result = result.... | 25 | 144 | 0.580282 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.