NOTICE !!
This package is now archived, and will not be maintained.
Please use BasicBSplineExporter.jl instead of this package.
This package supports export NURBS to png, svg image. (and also supports vtk, pov, etc. in the future.)
(pkg) > add https://github.com/hyrodium/BasicBSpline.jl
(pkg) > add https://github.com/hyrodium/ExportNURBS.jl
using BasicBSpline
using ExportNURBS
p = 2
k = Knots(1:8)
P = BSplineSpace(p,k)
rand_a = [rand(2) for i in 1:dim(P), j in 1:dim(P)]
a = [[2*i-6.5,2*j-6.5] for i in 1:dim(P), j in 1:dim(P)] + rand_a
M = BSplineManifold([P,P],a)
k₊=[Knots(3.3,4.2),Knots(3.8,3.2,5.3)]
M′ = refinement(M,k₊=k₊)
save_png("2dim.png", M)
save_png("2dim_refinement.png", M′)