Difference between revisions of "Reference:Ovus"

From POV-Wiki
Jump to navigation Jump to search
m (remove the term citrus for lemon (the correct one).)
m (extended updates)
Line 3: Line 3:
 
{{#indexentry:ovus, keyword}}
 
{{#indexentry:ovus, keyword}}
 
{{#indexentry:keyword, ovus}}
 
{{#indexentry:keyword, ovus}}
<p>An <code>ovus</code> is a shape that looks like an egg. The syntax of the <code>ovus</code> object is:</p>
+
<p>An <code>ovus</code> is a shape that looks like an egg. A {{Change}} in version 3.8 has extended the syntax of the <code>ovus</code> object by adding <code>radius</code>, <code>distance</code> and <code>precision</code> controls.</p>
 +
<p>The syntax is as follows:</p>
 
<pre>
 
<pre>
OVUS:
+
ovus {
  ovus {
+
  Bottom_radius, Top_radius [radius Inner_radius] [distance Vertical_distance] [precision Root_tolerance]
    Bottom_radius, Top_radius
+
  [OBJECT_MODIFIERS...]  
    [OBJECT_MODIFIERS...]  
+
  }
    }
 
 
</pre>
 
</pre>
 +
 +
<p>Where <em>Bottom_radius</em> is a float value giving the radius of the bottom sphere and <em>Top_radius</em> is a float specifying the radius of the top sphere. The top and bottom spheres are connected together with a suitably truncated lemon, or self intersection of a torus, that is automatically computed so as to provide the needed continuity to the shape. The <code>distance</code> is a float value that represents the length between the center of the two spheres, defaulting to <em>Bottom_radius</em>. The <code>radius</code> float value represents the inner circle of the connecting torus and it's default is twice the <em>Bottom_radius</em>. The <code>precision</code> float value is the tolerance used for the root solving of the connecting torus. Additionally <code>sturm</code> is now allowed as an object modifier.</p>
  
 
<table class="centered" width="700px" cellpadding="0" cellspacing="10">
 
<table class="centered" width="700px" cellpadding="0" cellspacing="10">
 
<tr>
 
<tr>
  <td width="290px">
 
    <p>Where <em><code>Bottom_radius</code></em> is a float value giving the radius of the bottom sphere and <em><code>Top_radius</code></em> is a float specifying the radius of the top sphere. The top sphere and the bottom sphere are connected together with a suitably truncated lemon (self intersection of a torus), that is automatically computed so as to provide the needed continuity to the shape.</p>
 
  </td>
 
 
   <td>[[Image:RefImgOvus2D.png|center|125px<!--left--->]]</td>
 
   <td>[[Image:RefImgOvus2D.png|center|125px<!--left--->]]</td>
 
   <td>
 
   <td>
Line 28: Line 27:
 
</tr>
 
</tr>
 
<tr>
 
<tr>
   <td></td>
+
   <td><p class="caption">An ovus 2D section</p></td>
    <td><p class="caption">An ovus 2D section</p></td>
 
 
   <td></td>
 
   <td></td>
 
</tr>
 
</tr>

Revision as of 13:20, 15 July 2017

An ovus is a shape that looks like an egg. A Change in version 3.8 has extended the syntax of the ovus object by adding radius, distance and precision controls.

The syntax is as follows:

ovus {
  Bottom_radius, Top_radius [radius Inner_radius] [distance Vertical_distance] [precision Root_tolerance]
  [OBJECT_MODIFIERS...] 
  }

Where Bottom_radius is a float value giving the radius of the bottom sphere and Top_radius is a float specifying the radius of the top sphere. The top and bottom spheres are connected together with a suitably truncated lemon, or self intersection of a torus, that is automatically computed so as to provide the needed continuity to the shape. The distance is a float value that represents the length between the center of the two spheres, defaulting to Bottom_radius. The radius float value represents the inner circle of the connecting torus and it's default is twice the Bottom_radius. The precision float value is the tolerance used for the root solving of the connecting torus. Additionally sturm is now allowed as an object modifier.

RefImgOvus2D.png
  • The center of the top sphere lies on the top of the bottom sphere.
  • The bottom sphere of the ovus is centered at the origin.
  • The top sphere of the ovus lies on the y-axis.
  • The minor radius of the lemon is twice the largest radius.

An ovus 2D section

RefImgOvus3D.png

The ovus and it's constituent 3D shapes

Whenever the top radius is bigger than twice the bottom radius, the ovus degenerates into a sphere with an offset center. There are a lot of variations in the shape of the ovus.

Note: According to the ratio of the radius, the pointy part is the smallest radius, but is not always on top!

RefImgDemoOvus.jpg

Evolution of ratio from 0 to 1.95 in 0.15 steps.

Note: See the following MathWorld references for more information about the math behind how the ovus object is constructed.