reader: Reading and writing svg files
Description
Various utilities for reading and creating svg files for use with inkscape
Usage
reader(filename)
write_svg(k, oldfile, safe=TRUE,
regex1 ='sodipodi:docname=',
regex2=' *d *= *" *M.*C.*[zZ] *"')Arguments
- filename
Name of a file to be read by reader(); usually
an inkscape .svg file
- safe
Boolean, with default TRUE meaning to save file
“foo.svg” as “foo_smooth.svg”
and FALSE meaning to overwrite foo.svg.
- k, oldfile, regex1, regex2
Various arguments sent to
write_svg(); see the source code for details.
Argument k is a knot, oldfile an .svg file for
reference.
Details
Function reader() is the way to get started with a new
knot. This takes a filename which is an .svg file created with
inkscape. Instructions for creating a suitable inkscape file are
given in knotR-package.Rd.
Examples
Run this codeif (FALSE) {
a <- reader("6_3.svg")
b <- getcontrolpoints(a)
knotplot(a)
}
Run the code above in your browser using DataLab