slice stl files and create continuous contour along the slices
3,2K descargas
Actualizado 13 may 2021

Ver licencia

This contains the matlab files to slice a stl file and create a continuous contour along which the machine can move for deposition for 3D printing.
The main file is slice_stl_create.m
The supporting functions are triangle_plane_intersection.m, read_binary_stl_file.m, orient_stl.m, rotate_stl.m and plot_slices.m.
The script stl_slice_and_plot.m is an example using the functions.

Citar como

Sunil Bhandari (2024). slice_stl_create_path(triangles,slice_height) (, MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2015b
Compatible con cualquier versión desde R2015b
Compatibilidad con las plataformas
Windows macOS Linux
Más información sobre STL (STereoLithography) en Help Center y MATLAB Answers.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Versión Publicado Notas de la versión

updated to correct a bug that prevented displaying STL file in the GUI app


slicing app reported bug fixed




Updated plot_stl to correctly plot STL file. example_plot_stl added to show how to correctly use the file


error corrections to the gui


gui tool added

corrected files uploaded for version

updated so that the sliced paths move in same direction when possible

function to read ASCII stl files added

Function to rotate stl file added.

The stl file can now be oriented along x, y or z axis before slicing. The original configuration is assumed to be oriented along x axis.
function to orient the stl file along x,y or z axes added

Corrected code:
"new_line_plane_intersection" replaced with "triangle_plane_intersection"
STL fileread speed increased. Large stl files can be read in seconds.
bug with infinite loop corrected
code for improperly formed triangles uncommented

intersecting triangles with each slicing plane now calculated using binary search. Big O for this step changed from O(nk) to O(nlogk), where n is the number of triangles and k is the number of slicing planes.