第九讲矢量场可视化-环境工程研究所.ppt

第九讲矢量场可视化-环境工程研究所

(2) 矢量场的流点表示 vtkStreamPoints sl = vtkStreamPoints() 流点生成对象 integ = vtkRungeKutta4() sl.SetInput(pl3d.GetOutput()) sl.SetSource(rake.GetOutput()) 设置矢量数据 sl.SetIntegrator(integ) sl.SetMaximumPropagationTime(0.1) sl.SetIntegrationStepLength(0.001) sl.SetIntegrationDirectionToBackward() sl.SetTimeIncrement(0.001) cone = vtkConeSource() 流点表示类型 cone.SetResolution(8) cones = vtkGlyph3D() 装配对象 cones.SetInput(sl.GetOutput()) cones.SetSource(cone.GetOutput()) cones.SetScaleFactor(0.001) cones.SetScaleModeToScaleByVector() integ = vtkRungeKutta4() sl = vtkStreamPoints() sl.SetInput(pl3d.Get

文档评论(0)

1亿VIP精品文档

相关文档