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:
parent
782552055a
commit
85c1082fc3
|
@ -1411,7 +1411,7 @@ void draw () {
|
||||||
println("Saving TSP File (SVG)");
|
println("Saving TSP File (SVG)");
|
||||||
println(config.outputSVG);
|
println(config.outputSVG);
|
||||||
// Path header::
|
// 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);
|
FileOutput = append(FileOutput, rowTemp);
|
||||||
|
|
||||||
for ( i = 0; i < particleRouteLength; ++i) {
|
for ( i = 0; i < particleRouteLength; ++i) {
|
||||||
|
|
Loading…
Reference in New Issue