Skip to content
ForCADDocumentation

refine_control_lines Subroutine

public pure subroutine refine_control_lines(knot, degree, controls, Xth, r, err, Tmap, bounded)

Refine packed control lines with one shared knot-insertion policy. Source data and finite, matching requests with nonnegative counts are prevalidated. Work arrays may change before failure; callers commit only when err is OK. Zero counts need no control workspace. Dense maps allocate only on request. Bounded mode cuts the stored spline rather than its periodic extension.

Arguments

Type IntentOptional Attributes Name
real(kind=rk), intent(inout), allocatable :: knot(:)
integer, intent(in) :: degree
real(kind=rk), intent(inout), allocatable :: controls(:,:)
real(kind=rk), intent(in) :: Xth(:)
integer, intent(in) :: r(:)
type(debug), intent(inout) :: err
real(kind=rk), intent(out), optional, allocatable :: Tmap(:,:)
logical, intent(in), optional :: bounded