Forum

Welcome Guest 

Show/Hide Header

Welcome Guest, posting in this forum requires registration.





Pages: [1]
Author Topic: Option to show reduced vector/bbox for "MOVE VECTOR"?
chrisb78
Beginner
Posts: 26
Permalink
Post Option to show reduced vector/bbox for "MOVE VECTOR"?
on: June 29, 2016, 10:13
Quote

I'm currently working with SVG data that has 200k+ lines in it. Once the controller has exported the queue, I use the amazing polargraph-optimizer to be able to reduce the commandload to less than a fifth (!) of the data.

Before this though, while still in the polargraph controller, the huge file is cumbersome to work with; in my case, especially so when moving the vector to its final position on the paper. (the software still is insanely responsive, considering the load it has to juggle!)

There is the command to not show any vector data, but would it be possible to optionally show some kind of "limited" version, e.g. just the bounding box, of the vector data as well?

Thanks!

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Option to show reduced vector/bbox for "MOVE VECTOR"?
on: June 29, 2016, 18:37
Quote

There's not anything built in to reduce the detail during move, but it's quite straightforward to reduce what it displays during a "move vector".

The code that does that bit of drawing is at https://github.com/euphy/polargraphcontroller/blob/master/polargraphcontroller.pde#L1000

Replace that line with:

      int increment = round((pointPaths.length/10.0)+0.5);
      for (int i = 0; i<pointPaths.length; i+=increment)

Where the 10.0 is the proportion of lines to draw. So 10.0 will draw one in every ten lines during "move" time. Changing it to 2.0 will draw every other line. 20.0 will draw one in every twenty lines. Etc.

Is that any good?

Maybe it should only kick in over a certain number of lines ... so only if the artwork is more than 10000 lines or something like that.

I might roll something like this into the next release.

sn

chrisb78
Beginner
Posts: 26
Permalink
Post Re: Option to show reduced vector/bbox for "MOVE VECTOR"?
on: July 2, 2016, 08:30
Quote

Thanks for this! I've been busy the last days, but will experiment with it, and get back here.
Thanks for your support!!

hashampers-
and
Beginner
Posts: 28
Permalink
Post Re: Option to show reduced vector/bbox for "MOVE VECTOR"?
on: July 4, 2016, 17:27
Quote

A 'reduce density while moving enormous vector or .g files' function would be lovely in a future release Sandy, especially with mega Death to Sharpie outputs.

Pages: [1]
Mingle Forum by cartpauj
Version: 1.0.34 ; Page loaded in: 0.046 seconds.