<?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=User%3AWfpokorny%2FDensityFile%2FFunctionToDF3</id>
	<title>User:Wfpokorny/DensityFile/FunctionToDF3 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.povray.org/content?action=history&amp;feed=atom&amp;title=User%3AWfpokorny%2FDensityFile%2FFunctionToDF3"/>
	<link rel="alternate" type="text/html" href="https://wiki.povray.org/content?title=User:Wfpokorny/DensityFile/FunctionToDF3&amp;action=history"/>
	<updated>2026-04-03T21:39:47Z</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=User:Wfpokorny/DensityFile/FunctionToDF3&amp;diff=9369&amp;oldid=prev</id>
		<title>Wfpokorny: Changed 3.7.1 reference to 3.8.</title>
		<link rel="alternate" type="text/html" href="https://wiki.povray.org/content?title=User:Wfpokorny/DensityFile/FunctionToDF3&amp;diff=9369&amp;oldid=prev"/>
		<updated>2018-01-04T18:45:44Z</updated>

		<summary type="html">&lt;p&gt;Changed 3.7.1 reference to 3.8.&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:45, 4 January 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l4&quot; &gt;Line 4:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 4:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#version 3.&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;71&lt;/del&gt;;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#version 3.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;8&lt;/ins&gt;;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;global_settings {&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;global_settings {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     assumed_gamma 1&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     assumed_gamma 1&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Wfpokorny</name></author>
	</entry>
	<entry>
		<id>https://wiki.povray.org/content?title=User:Wfpokorny/DensityFile/FunctionToDF3&amp;diff=8681&amp;oldid=prev</id>
		<title>Wfpokorny: Fixed typo.</title>
		<link rel="alternate" type="text/html" href="https://wiki.povray.org/content?title=User:Wfpokorny/DensityFile/FunctionToDF3&amp;diff=8681&amp;oldid=prev"/>
		<updated>2016-08-31T11:48:08Z</updated>

		<summary type="html">&lt;p&gt;Fixed typo.&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 11:48, 31 August 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Image:Df3_FunctionToDF3.png|center|frame|Density_file as isosurface where df3 created by macro from a defined function or object.]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Image:Df3_FunctionToDF3.png|center|frame|Density_file as isosurface where df3 created by macro from a defined function or object.]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;p&amp;gt;Converting functions or objects via functions and the object pattern into df3s. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Complete &lt;/del&gt;scene file follows&amp;lt;/p&amp;gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;: &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;p&amp;gt;Converting functions or objects via functions and the object pattern into df3s. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;The complete &lt;/ins&gt;scene file follows&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;:&lt;/ins&gt;&amp;lt;/p&amp;gt;  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Wfpokorny</name></author>
	</entry>
	<entry>
		<id>https://wiki.povray.org/content?title=User:Wfpokorny/DensityFile/FunctionToDF3&amp;diff=8665&amp;oldid=prev</id>
		<title>Wfpokorny: Initial example for functions/objects to df3s.</title>
		<link rel="alternate" type="text/html" href="https://wiki.povray.org/content?title=User:Wfpokorny/DensityFile/FunctionToDF3&amp;diff=8665&amp;oldid=prev"/>
		<updated>2016-08-18T16:56:48Z</updated>

		<summary type="html">&lt;p&gt;Initial example for functions/objects to df3s.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Image:Df3_FunctionToDF3.png|center|frame|Density_file as isosurface where df3 created by macro from a defined function or object.]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Converting functions or objects via functions and the object pattern into df3s. Complete scene file follows&amp;lt;/p&amp;gt;: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#version 3.71;&lt;br /&gt;
global_settings {&lt;br /&gt;
    assumed_gamma 1&lt;br /&gt;
    ambient_light srgb &amp;lt;1,1,1&amp;gt;&lt;br /&gt;
    noise_generator 3&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
#include &amp;quot;arrays.inc&amp;quot;           // For ARRAYS_WriteDF3()&lt;br /&gt;
#include &amp;quot;arraycoupleddf3s.inc&amp;quot; // Array coupled df3 macros &amp;amp; functions.&lt;br /&gt;
&lt;br /&gt;
#include &amp;quot;functions.inc&amp;quot;&lt;br /&gt;
&lt;br /&gt;
   //--- Can turn objects into df3 via ConvertFunctionToDF3 as follows&lt;br /&gt;
// #declare Sphere00 = sphere { 0.5,0.2 }&lt;br /&gt;
// #declare Fnct00 = function { pattern { object { Sphere00 } } }&lt;br /&gt;
// ConvertFunctionToDF3(50,50,50,0.0,0.5,0.9,1.1,Fnct00,&amp;quot;FunctionToDF3.df3&amp;quot;,8,0)&lt;br /&gt;
&lt;br /&gt;
#declare Fnct00 = function (x,y,z) { f_sphere(x-0.5,y-0.5,z-0.5,0.2) }&lt;br /&gt;
&lt;br /&gt;
ConvertFunctionToDF3(50,50,50,0.0,0.5,-9e10,0.0,Fnct00,&amp;quot;FunctionToDF3.df3&amp;quot;,8,0)&lt;br /&gt;
&lt;br /&gt;
// #error &amp;quot;Stop before render if just creating df3 for future work&amp;quot;&lt;br /&gt;
&lt;br /&gt;
#declare Color_2 = srgbft &amp;lt;0.65,0.65,0.65,0,0&amp;gt;;&lt;br /&gt;
#declare Color_3 = srgbft &amp;lt;0.8,0.8,0.8,0,0&amp;gt;;&lt;br /&gt;
#declare ColorMap_CloudyGraySky2 = color_map {&lt;br /&gt;
    [ 0 Color_2 ]&lt;br /&gt;
    [ 1 Color_3 ]&lt;br /&gt;
}&lt;br /&gt;
#declare Pigment_CloudyGraySky2 = pigment {&lt;br /&gt;
    bozo sine_wave frequency 3.33 turbulence 1.0&lt;br /&gt;
    color_map { ColorMap_CloudyGraySky2 }&lt;br /&gt;
}&lt;br /&gt;
#declare Sky_Sphere00 = sky_sphere {&lt;br /&gt;
    pigment { Pigment_CloudyGraySky2 }&lt;br /&gt;
    emission rgb &amp;lt;1,1,1&amp;gt;&lt;br /&gt;
}&lt;br /&gt;
#declare Camera00 = camera {&lt;br /&gt;
    perspective&lt;br /&gt;
    location &amp;lt;2.7,2.7,-2.701&amp;gt;&lt;br /&gt;
    sky &amp;lt;0,1,0&amp;gt;&lt;br /&gt;
    angle 35&lt;br /&gt;
    right x*(image_width/image_height)&lt;br /&gt;
    look_at &amp;lt;0,0,0&amp;gt;&lt;br /&gt;
}&lt;br /&gt;
#declare White = srgbft &amp;lt;1,1,1,0,0&amp;gt;;&lt;br /&gt;
#declare Light00 = light_source {&lt;br /&gt;
    &amp;lt;50,150,-250&amp;gt;, White&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
#declare Fnct01 = function {&lt;br /&gt;
    pattern { density_file df3 &amp;quot;FunctionToDF3.df3&amp;quot; interpolate 3 }&lt;br /&gt;
}&lt;br /&gt;
#declare Fnct02 = function (x,y,z) {&lt;br /&gt;
    0.025-Fnct01(x,y,z)&lt;br /&gt;
}&lt;br /&gt;
#declare Neptune = srgb &amp;lt;0.4863,0.7176,0.7333&amp;gt;;&lt;br /&gt;
#declare Iso00 = isosurface {&lt;br /&gt;
    function { Fnct02(x,y,z) }&lt;br /&gt;
    contained_by { box { 0.2+1e-6,0.8-1e-6 } }&lt;br /&gt;
    threshold 0&lt;br /&gt;
    accuracy 0.0005&lt;br /&gt;
    max_gradient 6&lt;br /&gt;
    all_intersections&lt;br /&gt;
    pigment { color Neptune }&lt;br /&gt;
    finish { phong 0.9 }&lt;br /&gt;
}&lt;br /&gt;
#declare Object00 = object {&lt;br /&gt;
    Iso00&lt;br /&gt;
    translate -0.5&lt;br /&gt;
    scale 2.2&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
//---&lt;br /&gt;
sky_sphere { Sky_Sphere00 }&lt;br /&gt;
camera { Camera00 }&lt;br /&gt;
object { Object00 }&lt;br /&gt;
light_source { Light00 }&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wfpokorny</name></author>
	</entry>
</feed>