Skip to content

Latest commit

 

History

History
43 lines (35 loc) · 2.52 KB

File metadata and controls

43 lines (35 loc) · 2.52 KB

go-plotter-svg

Generate SVG files for AxiDraw plotter

go run ./...

See the generated outputs in the gallery.

See some resulting plots on Insta.

TODOs

  • Fix curvy line logic to work for other orientations
    • Generalize to any shape (polygon, circle, ellipse, etc.)
  • Brush
    • Allow for repeating strokes every now and then
  • Come up with a solution for object-to-curve intersection
    • The current appraoch only works for lines and circle segments, but does not for Beziers. To generalize, I'll have to step through each line iteratively, though the question is, how densely should I sample for each object? Is there some easy way to find out the "depth" of a point, both inside and outside?
  • Investigate whether stroke speed has an impact on pen performance
  • Use Marching Squares off of an object-distance measure field
  • make sense of what counts as clockwise w.r.t. circle arc angles. Is the angle measures CCW? it doesn't make sense now. Maybe vectors.RotateCCW is wrong?
  • Font rendering
  • Foldable:
    • Detect face overlap, such as with flaps being too wide, etc.
    • Set up automating layout planning (i.e. you don't have to say which faces are connected, which have flaps, it all gets figured out automatically)
    • Allow connections between foldable objects, i.e. have a scene contain multiple foldables with interlinking
    • See what damage comes from mixing clockwise- and counter-clockwise faces
    • Voronoi - add some way to output the input parameters, when rendering around random points
    • Add ability to add a skeleton cut-out for a face, with a textured face being glued over it later
    • Add ability to sample texture from a separate line field
  • Rectangle-packing: Optimized coveraged-based filter to preserve 10% no matter what
  • Marching squares
    • Algo to smooth out the straight lines created from marching squares

Plot ideas

  • Halftone circles in different colors
  • Concentric circles around several points, all clipped to the respective Voronoi diagram