Skip to content
ForCADDocumentation

active_knots Function

public pure function active_knots(knot, nc, degree) result(Xth)

Return distinct stored knots on the closed active interval. A nondecreasing knot vector is a mathematical precondition. Invalid degree/count/size metadata returns an allocated zero-length array; other knot-vector invariants are not checked here.

Arguments

Type IntentOptional Attributes Name
real(kind=rk), intent(in), contiguous :: knot(:)
integer, intent(in) :: nc
integer, intent(in) :: degree

Return Value real(kind=rk), allocatable, (:)