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

Function varyTension

Common/ComputationalGeometry/Testing/Python/closedSplines.py:238–247  ·  view source on GitHub ↗
(aSplineX, aSplineY, aSplineZ)

Source from the content-addressed store, hash-verified

236
237
238def varyTension (aSplineX, aSplineY, aSplineZ):
239 defaults(aSplineX, aSplineY, aSplineZ)
240 tension = -1
241 while tension <= 1:
242 aSplineX.SetDefaultTension(tension)
243 aSplineY.SetDefaultTension(tension)
244 aSplineZ.SetDefaultTension(tension)
245 fit()
246 renWin.Render()
247 tension += 0.05
248
249
250def varyContinuity (aSplineX, aSplineY, aSplineZ):

Callers

nothing calls this directly

Calls 3

defaultsFunction · 0.70
fitFunction · 0.70
RenderMethod · 0.65

Tested by

no test coverage detected