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_9e24dd2874f0b688 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.011, 0, 0.925), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1.159, -0.304).threePointArc((0.337, 0.436), (-0.557, 1.086)).lineTo(-1.159, 0.16).threePointArc((-0.358, -0.423), (0.378, -1.086)).lineTo(1.159, -0.304).close().extrude(1.85)
result = r... | 9 | 63 | 3.269119 |
train_9fab26fdfc311e0c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.267), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.573).extrude(0.535)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.267, -1.29), normal=(0, 1, 0), xDir=(1, 0, 0))).rect(0.896, 0.244).moveTo(0.024, 0.002).lineTo(0.024, 0.034).lin... | 15 | 65 | 1.328038 |
train_65188ba09fa8116b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.151, 0.079, 0.19), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.167, -0.167).lineTo(0.052, -0.167).lineTo(-0.209, 0.124).lineTo(-0.209, 0.145).lineTo(-0.022, 0.167).lineTo(0.209, 0.167).lineTo(0.209, 0.124).lineTo(0.167, 0.124).lineTo(0.167, -0.... | 10 | 100 | 0.209786 |
train_db9c43b23767fb16 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.246, -0.005, -0.405), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.24, 0.907).lineTo(-0.24, 1.016).lineTo(-0.24, -0.995).lineTo(0.24, -0.995).lineTo(0.24, 0.907).close().extrude(0.492)
result = result.edges().fillet(0.041)
result = result.union(... | 6 | 57 | 0.494279 |
train_fcdbed22f8bf02d3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.515, 0.094, -0.143), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.857, -0.556).lineTo(-0.857, -0.556).lineTo(-0.857, 0.744).lineTo(0.857, 0.744).lineTo(0.857, -0.556).close().extrude(1.317)
result = result.edges().chamfer(0.056)
result = result.... | 9 | 85 | 3.03439 |
train_bf62c6840d80459c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.506, -0.004, -0.126), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.5, 0.014).lineTo(0.357, 0.367).lineTo(0.009, 0.498).lineTo(-0.345, 0.358).lineTo(-0.494, -0.005).lineTo(-0.352, -0.365).lineTo(0.004, -0.515).lineTo(0.356, -0.373).close().moveTo... | 21 | 217 | 0.34024 |
train_8844fe8d4f040a5e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.306, -0.2), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.09, -0.27).lineTo(-0.78, 0.332).lineTo(-0.09, 0.021).lineTo(0.03, -0.033).lineTo(0.13, -0.078).lineTo(0.614, 0.344).lineTo(0.78, 0.019).lineTo(0.322, -0.164).lineTo(0.059, -0.27).lineT... | 14 | 54 | 0.394918 |
train_54aa84cd269c7fd2 | 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(0.99, 0.934).extrude(1.372)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.122, -0.038, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.218, 0.352).extrude(0.673))
result = result.cut(c... | 11 | 49 | 0.679134 |
train_8ff488a9a62fd7b3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.688, 0.1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.16, 0.274).threePointArc((0.169, 0.287), (0.185, 0.294)).lineTo(0.332, 0.312).lineTo(-0.131, 0.312).lineTo(-0.332, -0.285).lineTo(-0.297, -0.312).lineTo(0.011, -0.312).lineTo(0.031, -0.2... | 1 | 12 | 0.058118 |
train_9a7c16c49d0fa796 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.257, -0.257), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1, 0.474).lineTo(-1, 0.04).lineTo(1, 0.04).lineTo(1, 0.474).lineTo(-1, 0.474).close().extrude(0.396)
result = result.edges().fillet(0.148)
result = result.union(cq.Workplane(cq.Plane(o... | 11 | 209 | 0.29616 |
train_aa471ccf8c9f180c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.756, 0.733, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, 0.223).lineTo(0, -0.074).lineTo(0.061, -0.11).lineTo(0, -0.215).lineTo(-0.061, -0.11).lineTo(-0.257, -0.223).lineTo(0.257, -0.223).lineTo(0, 0.223).close().sweep(cq.Workplane('XY').spl... | 1 | 9 | 0.096577 |
train_4a47a3b22c708112 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.877, -0.132), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.289, 0.63).lineTo(-0.51, 0.264).lineTo(0.257, 0.264).lineTo(0.51, 0.63).lineTo(-0.289, 0.63).close().revolve(angleDegrees=270, axisStart=(-0.289, 0.63), axisEnd=(-0.51, 0.264))
result... | 9 | 49 | 0.376579 |
train_b0c5b9380ee09f90 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.125, 0.002, -0.165), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.875, -0.019).lineTo(0.411, 0.767).lineTo(-0.447, 0.781).lineTo(-0.857, 0.016).lineTo(-0.439, -0.764).lineTo(0.455, -0.786).close().moveTo(-0.588, -0.243).lineTo(-0.139, -0.239).lin... | 17 | 111 | 0.722146 |
train_f7b2ad14f2e29fb4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.173, -0.688), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.597, 1.425).extrude(1.688)
result = result.union(cq.Workplane(cq.Plane(origin=(0.227, 0.384, -0.932), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.068, -0.503).lineTo(-0.068, 0.016).lin... | 12 | 119 | 3.176289 |
train_a481f9766eda0cea | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.381, 0, -0.081), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.775, 0.474).extrude(0.467)
result = result.faces('>Z').shell(-0.04)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.182, -0.079, -0.195), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(... | 10 | 100 | 0.099151 |
train_2ab9cda69d055ff6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.031, -1, -0.174), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.071, 0.003).lineTo(-0.071, -0.003).lineTo(-0.002, -0.003).lineTo(-0.002, -0.071).lineTo(0.002, -0.071).lineTo(0.002, -0.003).lineTo(0.071, -0.003).lineTo(0.071, 0.003).lineTo(0.002,... | 5 | 64 | 0.035573 |
train_8f7eb8c556f1e7a2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.11, 0, -0.585), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.953, 0.442).extrude(0.054)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.024, 0, -0.539), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.037).extrude(0.194))
result = result.union(... | 3 | 16 | 0.085767 |
train_57a1330a373d21e1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.892, 0.173, -0.007), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.045, 0.045).lineTo(-0.045, 0.058).lineTo(-0.058, 0.058).lineTo(-0.058, -0.058).lineTo(0.058, -0.058).lineTo(0.058, 0.058).lineTo(0.045, 0.058).lineTo(0.045, -0.045).lineTo(-0.045... | 1 | 11 | 0.005201 |
train_6d7f5059e4b35384 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.118, -0.705, 0.062), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.048, 0.143).threePointArc((0, 0.178), (0.048, 0.143)).lineTo(0.073, 0.075).threePointArc((0, -0.028), (-0.073, 0.075)).lineTo(-0.048, 0.143).close().extrude(1.705)
result = result... | 7 | 54 | 0.12833 |
train_1b85c7561fedb2be | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.905, -0.905, -0.198), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.802, 0.205).lineTo(0.802, 1.809).lineTo(0.356, 1.363).lineTo(0.325, 1.508).lineTo(-0.356, 1.363).lineTo(0.356, 0.651).lineTo(-0.325, 0.507).lineTo(-0.356, 0.651).lineTo(-0.802, 0... | 3 | 27 | 1.574183 |
train_b970095d1a7aa959 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.126, -1, -0.042), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.795, -1.009).threePointArc((0.124, 0.184), (-0.795, 1.2)).lineTo(0.795, -1.009).close().extrude(1.648)
result = result.edges().fillet(0.052)
result = result.union(cq.Workplane(cq.Pla... | 12 | 18 | 0.38228 |
train_7e75c6ecbbd39768 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.617, 0.317, -0.465), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.113, -0.088).lineTo(-0.12, -0.089).lineTo(-0.124, 0.07).lineTo(0.025, 0.123).lineTo(0.022, 0.129).lineTo(0.028, 0.133).lineTo(0.124, 0.008).lineTo(0.035, -0.123).lineTo(0.04, -0... | 8 | 76 | 0.247966 |
train_42fe6f63dc5c284c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.18, 0.027, -0.024), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.348, -0.004).lineTo(0.172, 0.306).lineTo(-0.177, 0.312).lineTo(-0.362, 0.01).lineTo(-0.189, -0.32).lineTo(0.185, -0.319).close().moveTo(0.077, 0).lineTo(0.039, 0.066).lineTo(-0.039... | 6 | 31 | 0.175354 |
train_ab87418934973db4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -1.147, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.681, 0.298).lineTo(-0.681, 1.996).lineTo(-0.239, 1.996).lineTo(-0.239, 1.367).lineTo(0.681, 1.367).lineTo(0.681, 0.298).lineTo(-0.681, 0.298).close().workplane(offset=0.978).moveTo(-0.60... | 7 | 36 | 1.619593 |
train_1c38acfd6df197da | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.076, -0.134), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.54, 0.655).extrude(0.853)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.026, 0.093, 0.113), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.156, 0.333).extrude(0.522))
result = result.... | 14 | 122 | 0.276194 |
train_cca53c65885d9f61 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.738, 0.594, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(1, 1.106).lineTo(0.15, 1.106).lineTo(0.15, 1.056).lineTo(-0.15, 1.056).lineTo(-0.15, 1.106).lineTo(-1, 1.106).lineTo(-1, 0.706).lineTo(-0.2, 0.706).lineTo(-0.2, -0.094).lineTo(0.2, -0.09... | 18 | 90 | 1.576439 |
train_c2d2d59dd7fc8c31 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.267, 0.002, -0.503), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.501, 0.446).lineTo(0.501, 0.088).lineTo(-0.501, 0.088).lineTo(-0.501, 0.267).lineTo(-0.239, 0.267).lineTo(-0.239, 0.446).lineTo(0, 0.446).lineTo(0, 0.267).lineTo(0.263, 0.267).lin... | 11 | 120 | 0.370808 |
train_2064488697e4142d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.192, 0.026, -0.212), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.162, 0.077).extrude(0.184)
result = result.union(cq.Workplane(cq.Plane(origin=(0.224, 0.067, -0.147), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.014, 0.006).extrude(0.03))
result = re... | 13 | 133 | 0.208194 |
train_292b3d1fb73756d3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.397, -0.03, 0.208), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.593, -0.262).threePointArc((-0.584, -0.23), (-0.585, -0.196)).threePointArc((-0.575, -0.143), (-0.533, -0.109)).lineTo(0.391, 0.215).threePointArc((0.54, 0.262), (0.593, 0.115)).l... | 5 | 54 | 0.155426 |
train_23aa5df3ae7fee11 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.189), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.938).extrude(0.377)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.332, 0.036, 0.026), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.335, 0.369).lineTo(-0.464, 0.294).threePointArc((-... | 16 | 94 | 0.568272 |
train_d0befd2cb383c449 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.458, -0.051), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.423, 0.457).threePointArc((-0.299, 0.158), (0, 0.034)).lineTo(0, 0.043).threePointArc((0.293, 0.165), (0.414, 0.457)).lineTo(0.423, 0.457).threePointArc((0.299, 0.756), (0, 0.88)).t... | 9 | 56 | 1.109882 |
train_796b35cec55814b8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.429, 0.205, -0.141), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.874, 0.35).threePointArc((-0.038, -0.093), (0.798, 0.35)).threePointArc((0.838, 0.413), (0.874, 0.481)).lineTo(0.3, 0.813).threePointArc((0.269, 0.743), (0.224, 0.681)).threePoin... | 21 | 139 | 0.511892 |
train_2096101b38da6ff6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1.04, -0.788, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.01, 0.04).lineTo(-0.051, 0.04).lineTo(-0.819, 1.37).lineTo(-0.778, 1.37).lineTo(-0.778, 1.406).lineTo(0.819, 1.406).lineTo(0.799, 1.37).lineTo(0.757, 1.37).lineTo(-0.01, 0.04).close()... | 28 | 39 | 1.188682 |
train_0e77f8fd939ac744 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.704, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(1).workplane(offset=0.628).circle(0.757).workplane(offset=0.779).circle(0.364).loft()
result = result.cut(cq.Workplane(cq.Plane(origin=(0.123, 0.776, -0.326), normal=(0, 0, 1), xDir=(1, 0, 0... | 8 | 28 | 1.157116 |
train_d5153e52ca3040a3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.261, -0.338, -0.001), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.305, 0.525).lineTo(-0.305, 0.61).threePointArc((0.305, 0), (-0.305, -0.61)).lineTo(-0.305, 0.48).threePointArc((-0.273, 0.493), (-0.26, 0.525)).lineTo(-0.305, 0.525).close().swee... | 7 | 64 | 0.744136 |
train_d930eae1a3e307c8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.245, -0.264), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.461, 1.51).extrude(0.802)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.045, -0.084, -0.539), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.198).extrude(0.293))
result = result.u... | 18 | 119 | 1.348951 |
train_303793d04607bd83 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.918), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.757, 1.584).extrude(1.918)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.179, 0.187, 0.529), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.229, 0.892).extrude(0.483))
result = result.cut(c... | 20 | 131 | 1.84575 |
train_c57681446d0a891f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.431, -0.011, -0.192), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.139, 0.415).extrude(0.159)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.431, 0.003, -0.034), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.73, 0.361).extrude(0.021))
result =... | 32 | 251 | 0.078116 |
train_379e74f4a83b8174 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.432, -0.2, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.414, 0.195).lineTo(0.414, -0.195).lineTo(0, -0.195).lineTo(0, 0).lineTo(-0.414, 0).lineTo(-0.414, 0.195).lineTo(0.414, 0.195).close().sweep(cq.Workplane('XY').spline([(0.242, -0.2), (0... | 3 | 18 | 0.344234 |
train_422bcf163f312dbb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.101, -0.061, -0.001), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.112, 0.1).lineTo(-0.112, -0.1).lineTo(0.112, -0.1).lineTo(0.112, 0.1).lineTo(-0.112, 0.1).close().extrude(0.022)
result = result.edges().fillet(0.004)
result = result.union(cq.W... | 19 | 206 | 0.047145 |
train_11b4cf3e6e68c4b5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.038, 0.113), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.728, 0).lineTo(-0.232, 0).threePointArc((-0.143, 0.401), (0.104, 0.728)).threePointArc((-0.736, 0), (0.104, -0.728)).threePointArc((0.556, -0.481), (0.736, 0)).lineTo(0.728, 0).close... | 2 | 13 | 2.48647 |
train_a1ebe8a952ec9e42 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.05, -0.088, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.13, 1.069).threePointArc((-0.13, 0.05), (0.13, -0.97)).lineTo(0.13, 1.069).close().extrude(0.148)
result = result.edges().chamfer(0.021)
result = result.union(cq.Workplane(cq.Plane(ori... | 16 | 50 | 0.037562 |
train_71d1116caaef1f83 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.056, 0.26, -0.09), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.337, 0.057).lineTo(0.337, 0.562).lineTo(-0.337, 0.562).lineTo(-0.337, 0.057).lineTo(0.337, 0.057).close().extrude(0.52)
result = result.edges().chamfer(0.121)
result = result.union... | 14 | 86 | 0.267404 |
train_825d1abe9a02e961 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.024, -0.218, -0.587), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.413, -0.365).lineTo(-0.413, 0.413).lineTo(0.413, 0.413).lineTo(0.413, -0.365).lineTo(-0.413, -0.365).close().extrude(0.59)
result = result.edges().chamfer(0.095)
result = result... | 16 | 131 | 0.383236 |
train_5a8b4898297e56d8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.435, 0.064), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.454).sweep(cq.Workplane('YZ').spline([(0.435, -0.334), (0.339, -0.065), (0.062, 0.103), (-0.286, 0.105), (-0.566, -0.061)]))
result = result.union(cq.Workplane(cq.Plane(origin=(0.002, 0... | 11 | 159 | 0.969386 |
train_261c4653987c6c2d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.064, -0.294, -0.349), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.827, 0.589).extrude(0.698)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.13, -0.115, -0.191), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.53, 0.244).extrude(0.27))
result = re... | 19 | 82 | 0.403817 |
train_7f8211c452143855 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.011, -0.334, -0.63), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.122, 0.011).lineTo(-0.122, 0).lineTo(-0.11, 0).lineTo(-0.11, -0.011).lineTo(0.122, -0.011).lineTo(0.122, 0.011).lineTo(-0.122, 0.011).close().sweep(cq.Workplane('YZ').spline([(-... | 5 | 71 | 0.170658 |
train_f73f1c7b29c796a2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.58, 0.109), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.299, -0.414).lineTo(0.292, -0.424).lineTo(0.298, 0.41).lineTo(-0.292, 0.42).close().moveTo(-0.039, -0.004).lineTo(-0.039, 0.004).lineTo(-0.037, 0.004).lineTo(-0.037, 0.092).lineTo(0.039... | 10 | 99 | 0.228534 |
train_9de7d1ec35c3f729 | 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.276, 0.465).lineTo(0.276, 0.147).lineTo(0.234, 0.114).lineTo(0.192, 0.147).lineTo(0.192, 0.465).lineTo(-0.209, 0.465).lineTo(-0.209, 0.515).lineTo(-0.243, 0.557).lineTo(-0.209, 0.599).lineTo(-... | 15 | 87 | 0.547879 |
train_494fca20be1fc2a4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.274, 0.026, 0.265), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.353, 0.202).threePointArc((-0.07, 0.444), (0.223, 0.675)).lineTo(0.353, 0.502).threePointArc((0.067, 0.278), (-0.209, 0.042)).lineTo(-0.353, 0.202).close().revolve(angleDegrees=90... | 5 | 38 | 0.104209 |
train_e5de5b77f8805d55 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.004, -0.013, 0.026), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.743, 0.007).lineTo(0.367, 0.626).lineTo(-0.357, 0.662).lineTo(-0.736, -0.001).lineTo(-0.389, -0.66).lineTo(0.366, -0.665).close().moveTo(-0.091, 0.091).lineTo(0.091, 0.091).lineTo... | 15 | 62 | 0.552198 |
train_d6bb205a4ae5620f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.316, 0.372, 0.281), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.722).lineTo(-0.21, 0.722).lineTo(-0.495, 0.513).lineTo(-0.495, 0.023).lineTo(0, 0.023).lineTo(0.495, 0.513).lineTo(0.21, 0.722).lineTo(0, 0.722).close().extrude(0.684)
result = r... | 11 | 67 | 0.428945 |
train_622bf9271ae99caa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.542, 0.291, -0.149), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.291, -0.217).lineTo(-0.291, 0.523).lineTo(-0.076, 0.523).lineTo(0.056, 0.395).threePointArc((0.039, 0.476), (0.108, 0.523)).lineTo(0.291, 0.523).lineTo(0.291, -0.217).lineTo(-0.0... | 27 | 103 | 0.645805 |
train_6b28692800c36806 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.529, 0, -0.123), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.293).sweep(cq.Workplane('XZ').spline([(-0.529, -0.333), (-0.219, -0.094), (0.091, 0.026), (0.401, 0.026), (0.711, -0.094), (1.021, -0.333)]))
result = result.edges().chamfer(0.128)
re... | 5 | 15 | 0.31211 |
train_6f550f56ab9a0686 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.165, 0, -0.482), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.491, 2).extrude(1.176)
result = result.union(cq.Workplane(cq.Plane(origin=(0.3, -0.089, -0.588), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.106, 0.097).lineTo(0.106, -0.106).threePointA... | 11 | 41 | 2.731002 |
train_9e96f9432bbe273c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.781, 0.06, -0.414), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.217, -0.217).lineTo(-0.217, 0.217).lineTo(0.072, 0.217).lineTo(0.217, 0.072).lineTo(-0.072, 0.072).lineTo(-0.072, -0.072).lineTo(0.217, -0.072).lineTo(0.072, -0.217).lineTo(-0.217... | 1 | 10 | 0.096778 |
train_c24ab47bdb2a60a7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, -0.103, 0.063), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.344, 0.568).lineTo(-0.344, 1.016).lineTo(-0.215, 1.016).lineTo(-0.215, 0.913).lineTo(0.344, 0.913).lineTo(0.344, -0.809).lineTo(-0.344, -0.809).lineTo(-0.344, 0.568).close().extr... | 26 | 309 | 0.612563 |
train_b6df999607df9848 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.003, -0.003, -0.61), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.39, 0.214).lineTo(-0.39, 0.214).lineTo(-0.39, 0.539).lineTo(0.39, 0.539).lineTo(0.39, 0.214).close().revolve(angleDegrees=270, axisStart=(0, 0), axisEnd=(0.259, 0))
result = result... | 8 | 56 | 0.494219 |
train_6d1ade97eff434dd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.671, 0, 0.569), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.439, -0.237).lineTo(0.438, 0.009).lineTo(0.438, 0.237).lineTo(0.121, 0.237).lineTo(-0.011, 0.126).lineTo(-0.439, 0.237).lineTo(-0.159, 0).lineTo(-0.018, -0.119).lineTo(-0.439, -0.237)... | 4 | 61 | 0.060003 |
train_e512f9fdd6c1ad8c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.292, -0.301, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.086, 0.812).lineTo(-0.086, -0.706).lineTo(0.086, -0.635).lineTo(0.086, 0.927).lineTo(-0.086, 0.998).lineTo(-0.086, 0.812).close().extrude(0.585)
result = result.edges().fillet(0.013)... | 4 | 57 | 0.172581 |
train_a7ce457d08e0f29b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.513, -0.373, -0.166), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.232, -0.246).lineTo(0.232, -0.246).lineTo(0.232, 0.299).lineTo(-0.232, 0.299).lineTo(-0.232, -0.246).close().revolve(angleDegrees=270, axisStart=(-0.232, -0.246), axisEnd=(0.23... | 8 | 129 | 1.188583 |
train_9627c333da84a2af | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.52), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.004, 0.154).lineTo(-0.015, 0.154).lineTo(-0.015, 0.122).lineTo(-0.023, 0.122).threePointArc((-0.025, 0.121), (-0.026, 0.12)).lineTo(-0.033, 0.103).threePointArc((-0.033, 0.1), (-0.03, 0.098... | 13 | 108 | 0.00655 |
train_4ab08e4dc12d826e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.032, -1, -0.277), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.312).sweep(cq.Workplane('YZ').spline([(-0.651, -0.698), (-0.297, -0.541), (0.057, -0.541), (0.412, -0.698)]))
result = result.edges().chamfer(0.036)
result = result.union(cq.Workpla... | 27 | 174 | 0.301133 |
train_46a168682d0a6edb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.129, 0.241, -0.596), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.517, 1.518).extrude(1.192)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.076, -0.736, 0.091), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.803, 0.527).extrude(0.272))
result = ... | 15 | 90 | 2.328036 |
train_685e22742f242c40 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.277, 0.116), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.2, 0.026).threePointArc((-0.315, 0.191), (-0.312, 0.392)).threePointArc((-0.268, 0.447), (-0.24, 0.512)).threePointArc((0, 0.615), (0.24, 0.512)).threePointArc((0.282, 0.456), (0.312,... | 26 | 228 | 0.341842 |
train_77b631738859ad04 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.491, 0.223), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.413).workplane(offset=0.38).circle(0.523).workplane(offset=0.293).circle(0.527).loft()
result = result.edges().fillet(0.326)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.084... | 4 | 22 | 0.869246 |
train_20d07ef75aae1dfd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.153, 0.175, -0.643), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.887, 1.211).extrude(1.047)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.238, 0.186, -0.938), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.228).extrude(0.324))
result = resu... | 5 | 21 | 1.493309 |
train_6b8c379cccd59c92 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.388, -0.013, 0.024), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.295, 0.281).threePointArc((-0.434, -0.281), (0.434, 0.024)).threePointArc((0.415, 0.094), (0.386, 0.162)).lineTo(0.293, 0.092).lineTo(0.272, 0.121).lineTo(0.203, 0.213).lineTo(0.2... | 7 | 33 | 0.598154 |
train_db5ab1211e9b307d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.001, -0.336), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.821, 0.911).extrude(0.863)
result = result.faces('>Z').shell(-0.079)
result = result.union(cq.Workplane(cq.Plane(origin=(0.03, 0.051, -0.526), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(... | 8 | 98 | 0.743868 |
train_03f02b5c3cfcf9c9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.826, 0.775, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.61, 1.041).threePointArc((1, 0.775), (0.61, 0.509)).threePointArc((0, 0.11), (-0.61, 0.509)).threePointArc((-1, 0.775), (-0.61, 1.041)).threePointArc((0, 1.44), (0.61, 1.041)).close().... | 10 | 163 | 2.751346 |
train_71816f6452b1fd9a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.776, 0, 0.262), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.817).workplane(offset=0.229).circle(0.767).workplane(offset=0.288).circle(0.716).workplane(offset=0.261).circle(0.666).workplane(offset=0.284).circle(0.616).workplane(offset=0.292).cir... | 5 | 18 | 1.935458 |
train_2e7ac0a53422ed38 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.229, 0, 0.089), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.12, 0.193).lineTo(0.12, 0.081).lineTo(-0.195, 0.081).lineTo(-0.195, -0.019).lineTo(0.12, -0.019).lineTo(0.12, -0.193).lineTo(0.195, -0.193).lineTo(0.195, 0.193).lineTo(0.12, 0.193).clo... | 5 | 39 | 0.081442 |
train_8269668827d01601 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.916), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.581).extrude(1.831)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.351, -0.057, 0.357), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.523, 0.518).extrude(0.572))
result = result.cut(cq.W... | 10 | 126 | 4.770985 |
train_12a48de13f5d315a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.219, -0.364, -0.004), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.421, 0.171).lineTo(-0.412, 0.153).lineTo(-0.27, -0.152).lineTo(0.421, 0.171).lineTo(0.327, 0.52).lineTo(-0.421, 0.171).close().extrude(0.786)
result = result.edges().chamfer(0.0... | 26 | 179 | 0.143708 |
train_0926f2f921021bc2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.104, 0, -0.377), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.07, 0.011).lineTo(0.358, 1).lineTo(-0.835, 0.593).lineTo(-0.862, -0.633).lineTo(0.339, -1).close().moveTo(-0.425, 0.423).lineTo(-0.452, 0.423).lineTo(-0.452, 0.157).lineTo(-0.425, 0.1... | 13 | 168 | 1.359295 |
train_7f0430d2bf33779a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.143, -0.115, -0.286), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.046, 0.633).lineTo(-0.175, 0.542).lineTo(-0.78, 0.094).lineTo(-0.833, -0.531).lineTo(-0.393, -0.555).lineTo(0.64, -0.527).lineTo(0.857, -0.2).lineTo(0.572, -0.225).close().moveTo... | 18 | 140 | 0.330279 |
train_e7147d097730ebaa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.37, 0, -0.16), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.457).rect(0.219, 0.213).extrude(0.201)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.149, -0.063, -0.166), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.114).extrude(0.241))
result =... | 9 | 153 | 0.162784 |
train_97e359460759c5d1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.367, 0.06, -0.198), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.064, 0.633).lineTo(0.064, -0.565).lineTo(-0.064, -0.565).lineTo(-0.064, 0.633).lineTo(0.064, 0.633).close().revolve(angleDegrees=180, axisStart=(0.064, 0.633), axisEnd=(0.064, 0.034... | 13 | 111 | 0.078239 |
train_613a3046cb07c154 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.236, 0.419, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.017, -0.017).lineTo(0.024, -0.024).lineTo(0.032, -0.017).lineTo(0.313, -0.298).lineTo(0.298, -0.313).lineTo(0.017, -0.032).lineTo(-0.264, -0.313).lineTo(-0.279, -0.298).lineTo(0.001, -0... | 2 | 20 | 0.048276 |
train_b2ee282e5bd8a398 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.087), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.462).extrude(0.052)
result = result.union(cq.Workplane(cq.Plane(origin=(0.492, 0, -0.045), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.106).extrude(0.132))
result = result.cut(cq.Workplan... | 3 | 9 | 0.146613 |
train_5a36541cfa8395f0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.383, 0, -0.062), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.235, 1.589).extrude(0.601)
result = result.union(cq.Workplane(cq.Plane(origin=(0.383, 0, 0.536), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.806, 1.037).extrude(0.056))
result = result.uni... | 15 | 94 | 1.348696 |
train_d5aaad35d11674b5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.626, -0.902, -0.075), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.432, 0.374).lineTo(-0.432, -0.374).lineTo(-0.144, -0.374).lineTo(-0.144, -0.36).threePointArc((-0.14, -0.35), (-0.13, -0.346)).lineTo(0.072, -0.346).threePointArc((0.082, -0.35)... | 3 | 27 | 0.63708 |
train_c631f61d1ae72541 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.029, -0.009, 0.032), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.068, 0.005).lineTo(-0.065, 0.005).lineTo(-0.068, 0.078).lineTo(-0.026, 0.052).lineTo(0.068, 0.052).lineTo(0.068, 0.005).close().extrude(0.124)
result = result.edges().chamfer(0.012... | 10 | 80 | 0.053503 |
train_66c3b7d64b114090 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.495, -0.033), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.008, -0.002).threePointArc((-0.007, 0), (-0.008, 0.002)).threePointArc((-0.006, 0.005), (-0.002, 0.007)).threePointArc((-0.001, 0.008), (0.001, 0.007)).threePointArc((0.005, 0.005),... | 9 | 64 | 0.034999 |
train_cbdf79507d2905a8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.08, -0.109, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.007).lineTo(-1, 0.211).lineTo(1, 0.211).lineTo(1, 0.007).lineTo(-1, 0.007).close().workplane(offset=0.028).moveTo(-0.96, 0.011).lineTo(-0.96, 0.207).lineTo(0.96, 0.207).lineTo(0.96... | 2 | 9 | 0.052044 |
train_a8b95643546651c3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.058, 0.045), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.097, -0.05).threePointArc((0.005, -0.12), (0.107, -0.05)).lineTo(0.132, 0.018).threePointArc((0.129, 0.03), (0.124, 0.042)).lineTo(0.1, 0.042).threePointArc((0.074, 0.073), (0.039, 0.... | 6 | 72 | 0.06567 |
train_b3b7559f53578d1c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.255, -0.029, -0.672), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.328, 0.069).lineTo(-0.296, 0.069).lineTo(-0.296, 0.037).lineTo(0.296, 0.037).lineTo(0.296, 0.069).lineTo(0.328, 0.069).lineTo(0.328, 0.005).lineTo(-0.328, 0.005).lineTo(-0.328, ... | 5 | 63 | 0.001497 |
train_bd1e8b0199ad4e7a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.12, 1, -0.095), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.257).workplane(offset=0.348).circle(0.26).workplane(offset=0.349).circle(0.257).workplane(offset=0.299).circle(0.262).workplane(offset=0.278).circle(0.255).workplane(offset=0.393).circ... | 17 | 71 | 0.314518 |
train_5c4b703050eefd0a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.203, 0.037, 0.027), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.341, 0.896).threePointArc((-0.313, 0.096), (-0.341, -0.704)).lineTo(0.341, -0.704).lineTo(0.341, 0.896).lineTo(-0.341, 0.896).close().extrude(0.4)
result = result.union(cq.Workpla... | 31 | 267 | 0.46798 |
train_3f4817b38fba07c0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.001, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.712).workplane(offset=0.895).circle(0.751).workplane(offset=1.105).circle(0.624).loft()
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.31, -0.266, -1.341), normal=(0, 0, 1), xDir=(1... | 13 | 36 | 2.37793 |
train_cee0f14d7e4334c4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.001, -0.647, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1.001, 0.919).lineTo(-1.001, 0.118).lineTo(1.001, 0.118).lineTo(1.001, 0.919).lineTo(0.497, 0.919).lineTo(0.497, 1.56).lineTo(-0.293, 1.56).lineTo(-0.293, 0.919).lineTo(-1.001, 0.919).... | 13 | 85 | 2.713535 |
train_ea0d3ea9d52e8ed4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.329, 0.455, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.082, 0.102).lineTo(-0.082, 0.126).lineTo(-0.049, 0.126).lineTo(-0.049, 0.114).lineTo(0.049, 0.114).lineTo(0.049, 0.126).lineTo(0.082, 0.126).lineTo(0.082, 0.102).lineTo(0.1, 0.07).th... | 1 | 30 | 0.117944 |
train_d5ac6c0550e165cd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.003, -0.339), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, -0.025).lineTo(0.703, 0.726).lineTo(0.027, 0.999).lineTo(-0.688, 0.73).lineTo(-1, -0.034).lineTo(-0.72, -0.71).lineTo(-0.027, -0.993).lineTo(0.707, -0.696).close().moveTo(-0.364, 0.3... | 10 | 179 | 0.944805 |
train_09efe5578029ef56 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.963, -1.136, 0.218), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.7, 2.136).lineTo(0.7, 0.136).lineTo(-0.7, 0.136).lineTo(-0.7, 2.136).lineTo(0.7, 2.136).close().extrude(1.925)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.198, -0.509, -0... | 27 | 136 | 3.807853 |
train_526b93a192c14aa4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.233, -1, -0.013), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.008, 0.365).lineTo(0.101, 0.324).lineTo(0.193, 0.283).lineTo(0.192, 0.011).lineTo(0.018, 0.138).lineTo(-0.193, 0.183).lineTo(0.008, 0.365).close().extrude(0.634)
result = result.edge... | 33 | 376 | 0.048347 |
train_a847a9727f8482b9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.141), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, -1).lineTo(0.326, -0.674).lineTo(0.326, 1).lineTo(-0.326, 1).lineTo(-0.326, -0.674).lineTo(0, -1).close().extrude(0.281)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, -0.254 + 0.02... | 24 | 177 | 0.298654 |
train_b4a2322e6200d23f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.547), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.63, 2).extrude(1.093)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.105, 0.502, -0.157), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.981, 1.048).extrude(0.525))
result = result.cut(cq.Wo... | 11 | 77 | 2.431645 |
train_7689fb0fe0c60fa7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.024, -0.244), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.079, 0.188).extrude(0.169)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.213, -0.007, -0.368), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.255, 0.089).extrude(0.136))
result = res... | 11 | 83 | 0.225658 |
train_07a9eb79b59a4ec6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.056, -0.833, -0.206), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.258, 1.519).lineTo(-0.086, 1.519).lineTo(-0.086, 1.233).lineTo(-0.43, 1.233).lineTo(-0.43, 1.519).lineTo(-0.944, 1.519).lineTo(-0.944, 1.061).lineTo(-0.572, 1.061).lineTo(-0.572,... | 6 | 40 | 0.819708 |
train_3cd50ab9b43b68af | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.429, -0.287), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.809, 1.141).extrude(0.267)
result = result.union(cq.Workplane(cq.Plane(origin=(0.041, -0.027, 0.001), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.041, 0.353).lineTo(-0.178, 0.353).lineT... | 16 | 229 | 0.329857 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.