Popular recipes tagged "triangles"http://code.activestate.com/recipes/tags/triangles/2015-02-08T15:24:11-08:00ActiveState Code RecipesDelaunay triangulation (Python)
2015-02-08T15:24:11-08:00Alexander Pletzerhttp://code.activestate.com/recipes/users/4190754/http://code.activestate.com/recipes/579021-delaunay-triangulation/
<p style="color: grey">
Python
recipe 579021
by <a href="/recipes/users/4190754/">Alexander Pletzer</a>
(<a href="/recipes/tags/delaunay/">delaunay</a>, <a href="/recipes/tags/edge/">edge</a>, <a href="/recipes/tags/point/">point</a>, <a href="/recipes/tags/set/">set</a>, <a href="/recipes/tags/tessellation/">tessellation</a>, <a href="/recipes/tags/triangles/">triangles</a>, <a href="/recipes/tags/triangulation/">triangulation</a>, <a href="/recipes/tags/vertices/">vertices</a>).
</p>
<p>Given a set of points, this code will construct a Delaunay triangulation.</p>
3 Point Area Finder (Python)
2009-09-08T14:08:14-07:00Daniel Sahahttp://code.activestate.com/recipes/users/4171644/http://code.activestate.com/recipes/576896-3-point-area-finder/
<p style="color: grey">
Python
recipe 576896
by <a href="/recipes/users/4171644/">Daniel Saha</a>
(<a href="/recipes/tags/area/">area</a>, <a href="/recipes/tags/coordinates/">coordinates</a>, <a href="/recipes/tags/triangles/">triangles</a>).
</p>
<p>Plug in three coordinates to triArea(a,b,c), and it will return the area of the triangle.
some common variable letters transfer into these meanings:
m: slope
y,c: y intercept
a: x's coefficient
b: y's coefficient </p>