<?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%3ASphere_Sweep</id>
	<title>Reference:Sphere Sweep - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.povray.org/content?action=history&amp;feed=atom&amp;title=Reference%3ASphere_Sweep"/>
	<link rel="alternate" type="text/html" href="https://wiki.povray.org/content?title=Reference:Sphere_Sweep&amp;action=history"/>
	<updated>2026-04-06T14:44:15Z</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:Sphere_Sweep&amp;diff=7040&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:Sphere_Sweep&amp;diff=7040&amp;oldid=prev"/>
		<updated>2012-03-15T19:08:50Z</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:Sphere_Sweep&amp;diff=7039&amp;oldid=prev</id>
		<title>Jholsenback: 1 revision: Initial Load (TF)</title>
		<link rel="alternate" type="text/html" href="https://wiki.povray.org/content?title=Reference:Sphere_Sweep&amp;diff=7039&amp;oldid=prev"/>
		<updated>2012-03-11T22:27:01Z</updated>

		<summary type="html">&lt;p&gt;1 revision: Initial Load (TF)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:Objects]]&lt;br /&gt;
[[Category:Finite Solid Primitives]]&lt;br /&gt;
{{#indexentry:b_spline}} &lt;br /&gt;
{{#indexentry:tolerance}} &lt;br /&gt;
{{#indexentry:sphere_sweep, keyword}}&lt;br /&gt;
{{#indexentry:keyword, sphere_sweep}} &lt;br /&gt;
{{#indexentry:linear_spline, sphere_sweep}}&lt;br /&gt;
{{#indexentry:keyword, linear_spline}} &lt;br /&gt;
{{#indexentry:b_spline, sphere_sweep}}&lt;br /&gt;
{{#indexentry:keyword, b_spline}} &lt;br /&gt;
{{#indexentry:cubic_spline, sphere_sweep}}&lt;br /&gt;
{{#indexentry:keyword, cubic_spline}} &lt;br /&gt;
{{#indexentry:tolerance, sphere_sweep}}&lt;br /&gt;
{{#indexentry:keyword, tolerance}}&lt;br /&gt;
&amp;lt;p&amp;gt;The syntax of the &amp;lt;code&amp;gt;sphere_sweep&amp;lt;/code&amp;gt; object is:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SPHERE_SWEEP:&lt;br /&gt;
  sphere_sweep {&lt;br /&gt;
    linear_spline | b_spline | cubic_spline&lt;br /&gt;
    NUM_OF_SPHERES,&lt;br /&gt;
&lt;br /&gt;
    CENTER, RADIUS,&lt;br /&gt;
    CENTER, RADIUS,&lt;br /&gt;
    ...&lt;br /&gt;
    CENTER, RADIUS&lt;br /&gt;
    [tolerance DEPTH_TOLERANCE]&lt;br /&gt;
    [OBJECT_MODIFIERS]&lt;br /&gt;
    }&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{#indexentry:default values, sphere_sweep}}&lt;br /&gt;
&amp;lt;p&amp;gt;Sphere_sweep default values:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
tolerance : 1.0e-6 (0.000001) &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;A Sphere Sweep is the envelope of a moving sphere with varying radius, or, in other words, the&lt;br /&gt;
space a sphere occupies during its movement along a spline.&lt;br /&gt;
&amp;lt;br&amp;gt;Sphere Sweeps are modeled by specifying a list of single spheres which are then interpolated.&lt;br /&gt;
&amp;lt;br&amp;gt;Three kinds of interpolation are supported:&amp;lt;/p&amp;gt;&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;linear_spline&amp;lt;/code&amp;gt; : Interpolating the input data with a linear function, which means&lt;br /&gt;
that the single spheres are connected by straight tubes.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;b_spline&amp;lt;/code&amp;gt; : Approximating the input data using a cubic b-spline function, which&lt;br /&gt;
results in a curved object.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;cubic_spline&amp;lt;/code&amp;gt; : Approximating the input data using a cubic spline,&lt;br /&gt;
which results in a curved object.&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;The sphere list (center and radius of each sphere) can take as many spheres as you like to describe&lt;br /&gt;
the object, but you will need at least two spheres for a &amp;lt;code&amp;gt;linear_spline&amp;lt;/code&amp;gt;, and four spheres&lt;br /&gt;
for &amp;lt;code&amp;gt;b_spline&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;cubic_spline&amp;lt;/code&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Optional: The depth tolerance that should be used for the intersection calculations. This is done by&lt;br /&gt;
adding the &amp;lt;code&amp;gt;tolerance&amp;lt;/code&amp;gt; keyword and the desired value: the default distance is&lt;br /&gt;
1.0e-6 (0.000001) and should do for most sphere sweep objects.&lt;br /&gt;
&amp;lt;br&amp;gt;You should change this when you see dark spots on the surface of the object. These are probably&lt;br /&gt;
caused by an effect called &amp;lt;em&amp;gt;self-shading&amp;lt;/em&amp;gt;. This means that the object casts shadows onto itself at some&lt;br /&gt;
points because of calculation errors. A ray tracing program usually defines the minimal distance a ray&lt;br /&gt;
must travel before it actually hits another (or the same) object to avoid this effect. If this distance is&lt;br /&gt;
chosen too small, self-shading may occur.&lt;br /&gt;
&amp;lt;br&amp;gt;If so, specify &amp;lt;code&amp;gt;tolerance 1.0e-4&amp;lt;/code&amp;gt; or higher.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=&amp;quot;Note&amp;quot;&amp;gt;&amp;lt;strong&amp;gt;Note:&amp;lt;/strong&amp;gt; If these dark spots remain after raising the tolerance, you might get rid of these spots by&lt;br /&gt;
using adaptive super-sampling (method 2) for anti-aliasing. Images look better with anti-aliasing anyway.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p class=&amp;quot;Note&amp;quot;&amp;gt;&amp;lt;strong&amp;gt;Note:&amp;lt;/strong&amp;gt; The merge CSG operation is not recommended with Sphere Sweeps: there could be a small gap&lt;br /&gt;
between the merged objects!&amp;lt;/p&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jholsenback</name></author>
	</entry>
</feed>