Sophie

Sophie

distrib > Mandriva > 2010.2 > i586 > by-pkgid > 8c84ab5fe0ecd5f81b4e4e07120af05b > files > 397

povray-3.6.1-8mdv2010.1.i586.rpm


<!--  This file copyright Persistence of Vision Raytracer Pty. Ltd. 2003-2004  -->
<html> 
<head>
  
<!--  NOTE: In order to users to help find information about POV-Ray using  -->
 
<!--  web search engines, we ask you to *not* let them index documentation  -->
 
<!--  mirrors because effectively, when searching, users will get hundreds  -->
 
<!--  of results containing the same information! For this reason, the two  -->
 
<!--  meta tags below disable archiving and indexing of this page by all  -->
 
<!--  search engines that support these meta tags.  -->
 
 <meta content="noarchive" name="robots">
   
 <meta content="noindex" name="robots">
   
 <meta content="no-cache" http-equiv="Pragma">
   
 <meta content="0" http-equiv="expires">
   
<title>3.5.10 Cutaway Textures</title>
 <link href="povray35.css" rel="stylesheet" type="text/css"> 
</head>
 <body> 
<table class="NavBar" width="100%">
  
 <tr>
   
  <td align="left" nowrap="" valign="middle" width="32">
    <a href="s_123.html"><img alt="previous" border="0" src="prev.png"></a> 
   
  </td>
   
  <td align="left" valign="middle" width="30%">
    <a href="s_123.html">3.5.9 Interior Texture</a> 
  </td>
   
  <td align="center" valign="middle">
    <strong class="NavBar">POV-Ray 3.6 for UNIX documentation</strong><br> <strong>3.5.10 
   Cutaway Textures</strong> 
  </td>
   
  <td align="right" valign="middle" width="30%">
    <a href="s_125.html">3.5.11 Patterns</a> 
  </td>
   
  <td align="right" nowrap="" valign="middle" width="32">
    <a href="s_125.html"><img alt="next" border="0" src="next.png"></a> 
   
  </td>
   
 </tr>
  
</table>
 
<h3><a name="s03_05_10">3.5.10 </a>Cutaway Textures</h3>
<a name="s03_05_10_i1"><a name="cutaway_textures"></a>
<p>
  Syntax: 
</p>

<pre>
  difference | intersection {
    OBJECT_1_<strong>WITH</strong>_TEXTURES
    OBJECT_2_<strong>WITH_NO</strong>_TEXTURE
    cutaway_textures
  }
</pre>

<p>
  When using a CSG difference or intersection to <em>cut</em> away parts of an object, it is sometimes desirable to 
 allow the object to retain its original texture. Generally, however, the texture of the surface that was used to do 
 the cutting will be displayed. <br>Also, if the cutting object was not given a texture by the user, the default 
 texture is assigned to it. 
</p>

<p>
  By using the <code>cutaway_textures</code> keyword in a CSG difference or intersection, you specify that you do not 
 want the default texture on the intersected surface, but instead, the textures of the parent objects in the CSG should 
 be used. <br>POV-Ray will determine which texture(s) to use by doing insidedness tests on the objects in the 
 difference or intersection. If the intersection point is inside an object, that object's texture will be used (and 
 evaluated at the interior point). <br>If the parent object is a CSG of objects with different textures, then the 
 textures on overlapping parts will be averaged together. 
</p>
 <br> 
<table class="NavBar" width="100%">
  
 <tr>
   
  <td align="left" nowrap="" valign="middle" width="32">
    <a href="s_123.html"><img alt="previous" border="0" src="prev.png"></a> 
   
  </td>
   
  <td align="left" valign="middle" width="30%">
    <a href="s_123.html">3.5.9 Interior Texture</a> 
  </td>
   
  <td align="center" valign="middle">
    <strong>3.5.10 Cutaway Textures</strong> 
  </td>
   
  <td align="right" valign="middle" width="30%">
    <a href="s_125.html">3.5.11 Patterns</a> 
  </td>
   
  <td align="right" nowrap="" valign="middle" width="32">
    <a href="s_125.html"><img alt="next" border="0" src="next.png"></a> 
   
  </td>
   
 </tr>
  
</table>
 </body> </html>