Navigation Menu

Skip to content
This repository has been archived by the owner on Dec 29, 2021. It is now read-only.

hyrodium/ExportNURBS.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ExportNURBS

NOTICE !!
This package is now archived, and will not be maintained. Please use BasicBSplineExporter.jl instead of this package.

Stable Dev Build Status

This package supports export NURBS to png, svg image. (and also supports vtk, pov, etc. in the future.)

Example

(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′)