Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > bad97183153701b09df5fae1052b1c30 > files > 3253

crystalspace-doc-1.2.1-5mdv2010.0.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Crystal Space 1.2.1: iMeshGenerator Struct Reference (Crystal Space 1.2.1 Public API Reference)</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="head">
 <tr height="59">
  <td class="head" width="202" valign="bottom" style="padding-left:0;"><a href="http://www.crystalspace3d.org/"><img src="csblur.png" width="236" height="59" alt="CrystalSpace" border="0"></a></td>
  <td class="head"><h2>Public API Reference</h2></td>
 </tr>
 <tr height="11">
  <td colspan="2" class="headshadow" valign="top" style="padding-left:0;"><img src="csblurb.png" width="236" height="11" alt="" border="0"></td>
 </tr>
</table>
<div class="content">
<!-- Generated by Doxygen 1.5.3 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="modules.html"><span>Modules</span></a></li>
    <li><a href="namespaces.html"><span>Namespaces</span></a></li>
    <li class="current"><a href="classes.html"><span>Classes</span></a></li>
    <li><a href="files.html"><span>Files</span></a></li>
    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
  </ul>
</div>
<div class="tabs">
  <ul>
    <li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
    <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
    <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
    <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
  </ul>
</div>
<h1>iMeshGenerator Struct Reference<br>
<small>
[<a class="el" href="group__engine3d.html">Crystal Space 3D Engine</a>]</small>
</h1><!-- doxytag: class="iMeshGenerator" --><!-- doxytag: inherits="iBase" --><a class="el" href="structiMeshGenerator.html" title="iMeshGenerator defines the interface for a mesh generator.">iMeshGenerator</a> defines the interface for a mesh generator.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="meshgen_8h-source.html">iengine/meshgen.h</a>&gt;</code>
<p>
<div class="dynheader">
Inheritance diagram for iMeshGenerator:</div>
<div class="dynsection">
<p><center><img src="structiMeshGenerator__inherit__graph.png" border="0" usemap="#iMeshGenerator__inherit__map" alt="Inheritance graph"></center>
<map name="iMeshGenerator__inherit__map">
<area shape="rect" href="structiBase.html" title="This is the basic interface: all other interfaces should be derived from this one..." alt="" coords="40,7,96,33"></map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>

<p>
<a href="structiMeshGenerator-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structiMeshGenerator.html#3ef73b5717adf95e5442a8a13d1c54b7">AddMesh</a> (<a class="el" href="structiMeshWrapper.html">iMeshWrapper</a> *mesh)=0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Add a mesh on which we will map our geometry.  <a href="#3ef73b5717adf95e5442a8a13d1c54b7"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <br>
<a class="el" href="structiMeshGeneratorGeometry.html">iMeshGeneratorGeometry</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structiMeshGenerator.html#2f7491f446b357854b6d457cfcc6fc6a">CreateGeometry</a> ()=0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create a geometry specification for this mesh generator.  <a href="#2f7491f446b357854b6d457cfcc6fc6a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structiMeshGenerator.html#4897114571b34629fd848ab1f0259891">GetBlockCount</a> () const =0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the block count.  <a href="#4897114571b34629fd848ab1f0259891"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structiMeshGenerator.html#9216f63da3f2dff4d79948581a9f8c3a">GetCellCount</a> () const =0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the cell count.  <a href="#9216f63da3f2dff4d79948581a9f8c3a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <br>
<a class="el" href="structiMeshGeneratorGeometry.html">iMeshGeneratorGeometry</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structiMeshGenerator.html#1563770807c8c7d4444cc3aebca98b55">GetGeometry</a> (size_t idx)=0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get a specific geometry.  <a href="#1563770807c8c7d4444cc3aebca98b55"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual size_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structiMeshGenerator.html#8e91ae9adca998ee289d35d82fc55f05">GetGeometryCount</a> () const =0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the number of geometry specifications.  <a href="#8e91ae9adca998ee289d35d82fc55f05"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="structiMeshWrapper.html">iMeshWrapper</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structiMeshGenerator.html#7980404b8de6d944f426a0109e6e0611">GetMesh</a> (size_t idx)=0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get a specific mesh.  <a href="#7980404b8de6d944f426a0109e6e0611"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual size_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structiMeshGenerator.html#1f5593a8f6c9a8df1accf835f16d0ed4">GetMeshCount</a> () const =0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the number of meshes.  <a href="#1f5593a8f6c9a8df1accf835f16d0ed4"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const <a class="el" href="classcsBox3.html">csBox3</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structiMeshGenerator.html#085b14b5c93094840c5e537bbcf4cef0">GetSampleBox</a> () const =0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the sample box.  <a href="#085b14b5c93094840c5e537bbcf4cef0"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="structiObject.html">iObject</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structiMeshGenerator.html#ae079dec35bbbfb766b692bd5551182b">QueryObject</a> ()=0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the <a class="el" href="structiObject.html" title="This interface is an SCF interface for encapsulating csObject.">iObject</a> for this mesh generator.  <a href="#ae079dec35bbbfb766b692bd5551182b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structiMeshGenerator.html#382e996fa036c7c383d5ef57c99f05f9">RemoveGeometry</a> (size_t idx)=0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Remove a geometry.  <a href="#382e996fa036c7c383d5ef57c99f05f9"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structiMeshGenerator.html#190b1010fbf1341bf96d1e8e91160008">RemoveMesh</a> (size_t idx)=0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Remove a mesh.  <a href="#190b1010fbf1341bf96d1e8e91160008"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structiMeshGenerator.html#607913e1be19c022f24d1bd2a0e07169">SetAlphaScale</a> (float mindist, float maxdist)=0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the alpha scale.  <a href="#607913e1be19c022f24d1bd2a0e07169"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structiMeshGenerator.html#94912dad05371213a4e46330df1dc7a5">SetBlockCount</a> (int number)=0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the maximum number of blocks to keep in memory at the same time.  <a href="#94912dad05371213a4e46330df1dc7a5"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structiMeshGenerator.html#95ff89cfcd865000cb491f081b1aefdb">SetCellCount</a> (int number)=0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the number of cells to use in one direction.  <a href="#95ff89cfcd865000cb491f081b1aefdb"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structiMeshGenerator.html#cd8d55ad15138350da67ff4f6f605a68">SetDensityScale</a> (float mindist, float maxdist, float maxdensityfactor)=0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the density scale.  <a href="#cd8d55ad15138350da67ff4f6f605a68"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structiMeshGenerator.html#41fdae6703574a482ece996e6436fa6c">SetSampleBox</a> (const <a class="el" href="classcsBox3.html">csBox3</a> &amp;box)=0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the box where where we will sample.  <a href="#41fdae6703574a482ece996e6436fa6c"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<a class="el" href="structiMeshGenerator.html" title="iMeshGenerator defines the interface for a mesh generator.">iMeshGenerator</a> defines the interface for a mesh generator. 
<p>
Main creators of instances implementing this interface:<ul>
<li><a class="el" href="structiSector.html#4be5f0385b0fa4abe92d5ec42bb1f208" title="Create a mesh generator.">iSector::CreateMeshGenerator()</a></li></ul>
<p>
Main ways to get pointers to this interface:<ul>
<li><a class="el" href="structiSector.html#16b64e7b9e25413ae9f4c9dd1c50a823" title="Get the specific mesh generator.">iSector::GetMeshGenerator()</a></li></ul>
<p>
Main users of this interface:<ul>
<li>engine </li></ul>

<p>Definition at line <a class="el" href="meshgen_8h-source.html#l00161">161</a> of file <a class="el" href="meshgen_8h-source.html">meshgen.h</a>.</p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="3ef73b5717adf95e5442a8a13d1c54b7"></a><!-- doxytag: member="iMeshGenerator::AddMesh" ref="3ef73b5717adf95e5442a8a13d1c54b7" args="(iMeshWrapper *mesh)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void iMeshGenerator::AddMesh           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structiMeshWrapper.html">iMeshWrapper</a> *&nbsp;</td>
          <td class="paramname"> <em>mesh</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Add a mesh on which we will map our geometry. 
<p>

</div>
</div><p>
<a class="anchor" name="2f7491f446b357854b6d457cfcc6fc6a"></a><!-- doxytag: member="iMeshGenerator::CreateGeometry" ref="2f7491f446b357854b6d457cfcc6fc6a" args="()=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="structiMeshGeneratorGeometry.html">iMeshGeneratorGeometry</a>* iMeshGenerator::CreateGeometry           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Create a geometry specification for this mesh generator. 
<p>

</div>
</div><p>
<a class="anchor" name="4897114571b34629fd848ab1f0259891"></a><!-- doxytag: member="iMeshGenerator::GetBlockCount" ref="4897114571b34629fd848ab1f0259891" args="() const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int iMeshGenerator::GetBlockCount           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get the block count. 
<p>

</div>
</div><p>
<a class="anchor" name="9216f63da3f2dff4d79948581a9f8c3a"></a><!-- doxytag: member="iMeshGenerator::GetCellCount" ref="9216f63da3f2dff4d79948581a9f8c3a" args="() const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int iMeshGenerator::GetCellCount           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get the cell count. 
<p>

</div>
</div><p>
<a class="anchor" name="1563770807c8c7d4444cc3aebca98b55"></a><!-- doxytag: member="iMeshGenerator::GetGeometry" ref="1563770807c8c7d4444cc3aebca98b55" args="(size_t idx)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="structiMeshGeneratorGeometry.html">iMeshGeneratorGeometry</a>* iMeshGenerator::GetGeometry           </td>
          <td>(</td>
          <td class="paramtype">size_t&nbsp;</td>
          <td class="paramname"> <em>idx</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get a specific geometry. 
<p>

</div>
</div><p>
<a class="anchor" name="8e91ae9adca998ee289d35d82fc55f05"></a><!-- doxytag: member="iMeshGenerator::GetGeometryCount" ref="8e91ae9adca998ee289d35d82fc55f05" args="() const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual size_t iMeshGenerator::GetGeometryCount           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get the number of geometry specifications. 
<p>

</div>
</div><p>
<a class="anchor" name="7980404b8de6d944f426a0109e6e0611"></a><!-- doxytag: member="iMeshGenerator::GetMesh" ref="7980404b8de6d944f426a0109e6e0611" args="(size_t idx)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="structiMeshWrapper.html">iMeshWrapper</a>* iMeshGenerator::GetMesh           </td>
          <td>(</td>
          <td class="paramtype">size_t&nbsp;</td>
          <td class="paramname"> <em>idx</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get a specific mesh. 
<p>

</div>
</div><p>
<a class="anchor" name="1f5593a8f6c9a8df1accf835f16d0ed4"></a><!-- doxytag: member="iMeshGenerator::GetMeshCount" ref="1f5593a8f6c9a8df1accf835f16d0ed4" args="() const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual size_t iMeshGenerator::GetMeshCount           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get the number of meshes. 
<p>

</div>
</div><p>
<a class="anchor" name="085b14b5c93094840c5e537bbcf4cef0"></a><!-- doxytag: member="iMeshGenerator::GetSampleBox" ref="085b14b5c93094840c5e537bbcf4cef0" args="() const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual const <a class="el" href="classcsBox3.html">csBox3</a>&amp; iMeshGenerator::GetSampleBox           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get the sample box. 
<p>

</div>
</div><p>
<a class="anchor" name="ae079dec35bbbfb766b692bd5551182b"></a><!-- doxytag: member="iMeshGenerator::QueryObject" ref="ae079dec35bbbfb766b692bd5551182b" args="()=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="structiObject.html">iObject</a>* iMeshGenerator::QueryObject           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get the <a class="el" href="structiObject.html" title="This interface is an SCF interface for encapsulating csObject.">iObject</a> for this mesh generator. 
<p>

</div>
</div><p>
<a class="anchor" name="382e996fa036c7c383d5ef57c99f05f9"></a><!-- doxytag: member="iMeshGenerator::RemoveGeometry" ref="382e996fa036c7c383d5ef57c99f05f9" args="(size_t idx)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void iMeshGenerator::RemoveGeometry           </td>
          <td>(</td>
          <td class="paramtype">size_t&nbsp;</td>
          <td class="paramname"> <em>idx</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Remove a geometry. 
<p>

</div>
</div><p>
<a class="anchor" name="190b1010fbf1341bf96d1e8e91160008"></a><!-- doxytag: member="iMeshGenerator::RemoveMesh" ref="190b1010fbf1341bf96d1e8e91160008" args="(size_t idx)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void iMeshGenerator::RemoveMesh           </td>
          <td>(</td>
          <td class="paramtype">size_t&nbsp;</td>
          <td class="paramname"> <em>idx</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Remove a mesh. 
<p>

</div>
</div><p>
<a class="anchor" name="607913e1be19c022f24d1bd2a0e07169"></a><!-- doxytag: member="iMeshGenerator::SetAlphaScale" ref="607913e1be19c022f24d1bd2a0e07169" args="(float mindist, float maxdist)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void iMeshGenerator::SetAlphaScale           </td>
          <td>(</td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>mindist</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>maxdist</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Set the alpha scale. 
<p>
If this is set then objects in the distance will use alpha mode. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>mindist</em>&nbsp;</td><td>is the minimum distance at which alpha scale starts. At this distance the alpha factor will be 1 (meaning no alpha). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>maxdist</em>&nbsp;</td><td>is the maximum distance at which alpha scale ends. At this distance the alpha factor will be equal to '0'. </td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="94912dad05371213a4e46330df1dc7a5"></a><!-- doxytag: member="iMeshGenerator::SetBlockCount" ref="94912dad05371213a4e46330df1dc7a5" args="(int number)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void iMeshGenerator::SetBlockCount           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>number</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Set the maximum number of blocks to keep in memory at the same time. 
<p>
A block contains generated positions. Generating a block may be expensive (depending on density and size of the cells) so it may be good to have a high number here. Having a high number means more memory usage though. Default is 100. 
</div>
</div><p>
<a class="anchor" name="95ff89cfcd865000cb491f081b1aefdb"></a><!-- doxytag: member="iMeshGenerator::SetCellCount" ref="95ff89cfcd865000cb491f081b1aefdb" args="(int number)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void iMeshGenerator::SetCellCount           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>number</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Set the number of cells to use in one direction. 
<p>
Total cells will be 'number*number'. A cell is a logical unit that can keep a number of generated positions. Using bigger (fewer) cells means that more positions are generated at once (possibly causing hickups when this happens). Smaller cells may mean more runtime overhead. Default is 50. 
</div>
</div><p>
<a class="anchor" name="cd8d55ad15138350da67ff4f6f605a68"></a><!-- doxytag: member="iMeshGenerator::SetDensityScale" ref="cd8d55ad15138350da67ff4f6f605a68" args="(float mindist, float maxdist, float maxdensityfactor)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void iMeshGenerator::SetDensityScale           </td>
          <td>(</td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>mindist</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>maxdist</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>maxdensityfactor</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Set the density scale. 
<p>
If this is set then objects in the distance can have a lower density. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>mindist</em>&nbsp;</td><td>is the minimum distance at which density scale starts. At this distance the density factor will be 1 (meaning original density as given by the geometry itself). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>maxdist</em>&nbsp;</td><td>is the maximum distance at which density scale ends. At this distance the density factor will be equal to 'maxdensityfactor'. Note that this is a linear function so distances beyond 'maxdist' will get even lower density. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>maxdensityfactor</em>&nbsp;</td><td>is the density factor to use at 'maxdist'. 1 means full density and 0 means nothing left. </td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="41fdae6703574a482ece996e6436fa6c"></a><!-- doxytag: member="iMeshGenerator::SetSampleBox" ref="41fdae6703574a482ece996e6436fa6c" args="(const csBox3 &amp;box)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void iMeshGenerator::SetSampleBox           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classcsBox3.html">csBox3</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>box</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get the box where where we will sample. 
<p>
We will sample starting at the highest y value of the box and pointing down to the lowest y value of the box. <dl compact><dt><b><a class="el" href="todo.html#_todo000013">Todo:</a></b></dt><dd>In future support other directions for the mapping beam. </dd></dl>

</div>
</div><p>
<hr>The documentation for this struct was generated from the following file:<ul>
<li>iengine/<a class="el" href="meshgen_8h-source.html">meshgen.h</a></ul>
<hr size="1"><address><small>Generated for Crystal Space 1.2.1 by 
<a href="http://www.doxygen.org/index.html">doxygen</a> 1.5.3 
</small></address> </div></body> </html>