Buckets:
| import cadquery as cq | |
| # Create a block with holes in each corner of a rectangle on that workplane. | |
| # 1. Establishes a workplane that an object can be built on. | |
| # 1a. Uses the named plane orientation "front" to define the workplane, meaning | |
| # that the positive Z direction is "up", and the negative Z direction | |
| # is "down". | |
| # 2. Creates a plain box to base future geometry on with the box() function. | |
| # 3. Selects the top-most Z face of the box. | |
| # 4. Creates a new workplane to build new geometry on. | |
| # 5. Creates a for-construction rectangle that only exists to use for placing | |
| # other geometry. | |
| # 6. Selects the vertices of the for-construction rectangle. | |
| # 7. Places holes at the center of each selected vertex. | |
| result = ( | |
| cq.Workplane("front") | |
| .box(2, 2, 0.5) | |
| .faces(">Z") | |
| .workplane() | |
| .rect(1.5, 1.5, forConstruction=True) | |
| .vertices() | |
| .hole(0.125) | |
| ) | |
| # Displays the result of this script | |
| show_object(result) | |
Xet Storage Details
- Size:
- 960 Bytes
- Xet hash:
- 1bd5269bdf14d3d3a37036511f68a3321fdee0972af8824c51a0fc3074c08694
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.