<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>persistencia.org</title>
	<atom:link href="http://www.persistencia.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.persistencia.org</link>
	<description></description>
	<lastBuildDate>Mon, 23 Jan 2012 23:36:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Curved polygon</title>
		<link>http://www.persistencia.org/2012/01/curved-polygon/</link>
		<comments>http://www.persistencia.org/2012/01/curved-polygon/#comments</comments>
		<pubDate>Mon, 23 Jan 2012 23:34:51 +0000</pubDate>
		<dc:creator>bgimeno</dc:creator>
				<category><![CDATA[Sin categoría]]></category>

		<guid isPermaLink="false">http://www.persistencia.org/?p=181</guid>
		<description><![CDATA[Consider a polygon of N sides. On one side of this polygon draw a semicircle of diameter less than the length of the side. Draw an arc with center on one of the vertices adjacent that connects to the first semicircle. The process is repeated on each side. If the first semicircle is located outside the shape is &#8230; <a href="http://www.persistencia.org/2012/01/curved-polygon/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Consider a polygon of N sides. On one side of this polygon draw a semicircle of diameter less than the length of the side. Draw an arc with center on one of the vertices adjacent that connects to the first semicircle. The process is repeated on each side. If the first semicircle is located outside the shape is set with the <span style="text-decoration: underline;">convex</span> parameter.</p>
<pre>polig_curve (
N, // number of sides
mj_rad_A, // radius of the central semicircle
mj_rad_B, // radius of the arc in the vertex
min_rad_c, // thickness
convex, // set concavity (on/off)
design // included 4 little variations on the shape's geometry
)</pre>
<p>Download:<a href="http://www.persistencia.org/downloads/polig_curve.mcr"> polig_curve.mcr</a></p>

<div class="ngg-galleryoverview" id="ngg-gallery-3-181">

	<!-- Slideshow link -->
	<div class="slideshowlink">
		<a class="slideshowlink" href="http://www.persistencia.org/2012/01/curved-polygon/?show=slide">
			[Show as slideshow]		</a>
	</div>

	
	<!-- Thumbnails -->
		
	<div id="ngg-image-22" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.persistencia.org/wordpress/wp-content/gallery/polig_curve/polig_curve7.png" title=" " class="shutterset_set_3" >
								<img title="polig_curve7" alt="polig_curve7" src="http://www.persistencia.org/wordpress/wp-content/gallery/polig_curve/thumbs/thumbs_polig_curve7.png" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-21" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.persistencia.org/wordpress/wp-content/gallery/polig_curve/polig_curve6.png" title=" " class="shutterset_set_3" >
								<img title="polig_curve6" alt="polig_curve6" src="http://www.persistencia.org/wordpress/wp-content/gallery/polig_curve/thumbs/thumbs_polig_curve6.png" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-20" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.persistencia.org/wordpress/wp-content/gallery/polig_curve/polig_curve5.png" title=" " class="shutterset_set_3" >
								<img title="polig_curve5" alt="polig_curve5" src="http://www.persistencia.org/wordpress/wp-content/gallery/polig_curve/thumbs/thumbs_polig_curve5.png" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-19" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.persistencia.org/wordpress/wp-content/gallery/polig_curve/polig_curve4.png" title=" " class="shutterset_set_3" >
								<img title="polig_curve4" alt="polig_curve4" src="http://www.persistencia.org/wordpress/wp-content/gallery/polig_curve/thumbs/thumbs_polig_curve4.png" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-18" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.persistencia.org/wordpress/wp-content/gallery/polig_curve/polig_curve3.png" title=" " class="shutterset_set_3" >
								<img title="polig_curve3" alt="polig_curve3" src="http://www.persistencia.org/wordpress/wp-content/gallery/polig_curve/thumbs/thumbs_polig_curve3.png" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-17" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.persistencia.org/wordpress/wp-content/gallery/polig_curve/polig_curve2.png" title=" " class="shutterset_set_3" >
								<img title="polig_curve2" alt="polig_curve2" src="http://www.persistencia.org/wordpress/wp-content/gallery/polig_curve/thumbs/thumbs_polig_curve2.png" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-16" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.persistencia.org/wordpress/wp-content/gallery/polig_curve/polig_curv.png" title=" " class="shutterset_set_3" >
								<img title="polig_curv" alt="polig_curv" src="http://www.persistencia.org/wordpress/wp-content/gallery/polig_curve/thumbs/thumbs_polig_curv.png" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 	 	
	<!-- Pagination -->
 	<div class='ngg-clear'></div>
 	
</div>


<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.persistencia.org/2012/01/curved-polygon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Slices</title>
		<link>http://www.persistencia.org/2011/12/slices/</link>
		<comments>http://www.persistencia.org/2011/12/slices/#comments</comments>
		<pubDate>Fri, 30 Dec 2011 11:47:49 +0000</pubDate>
		<dc:creator>bgimeno</dc:creator>
				<category><![CDATA[Macros]]></category>
		<category><![CDATA[macro]]></category>

		<guid isPermaLink="false">http://www.persistencia.org/?p=126</guid>
		<description><![CDATA[Possibly one of the first macros that were written for Pov-Ray when  the conditional statements were implemented, although I don’t know who was the first to devise it or write it. My CAT macro for scanning of objects is based on the idea that was used here. Before use you must declare the object to be cut in pieces: (p.e &#8230; <a href="http://www.persistencia.org/2011/12/slices/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.persistencia.org/wordpress/wp-content/uploads/2011/12/macromper.jpg"><img class="size-medium wp-image-127 alignleft" title="macromper" src="http://www.persistencia.org/wordpress/wp-content/uploads/2011/12/macromper-300x176.jpg" alt="" width="300" height="176" /></a></p>
<p>Possibly one of the first macros that were written for Pov-Ray when  the conditional statements were implemented, although I don’t know who was the first to devise it or write it. My CAT macro for scanning of objects is based on the idea that was used here.</p>
<p><span id="more-126"></span></p>
<ul>
<li>Before use you must declare the object to be cut in pieces:<br />
(p.e #declare My_Box = box{&#8230;})</li>
<li>The macro will create N-copies of the object in question, one for each slice in which it is to chop.</li>
<li>Each “piece” of the object is achieved by CSG intersection between the original object and a box that moves up to each slice, and sideways (set by the rnd_amount parameter) to simulate a bit of randomness.</li>
</ul>
<div><span style="font-size: small;"><span style="line-height: 24px;">Download (right click and  &#8221;Save target as&#8221;) : <a href="http://www.persistencia.org/downloads/slices.mcr" target="_blank">slices.mcr</a><br />
<strong>Updated 16/January/2012</strong> (Fixed the source and added the rnd_amount parameter for setting the amount of randomness)</span></span></div>
<div><span style="font-size: small;"><span style="line-height: 24px;">
<div class="ngg-galleryoverview" id="ngg-gallery-2-126">

	<!-- Slideshow link -->
	<div class="slideshowlink">
		<a class="slideshowlink" href="http://www.persistencia.org/2011/12/slices/?show=slide">
			[Show as slideshow]		</a>
	</div>

	
	<!-- Thumbnails -->
		
	<div id="ngg-image-13" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.persistencia.org/wordpress/wp-content/gallery/slices/slices_cgsphere.png" title=" " class="shutterset_set_2" >
								<img title="slices_cgsphere" alt="slices_cgsphere" src="http://www.persistencia.org/wordpress/wp-content/gallery/slices/thumbs/thumbs_slices_cgsphere.png" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-14" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.persistencia.org/wordpress/wp-content/gallery/slices/slices_cgsphere_2.png" title=" " class="shutterset_set_2" >
								<img title="slices_cgsphere_2" alt="slices_cgsphere_2" src="http://www.persistencia.org/wordpress/wp-content/gallery/slices/thumbs/thumbs_slices_cgsphere_2.png" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-15" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.persistencia.org/wordpress/wp-content/gallery/slices/slices_cgsphere3.png" title=" " class="shutterset_set_2" >
								<img title="slices_cgsphere3" alt="slices_cgsphere3" src="http://www.persistencia.org/wordpress/wp-content/gallery/slices/thumbs/thumbs_slices_cgsphere3.png" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 	 	
	<!-- Pagination -->
 	<div class='ngg-clear'></div>
 	
</div>

</span></span></div>
]]></content:encoded>
			<wfw:commentRss>http://www.persistencia.org/2011/12/slices/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Color Wheel</title>
		<link>http://www.persistencia.org/2011/12/color-wheel/</link>
		<comments>http://www.persistencia.org/2011/12/color-wheel/#comments</comments>
		<pubDate>Tue, 27 Dec 2011 09:31:25 +0000</pubDate>
		<dc:creator>bgimeno</dc:creator>
				<category><![CDATA[Macros]]></category>
		<category><![CDATA[color]]></category>
		<category><![CDATA[macro]]></category>

		<guid isPermaLink="false">http://www.persistencia.org/?p=111</guid>
		<description><![CDATA[This macro was originally published in the POV-Ray user forum  in August 2011 and is a simple modification of the macro included in &#8220;colors.inc&#8221; to switch from RGB to HSV. This macro returns the pigment located at &#8221;A&#8221; degrees of the input pigment into the color wheel. It is valid to calculate complementary colors. triads &#8230; <a href="http://www.persistencia.org/2011/12/color-wheel/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This macro was originally published in the POV-Ray user forum  in <a href="http://news.povray.org/povray.binaries.images/thread/%3Cweb.4e535de4ad35e201e27239330@news.povray.org%3E/?ttop=369721&amp;toff=50" target="_blank">August 2011</a> and is a simple modification of the macro included in &#8220;colors.inc&#8221; to switch from RGB to HSV. This macro returns the pigment located at &#8221;A&#8221; degrees of the input pigment into the color wheel. It is valid to calculate complementary colors. triads of color, etc &#8230;<br />
<span id="more-111"></span></p>
<p style="text-align: center;"><a href="http://www.persistencia.org/wordpress/wp-content/uploads/2011/12/segm_torus.jpg" target="_blank"><img class="aligncenter" title="Rueda cromática" src="http://www.persistencia.org/wordpress/wp-content/uploads/2011/12/segm_torus-300x168.jpg" alt="" width="300" height="168" /></a>Download (right button and &#8220;Save target as&#8221;): <a href="http://www.persistencia.org/downloads/CW_angle.mcr">CW_angle.mcr</a></p>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td bgcolor="#ffffff">
<pre>/*
Takes a pigment as input and returns the pigment placed
at A degrees in the cromatic wheel
pigment {CW_angle(Red,180} // returns cyan
pigment {CW_angle(Red,120} // returns green
pigment {CW_angle(Red,240} // returns blue
*/
 #macro CW_angle (COLOR,A)
   #local RGBFT = color COLOR;
   #local R = (RGBFT.red);
   #local G = (RGBFT.green);
   #local B = (RGBFT.blue);
   #local Min = min(R,min(G,B));
   #local Max = max(R,max(G,B));
   #local Span = Max-Min;
   #local H = CRGB2H (&lt;R,G,B&gt;, Max, Span);
   #local S = 0; #if (Max!=0) #local S = Span/Max; #end

   #local P = &lt;H+A,S,Max,(RGBFT.filter),(RGBFT.transmit)&gt; ;

   #local HSVFT = color P ;
#local H = (HSVFT.red);
   #local S = (HSVFT.green);
   #local V = (HSVFT.blue);
   #local SatRGB = CH2RGB(H);
   #local RGB = ( ((1-S)*&lt;1,1,1&gt; + S*SatRGB) * V );
   rgb &lt;RGB.red,RGB.green,RGB.blue,(HSVFT.filter),
       (HSVFT.transmit)&gt;
#end</pre>
</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p>Recommended links:</p>
<ul>
<li><a title="Color Theory" href="http://en.wikipedia.org/wiki/Color_theory" target="_blank">Color Theory</a></li>
<li><a title="Color Wheel" href="http://en.wikipedia.org/wiki/Color_wheel" target="_blank">Color Wheel</a></li>
<li>Review of the <a title="Repaso a la teoría del color" href="http://brizkomania.blogspot.com/2011/01/repaso-basico-la-teoria-del-color.html" target="_blank">teory of color</a>. (in spanish)</li>
</ul>
<p>pd. Thanks to user Alain for its help in news.povray.org</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.persistencia.org/2011/12/color-wheel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Trigonometry in Pov-Ray</title>
		<link>http://www.persistencia.org/2011/12/trigonometry-in-pov-ray/</link>
		<comments>http://www.persistencia.org/2011/12/trigonometry-in-pov-ray/#comments</comments>
		<pubDate>Sat, 24 Dec 2011 17:32:15 +0000</pubDate>
		<dc:creator>bgimeno</dc:creator>
				<category><![CDATA[Macros]]></category>
		<category><![CDATA[macro]]></category>
		<category><![CDATA[matemáticas]]></category>
		<category><![CDATA[math]]></category>
		<category><![CDATA[trigonometría]]></category>
		<category><![CDATA[trigonometry]]></category>

		<guid isPermaLink="false">http://www.persistencia.org/?p=78</guid>
		<description><![CDATA[One of my worst vices in math has always been having to rethink and rewrite the same formulas in different scenes for simple math calculations in POV-Ray. See here, a simple macro to calculate angles, sides and areas of regular polygons. Depending on your choice the macro returns one of the following values ​​in a polygon of N sides and &#8230; <a href="http://www.persistencia.org/2011/12/trigonometry-in-pov-ray/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>One of my worst vices in math has always been having to rethink and rewrite the same formulas in different scenes for simple math calculations in POV-Ray. See here, a simple macro to calculate angles, sides and areas of regular polygons.<br />
<span id="more-78"></span></p>
<p>Depending on your choice the macro returns one of the following values ​​in a polygon of N sides and side L:</p>
<p><a style="color: #ff4b33; line-height: 24px; font-size: 16px;" href="http://www.persistencia.org/wordpress/wp-content/uploads/2011/12/trigon.jpg"><img class="aligncenter size-medium wp-image-94" style="border-style: initial; border-color: initial;" title="trigon" src="http://www.persistencia.org/wordpress/wp-content/uploads/2011/12/trigon-300x244.jpg" alt="Example" width="300" height="244" /></a></p>
<div><span style="font-size: small;"><span style="line-height: 24px;"><span style="text-decoration: underline;"><br />
</span></span></span></p>
<ol>
<li>Returns the length between the center of the polygon and the center of one side (apothem).</li>
<li>Returns the distance between the center and one of the vertices (radio).</li>
<li>Returns length of the segment vertex-center_side (L/2).</li>
<li>Returns in degrees the central angle 360/N_sides (vertex, center, vertex).</li>
<li>Returns in degrees the half of central angle 180/N_sides (vertex, center, center_side).</li>
<li>Returns in degrees the angle center-vertex-center_side.</li>
<li>Returns in degrees the interior angle formed by two sides of the polygon.</li>
<li>Returns in degrees the exterior angle formed by two sides of the polygon.</li>
<li>Returns height of the polygon.</li>
<li>Returns the major diagonal between opposite corners of a pair sided polygon.</li>
<li>Returns perimeter</li>
<li>Returns area</li>
<li>Returns lower diagonal.</li>
</ol>
<pre>#macro Trigon(N,L,D)
#switch (D)
#case (1) #local Valor = (L/2) / tand(180/N) ; #break
#case (2) #local Valor = (L/2) / sind(180/N) ; #break
#case (3) #local Valor = (L/2) ; #break
#case (4) #local Valor = 360/N ; #break
#case (5) #local Valor = 180/N ; #break
#case (6) #local Valor = (90-(180/N)) ; #break
#case (7) #local Valor = (90-(180/N))*2 ; #break
#case (8) #local Valor = 360-Trigon(N,L,5) ; #break
#case (9)
 #if (odd(N)=true) #local Valor = Trigon(N,L,1)+Trigon(N,L,2) ;
#else #local Valor = Trigon(N,L,1)*2; #end #break
#case (10) #local Valor = Trigon(N,L,2)*2 ; #break
#case (11) #local Valor = L*N ; #break
#case (12) #local Valor = N*((L/2)*Trigon(N,L,1)); #break
#case (13) #local Valor = 2*((L/2)/sind(180/N))*sin(360/N); #break
#end
  Valor
#end</pre>
<p>&nbsp;</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.persistencia.org/2011/12/trigonometry-in-pov-ray/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Persistence Of Vision Ray-Tracer</title>
		<link>http://www.persistencia.org/2011/11/povray/</link>
		<comments>http://www.persistencia.org/2011/11/povray/#comments</comments>
		<pubDate>Mon, 28 Nov 2011 22:40:59 +0000</pubDate>
		<dc:creator>bgimeno</dc:creator>
				<category><![CDATA[Sin categoría]]></category>
		<category><![CDATA[pov]]></category>
		<category><![CDATA[pov-ray]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://www.persistencia.org/?p=65</guid>
		<description><![CDATA[The Persistence of Vision Ray-Tracer creates three-dimensional, photo-realistic images using a rendering technique called ray-tracing. It reads in a text file containing information describing the objects and lighting in a scene and generates an image of that scene from the &#8230; <a href="http://www.persistencia.org/2011/11/povray/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The Persistence of Vision Ray-Tracer creates three-dimensional, photo-realistic images using a rendering technique called ray-tracing. It reads in a text file containing information describing the objects and lighting in a scene and generates an image of that scene from the view point of a camera also described in the text file. Ray-tracing is not a fast process by any means, but it produces very high quality images with realistic reflections, shading, focal blur, perspective and other effects.</p>
<p>This program was first published in 1991 and has its origins in a program called DKBTrace 2.12 created by David K. Buck and Aaron Collins for the AMIGA environment. The full story can be found on the official website of the program (<a href="http://www.povray.org/documentation/view/3.6.1/7/">here</a>), but can be summarized in a group of fans to the synthetic image (grouped under the POV Team) sought permission from David K. Buck to continue the updating for a program which David had no time to improve. The list of people who have collaborated altruistically over the years by modifying the code, writing scenes, tutorials or include files is almost endless.</p>
<p>Recommended:</p>
<ul>
<li>The <a href="http://www.povray.org/">Pov-Ray</a></li>
<li>The Pov-Ray<a href="http://hof.povray.org/"> Hall of Fame</a></li>
<li><a href="http://www.oyonale.com">Oyonale</a> (Gilles Tran)</li>
<li><a href="http://www.ignorancia.org">La persistencia de la Ignorancia</a> (Jaime Vives Piqueres)</li>
<li><a href="http://www.f-lohmueller.de/index.htm">Andrea Lohmüller + Friedrich A. Lohmüller </a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.persistencia.org/2011/11/povray/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

