Popular recipes tagged "geometry"http://code.activestate.com/recipes/tags/geometry/2015-09-29T16:56:16-07:00ActiveState Code RecipesSimple Python Point KD Tree (No scipy/numpy needed) (Python)
2015-09-29T16:56:16-07:00webby1111http://code.activestate.com/recipes/users/4192908/http://code.activestate.com/recipes/579104-simple-python-point-kd-tree-no-scipynumpy-needed/
<p style="color: grey">
Python
recipe 579104
by <a href="/recipes/users/4192908/">webby1111</a>
(<a href="/recipes/tags/geometry/">geometry</a>, <a href="/recipes/tags/kdtree/">kdtree</a>).
</p>
<p>A very simple and concise KD-tree for points in python.</p>
<p>For labeled points, you may want to check out my other recipe:
<a href="https://code.activestate.com/recipes/579103-python-addset-attributes-to-list/?in=user-4192908">Python add/set attributes to list</a></p>
3D polygon area (Python)
2012-10-01T16:29:26-07:00Jamie Bullhttp://code.activestate.com/recipes/users/4183059/http://code.activestate.com/recipes/578276-3d-polygon-area/
<p style="color: grey">
Python
recipe 578276
by <a href="/recipes/users/4183059/">Jamie Bull</a>
(<a href="/recipes/tags/3d/">3d</a>, <a href="/recipes/tags/area/">area</a>, <a href="/recipes/tags/geometry/">geometry</a>, <a href="/recipes/tags/polygon/">polygon</a>).
</p>
<p>Function for finding the area of a polygon in a 3D co-ordinate system.</p>
2D polygon area (Python)
2012-10-01T16:22:13-07:00Jamie Bullhttp://code.activestate.com/recipes/users/4183059/http://code.activestate.com/recipes/578275-2d-polygon-area/
<p style="color: grey">
Python
recipe 578275
by <a href="/recipes/users/4183059/">Jamie Bull</a>
(<a href="/recipes/tags/2d/">2d</a>, <a href="/recipes/tags/area/">area</a>, <a href="/recipes/tags/geometry/">geometry</a>, <a href="/recipes/tags/polygon/">polygon</a>).
</p>
<p>Function for finding the area of a polygon in a 2D co-ordinate system.</p>