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_7d7db0ddc0a25538 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.104, 0.007, -0.914), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.086, -0.053).lineTo(0.086, 0.015).lineTo(0.034, 0.015).lineTo(0.034, 0.067).lineTo(-0.034, 0.067).lineTo(-0.034, 0.015).lineTo(-0.086, 0.015).lineTo(-0.086, -0.053).lineTo(0.086, ... | 5 | 65 | 0.004234 |
train_c1ae1759c6d7c80a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.177, 0.626, 0.128), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, -0.295).lineTo(-0.087, -0.087).lineTo(0, 0.122).lineTo(0.032, 0.044).lineTo(0.017, -0.017).lineTo(0.087, -0.087).lineTo(0, -0.087).lineTo(0.041, -0.091).lineTo(0.083, -0.097).lineT... | 5 | 22 | 0.079302 |
train_33b0f121a5ba7186 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.737, 0.007, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.524, 0.15).lineTo(0.524, 0.063).lineTo(-0.524, 0.15).lineTo(0.524, 0.15).close().revolve(angleDegrees=270, axisStart=(0.524, 0.15), axisEnd=(0.524, 0.063))
result = result.edges().fill... | 6 | 103 | 0.131121 |
train_a68d0b3a79765912 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.014, -0.723), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.264, 0.028).threePointArc((0.277, 0.016), (0.264, 0.003)).lineTo(-0.264, 0.003).threePointArc((-0.277, 0.016), (-0.264, 0.028)).lineTo(0.264, 0.028).close().revolve(angleDegrees=270,... | 5 | 104 | 0.002215 |
train_7adf8c5cf1dd4eb5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.192), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.808, 0.262).lineTo(0.734, 0.028).lineTo(-0.734, 0.028).lineTo(-0.808, 0.262).lineTo(-0.808, 0.597).lineTo(0.808, 0.597).lineTo(0.808, 0.262).close().revolve(angleDegrees=360, axisStart=(0,... | 5 | 29 | 1.90955 |
train_7ef41ce7c16f4bb8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.29, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.118, 0.494).threePointArc((0, 0.526), (-0.118, 0.494)).lineTo(-0.118, 1.065).threePointArc((-0.554, 0.844), (-0.775, 0.408)).lineTo(-0.205, 0.408).threePointArc((-0.236, 0.29), (-0.205, 0.... | 5 | 52 | 1.421585 |
train_f9e14dc8b1fbbd42 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.226, -0.059, -0.142), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.233, 0.204).extrude(0.023)
result = result.union(cq.Workplane(cq.Plane(origin=(0.226, -0.054, -0.119), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.06).extrude(0.005))
result = resul... | 33 | 209 | 0.085406 |
train_1508a6b3f90976a0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.92, -1.315, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.7, 0.394).threePointArc((0.41, 0.315), (0.121, 0.394)).lineTo(0.019, 0.394).lineTo(0.019, 0.357).lineTo(-0.764, 0.357).lineTo(-0.764, 0.394).lineTo(-0.764, 2.315).lineTo(-0.727, 2.315... | 9 | 99 | 1.928719 |
train_03a22fcee931685a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.324, 0.114), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.288, -0.676).lineTo(-0.288, 0.676).lineTo(-0.265, 0.676).lineTo(-0.265, 0.509).lineTo(0.288, 0.509).lineTo(0.288, 0.487).lineTo(-0.265, 0.487).lineTo(-0.265, -0.676).lineTo(-0.288, -0... | 3 | 23 | 0.174037 |
train_d87bbe521b9bb058 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.032, 0, 0.5), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.5, 0.054).lineTo(-0.5, 0.004).lineTo(0.5, 0.004).lineTo(0.5, 0.054).lineTo(-0.5, 0.054).close().revolve(angleDegrees=360, axisStart=(-0.5, 0.054), axisEnd=(-0.5, 0.004))
result = result... | 9 | 54 | 0.155872 |
train_902f9c707ef6e71a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.518, -0.406, -0.505), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.603, -0.251).lineTo(0.305, 0.047).lineTo(0, 0.352).lineTo(0.305, 0.657).lineTo(0.279, 0.781).lineTo(-0.305, 0.657).lineTo(-0.603, 0.954).lineTo(0.603, 0.954).lineTo(0.603, -0.251... | 13 | 102 | 0.334559 |
train_285529e93a77f333 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.144, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).lineTo(0.302, 0.301).lineTo(0.503, 0.301).lineTo(0.503, 0.15).lineTo(0.503, 0.112).lineTo(0.302, 0.112).lineTo(0.302, 0.15).lineTo(0.272, 0.15).threePointArc((0.187, 0.114), (0.151, 0.028)).lineTo(... | 12 | 72 | 0.246296 |
train_b5409482df3dbf59 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.385, -0.099, -0.595), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.23, 0.81).extrude(0.492)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.261, 0.096, -0.168), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.288, 0.241).extrude(0.875))
result = ... | 9 | 48 | 0.656067 |
train_878faca36685e1b7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.641, 0.305, 0.057), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.514, 0.527).threePointArc((-0.516, 0.557), (-0.514, 0.587)).lineTo(-0.406, 1.443).threePointArc((-0.245, 1.26), (-0.082, 1.443)).lineTo(0.025, 0.587).threePointArc((0.027, 0.557),... | 16 | 183 | 0.522956 |
train_379de7c6c82d6343 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.07, -0.144, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.17, 0.128).lineTo(0.116, 0.293).lineTo(-0.054, 0.329).lineTo(-0.17, 0.199).lineTo(-0.116, 0.034).lineTo(0.054, -0.002).lineTo(0.17, 0.128).close().extrude(0.835)
result = result.edges(... | 14 | 114 | 0.117329 |
train_2cb4208fadebe485 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.339, 0.204, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.04, -0.099).lineTo(0.561, 0.043).lineTo(0.661, 0.477).lineTo(0.513, 0.477).lineTo(0.513, 0.539).lineTo(-0.661, 0.539).lineTo(-0.647, 0.477).lineTo(-0.565, 0.119).lineTo(-0.04, -0.004)... | 9 | 68 | 0.898583 |
train_0a13652943bdfe68 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.097, -0.058, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.922, 0.175).threePointArc((-1, 0.097), (-0.922, 0.019)).lineTo(0.314, 0.019).lineTo(0.922, 0.019).threePointArc((1, 0.097), (0.922, 0.175)).lineTo(0.314, 0.175).lineTo(-0.922, 0.175)... | 9 | 48 | 0.032859 |
train_c839b9bf5f7caee2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.519, 1, 0.015), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.293, 0.084).threePointArc((0, 0.305), (-0.293, 0.084)).threePointArc((-0.305, 0), (-0.293, -0.084)).threePointArc((0, -0.305), (0.293, -0.084)).threePointArc((0.305, 0), (0.293, 0.084)... | 9 | 76 | 0.728044 |
train_e563887a79d732b3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.275, -0.008, -0.071), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.716, -0.726).lineTo(0.725, -0.721).lineTo(0.722, 0.738).lineTo(-0.726, 0.743).close().moveTo(-0.093, 0).lineTo(-0.192, 0.134).lineTo(-0.348, 0.083).lineTo(-0.35, -0.084).lineTo(-... | 16 | 44 | 0.234799 |
train_23bc120eb810a317 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.588, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.949).lineTo(0.033, 0.967).lineTo(0.819, 1.421).threePointArc((0.819, 0.475), (0, 0.002)).threePointArc((-0.819, 0.475), (-0.819, 1.421)).lineTo(-0.033, 0.967).lineTo(0, 0.949).close().... | 5 | 30 | 2.489023 |
train_cf78a9b656273e03 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.009, 0.695), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.129, 0.059).threePointArc((0, -0.142), (0.129, 0.059)).threePointArc((0, 0.142), (-0.129, 0.059)).close().sweep(cq.Workplane('XZ').spline([(-0.4, 0.539), (-0.16, 0.263), (0.08, 0.126... | 13 | 87 | 0.155665 |
train_c9df0cad50dde9b7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.329, 0.12), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.002, -0.671).lineTo(-0.013, -0.663).lineTo(-0.017, -0.659).lineTo(-0.013, -0.655).lineTo(-0.013, 0.671).lineTo(0.017, 0.671).lineTo(0.017, -0.64).lineTo(0.006, -0.632).lineTo(-0.013, -0... | 5 | 58 | 0.193254 |
train_39313b20b8c52bf5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.004, 0, -0.037), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.192, 0.923).lineTo(-0.192, -1).lineTo(0, -1).lineTo(0, -0.038).lineTo(0.192, -0.038).lineTo(0.192, 0.591).lineTo(0.092, 0.385).lineTo(0, 0.385).lineTo(0, 0.923).lineTo(0.192, 0.923)... | 4 | 38 | 0.093219 |
train_bd8686560012c8af | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.535), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.275, 2).extrude(1.07)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.138, 0.703, -0.255), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.678, 0.627).extrude(0.277))
result = result.cut(cq.Wo... | 7 | 103 | 2.42091 |
train_1bb01c1240eb1a6a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.008, -0.019, -0.594), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.308, 1.33).extrude(1.156)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.008, -0.019, 0.533), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.393, -0.387).lineTo(-0.279, -0.3... | 14 | 127 | 2.394209 |
train_0cf626b3aca9b46a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.123, 0.077, -0.119), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.369, 0.173).extrude(0.039)
result = result.union(cq.Workplane(cq.Plane(origin=(0.096, 0.105, -0.102), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.038).extrude(0.007))
result = resul... | 21 | 147 | 0.174619 |
train_bc2d1cb1aa2d9a32 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.476, 0.067, -0.028), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.115, -0.061).lineTo(-0.115, -0.05).lineTo(-0.175, -0.05).lineTo(-0.175, 0.061).lineTo(0.175, 0.061).lineTo(0.175, -0.061).lineTo(0.163, -0.061).lineTo(0.163, 0.05).lineTo(-0.104,... | 5 | 77 | 0.03425 |
train_3a0e010a960a2da2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.216, 0, -0.514), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.568, 1.19).extrude(0.596)
result = result.union(cq.Workplane(cq.Plane(origin=(0.105, -0.689, -0.05), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.793, 0.459).lineTo(-0.793, 0.329).lineT... | 8 | 52 | 1.076442 |
train_5917135229d58ebe | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.074, -0.134, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.034, -0.013).lineTo(-0.034, -0.926).lineTo(0.103, -0.926).lineTo(0.103, -0.013).lineTo(0.034, -0.013).lineTo(0.034, 1.074).lineTo(-0.103, 1.074).lineTo(-0.103, 0.162).lineTo(-0.034, ... | 15 | 75 | 0.047558 |
train_f78ce3a894bd7b77 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.069, 0.044, 0.891), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.931, 0.466).lineTo(0.931, -0.466).lineTo(-0.931, -0.466).lineTo(-0.931, 0.466).lineTo(0.931, 0.466).close().extrude(1.782)
result = result.edges().chamfer(0.341)
result = result.un... | 15 | 118 | 2.043399 |
train_43d77d4b4a077cbf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.371, 0.563, 0.292), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 0.188).threePointArc((-0.242, 0.53), (0.154, 0.663)).lineTo(0.204, 0.617).threePointArc((0.242, 0.342), (0.01, 0.188)).lineTo(0, 0.188).close().workplane(offset=0.296).moveTo(0, -... | 3 | 20 | 1.479847 |
train_ad6ff55f7996fac9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.317, 0, 0.87), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.047, -0.578).lineTo(0.378, 0.44).lineTo(0.047, 0.578).lineTo(-0.378, -0.44).lineTo(-0.047, -0.578).close().sweep(cq.Workplane('XZ').spline([(-1.075, 0.13), (-0.772, 0.142), (-0.469, 0.... | 8 | 30 | 0.256521 |
train_1fed19ad433c5b69 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.944, -0.036, -0.131), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.869, 0.32).threePointArc((0.102, -0.379), (-0.869, -0.744)).lineTo(-0.869, 0.835).lineTo(0.869, 0.32).close().extrude(1.888)
result = result.edges().fillet(0.178)
result = result... | 9 | 53 | 2.162556 |
train_63ef3922c4e9bb57 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.001, 0.481, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.471).workplane(offset=0.684).circle(0.614).workplane(offset=0.796).circle(0.408).loft()
result = result.edges().chamfer(0.146)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.14... | 8 | 36 | 0.90956 |
train_d300296758639db1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.351, -0.402), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.112).sweep(cq.Workplane('YZ').spline([(-0.351, -0.714), (-0.188, -0.847), (-0.025, -0.668), (0.138, -0.611), (0.301, -0.825), (0.465, -0.714)]))
result = result.edges().chamfer(0.098)... | 14 | 16 | 0.022079 |
train_b9bc62c84fb64305 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.026, 0.267, 0.881), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.298, -0.288).threePointArc((-0.256, -0.299), (-0.214, -0.306)).threePointArc((0.158, -0.113), (0.138, 0.306)).threePointArc((0.112, 0.339), (0.081, 0.369)).threePointArc((0.156, 0... | 1 | 8 | 0.068954 |
train_c57b4328a176bf5c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.676).workplane(offset=0.749).circle(0.585).workplane(offset=0.707).circle(0.503).workplane(offset=0.544).circle(0.845).loft()
result = result.edges().chamfer(0.559)
result = result.cut(cq.Work... | 10 | 8 | 1.382541 |
train_c43d7bbd98c42541 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 1, -0.091), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.124, -0.041).threePointArc((0.109, -0.066), (0.093, -0.09)).lineTo(-0.124, 0.057).threePointArc((-0.113, 0.073), (-0.103, 0.09)).lineTo(0.124, -0.041).close().sweep(cq.Workplane('YZ').spli... | 2 | 12 | 0.028571 |
train_b3b61670944f6ad6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.158, -0.134), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.946, 0.326).lineTo(-1, -0.057).lineTo(0.908, -0.326).lineTo(1, 0.326).lineTo(-0.946, 0.326).close().sweep(cq.Workplane('YZ').spline([(0.158, -0.134), (0.16, -0.002), (0.088, 0.102), ... | 18 | 27 | 0.385856 |
train_9522559b6fe3b85d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.083, 0, -0.481), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.519, -0.083).lineTo(0.519, -0.083).lineTo(0.519, 0.437).lineTo(-0.519, 0.956).lineTo(-0.519, -0.083).close().revolve(angleDegrees=360, axisStart=(-0.519, -0.083), axisEnd=(-0.244, -0.... | 8 | 30 | 2.77569 |
train_ea80c1dce6e1c7cc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.011, -0.26, -0.732), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.695, 0.589).extrude(1.732)
result = result.union(cq.Workplane(cq.Plane(origin=(0.4, -0.409, -0.195), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.042).extrude(0.285))
result = result.... | 15 | 226 | 0.704738 |
train_1fd7914242532790 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.17, -0.151, -0.047), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.056, -1.098).lineTo(0.056, 1.162).lineTo(-0.056, -0.875).lineTo(-0.013, -0.963).lineTo(-0.013, -1.162).lineTo(-0.003, -1.153).lineTo(0.056, -1.098).close().extrude(0.037)
result ... | 7 | 94 | 0.030562 |
train_ac5d033b34cafdab | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.108, 0.5, 0), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.666, 0.5).lineTo(-0.703, 0.5).lineTo(-0.703, -0.5).lineTo(0.703, -0.5).lineTo(0.703, 0.5).lineTo(0.666, 0.5).lineTo(0.666, -0.463).lineTo(-0.666, -0.463).lineTo(-0.666, 0.5).close().rev... | 4 | 31 | 0.545546 |
train_7901ee3e9a90ceac | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.052, -0.055, -0.167), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.368, 0.248).threePointArc((-0.385, 0.132), (0.368, 0.016)).threePointArc((0.385, 0.132), (0.368, 0.248)).close().extrude(0.056)
result = result.edges().fillet(0.014)
result = resu... | 9 | 119 | 0.203775 |
train_548879d6ce396c30 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.01, -0.268, 0.194), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.732).sweep(cq.Workplane('XZ').spline([(-0.541, -0.254), (0.01, -0.027), (0.561, -0.205)]))
result = result.edges().fillet(0.307)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0... | 13 | 51 | 1.870351 |
train_52ff92fbf29ec6f8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.314, -0.49, 0.581), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.675, 0.407).lineTo(-0.675, -0.377).lineTo(0.603, -0.377).threePointArc((0.675, -0.407), (0.645, -0.335)).lineTo(0.645, 0.365).threePointArc((0.615, 0.377), (0.603, 0.407)).lineTo(... | 13 | 44 | 1.65208 |
train_59269d099cd2452f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.191, 0, -0.355), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.618, 1.638).extrude(0.71)
result = result.union(cq.Workplane(cq.Plane(origin=(0.796, -0.01, -0.281), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.204).extrude(0.409))
result = result.cut... | 9 | 53 | 1.384601 |
train_658a35e4ac18ab42 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.849, 0.009, -0.468), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.488, -0.193).lineTo(0.326, -0.125).lineTo(0.135, -0.316).lineTo(0.202, -0.479).lineTo(-0.202, -0.479).lineTo(-0.488, -0.193).lineTo(-0.488, 0.212).lineTo(-0.326, 0.144).lineTo(-0.... | 8 | 70 | 1.494505 |
train_b513d7283a92978b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.088, 0.084, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.088, -0.916).lineTo(0.088, 1.084).lineTo(-0.088, 1.084).lineTo(-0.088, -0.916).lineTo(0.088, -0.916).close().revolve(angleDegrees=90, axisStart=(0.088, -0.916), axisEnd=(0.088, -0.67))... | 2 | 9 | 0.04537 |
train_83f187a9f703f3b0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.065), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.382, 2).extrude(0.106)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.553 + 0.138, -0.8 + 0.2, 0.041), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.055, -0.005).lineTo(-0.055, -0.115... | 17 | 198 | 0.297459 |
train_78f8abf59ae489c9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.04, -0.615), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.228, 1.92).extrude(1.229)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.058, -0.375, -0.624), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.718, 0.808).extrude(0.375))
result = result.... | 16 | 350 | 1.862352 |
train_763aa8de30f6e5ad | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.764, 0.647, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.837, -0.073).lineTo(-0.837, 1.6).lineTo(0.209, 1.6).lineTo(0.209, 0.973).lineTo(0.837, 0.973).lineTo(0.837, -0.073).lineTo(-0.837, -0.073).close().workplane(offset=0.223).moveTo(-0.86... | 4 | 16 | 2.947085 |
train_bd1e468de8b806eb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.766, 0.146, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(1, 1.016).lineTo(1, -0.501).lineTo(-1, -0.501).lineTo(-1, 1.016).lineTo(1, 1.016).close().extrude(1.531)
result = result.edges().chamfer(0.149)
result = result.cut(cq.Workplane(cq.Plane(... | 9 | 54 | 4.332738 |
train_5a59d5b50eb7354c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.009, -0.01, 0.104), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.467, 0.366).threePointArc((-0.366, 0.366), (-0.366, 0.467)).lineTo(-0.211, 0.312).threePointArc((0, 0.377), (0.211, 0.312)).threePointArc((0.267, 0.267), (0.312, 0.211)).threePoin... | 7 | 43 | 0.60605 |
train_1778e45820cf852d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.566, 0.343, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.235, 0.651).lineTo(0.235, 0.651).lineTo(0.235, 0.546).lineTo(0.37, 0.546).lineTo(0.37, 0.213).lineTo(0.639, 0.213).lineTo(0.639, 0.718).lineTo(0.773, 0.718).lineTo(0.773, 0.92).lineTo... | 7 | 35 | 0.360302 |
train_2da78688eb54cf98 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.095, -0.109), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.806, 0.019).lineTo(1, 0.019).lineTo(1, 0.205).lineTo(-1, 0.205).lineTo(-1, 0.019).lineTo(0.806, 0.019).close().extrude(0.218)
result = result.edges().chamfer(0.019)
result = result.cu... | 11 | 66 | 0.071359 |
train_ed3c356db7b6d2d0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.768, 0.168, -0.322), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.223, -0.082).lineTo(-0.223, 0.082).lineTo(-0.218, 0.082).lineTo(-0.218, 0.08).lineTo(-0.003, 0.08).lineTo(-0.003, -0.001).lineTo(-0.218, -0.001).lineTo(-0.218, -0.077).lineTo(-0.0... | 1 | 22 | 0.011021 |
train_162b22943e6af972 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.221, 0.067, 0.142), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.14).sweep(cq.Workplane('XZ').spline([(-0.376, -0.305), (-0.077, -0.071), (0.221, 0.006), (0.52, -0.071), (0.818, -0.305)]))
result = result.edges().fillet(0.067)
result = result.uni... | 23 | 59 | 0.091345 |
train_587c573c771aed5f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.047), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1, -0.448).lineTo(1, 0.448).lineTo(-1, 0.448).lineTo(-1, 0.403).lineTo(0.976, 0.403).lineTo(0.976, -0.448).lineTo(1, -0.448).close().extrude(0.094)
| 1 | 8 | 0.01038 |
train_1170871eefc2468f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.655, 0.727, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.512).sweep(cq.Workplane('XY').spline([(0.655, 0.18), (0.842, 0.184), (1.029, 0.208), (1.216, 0.303), (1.403, 0.472), (1.59, 0.567), (1.776, 0.591), (1.963, 0.596)]))
result = result.edg... | 5 | 12 | 0.012376 |
train_77ba2e5a1b3cee13 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.233, -0.213, 0.004), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.337, 1.213).lineTo(-0.337, -0.739).threePointArc((-0.323, -0.773), (-0.29, -0.787)).lineTo(0.29, -0.787).threePointArc((0.323, -0.773), (0.337, -0.739)).lineTo(0.337, 1.213).line... | 3 | 31 | 0.67635 |
train_4d8dfe573f6a7c42 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.114, 0.391, 0.149), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.602, 0.049).lineTo(0.602, 0.257).lineTo(0.34, 0.577).lineTo(0.34, 0.257).lineTo(-0.34, 0.257).lineTo(-0.34, 0.577).lineTo(-0.602, 0.257).lineTo(-0.602, 0.049).lineTo(0.602, 0.049)... | 22 | 167 | 0.211959 |
train_5123d5c2448bdf9d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.841, 0.264, 0.016), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.314, -0.289).lineTo(-0.516, -0.767).lineTo(-0.792, -0.289).lineTo(-0.792, 0.816).lineTo(0.037, 1.295).lineTo(0.314, 0.816).lineTo(0.792, -0.012).lineTo(0.314, -0.289).close().extru... | 8 | 86 | 3.296472 |
train_c4fe25443483601b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.046, 0.017, 0.002), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.022, 0.109).lineTo(-0.022, -0.068).lineTo(0.022, -0.068).threePointArc((0.022, -0.061), (0.02, -0.054)).threePointArc((0.007, 0.02), (0.02, 0.095)).threePointArc((0.022, 0.102), (... | 14 | 106 | 0.004626 |
train_2ba7c26237a2d711 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.2, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.749).sweep(cq.Workplane('XY').spline([(-0.228, -0.2), (0.287, -0.126), (0.801, -0.157), (1.316, -0.291)]))
result = result.edges().chamfer(0.185)
result = result.cut(cq.Workplane(cq.Plane(... | 4 | 13 | 2.220537 |
train_a662413b9c22e1f9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.04, 0.092, 0.595), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.723, 0.699).lineTo(-0.723, -0.699).lineTo(0.723, -0.699).lineTo(0.723, 0.699).lineTo(-0.723, 0.699).close().workplane(offset=0.417).moveTo(-0.707, 0.684).lineTo(-0.707, -0.684).li... | 19 | 101 | 0.608154 |
train_390bee00e14be039 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.675, 0, -0.384), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.65, 0.691).extrude(0.129)
result = result.union(cq.Workplane(cq.Plane(origin=(0.686, 0, -0.256), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.269, 0.22).lineTo(-0.248, 0.22).lineTo(-0.24... | 18 | 229 | 0.168532 |
train_f649c70d2f4d205c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.267, 0, -0.386), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.466, 1.076).extrude(0.772)
result = result.faces('>Z').shell(-0.042)
result = result.union(cq.Workplane(cq.Plane(origin=(0.707, 0.238, -0.224), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0... | 4 | 24 | 0.239208 |
train_4d531240e49c879f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.299, -0.72), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.274, 1.403).extrude(1.082)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, -0.299, 0.028), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.044).extrude(0.342))
result = result.union(cq.... | 10 | 47 | 1.292697 |
train_b36d6117ce7025ef | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.261), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.477, 2).extrude(0.522)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0.01), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.38, 0.436).extrude(0.279))
result = result.cut(cq.Workplane(cq... | 14 | 38 | 1.150594 |
train_0574f46803faed1f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.092, 0.266), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.203, 0.203).lineTo(0.608, 0.203).lineTo(0.608, 0.243).lineTo(-0.608, 0.243).lineTo(-0.608, 0.203).lineTo(-0.203, 0.203).lineTo(-0.203, -0.203).lineTo(-0.608, -0.203).lineTo(-0.608, -0.... | 1 | 14 | 0.52345 |
train_8a0f2f86c4e42cf9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.379, 0.045, -0.855), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.621, -0.661).lineTo(0.541, 0.501).lineTo(0.621, 0.581).lineTo(0.541, 0.661).lineTo(-0.621, 0.661).lineTo(-0.621, -0.661).close().sweep(cq.Workplane('XZ').spline([(-0.379, -2.265)... | 11 | 46 | 1.878373 |
train_26a2858439204524 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.701, 0.322, 0.305), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.749, 0.023).threePointArc((0, 0.836), (0.749, 0.023)).lineTo(-0.749, 0.023).close().extrude(1.401)
result = result.edges().chamfer(0.35)
result = result.union(cq.Workplane(cq.Plan... | 4 | 23 | 0.960296 |
train_7dd2b02e27ee3c57 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.504, 0.523, 0.006), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.523).lineTo(-0.575, 0.523).lineTo(-0.575, 1.531).lineTo(0.575, 1.531).threePointArc((0.407, 1.124), (0, 0.955)).lineTo(0, 0.523).close().revolve(angleDegrees=180, axisStart=(0, 0... | 13 | 59 | 1.189625 |
train_5e98dbb86b9dfeaf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.755, 0.228, 0.109), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.2, 0.476).threePointArc((-0.235, 0.462), (-0.249, 0.427)).lineTo(-0.249, 0.027).threePointArc((-0.235, -0.007), (-0.2, -0.021)).lineTo(0.2, -0.021).threePointArc((0.206, 0.021), (... | 6 | 56 | 0.270649 |
train_db3fd2ee1bca10f4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.401), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.857, 1).lineTo(-0.857, -1).lineTo(0.143, -1).threePointArc((0.352, -0.495), (0.857, -0.286)).lineTo(0.857, 0.429).lineTo(0.857, 1).lineTo(-0.857, 1).close().extrude(0.802)
result = result... | 3 | 39 | 2.235193 |
train_c43f7cf32e7158ee | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.136, 0, -0.269), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.988, 2).extrude(0.67)
result = result.union(cq.Workplane(cq.Plane(origin=(0.517, -0.256, -0.185), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.362, 0.906).extrude(0.219))
result = result.u... | 12 | 38 | 1.314986 |
train_c3fd6b222c7db4b0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.176, 0.304, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.602, 0.449).lineTo(-0.774, 0.449).lineTo(-0.774, 0.105).lineTo(0.774, 0.105).lineTo(0.774, 0.277).lineTo(-0.602, 0.277).lineTo(-0.602, 0.449).close().workplane(offset=0.19).moveTo(-0.... | 8 | 87 | 0.205518 |
train_1395e94c13ca4359 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.004, -0.252, -0.564), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.86, -0.011).lineTo(0.438, 0.703).lineTo(-0.443, 0.753).lineTo(-0.851, 0.028).lineTo(-0.424, -0.748).lineTo(0.446, -0.704).close().moveTo(-0.11, 0.143).lineTo(0.112, 0.143).lineTo... | 26 | 252 | 0.436358 |
train_032c1e52378eb25a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.088, 0.237, -0.123), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.824, 0.011).lineTo(-0.877, 0.011).lineTo(-0.877, 0.169).lineTo(0.877, 0.169).lineTo(0.877, 0.011).lineTo(-0.824, 0.011).close().extrude(0.473)
result = result.edges().fillet(0.03... | 6 | 91 | 0.129564 |
train_9e541edc68b814e9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.258, 1.074, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.616, 1.335).lineTo(-0.616, 0.074).lineTo(0.154, 0.074).lineTo(0.154, 0.809).lineTo(0.616, 0.809).lineTo(0.616, 1.019).lineTo(0.154, 1.019).lineTo(0.154, 1.545).lineTo(-0.405, 1.545).l... | 6 | 78 | 0.674195 |
train_c65ea09a67f1d5ac | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.001, 0, -0.215), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.077, -0.282).lineTo(-0.077, 0.282).lineTo(0.057, 0.282).lineTo(0.057, 0.067).lineTo(0.077, 0.067).threePointArc((0.071, 0.053), (0.057, 0.047)).lineTo(0.057, -0.282).lineTo(-0.077, -0... | 1 | 9 | 0.146424 |
train_102893417e993dd3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.172, 0, 0.228), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.297, 0.01).lineTo(0.087, 0.299).lineTo(-0.238, 0.186).lineTo(-0.254, -0.178).lineTo(0.097, -0.3).close().moveTo(0.058, 0).lineTo(0.018, 0.053).lineTo(-0.048, 0.033).lineTo(-0.047, -0.03... | 9 | 76 | 0.092448 |
train_c2b48f645dbf343a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.188, -0.234, -0.039), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.624, 1.055).extrude(0.114)
result = result.union(cq.Workplane(cq.Plane(origin=(0.801, -0.264, -0.002), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.398, 0.423).extrude(0.066))
result ... | 15 | 144 | 0.190029 |
train_46ceb0cd9cced018 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.481, 0.012, -0.481), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.53).threePointArc((-0.519, 0.014), (-0.004, -0.507)).lineTo(0.004, -0.507).threePointArc((0.519, 0.014), (0, 0.53)).close().extrude(0.963)
result = result.edges().chamfer(0.089... | 7 | 29 | 0.707385 |
train_88f86c5b149a1260 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.997, 0, 0.388), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.505, 0.378).threePointArc((0.101, 0.135), (0.505, -0.378)).lineTo(-0.505, 0.378).close().sweep(cq.Workplane('XZ').spline([(-0.315, -0.059), (0.026, -0.261), (0.367, -0.329), (0.708, ... | 1 | 4 | 0.065237 |
train_9d19fcc3f71c15b2 | 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.964, 1.917).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.333, 0.218, 0.295), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.453).extrude(0.723))
result = result.cut(cq.Workplane(c... | 5 | 21 | 6.471335 |
train_72c2c8098d3a1e87 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0, -0.049), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.157, -0.471).lineTo(-0.366, -0.262).lineTo(0.157, 0.262).lineTo(0.262, 0.366).lineTo(0.366, 0.471).lineTo(0.366, 0.262).lineTo(0.227, 0.122).threePointArc((0.291, 0.165), (0.366, 0.18))... | 4 | 29 | 0.303374 |
train_19463eaad759cd1d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.1, 0, -0.54), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.8, 1.152).extrude(1.081)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.026, 0.396, -0.083), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.064).extrude(0.129))
result = result.cut(cq.Wo... | 9 | 88 | 2.134584 |
train_d349682765ca3376 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1, -0.225), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 0.605).lineTo(0.135, 0).lineTo(0.135, -0.436).lineTo(0.27, -0.436).lineTo(0.27, -0.605).lineTo(-0.27, -0.605).lineTo(-0.27, -0.436).lineTo(-0.232, -0.436).lineTo(-0.135, 0).lineTo(-0.13... | 2 | 22 | 0.245437 |
train_025b8dca03f9d062 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.192, -0.016, -0.362), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.266, 1.154).extrude(0.855)
result = result.union(cq.Workplane(cq.Plane(origin=(0.377, -0.294, -0.492), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.184, 0.067).extrude(0.144))
result =... | 13 | 73 | 1.371278 |
train_cd03f73ab619e51c | 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.429, 0.688).lineTo(0.429, -0.688).lineTo(-0.085, -0.688).threePointArc((-0.429, 0), (-0.085, 0.688)).lineTo(0.429, 0.688).close().extrude(1.011)
result = result.edges().fillet(0.335)
result = ... | 4 | 58 | 1.679656 |
train_90d4a0c5f415340f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.396, 0.65, 0.489), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.534, 0.643).threePointArc((-0.182, 0.82), (-0.005, 1.172)).lineTo(0.534, 1.172).threePointArc((0.197, 0.441), (-0.534, 0.104)).lineTo(-0.534, 0.637).lineTo(-0.534, 0.643).close().e... | 5 | 63 | 0.657007 |
train_ba18740672bab5aa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.219, -0.81, 0.025), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.059, -0.136).threePointArc((-0.051, -0.094), (-0.063, -0.053)).lineTo(0.181, 0.19).lineTo(-0.115, -0.009).threePointArc((-0.148, -0.004), (-0.181, -0.01)).threePointArc((-0.212, -0... | 11 | 126 | 0.067529 |
train_f09f3768dd509501 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.142), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.445).extrude(0.226)
result = result.union(cq.Workplane(cq.Plane(origin=(0, -0.178 + 0.0295, 0.084), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.017, 0.017).lineTo(0.017, -0.013).lineTo(0.... | 7 | 48 | 0.201281 |
train_5920a4a23b5252a6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.031, -0.14, 0.047), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.093, 0.105).lineTo(-0.061, 0.105).lineTo(-0.064, 0.073).lineTo(-0.072, -0.04).lineTo(-0.002, -0.04).lineTo(-0.01, 0.073).lineTo(-0.013, 0.105).lineTo(0.02, 0.105).lineTo(0.022, 0.... | 18 | 123 | 0.131731 |
train_33839aba882340f9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.601, -0.185, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.156, 0.273).lineTo(0.156, -0.199).lineTo(-0.346, -0.199).lineTo(-0.346, -0.312).lineTo(0.187, -0.312).lineTo(0.187, -0.242).lineTo(0.346, -0.242).lineTo(0.346, 0.312).lineTo(0.156, 0... | 4 | 32 | 0.222058 |
train_09143596a22a6b81 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.205, 0.144, -0.011), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.171, 1.134).extrude(0.484)
result = result.faces('>Z').shell(-0.038)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.579, 0.045, 0.156), normal=(0, 0, 1), xDir=(1, 0, 0))).rec... | 7 | 56 | 0.379851 |
train_7db09ba59ae6a09a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.554, -0.806, -0.16), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.584, -0.092).lineTo(-0.847, 0.719).lineTo(-0.721, 0.894).lineTo(0.721, 0.894).lineTo(0.847, 0.719).lineTo(0.584, -0.092).lineTo(-0.584, -0.092).close().extrude(1.612)
result = re... | 10 | 140 | 0.684945 |
train_bc266e255e857424 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.053, -0.238, -0.549), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.465, 0.379).threePointArc((0, 0.165), (0.465, 0.379)).threePointArc((0, 0.031), (-0.465, 0.379)).close().extrude(0.499)
result = result.edges().chamfer(0.042)
result = result.un... | 30 | 147 | 0.133034 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.