Now I am understanding the magic number 2x used in display: I was not accounting for the standard 96dpi for svg and so, naturally, a 0.75mm pen represented by line=0.75 would need to *actually* be closer to 1.5. The remaining issue is that the svg representation seems to be failing when supplied with the actual line width used in calculations.

This commit is contained in:
mattmcw 2021-12-06 11:17:59 -05:00
parent 782552055a
commit 85c1082fc3
1 changed files with 1 additions and 1 deletions

View File

@ -1411,7 +1411,7 @@ void draw () {
println("Saving TSP File (SVG)");
println(config.outputSVG);
// Path header::
rowTemp = "<path style=\"fill:none;stroke:black;stroke-width:1px;stroke-linejoin:round;stroke-linecap:round;\" d=\"M ";
rowTemp = "<path style=\"fill:none;stroke:black;stroke-width:"+ config.line +";stroke-linejoin:round;stroke-linecap:round;\" d=\"M ";
FileOutput = append(FileOutput, rowTemp);
for ( i = 0; i < particleRouteLength; ++i) {