为提高模型切割的效率与自然性,利用VTK提供的接口,采用射线拾取方法实现了对表面模型的标记点方式切割,结合四元数的方法实现了对体模型的平面切割。实验表明,通过扩展VTK来实现对三维模型的任意切割是可行的,并可达到较为理想的切割效果。
To improve its naturalness and efficiency,this paper implemented the landmark cutting for surface model by combing ray picking based on VTK,and so did plane cutting for volume model by combining quaternion.Experiment shows cutting 3D model can be achieved using VTK,and the result is accurate.