Converts an SVG file into a DXF file, reading it as io.svg.svgRead does and writing it as
io.dxf.dxfCreate does.
Inkscape layers, stroke colors and dash patterns become DXF layers, colors and line types, and
curves stay exact. With unit the drawing is read at true size and the DXF states that unit. A
drawing too large to write throws.
The SVG text, the unit, whether hidden elements are written, and the DXF's color format, version and curve tolerance
The DXF text and the reading's warnings
Converts a DXF file into an SVG file, reading it as io.dxf.dxfRead does and writing it as
io.svg.svgCreate does.
Layers become Inkscape layers and the SVG takes its true size from the unit the DXF states.
Splines given only by fit points are left out and named in warnings; a drawing too large to
write throws.
The DXF file as text or bytes, whether hidden layers are written, and the SVG's line width, border and curve tolerance
The SVG text and the reading's warnings
Makes a straight segment of a drawing path, from start to end.
The start and the end point
The line segment
Makes a circular arc of a drawing path, running counterclockwise about its center from
startAngle to endAngle, in degrees, in the XY plane unless a normal tilts it.
The center, the radius, the start and end angles and the plane's normal
The arc segment
Makes a whole circle of a drawing path from its center and radius, in the XY plane unless a
normal tilts it.
The center, the radius and the plane's normal
The circle segment
Makes connected straight segments through points, which bulges can bend into arcs;
closed joins the last point back to the first.
The points, whether the polyline is closed, and the bulges
The polyline segment
Makes a B-spline or NURBS curve of a drawing path from its control points and degree, with its knots and weights when they are given.
The control points, the degree, whether it is closed, the knots and the weights
The spline segment
Makes an ellipse, or an arc of one, for a drawing path.
The ellipse is given by its center, the vector to the end of its major axis and the minor to major ratio; parameters in radians pick the arc, running counterclockwise about the normal.
The center, the major axis, the ratio, the start and end parameters and the plane's normal
The ellipse segment
Joins segments into one path, drawn in order like the edges of a wire; segments that meet are drawn as one stroke in SVG.
The segments, in order
The path
Puts paths on a named layer with a color and a line type, making one part of a drawing.
A drawing may hold several parts; io.dxf.dxfCreate writes them as DXF and io.svg.svgCreate
as SVG.
The layer name, the color, the paths and the line type
The part
Builds drawings as data, for any file format: segments of every kind, paths joined from segments, and parts that put paths on a layer with a color and a line type.
io.dxf.dxfCreatewrites the parts as DXF andio.svg.svgCreateas SVG;svgToDxfanddxfToSvgconvert one file into the other through these parts.