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

Function fit

Common/ComputationalGeometry/Testing/Python/CSpline.py:88–96  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

86numberOfOutputPoints = 400
87offset = 1.0
88def fit ():
89 points.Reset()
90 i = 0
91 while i < numberOfOutputPoints:
92 t = (numberOfInputPoints - offset) / (numberOfOutputPoints - 1) * i
93 points.InsertPoint(i, aSplineX.Evaluate(t), aSplineY.Evaluate(t), aSplineZ.Evaluate(t))
94 i += 1
95
96 profileData.Modified()
97
98fit()
99

Callers 5

CSpline.pyFile · 0.70
openedFunction · 0.70
varyLeftFunction · 0.70
varyRightFunction · 0.70
closedFunction · 0.70

Calls 4

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

Tested by

no test coverage detected