Skip to content
ForCADDocumentation

interpolatory_boundary_layer Function

public pure function interpolatory_boundary_layer(knot, nc, degree, side) result(layer)

Return the inward layer interpolated by an active endpoint.

The result is the zero-based normal layer whose B-spline basis value is exactly one at the selected active endpoint, provided every other active value is exactly zero. A negative result means that the endpoint trace is a linear combination of multiple layers and therefore cannot be encoded by direct control-variable identification. Odd side identifiers select the minimum endpoint and even identifiers select the maximum endpoint.

The result can be positive for valid knot vectors containing exterior knots. Open-clamped vectors return layer zero. See L. Piegl and W. Tiller, The NURBS Book, 2nd edition, Sections 2.2 and 3.2. doi:10.1007/978-3-642-59223-2.

Arguments

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

Valid knot vector.

integer, intent(in) :: nc

Number of basis functions.

integer, intent(in) :: degree

Polynomial degree.

integer, intent(in) :: side

Rank-specific side identifier in the range 1:6.

Return Value integer