Menu

#481 [intersections] "Sort by" resulting in wrong order of intersections

v1.0 (example)
closed-fixed
nobody
5
2019-12-01
2018-05-02
Icyd
No

Using the following MWE, the direction of the blue arrow is opposite to the black one:

\documentclass{standalone}    
\usepackage{tikz}  
\usetikzlibrary{intersections}
\begin{document}  
\begin{tikzpicture}
    \draw [name path=base] (-1,-1) rectangle (1,1);
    \draw [->, name path=line] (0.5,-2) -- (1.8,2);
    \draw [color=blue, thick, ->, name intersections={of=line and base, sort by=line}] (intersection-1) -- (intersection-2);
\end{tikzpicture}  
\end{document}
1 Attachments

Discussion

  • Stefan Pinnow

    Stefan Pinnow - 2019-12-01
    • status: open --> closed-fixed
     
  • Stefan Pinnow

    Stefan Pinnow - 2019-12-01