Skip to content
ForCADDocumentation

map_parameter Function

public pure function map_parameter(Xt, knot, nc, degree, wrap_parameter, side) result(u)

Optionally wrap one spline parameter into its active interval. Disabled wrapping and invalid spline states leave the parameter unchanged. Wrapping maps into , except that the left seam trace uses . It changes parameter evaluation only; cyclic geometry is not required.

Arguments

Type IntentOptional Attributes Name
real(kind=rk), intent(in) :: Xt

Input parameter.

real(kind=rk), intent(in), contiguous :: knot(:)

Knot vector.

integer, intent(in) :: nc

Number of control points.

integer, intent(in) :: degree

Polynomial degree.

logical, intent(in) :: wrap_parameter

Enable modulo mapping when true.

integer, intent(in), optional :: side

A negative side takes the left trace at the wrapped seam.

Return Value real(kind=rk)