STL文件的分层算法是3D打印最基本也是最重要的一环.在已有的切片算法的基础上,提出了一种基于MAT-LAB软件对STL文件的新的分层切片优化算法,可以保证精度和稳定性.此方法的实现过程是:先对三角面片排序,找到所在分层的三角形;然后建立所筛选出这些三角的邻接关系;最后求出交点依次相连,就能直接提取出轮廓线.该算法运用MATLAB软件最基本的编程代码,可以快速准确地提取出轮廓环.通过一个例子来验证该算法的准确性和稳定性.%The layered algorithm of stereolithography(STL)file is the most basic and most important thing for Three Dimensional (3D)printing.A new optimal algorithm based on MTALAB software is proposed to guarantee the accuracy and stability based on the existing algorithm.The implement process of method was firstly, the triangles were sorted to find in a layered triangle; secondly, the adjacency relations of these triangles were bui thirdly,the intersection point was found that can be directly extracted contour lines. The algorithm uses the most basic programming code in MATLAB software, which concisely and effectively extracts the outline of the ring under the condition of accuracy.An experiment is done to verify its stability and accuracy.
展开▼