计算机工程与应用 ›› 2019, Vol. 55 ›› Issue (6): 244-251.DOI: 10.3778/j.issn.1002-8331.1712-0226

• 工程与应用 • 上一篇    下一篇

STL模型特征信息的自适应分层的研究

王军伟,陈  兴,邓益民,刘  洋,汪俊辉   

  1. 宁波大学 机械工程与力学学院,浙江 宁波 315211
  • 出版日期:2019-03-15 发布日期:2019-03-14

Research on Adaptive Layering of Feature Information of STL Model

WANG Junwei, CHEN Xing, DENG Yimin, LIU Yang, WANG Junhui   

  1. School of Mechanical Engineering and Mechanics, Ningbo University, Ningbo, Zhejiang 315211, China
  • Online:2019-03-15 Published:2019-03-14

摘要: 模型的分层是3D打印前处理的一个重要环节,针对目前分层算法效率低、不能有效保留模型细微特征的问题,提出了一种新的基于STL模型特征信息的思想。首先提取模型的特征边,对特征边内实体表面采用区域增长算法进行表面分割,然后对分割后的表面判断其类型,最后对于不同的表面类型采用不同的分层求交处理算法。利用VC++6.0平台和OpenGL显示技术,依据模型表面几何特征自适应地变动层厚,减小台阶效应,加快分层效率,同样能很好地保留模型局部特征,且该算法可以根据实际模型的成型方向,实现分层方向的改变,保证成型零件的精度。

关键词: 特征边, 分割表面, 台阶效应, 自适应分层, 成型方向

Abstract: The slicing of the model is an important step for pre-processing of 3D printing. Aiming at current low efficiency of slicing and difficulty in effectively preserving subtle features, a new adaptive slicing is proposed in terms of STL model feature. The slicing result via a two-step optimization scheme are computed. Firstly, the feature edge of the model is extracted, and the surface with the feature edge is partitioned by the region growth algorithm. Secondly, the different stratification intersection algorithms are used for different surface types. Using VC++6.0 and OpenGL platform, the thicknesses of slicing layers are optimized adaptively to reduce the step effect, save the printing time and preserve the visual quality of printing results. In addition, optimized slicing direction can be achieved to obtain fine resolution of the part in terms of its actual printing direction.

Key words: feature edge, surface partition, step effect, adaptive slicing, printing direction