Skip to main content

Module nurbs

Module nurbs 

Source
Expand description

NURBS curve and surface representations.

Non-Uniform Rational B-Spline (NURBS) geometry is the standard representation for free-form curves and surfaces in CAD.

Re-exports§

pub use bezier_clip::CurveCurveHit;
pub use bezier_clip::CurveCurveOverlap;
pub use bezier_clip::CurveCurveResult;
pub use bezier_clip::curve_curve_intersect;
pub use bezier_clip::curve_curve_intersect_full;
pub use curve::NurbsCurve;
pub use decompose::BezierPatch;
pub use decompose::curve_degree_elevate;
pub use decompose::curve_to_bezier_segments;
pub use decompose::surface_to_bezier_patches;
pub use evaluator::SurfaceEvaluator;
pub use fitting::approximate;
pub use fitting::interpolate;
pub use knot_ops::curve_knot_insert;
pub use knot_ops::curve_knot_refine;
pub use knot_ops::curve_knot_remove;
pub use knot_ops::curve_split;
pub use knot_ops::surface_knot_insert_u;
pub use knot_ops::surface_knot_insert_v;
pub use power_basis::PowerBasis1D;
pub use projection::CurveProjection;
pub use projection::SurfaceProjection;
pub use projection::project_point_to_curve;
pub use projection::project_point_to_surface;
pub use surface::NurbsSurface;
pub use surface_fitting::interpolate_surface;

Modules§

basis
Standalone NURBS basis function evaluation.
bezier_clip
Bezier clipping for curve-curve intersection (Sederberg-Nishita 1990).
curve
NURBS curve evaluation via De Boor’s algorithm.
decompose
Bezier decomposition and degree elevation for NURBS curves and surfaces.
evaluator
Cached evaluator for repeated NURBS surface evaluation.
fitting
NURBS curve fitting: interpolation and approximation from data points.
intersection
Surface-surface and curve-surface intersection routines.
knot_ops
Knot insertion, refinement, and curve splitting.
power_basis
Precomputed polynomial (power-basis) form for fast NURBS basis evaluation.
projection
Point projection onto NURBS curves and surfaces.
self_intersection
NURBS surface self-intersection detection.
surface
NURBS surface evaluation via tensor-product De Boor.
surface_fitting
NURBS surface fitting from a grid of data points via least-squares progressive-iterative approximation (LSPIA).