()
| 48 | transformSquad.Update() |
| 49 | # procedure for generating glyphs |
| 50 | def Glyph(): |
| 51 | ptId = glypher.GetPointId() |
| 52 | pd = glypher.GetPointData() |
| 53 | x,y,z = glypher.GetPoint() |
| 54 | length = glypher.GetInput(0).GetLength() |
| 55 | scale = length/(2.0*res) |
| 56 | squadTransform.Identity() |
| 57 | if x == y: |
| 58 | squad.ToroidalOn() |
| 59 | squadTransform.Translate(x,y,z) |
| 60 | squadTransform.RotateX(90) |
| 61 | else: |
| 62 | squadTransform.Translate(x,y,z) |
| 63 | squad.ToroidalOff() |
| 64 | squadTransform.Scale(scale,scale,scale) |
| 65 | squad.SetPhiRoundness(abs(x)*5.0) |
| 66 | squad.SetThetaRoundness(abs(y)*5.0) |
| 67 | |
| 68 | glypher = vtkProgrammableGlyphFilter() |
| 69 | glypher.SetInputConnection(colors.GetOutputPort()) |
nothing calls this directly
no test coverage detected