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

Function fit

Common/ComputationalGeometry/Testing/Python/KSpline.py:101–109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

99numberOfOutputPoints = 300
100offset = 1.0
101def fit ():
102 points.Reset()
103 i = 0
104 while i < numberOfOutputPoints:
105 t = (numberOfInputPoints - offset) / (numberOfOutputPoints - 1) * i
106 points.InsertPoint(i, aSplineX.Evaluate(t), aSplineY.Evaluate(t), aSplineZ.Evaluate(t))
107 i = i + 1
108
109 profileData.Modified()
110
111fit()
112

Callers 7

KSpline.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