SignedDistanceFunction.jl is a package to compute signed distance function.
Main features are:
- Creating a signed distance to compute the signed distance function of the jordan closed curve data set(2D).
- Creating a signed distance to compute the signed distance function of the multiple closed curve data set(2D).
The closed curve data must be .csv
file. N is an Int
, representing the number of subdomain divisions, and returns the SignedDistanceFunction(SDF) of NxN.
signedDistance2D("XXXXXX.csv", N)
signedDistance2D("XXXXXX.csv", N, "multi")
$ julia>
$ Pkg(1.5)> add PackageCompiler
$ Pkg(1.5)> add DelimitedFiles
$ Pkg(1.5)> add TimerOutputs
$ Pkg(1.5)> add Test
$ Pkg(1.5)> add Plots
$ julia> using PackageCompiler
$ julia> PackageCompiler.create_sysimage([:CSV, :DataFrames, :Plots, :Luxor, :BenchmarkTools, :TimerOutputs, :Test]; sysimage_path="Sysimage.so")
$ Pkg(1.5)> activate .
$ (SignedDistanceFunction)>
$ julia> using SignedDistanceFunction
$ julia> signedDistance2D("xxxxxx.csv", N)
$ echo "Sysimage.so" >> .gitignore
$julia>
enter the Pkg mode(]
)
$ pkg>
$ pkg> activate .
(SignedDistanceFunction) pkg>
return the REPL(Delete/Backspace
)
julia>
julia> using SignedDistanceFunction
julia> signedDistance2D("XXXXXX.csv", N)