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

Function fit

Common/ComputationalGeometry/Testing/Python/closedSplines.py:144–155  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

142offset = 1.0
143
144def fit ():
145 Kpoints.Reset()
146 Cpoints.Reset()
147 i = 0
148 while i < numberOfOutputPoints:
149 t = (numberOfInputPoints - offset) / (numberOfOutputPoints - 1) * i
150 Kpoints.InsertPoint(i, aKSplineX.Evaluate(t), aKSplineY.Evaluate(t), aKSplineZ.Evaluate(t))
151 Cpoints.InsertPoint(i, aCSplineX.Evaluate(t), aCSplineY.Evaluate(t), aCSplineZ.Evaluate(t))
152 i += 1
153
154 profileKData.Modified()
155 profileCData.Modified()
156
157fit()
158

Callers 7

closedSplines.pyFile · 0.70
defaultsFunction · 0.70
varyBiasFunction · 0.70
varyTensionFunction · 0.70
varyContinuityFunction · 0.70
closedFunction · 0.70
openedFunction · 0.70

Calls 4

ResetMethod · 0.45
InsertPointMethod · 0.45
EvaluateMethod · 0.45
ModifiedMethod · 0.45

Tested by

no test coverage detected