Popular recipes tagged "3d" but not "depth"http://code.activestate.com/recipes/tags/3d-depth/2015-04-29T07:09:33-07:00ActiveState Code RecipesLecture 1: Applications of Python in Bioinformatics: Visualizing Protein (Python)
2015-04-29T07:09:33-07:00Devashish Dashttp://code.activestate.com/recipes/users/4192116/http://code.activestate.com/recipes/579050-lecture-1-applications-of-python-in-bioinformatics/
<p style="color: grey">
Python
recipe 579050
by <a href="/recipes/users/4192116/">Devashish Das</a>
(<a href="/recipes/tags/3d/">3d</a>, <a href="/recipes/tags/bioinformatics/">bioinformatics</a>, <a href="/recipes/tags/plots/">plots</a>, <a href="/recipes/tags/protein/">protein</a>, <a href="/recipes/tags/python/">python</a>).
</p>
<p>This code reads 1qlz.pdb protein file can be downloaded from <a href="http://www.rcsb.org/pdb/files/1QLZ.pdb" rel="nofollow">http://www.rcsb.org/pdb/files/1QLZ.pdb</a> and plots a 3D graph using maplotlib library. For mystery write to me: <a href="mailto:devashish.das@educept.com">devashish.das@educept.com</a></p>
<pre class="prettyprint"><code>__author__ = Devashish Das
__contact__ = +91-9964218681
__email__ = <a href="mailto:deavshish.das@educept.com">deavshish.das@educept.com</a>
__website__ = <a href="http://www.educept.com">http://www.educept.com</a>
</code></pre>
Pseudo-3D effect in text mode... (Bash)
2013-09-10T21:23:58-07:00Barry Walkerhttp://code.activestate.com/recipes/users/4177147/http://code.activestate.com/recipes/578655-pseudo-3d-effect-in-text-mode/
<p style="color: grey">
Bash
recipe 578655
by <a href="/recipes/users/4177147/">Barry Walker</a>
(<a href="/recipes/tags/3d/">3d</a>, <a href="/recipes/tags/apple/">apple</a>, <a href="/recipes/tags/bash/">bash</a>, <a href="/recipes/tags/color/">color</a>, <a href="/recipes/tags/colour/">colour</a>, <a href="/recipes/tags/display/">display</a>, <a href="/recipes/tags/linux/">linux</a>, <a href="/recipes/tags/macbook_pro/">macbook_pro</a>, <a href="/recipes/tags/text/">text</a>).
</p>
<p>This is just a simple DEMO to display a pseudo-3D effect using a bash script.
It generates a recessed box and a button and writes some thext inside bot.</p>
<p>There are two pieces of code, one for Linux, and one for OSX 10.7.5...</p>
<p>The Linux version also works on OSX 10.7.5 but is harder to see so a near
identical version using the default OSX terminal colours was craeted instead.</p>
<p>You will have to split the two code pieces up yourself to run...</p>
<p>Enjoy finding simple solutions to often very difficult problems...</p>
<p>Bazza...</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>
STL Writer (Python)
2012-08-22T18:46:34-07:00Manfred Moitzihttp://code.activestate.com/recipes/users/4183316/http://code.activestate.com/recipes/578246-stl-writer/
<p style="color: grey">
Python
recipe 578246
by <a href="/recipes/users/4183316/">Manfred Moitzi</a>
(<a href="/recipes/tags/3d/">3d</a>).
</p>
<p>Export 3D objects, build of faces with 3 or 4 vertices, as ASCII or Binary STL (Standard Triangulation Language) file.</p>
wxPython: Dramatic, shaded 3-D buttons that look like round glass in a metal ring. (Python)
2011-11-19T17:37:07-08:00Edward Sitarskihttp://code.activestate.com/recipes/users/4180006/http://code.activestate.com/recipes/577951-wxpython-dramatic-shaded-3-d-buttons-that-look-lik/
<p style="color: grey">
Python
recipe 577951
by <a href="/recipes/users/4180006/">Edward Sitarski</a>
(<a href="/recipes/tags/3d/">3d</a>, <a href="/recipes/tags/button/">button</a>, <a href="/recipes/tags/round/">round</a>, <a href="/recipes/tags/wxpython/">wxpython</a>).
</p>
<p>These buttons work like regular wx buttons and can be used the same way.</p>
<p>They are very dramatic and add a strong visual and artistic flair to your interface.
Use when there is something really significant and a regular button just doesn't cut it.</p>
<p>The buttons are drawn with gradient shading (no bitmaps). They can be any size and support any font.</p>
<p>This source has a self-test. Just run "python roundbutton.py".</p>
2D slice of 4D Mandelbrot Fractal and Map it in 3D (Python)
2011-05-26T10:57:39-07:00Derek Harrisonhttp://code.activestate.com/recipes/users/4178123/http://code.activestate.com/recipes/577723-2d-slice-of-4d-mandelbrot-fractal-and-map-it-in-3d/
<p style="color: grey">
Python
recipe 577723
by <a href="/recipes/users/4178123/">Derek Harrison</a>
(<a href="/recipes/tags/2d/">2d</a>, <a href="/recipes/tags/3d/">3d</a>, <a href="/recipes/tags/4d/">4d</a>, <a href="/recipes/tags/symion/">symion</a>).
</p>
<p>This is a modification of code posted at <a href="http://code.activestate.com/recipes/577715/" rel="nofollow">http://code.activestate.com/recipes/577715/</a> (r3)</p>
<p>The original code produces a png image using the PIL module.
It generates a Random 2D Slice of a 4D Mandelbrot Fractal.</p>
<p>This extends the program into 3D with Visual Python 5.4, running under Python 2.7.1</p>
<p>Changing vp_flag from 0 to 1 will restore program to original functionality.
The program is interactive with keys q,w,e,r and x used to control visual points object.</p>