为更好地实现网格模型的约束变形,结合仿射变换思想和广义元球变形技术,提出了一种基于骨架驱动的网格模型变形方法.在确定兴趣区域后,通过创建兴趣区域网格模型的骨架模型,将兴趣区域上的网格顶点映射到骨架线上;然后,根据需要选择相应的带势函数的变形模型(旋转、平移或缩放),并给出变形目标;最终根据兴趣区域网格顶点与骨架的映射关系,计算出网格顶点变形后的新位置,得到变形结果.针对平移变形出现的失真问题,运用旋转修正方式进行了修正.试验结果表明,该方法直观、有效,并能很好地保持网格模型的局部特征,可灵活地实现网格模型的旋转、平移、缩放等变形操作.
In order to preferably realize the constrained deformation of mesh models, an efficient method was proposed based on skeleton-driven by combining affine transformation and generalized metaball deformation technology. A skeleton was created for the region of interest (ROI) to map the vertices in ROI onto the skeleton. A deformable model of rotation, translation and scaling with potential function was selected to set the target values of deformation. The coordinate values of new vertices were computed according to the mapping relationship between original vertices and skeleton to obtain the mesh deformation. In order to solve the distortion in the translation process, a rotating field was established. The experiment results show that the proposed method is efficient and intuitive to maintain the local details well, and can be flexibly applied to the model deformations of rotation, translation, scaling and other operations.