<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.povray.org/content?action=history&amp;feed=atom&amp;title=Reference%3AStrings.inc</id>
	<title>Reference:Strings.inc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.povray.org/content?action=history&amp;feed=atom&amp;title=Reference%3AStrings.inc"/>
	<link rel="alternate" type="text/html" href="https://wiki.povray.org/content?title=Reference:Strings.inc&amp;action=history"/>
	<updated>2026-04-27T16:11:45Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.povray.org/content?title=Reference:Strings.inc&amp;diff=7068&amp;oldid=prev</id>
		<title>Jholsenback: 1 revision: Reference Migration Initial Load</title>
		<link rel="alternate" type="text/html" href="https://wiki.povray.org/content?title=Reference:Strings.inc&amp;diff=7068&amp;oldid=prev"/>
		<updated>2012-03-15T19:08:57Z</updated>

		<summary type="html">&lt;p&gt;1 revision: Reference Migration Initial Load&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:08, 15 March 2012&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Jholsenback</name></author>
	</entry>
	<entry>
		<id>https://wiki.povray.org/content?title=Reference:Strings.inc&amp;diff=7067&amp;oldid=prev</id>
		<title>Jholsenback: link repair</title>
		<link rel="alternate" type="text/html" href="https://wiki.povray.org/content?title=Reference:Strings.inc&amp;diff=7067&amp;oldid=prev"/>
		<updated>2012-03-15T14:38:04Z</updated>

		<summary type="html">&lt;p&gt;link repair&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:Include Files]]&lt;br /&gt;
&amp;lt;p&amp;gt;This include contains macros for manipulating and generating text strings.&amp;lt;/p&amp;gt;&lt;br /&gt;
{{#indexentry:CRGBStr}}&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;code&amp;gt;CRGBStr(C, MinLen, Padding)&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;CRGBFTStr(C, MinLen, Padding)&amp;lt;/code&amp;gt;: These macros convert a color to a string. The format of the output string is &amp;amp;quot;rgb &amp;amp;lt; R, G, B&amp;amp;gt;&amp;amp;quot; or &amp;amp;quot;rgbft &amp;amp;lt; R, G, B, F, T&amp;amp;gt;&amp;amp;quot;, depending on the macro being called.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Parameters:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;C&amp;lt;/code&amp;gt; = The color to be turned into a string.&amp;lt;/li&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;MinLen&amp;lt;/code&amp;gt; = The minimum length of the individual components, analogous to the second parameter of str().&amp;lt;/li&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;Padding&amp;lt;/code&amp;gt; = The padding to use for the components, see the third parameter of the str() function for details.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{#indexentry:Str, strings.inc}}&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;code&amp;gt;Str(A)&amp;lt;/code&amp;gt;: This macro creates a string containing a float with the systems default precision. It is a shortcut for using the str() function.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Parameters:&amp;lt;/p&amp;gt;&amp;lt;ul&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;A&amp;lt;/code&amp;gt; = The float to be converted to a string.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
{{#indexentry:Vstr, strings.inc}}&lt;br /&gt;
&lt;br /&gt;
{{#indexentry:VStr2D, short form}}&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;code&amp;gt;VStr2D(V), VStr(V)&amp;lt;/code&amp;gt;: These macros create strings containing vectors using POV syntax (&amp;amp;lt;X,Y,Z&amp;amp;gt;) with the default system precision. VStr2D() works with 2D vectors, VStr() with 3D vectors. They are shortcuts for using the &amp;lt;code&amp;gt;vstr()&amp;lt;/code&amp;gt; function.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Parameters:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;V&amp;lt;/code&amp;gt; = The vector to be converted to a string.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{#indexentry:Vstr2D, long form}}&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;code&amp;gt;Vstr2D(V,L,P), Vstr(V,L,P)&amp;lt;/code&amp;gt;: These macros create strings containing vectors using POV syntax (&amp;amp;lt;X,Y,Z&amp;amp;gt;) with user specified precision. Vstr2D() works with 2D vectors, Vstr() with 3D vectors. They are shortcuts for using the vstr() function. The function of L and P is the same as in &amp;lt;code&amp;gt;vstr&amp;lt;/code&amp;gt; specified in &amp;lt;!--&amp;lt;linkto &amp;quot;String Functions&amp;quot;&amp;gt;String Functions&amp;lt;/linkto&amp;gt;---&amp;gt;[[Reference:Strings#String Functions|String Functions]].&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Parameters:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;V&amp;lt;/code&amp;gt; = The vector to be converted to a string.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;L&amp;lt;/code&amp;gt; = Minimum length of the string and the type of left padding used if the string's representation is shorter than the minimum.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;P&amp;lt;/code&amp;gt; = Number of digits after the decimal point.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{#indexentry:Triangle_Str}}&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;code&amp;gt;Triangle_Str(A, B, C)&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;Smooth_Triangle_Str(A, NA, B, NB, C, NC)&amp;lt;/code&amp;gt;: These macros take vertex and normal information and return a string representing a triangle in POV-Ray syntax. They are mainly useful for generating mesh files.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Parameters:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;A, B, C&amp;lt;/code&amp;gt; = Triangle vertex points.&amp;lt;/li&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;NA, NB, NC&amp;lt;/code&amp;gt; = Triangle vertex normals (Smooth_Triangle_Str() only).&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{#indexentry:Parse_String}}&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;code&amp;gt;Parse_String(String)&amp;lt;/code&amp;gt;: This macro takes a string, writes it to a file, and then includes that file. This has the effect of parsing that string: &amp;amp;quot;&amp;lt;code&amp;gt;Parse_String(&amp;amp;quot;MyColor&amp;amp;quot;)&amp;lt;/code&amp;gt;&amp;amp;quot; will be seen by POV-Ray as &amp;amp;quot;&amp;lt;code&amp;gt;MyColor&amp;lt;/code&amp;gt;&amp;amp;quot;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Parameters:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;String&amp;lt;/code&amp;gt; = The string to be parsed.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jholsenback</name></author>
	</entry>
</feed>