Editing Generating TSP art from a stippled image

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 109: Line 109:
 
| Each SVG <path> produced is composed of many connected line segments.  Some SVG viewers may be limited in the number of line segments per path which they can display.  For this reason, tspart.py normally breaks a TSP tour into several paths, each path containing at most 400 line segments.  You can increase or decrease this limit with this option.  To allow an unlimited number of line segments in a path, specify {{nowrap|--max_segments=0}}.  When a value of 0 is given, tspart.py will generate a result which is a single, closed path and which therefore can be filled using the --fill option.
 
| Each SVG <path> produced is composed of many connected line segments.  Some SVG viewers may be limited in the number of line segments per path which they can display.  For this reason, tspart.py normally breaks a TSP tour into several paths, each path containing at most 400 line segments.  You can increase or decrease this limit with this option.  To allow an unlimited number of line segments in a path, specify {{nowrap|--max_segments=0}}.  When a value of 0 is given, tspart.py will generate a result which is a single, closed path and which therefore can be filled using the --fill option.
 
|-
 
|-
| {{nowrap|--mid}}, {{nowrap|--post}}, {{nowrap|--pre}}
+
| {{nowrap|--mid}}
 +
| See --pre
 +
|-
 +
| {{nowrap|--post}}
 +
| See --pre
 +
|-
 +
| {{nowrap|--pre}}
 
| When producing color TSP art, it is useful to generate partial SVG output files.  SVG files have a section which only appears at the start of the file which we refer to as the "preamble" or "header".  They also have a closing section which appears only at the end of the file which we refer to as a "postable" or "footer".  Sections of the file in the middle do not have either a preamble or postamble.  With this option, partial SVG output containing the preamble (--pre), the postamble (--post), or neither (--mid) can be generated. See the discussion on [[Color TSP art|color TSP art]] for examples showing the use of these options.
 
| When producing color TSP art, it is useful to generate partial SVG output files.  SVG files have a section which only appears at the start of the file which we refer to as the "preamble" or "header".  They also have a closing section which appears only at the end of the file which we refer to as a "postable" or "footer".  Sections of the file in the middle do not have either a preamble or postamble.  With this option, partial SVG output containing the preamble (--pre), the postamble (--post), or neither (--mid) can be generated. See the discussion on [[Color TSP art|color TSP art]] for examples showing the use of these options.
 
|-
 
|-
 
| {{nowrap|-r ''n''}}, {{nowrap|--runs=''n''}}
 
| {{nowrap|-r ''n''}}, {{nowrap|--runs=''n''}}
| By default, the linkern solver is iteratively run three times ({{nowrap|--runs=3}}).  Each successive run refines the results of the prior run.  When generating TSP art for large numbers of stipples (e.g., 25,000 or more), consider using fewer runs so as to speed up the solution process.
+
| By default, the linkern solver is iteratively run three times ({{nowrap|--runs=3}} times.  Each successive run refines the results of the prior run.  When generating TSP art for large numbers of stipples (e.g., 25,000 or more), consider using fewer runs so as to speed up the solution process.
 
|-
 
|-
 
| {{nowrap|-s ''color''}}, {{nowrap|--stroke=''color''}}
 
| {{nowrap|-s ''color''}}, {{nowrap|--stroke=''color''}}
| By default, the TSP solution is drawn using a black line ({{nowrap|--stroke=black}}).  A different stroke color may be specified with this option.  The permitted color names are the same as for the {{nowrap|--fill}} option described above.
+
| By default, the TSP solution is drawn using a black line ({{nowrap|--stroke=black}}.  A different stroke color may be specified with this option.  The permitted color names are the same as for the {{nowrap|--fill}} option described above.
 
|-
 
|-
 
| {{nowrap|-S ''exe-path''}}, {{nowrap|--solver=''exe-path''}}
 
| {{nowrap|-S ''exe-path''}}, {{nowrap|--solver=''exe-path''}}
| tspart.py needs to know where the linkern solver is installed in order to run it.  Use this option to specify the correct location in the event that tspart.py's builtin default is not correct for your system.
+
| tspart.py needs to know where the linkern solver is installed in order to run it.  Use this option to specify the correct location in the event that its builtin default is not correct for your system.
 
|}
 
|}
  

Please note that all contributions to Evil Mad Scientist Wiki are considered to be released under the GNU Free Documentation License 1.3 (see Evil Mad Scientist Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel | Editing help (opens in new window)

Template used on this page: