总结:此文主要分享线性拉伸(vtkLinearExtrusionFilter)实现方法,有问题的烦请小伙伴指证。此文会涉及到vtkPolyData的基本知识。
根据此接口的实现结果,在CAD的概念里,翻译为拉伸更为贴切。也有的小伙伴理解为扫掠,也可以。
输入:polygonal data
输出:polygonal data
实现方法:
specified vector / towards a point / vertex normals



specified vector: y = x + this->ScaleFactor * this->Vector;
towards a point: y = x + this->ScaleFactor * (x - this->ExtrusionPoint);
vertex normals: y[i] = x[i] + this->ScaleFactor * normal[i];即