goulib.drawing

Read/Write and handle vector graphics in .dxf, .svg and .pdf formats

requires:

optional:

Functions

Trans([scale, offset, rotation])

chains(group[, tol, mergeable])

build chains from all possible segments in group :param mergeable: function(e1,e2) returning True if entities e1,e2 can be merged

Classes

BBox([p1, p2])

bounding box

Chain([data])

group of contiguous Entities (Polyline or similar)

Drawing([data])

list of Entities representing a vector graphics drawing

Entity()

Base class for all drawing entities

Group([iterable])

group of Entities but it is a Geometry since we can intersect, connect and compute distances between Groups

Instance(group, trans)

Rect(*args)

a rectangle starting at low/left and going trigowise through top/right

Spline(points)

cubic spline segment

Text(text, point[, size, rotation])

_Group(*args)

abstract class for iterable Entities