Skip to content
ForCADDocumentation

sweep Interface

public interface sweep

Construct a fixed-frame translational sweep along a NURBS curve.

The first argument is a curve or surface profile and the second argument is the spine curve. Source knot vectors, degrees, and wrapping policies are retained in their corresponding output directions.


Module Procedures

private pure function sweep_curve(profile, spine, origin) result(surface)

Sweep a NURBS curve by exact translation along a NURBS spine. The profile orientation remains fixed. The optional origin is subtracted from the spine before translation. The output control net is the tensor sum of both control polygons and its weights are the pairwise products .

The resulting homogeneous tensor product evaluates exactly to , provided both source weight denominators are nonzero.

Arguments

Type IntentOptional Attributes Name
type(nurbs_curve), intent(in) :: profile

Valid profile curve; output direction 1.

type(nurbs_curve), intent(in) :: spine

Valid translation curve; output direction 2.

real(kind=rk), intent(in), optional, contiguous :: origin(:)

Optional finite translation origin. If present, its size must equal the output coordinate dimension.

Return Value type(nurbs_surface)

private pure function sweep_surface(profile, spine, origin) result(volume)

Sweep a NURBS surface by exact translation along a NURBS spine. The profile orientation remains fixed. The optional origin is subtracted from the spine before translation. The surface directions become output directions 1 and 2; the spine becomes direction 3.

Arguments

Type IntentOptional Attributes Name
type(nurbs_surface), intent(in) :: profile

Valid profile surface.

type(nurbs_curve), intent(in) :: spine

Valid translation curve.

real(kind=rk), intent(in), optional, contiguous :: origin(:)

Optional finite translation origin. If present, its size must equal the output coordinate dimension.

Return Value type(nurbs_volume)