loft Interface
public interface loft
Interpolate compatible curve or surface sections in homogeneous space.
Curve sections return a surface and surface sections return a volume.
The output interpolation direction uses an averaged clamped knot vector;
its degree defaults to min(3,size(sections)-1).
Module Procedures
private pure function loft_curves(sections, parameters, degree) result(surface)
Interpolate compatible NURBS curve sections by a NURBS surface.
Section knot vectors, degrees, control counts and coordinate dimensions
must match, with knot values compared by same_knot_vector. Parameters
must be finite and strictly increasing. The default loft degree is
min(3,number_of_sections-1). Interpolation is performed on homogeneous
coordinates. With identical section knots, rational section geometry is
reproduced at each supplied section parameter to the accepted linear
residual. When knots differ within tolerance, the first knot vector is
retained and only homogeneous control-data reproduction is asserted.
For each source control index , the routine solves
, where
.
Uses the averaged open knot vector and global interpolation construction
of Piegl and Tiller, The NURBS Book, 2nd ed., Section 9.2.1. The result
is rejected if the solve residual exceeds the criterion documented by
interpolate_loft or any interpolated weight is nonpositive/nonfinite.
Arguments
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(nurbs_curve), | intent(in), | contiguous | :: | sections(:) |
Two or more valid and mutually compatible curves. |
|
| real(kind=rk), | intent(in), | optional, | contiguous | :: | parameters(:) |
Optional strictly increasing section parameters, one per section. Uniform values on |
| integer, | intent(in), | optional | :: | degree |
Optional loft-direction degree in |
Return Value type(nurbs_surface)
private pure function loft_surfaces(sections, parameters, degree) result(volume)
Interpolate compatible NURBS surface sections by a NURBS volume.
Section knot vectors, degrees, control counts and coordinate dimensions
must match, with directional knot values compared by
same_knot_vector. Parameters must be finite and strictly increasing.
The default loft degree is min(3,number_of_sections-1).
Interpolation is performed independently for every homogeneous
control-net coordinate, including the weight. Identical section knots
yield section-geometry interpolation to the accepted solve residual. If
knots differ within tolerance, the first surface's knots are retained and
only homogeneous control-data reproduction is asserted.
For each flattened source control index , the routine solves
, where
.
Uses the averaged open knot vector and global interpolation construction
of Piegl and Tiller, The NURBS Book, 2nd ed., Section 9.2.1. The result
is rejected if the solve residual exceeds the criterion documented by
interpolate_loft or any interpolated weight is nonpositive/nonfinite.
Arguments
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(nurbs_surface), | intent(in), | contiguous | :: | sections(:) |
Two or more valid and mutually compatible surfaces. |
|
| real(kind=rk), | intent(in), | optional, | contiguous | :: | parameters(:) |
Optional strictly increasing section parameters, one per section. Uniform values on |
| integer, | intent(in), | optional | :: | degree |
Optional loft-direction degree in |