<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 08/27/2013 11:25 PM, Mathieu
Bouchard wrote:<br>
</div>
<blockquote
cite="mid:alpine.DEB.2.00.1308272325040.23289@artengine.ca"
type="cite">Le 2013-08-27 à 12:21:00, Ivica Ico Bukvic a écrit :
<br>
<br>
<blockquote type="cite">We are coming up on a new pd-l2ork
release--one that I am particularly excited about. As I continue
to put on the finishing touches, I wanted to share a small but
hopefully sweet teaser screenshot with everyone :-)
<br>
</blockquote>
<br>
What's the line-placement algorithm ?</blockquote>
<br>
Hey Mathieu! Glad to see you are still lurking around ;-)<br>
<br>
2 connected quadratic bezier curves, so 3 points (1 shared between
the two curves), and 2 control points--one immediately below the
outlet and another above the inlet, their height away from
respective nlets depending on a combination of horizontal and
vertical distances between the connecting nlets. If you are looking
for the underlying formula, the code is rather simple on my end (I
will be uploading it to git hopefully in the next couple of days).
As for the actual Bezier calculation, that part is embedded in the
tkpath library. Beyond that I haven't dug into tkpath's code.<br>
<br>
HTH<br>
<br>
<blockquote
cite="mid:alpine.DEB.2.00.1308272325040.23289@artengine.ca"
type="cite">
<br>
<br>
______________________________________________________________________
<br>
| Mathieu BOUCHARD ----- téléphone : +1.514.383.3801 -----
Montréal, QC<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
L2Ork-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:L2Ork-dev@disis.music.vt.edu">L2Ork-dev@disis.music.vt.edu</a>
<a class="moz-txt-link-freetext" href="http://disis.music.vt.edu/listinfo/l2ork-dev">http://disis.music.vt.edu/listinfo/l2ork-dev</a></pre>
</blockquote>
<br>
</body>
</html>