extrude Interface
public interface extrude
Construct a degree-one extrusion of a curve or surface.
Curve input returns a surface; surface input returns a volume. The source
directions are copied exactly and the new direction has knot vector
[0,0,1,1], degree one, and no parameter wrapping.
Module Procedures
private pure function extrude_curve(curve, vector) result(surface)
Extrude a NURBS curve exactly into a degree-one tensor-product surface.
The source knot vector, degree, control points, weights, and parameter
wrapping are preserved in direction 1. Direction 2 uses the clamped
linear knot vector [0,0,1,1]; the two control layers are separated by
vector and carry identical weights.
In homogeneous coordinates , the output layers are and .
Arguments
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(nurbs_curve), | intent(in) | :: | curve |
Valid source curve. |
||
| real(kind=rk), | intent(in), | contiguous | :: | vector(:) |
Finite, nonzero extrusion vector. Its size determines the output coordinate dimension and must be between the source dimension and three. |
Return Value type(nurbs_surface)
private pure function extrude_surface(surface, vector) result(volume)
Extrude a NURBS surface exactly into a degree-one tensor-product volume.
Source directions 1 and 2 are copied unchanged. Direction 3 uses
[0,0,1,1], and the second control layer is translated by vector.
The construction is exact because both layers retain the source weights.
Arguments
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(nurbs_surface), | intent(in) | :: | surface |
Valid source surface. |
||
| real(kind=rk), | intent(in), | contiguous | :: | vector(:) |
Finite, nonzero extrusion vector. Its size determines the output coordinate dimension and must be between the source dimension and three. |