Answers for "Diagram complexity metric? Mechanism to quantify crossing lines in a diagram?"
https://answers.sap.com/questions/12448148/diagram-complexity-metric-mechanism-to-quantify-cr.html
The latest answers for the question "Diagram complexity metric? Mechanism to quantify crossing lines in a diagram?"Re: Diagram complexity metric? Mechanism to quantify crossing lines in a diagram?
https://answers.sap.com/answers/12451869/view.html
<body><p>Here are some useful links on the programming front:</p><p><a href="https://en.wikipedia.org/wiki/Line%E2%80%93line_intersection#Mathematics" title="https://en.wikipedia.org/wiki/Line%E2%80%93line_intersection#Mathematics">https://en.wikipedia.org/wiki/Line%E2%80%93line_intersection#Mathematics</a></p><p><a href="http://stackoverflow.com/questions/9043805/test-if-two-lines-intersect-javascript-function" title="http://stackoverflow.com/questions/9043805/test-if-two-lines-intersect-javascript-function">collision detection - Test if two lines intersect - JavaScript function - Stack Overflow</a></p><p><a href="http://blogs.mathworks.com/loren/2011/08/29/intersecting-lines/" title="http://blogs.mathworks.com/loren/2011/08/29/intersecting-lines/">Intersecting Lines &amp;raquo; Loren on the Art of MATLAB</a></p></body>Fri, 17 Jun 2016 19:50:48 GMTGeorge McGeachieRe: Diagram complexity metric? Mechanism to quantify crossing lines in a diagram?
https://answers.sap.com/answers/12448621/view.html
<body><p>Sounds interesting, Gareth.</p><p></p><p>You could use diagram.GetPagesCount() to get an indication of the size of a diagram, after setting diagram.PageFormat and PageOrientation to a common value.</p><p></p><p>I can't see an easy way of spotting lines that cross, you'd have to use the co-ordinates of each line segment, and use a vector graphics function to see if any of them cross over - I've a vague feeling I've seen somebody write about that somewhere.</p><p></p><p>You'd also want to look out for overlapping entity symbols (if notation = Barker, some of them are obviously meant to overlap).</p></body>Thu, 16 Jun 2016 12:02:47 GMTGeorge McGeachie