laser_cut_matlab_slicer
Laser Cut Slicer in MATLAB / Porsche 917K
This MATLAB code helps you to realize a 3d object with stacked laser cut plates:
- Extract the intersection of a 3d STL object and a cut plane, visualize, and export the results as PDF.
- Create 3d meshed parts from 2d parts, assemble the plates into a 3d construction, and visualize.
The example provided with the code is a Porsche 917K racecar.
If you are just interested by building the Porsche 917K, you just need porsche_917K/porsche_917K.pdf. A 3D preview (STL format) is available in porsche_917K/porsche_917K.stl.
Workflow
First take the STL file, define cut planes, and visualize the contours (with the provided MATLAB tool).
Then export the contour as PDF (with the provided MATLAB tool).
With a vector graphic tool, edit, simplify, and improve the contour. Export the results as bitmap raster, which each layer represents its own file. Bitmap format is used for compatibly, simplicity, and robustness.
Transform the bitmap raster into a full 3d construction (with the provided MATLAB tool).
With a vector graphic tool, edit the final version for laser cutting.
With some patience (and some glue), assemble the model!
Porsche 917K
The example model is a Porsche 917K, one of the most iconic racecar ever produced. As a typical racecar from the end of 60s, many versions were produced. The version used for the sliced model is the car used by Team Salzburg in Le Mans 1970 (winner, car 23).
The sliced model is at the 1:24 scale. The model contains 2x18=36 parts and the plate thickness is 4mm. Of course, the model car be scaled to be smaller. A larger model will probably look too coarse.
Source Code Documentation
For the technical details about the workflow and the MATLAB code, please read matlab_slicer/README.txt.
But I don't have MATLAB
I have used MATLAB since it has many functions for meshing and image handling. Moreover, this code is a quick and dirty personal project. However, tell me if you are interested by a Python implementation. Then, I might make a version using numpy/matplotlib, opencv/shapely, and triangle/openmesh.
Author
Thomas Guillod - GitHub Profile
Licenses
- This MATLAB source code is licensed under the BSD License, see LICENSE.md.
- The Porsche 917K model is licensed under the Creative Commons — CC BY 4.0.
Cite As
Thomas Guillod (2024). laser_cut_matlab_slicer (https://github.com/otvam/laser_cut_matlab_slicer), GitHub. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
matlab_slicer
matlab_slicer/fct/assemble
matlab_slicer/fct/slice
matlab_slicer/fct/utils
Versions that use the GitHub default branch cannot be downloaded
Version | Published | Release Notes | |
---|---|---|---|
1.7 | connect readme |
|
|
1.6 | typos |
|
|
1.5 | Change txt |
|
|
1.4 | Change txt |
|
|
1.3 | Change text |
|
|
1.2 | Change txt |
|
|
1.0.1 | Add image |
|
|
1.0.0 |
|