(self, length)
| 142 | # make the plugin method |
| 143 | |
| 144 | def makeCubes(self, length): |
| 145 | # self refers to the CQ or Workplane object |
| 146 | |
| 147 | # create the solid |
| 148 | s = Solid.makeBox(length, length, length, Vector(0, 0, 0)) |
| 149 | |
| 150 | # use CQ utility method to iterate over the stack an position the cubes |
| 151 | return self.eachpoint(lambda loc: s.located(loc), True) |
| 152 | |
| 153 | # link the plugin in |
| 154 | Workplane.makeCubes = makeCubes |
no test coverage detected