Difference between revisions of "Reference:Sturm Object Modifier"
Jholsenback (talk | contribs) m (3.7.1 update) |
Jholsenback (talk | contribs) m (added ovus) |
||
Line 32: | Line 32: | ||
<li>lathe (only with quadratic splines)</li> | <li>lathe (only with quadratic splines)</li> | ||
<li>lemon</li> | <li>lemon</li> | ||
+ | <li>ovus</li> | ||
<li>poly</li> | <li>poly</li> | ||
<li>prism (only with cubic splines)</li> | <li>prism (only with cubic splines)</li> |
Latest revision as of 15:28, 15 July 2017
Some of POV-Ray's objects allow you to choose between a fast but sometimes inaccurate root solver and a slower but more accurate one. This is the case for all objects that involve the solution of a cubic or quartic polynomial. There are analytic mathematical solutions for those polynomials that can be used.
Lower order polynomials are trivial to solve while higher order polynomials require iterative algorithms to solve them. One of those algorithms is the Sturmian root solver. For example:
blob { threshold .65 sphere { <.5,0,0>, .8, 1 } sphere { <-.5,0,0>,.8, 1 } sturm }
The keyword may optionally be followed by a float expression which is
interpreted as a boolean value. For example sturm off
may be
used to force it off. When the keyword is specified alone, it is the same as
sturm on
. By default sturm
is off
when not specified.
The following list shows all objects for which the Sturmian root solver can be used.
- blob
- cubic
- lathe (only with quadratic splines)
- lemon
- ovus
- poly
- prism (only with cubic splines)
- quartic
- sor
- torus