# Python: module reprap.shapeplotter

reprap.shapeplotter | index /usr/lib/python2.5/site-packages/reprap/shapeplotter.py

`This module plots many shapes a polygon objects containing a series of lines
The Polygon object can be found in reprap.toolpath`

Modules

``

math | os | reprap.toolpath |

Functions

``

arc(x, y, radius, startAngle, endAngle, resolution)
  `Returns polygon an arc with x, y, radius, start angle (radians), end engle (radians) and resolution (lines per mm) a Polygon object`

circle(x, y, radius, resolution, fillDensity=False)
  `Returns polygon for a filled circle with x, y, radius, resolution (lines per mm) and fill density (lines per mm) as a Polygon object`

circleStroke(x1, y1, x2, y2, radius, resolution, fillDensity=False)
  `Returns polygon for a photoplotter moving stroke using a circular aperture with x, y, radius, resolution (lines per mm) and fill density (lines per mm) as a Polygon object`

ellipse(x, y, a, b, resolution, fillDensity=False)
  `Returns polygon for a filled ellipse with x, y, a, b, resolution (lines per mm) and fill density (lines per mm) as a Polygon object`

line(line)
  `Returns polygon for line (x1, y2, x2, y2) as a Polygon object`

point(point)
  `Returns polygon for point (x, y) as a Polygon Object`

raster(fileName, originalWidth, originalHeight, svg=False)
  `Returns polygon for a vectorised raster as a Polygon object.
  Uses external potrace program to convert raster file into polygon(s)`

rectangle(x, y, width, height, fillDensity=False)
  `Returns polygon for line x, y, width, height and fill density (lines per mm) as a Polygon object`

Data
`` |  | FILL_LINES = 2 FILL_LOCUS = 1 __author__ = 'Stefan Blanke (greenarrow) (greenarrow@users.sourceforge.net)' __credits__ = 'Author of potrace' __licence__ = '\npyRepRap is free software: you can redistribute...ap. If not, see <http://www.gnu.org/licenses/>.\n' __license__ = 'GPL 3.0' debug = False

Author
`` |  | Stefan Blanke (greenarrow) (greenarrow@users.sourceforge.net)

Credits
`` |  | Author of potrace