Interpolation¶
Interpolation feature creates an interpolated curve (edge) based on existing points/vertices or based on analytical mathematical expression.
To create an interpolation in the active part:
select in the Main Menu Build - > Interpolation item or
click Interpolation button in the toolbar
There are two creation modes of an interpolation:
Interpolation by selection
Interpolation analytical
Interpolation by selection¶
The property panel is shown below.
Select one or several vertices or points in the viewer.
Closed makes the interpolation curve closed.
Reorder reorders the selected points to minimize the length of curve.
Tangents makes start and end of the curve tangent to the selected edges. The user has to select start and end edges in the corresponding fields.
Apply button creates an interpolation.
Cancel button cancels the operation.
TUI Commands:
-
model.
addInterpolation
(Part_doc, Points, IsClosed, IsReordered)¶ - Parameters
part – The current part object.
list – A list of points.
boolean – Is closed.
boolean – Is reordered.
- Returns
Result object.
-
model.
addInterpolation
(Part_doc, Points, StartEdge, EndEdge, IsClosed, IsReordered)¶ - Parameters
part – The current part object.
list – A list of points.
object – Start point.
object – End point.
boolean – Is closed.
boolean – Is reordered.
- Returns
Result object.
Result¶
The result of the operation will be a curve created from the selected shapes:
See Also a sample TUI Script of Create Interpolation by selection operation.
Interpolation analytical¶
The property panel is shown below.
- Curves parameters panel allows to define the mathematical expression for creating the interpolated curve.
X(t) equation define the expression of X with t variable.
Y(t) equation define the expression of Y with t variable.
Z(t) equation define the expression of Z with t variable.
Min t define the minimun of t.
Max t define the maximum of t.
Number of steps define the number of steps.
Apply button creates an interpolation.
Cancel button cancels the operation.
TUI Commands:
-
model.
addInterpolation
(Part_doc, xt, yt, zt, mint, maxt, nbSteps)¶ - Parameters
part – The current part object.
string – Expression of x.
string – Expression of y.
string – Expression of z.
number – Minimum value of t.
number – Maximum value of t.
number – Number of steps.
- Returns
Result object.
Result¶
The result of the operation will be a curve created from analytical expressions for x,y and z as functions of variable t:
See Also a sample TUI Script of Create Interpolation analytical operation.