MCPcopy Create free account
hub / github.com/Kitware/VTK / Glyph

Function Glyph

Filters/Programmable/Testing/Python/progGlyphs.py:34–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32planeActor.GetProperty().SetRepresentationToWireframe()
33# procedure for generating glyphs
34def Glyph():
35 ptId = glypher.GetPointId()
36 pd = glypher.GetPointData()
37 x,y,z = glypher.GetPoint()
38 length = glypher.GetInput(0).GetLength()
39 scale = length/(2.0*res)
40 squad.SetScale(scale,scale,scale)
41 squad.SetCenter(x,y,z)
42 squad.SetPhiRoundness(abs(x)*5.0)
43 squad.SetThetaRoundness(abs(y)*5.0)
44 squad.Update()
45
46# create simple poly data so we can apply glyph
47squad = vtkSuperquadricSource()

Callers

nothing calls this directly

Calls 11

absFunction · 0.50
GetPointIdMethod · 0.45
GetPointDataMethod · 0.45
GetPointMethod · 0.45
GetLengthMethod · 0.45
GetInputMethod · 0.45
SetScaleMethod · 0.45
SetCenterMethod · 0.45
SetPhiRoundnessMethod · 0.45
SetThetaRoundnessMethod · 0.45
UpdateMethod · 0.45

Tested by

no test coverage detected