From f20e095a9c51c18d5e4092bb37a2bfd3eba2a563 Mon Sep 17 00:00:00 2001 From: Jukka Aho Date: Sat, 9 May 2026 16:32:18 +0300 Subject: [PATCH] refactor(basis): remove unused NURBS recursion stub Drop standalone nurbs.jl helper not wired into the current basis pipeline. --- src/basis/nurbs.jl | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 src/basis/nurbs.jl diff --git a/src/basis/nurbs.jl b/src/basis/nurbs.jl deleted file mode 100644 index a0455e0..0000000 --- a/src/basis/nurbs.jl +++ /dev/null @@ -1,16 +0,0 @@ -# This file is a part of JuliaFEM. -# License is MIT: see https://github.com/JuliaFEM/jl/blob/master/LICENSE - -import Base: size, length - -function NURBS(i, p, u, t) - p == 0 && return t[i] <= u <= t[i+1] ? 1.0 : 0.0 - anom = u-t[i] - adenom = t[i+p]-t[i] - a = isapprox(adenom, 0.0) ? 0.0 : anom/adenom - bnom = t[i+p+1]-u - bdenom = t[i+p+1]-t[i+1] - b = isapprox(bdenom, 0.0) ? 0.0 : bnom/bdenom - result = a*NURBS(i,p-1,u,t) + b*NURBS(i+1,p-1,u,t) - return result -end