aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/a03482.html
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2018-08-11 20:21:34 +0200
committerneodarz <neodarz@neodarz.net>2018-08-11 20:21:34 +0200
commit0ea5fc66924303d1bf73ba283a383e2aadee02f2 (patch)
tree2568e71a7ccc44ec23b8bb3f0ff97fb6bf2ed709 /docs/doxygen/nel/a03482.html
downloadnevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.tar.xz
nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.zip
Initial commit
Diffstat (limited to 'docs/doxygen/nel/a03482.html')
-rw-r--r--docs/doxygen/nel/a03482.html285
1 files changed, 285 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a03482.html b/docs/doxygen/nel/a03482.html
new file mode 100644
index 00000000..09e9679a
--- /dev/null
+++ b/docs/doxygen/nel/a03482.html
@@ -0,0 +1,285 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
+<title>NeL: NL3D::CTessVertex class Reference</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css">
+</head><body>
+<!-- Generated by Doxygen 1.3.6 -->
+<div class="qindex"> <form class="search" action="search.php" method="get">
+<a class="qindex" href="main.html">Main&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Data&nbsp;Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a> | <span class="search"><u>S</u>earch&nbsp;for&nbsp;<input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div>
+<h1>NL3D::CTessVertex Class Reference</h1><code>#include &lt;<a class="el" href="a06498.html">tessellation.h</a>&gt;</code>
+<p>
+<hr><a name="_details"></a><h2>Detailed Description</h2>
+A Landscape Vertex <dl compact><dt><b>Author:</b></dt><dd>Lionel Berenguier <p>
+Nevrax France </dd></dl>
+<dl compact><dt><b>Date:</b></dt><dd>2000 </dd></dl>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a06498.html#l00097">97</a> of file <a class="el" href="a06498.html">tessellation.h</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>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03482.html#NL3D_1_1CTessVertexa0">computeGeomPos</a> ()</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03482.html#NL3D_1_1CTessVertexa1">CTessVertex</a> ()</td></tr>
+
+<tr><td colspan=2><br><h2>Data Fields</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03128.html">CVector</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03482.html#NL3D_1_1CTessVertexo0">EndPos</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>float&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03482.html#NL3D_1_1CTessVertexo1">MaxFaceSize</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>float&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03482.html#NL3D_1_1CTessVertexo2">MaxNearLimit</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03128.html">CVector</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03482.html#NL3D_1_1CTessVertexo3">Pos</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03128.html">CVector</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03482.html#NL3D_1_1CTessVertexo4">StartPos</a></td></tr>
+
+</table>
+<hr><h2>Constructor &amp; Destructor Documentation</h2>
+<a class="anchor" name="NL3D_1_1CTessVertexa1" doxytag="NL3D::CTessVertex::CTessVertex" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> NL3D::CTessVertex::CTessVertex </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap><code> [inline]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a06498.html#l00107">107</a> of file <a class="el" href="a06498.html">tessellation.h</a>.
+<p>
+References <a class="el" href="a06498.html#l00104">MaxFaceSize</a>, and <a class="el" href="a06498.html#l00105">MaxNearLimit</a>.
+<p>
+<div class="fragment"><pre>00108 {
+00109 <span class="comment">// init to 0, so max always() works.</span>
+00110 <a class="code" href="a03482.html#NL3D_1_1CTessVertexo1">MaxFaceSize</a>= 0;
+00111 <a class="code" href="a03482.html#NL3D_1_1CTessVertexo2">MaxNearLimit</a>= 0;
+00112 }
+</pre></div> </td>
+ </tr>
+</table>
+<hr><h2>Member Function Documentation</h2>
+<a class="anchor" name="NL3D_1_1CTessVertexa0" doxytag="NL3D::CTessVertex::computeGeomPos" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> void NL3D::CTessVertex::computeGeomPos </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a06497.html#l00113">113</a> of file <a class="el" href="a06497.html">tessellation.cpp</a>.
+<p>
+References <a class="el" href="a05587.html#l00115">NLMISC::clamp()</a>, <a class="el" href="a06498.html#l00102">EndPos</a>, <a class="el" href="a06498.html#l00104">MaxFaceSize</a>, <a class="el" href="a06498.html#l00105">MaxNearLimit</a>, <a class="el" href="a05587.html#l00107">NLMISC::sqr()</a>, and <a class="el" href="a06498.html#l00102">StartPos</a>.
+<p>
+Referenced by <a class="el" href="a06161.html#l01298">NL3D::CPatch::computeGeomorphVertexList()</a>, and <a class="el" href="a06497.html#l03156">NL3D::CTessFace::computeTesselatedPos()</a>.
+<p>
+<div class="fragment"><pre>00114 {
+00115 <span class="comment">// Compute Basic ErrorMetric.</span>
+00116 <span class="keywordtype">float</span> sqrDist= (<a class="code" href="a03482.html#NL3D_1_1CTessVertexo4">StartPos</a> - CLandscapeGlobals::RefineCenter).sqrnorm();
+00117 <span class="keywordtype">float</span> pgeom= <a class="code" href="a03482.html#NL3D_1_1CTessVertexo1">MaxFaceSize</a> * CLandscapeGlobals::OORefineThreshold / sqrDist;
+00118
+00119 <span class="comment">// Compute ErrorMetric modified by TileNear transition, only if TileNear transition.</span>
+00120 <span class="keywordflow">if</span>( sqrDist&lt; CLandscapeGlobals::TileDistFarSqr )
+00121 {
+00122 <span class="comment">// Soft optim: do it only if necessary, ie result of max(errorMetric, errorMetricModified) is foreseeable here.</span>
+00123 <span class="keywordflow">if</span>(pgeom &lt; <a class="code" href="a03482.html#NL3D_1_1CTessVertexo2">MaxNearLimit</a>)
+00124 {
+00125 <span class="keywordtype">float</span> f= (CLandscapeGlobals::TileDistFarSqr - sqrDist) * CLandscapeGlobals::OOTileDistDeltaSqr;
+00126 <a class="code" href="a05378.html#a374">clamp</a>(f, 0, 1);
+00127 <span class="comment">// ^4 gives better smooth result</span>
+00128 f= <a class="code" href="a05378.html#a373">sqr</a>(f);
+00129 f= <a class="code" href="a05378.html#a373">sqr</a>(f);
+00130 <span class="comment">// interpolate the errorMetric</span>
+00131 pgeom= <a class="code" href="a03482.html#NL3D_1_1CTessVertexo2">MaxNearLimit</a>*f + pgeom*(1-f);
+00132 }
+00133 }
+00134
+00135 <span class="comment">// Interpolate StartPos to EndPos, between 1 and 2.</span>
+00136 <span class="keywordflow">if</span>(pgeom&lt;=1.0f)
+00137 <a class="code" href="a03482.html#NL3D_1_1CTessVertexo3">Pos</a>= <a class="code" href="a03482.html#NL3D_1_1CTessVertexo4">StartPos</a>;
+00138 <span class="keywordflow">else</span> <span class="keywordflow">if</span>(pgeom&gt;=2.0f)
+00139 <a class="code" href="a03482.html#NL3D_1_1CTessVertexo3">Pos</a>= <a class="code" href="a03482.html#NL3D_1_1CTessVertexo0">EndPos</a>;
+00140 <span class="keywordflow">else</span>
+00141 {
+00142 <span class="keywordtype">float</span> f= pgeom - 1.0f;
+00143 <a class="code" href="a03482.html#NL3D_1_1CTessVertexo3">Pos</a>= f * (EndPos-StartPos) + StartPos;
+00144 }
+00145 }
+</pre></div> </td>
+ </tr>
+</table>
+<hr><h2>Field Documentation</h2>
+<a class="anchor" name="NL3D_1_1CTessVertexo0" doxytag="NL3D::CTessVertex::EndPos" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="a03128.html">CVector</a> <a class="el" href="a03482.html#NL3D_1_1CTessVertexo0">NL3D::CTessVertex::EndPos</a>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a06498.html#l00102">102</a> of file <a class="el" href="a06498.html">tessellation.h</a>.
+<p>
+Referenced by <a class="el" href="a06768.html#l01613">NL3D::CZoneLighter::addTriangles()</a>, <a class="el" href="a05824.html#l00077">NL3D::CInstanceLighter::addTriangles()</a>, <a class="el" href="a06155.html#l00800">NL3D::CPatch::appendFaceToRenderList()</a>, <a class="el" href="a05862.html#l03658">NL3D::CLandscape::appendToShadowPolyReceiver()</a>, <a class="el" href="a06497.html#l02468">NL3D::CTessFace::averageTesselationVertices()</a>, <a class="el" href="a06155.html#l01505">NL3D::CPatch::averageTesselationVertices()</a>, <a class="el" href="a06155.html#l01847">NL3D::CPatch::bind()</a>, <a class="el" href="a06768.html#l02045">NL3D::CZoneLighter::buildZoneInformation()</a>, <a class="el" href="a06155.html#l01363">NL3D::CPatch::computeContinousVertex()</a>, <a class="el" href="a06497.html#l00113">computeGeomPos()</a>, <a class="el" href="a06497.html#l00345">NL3D::CTessFace::computeSplitPoint()</a>, <a class="el" href="a06497.html#l00234">NL3D::CTessFace::computeTileErrorMetric()</a>, <a class="el" href="a06155.html#l01456">NL3D::CPatch::computeVertexButCorner()</a>, <a class="el" href="a06155.html#l00766">NL3D::CPatch::extendTessBlockWithEndPos()</a>, <a class="el" href="a06161.html#l00946">NL3D::CPatch::fillFar0VertexVB()</a>, <a class="el" href="a06161.html#l01022">NL3D::CPatch::fillFar1VertexVB()</a>, <a class="el" href="a06161.html#l01109">NL3D::CPatch::fillTileVertexVB()</a>, <a class="el" href="a06155.html#l01124">NL3D::CPatch::makeRoots()</a>, <a class="el" href="a06497.html#l02519">NL3D::CTessFace::refreshTesselationGeometry()</a>, <a class="el" href="a06155.html#l01531">NL3D::CPatch::refreshTesselationGeometry()</a>, <a class="el" href="a06497.html#l01283">NL3D::CTessFace::split()</a>, <a class="el" href="a06497.html#l00911">NL3D::CTessFace::splitRectangular()</a>, <a class="el" href="a06497.html#l02643">NL3D::CTessFace::updateBindAndSplit()</a>, <a class="el" href="a06497.html#l02108">NL3D::CTessFace::updateRefineMerge()</a>, and <a class="el" href="a06497.html#l01900">NL3D::CTessFace::updateRefineSplit()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CTessVertexo1" doxytag="NL3D::CTessVertex::MaxFaceSize" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> float <a class="el" href="a03482.html#NL3D_1_1CTessVertexo1">NL3D::CTessVertex::MaxFaceSize</a>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a06498.html#l00104">104</a> of file <a class="el" href="a06498.html">tessellation.h</a>.
+<p>
+Referenced by <a class="el" href="a06497.html#l00113">computeGeomPos()</a>, <a class="el" href="a06498.html#l00107">CTessVertex()</a>, <a class="el" href="a06161.html#l00946">NL3D::CPatch::fillFar0VertexVB()</a>, <a class="el" href="a06161.html#l01022">NL3D::CPatch::fillFar1VertexVB()</a>, <a class="el" href="a06161.html#l01109">NL3D::CPatch::fillTileVertexVB()</a>, <a class="el" href="a06155.html#l01124">NL3D::CPatch::makeRoots()</a>, <a class="el" href="a06497.html#l01283">NL3D::CTessFace::split()</a>, <a class="el" href="a06497.html#l00911">NL3D::CTessFace::splitRectangular()</a>, and <a class="el" href="a06497.html#l02274">NL3D::CTessFace::unbind()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CTessVertexo2" doxytag="NL3D::CTessVertex::MaxNearLimit" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> float <a class="el" href="a03482.html#NL3D_1_1CTessVertexo2">NL3D::CTessVertex::MaxNearLimit</a>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a06498.html#l00105">105</a> of file <a class="el" href="a06498.html">tessellation.h</a>.
+<p>
+Referenced by <a class="el" href="a06497.html#l00113">computeGeomPos()</a>, <a class="el" href="a06498.html#l00107">CTessVertex()</a>, <a class="el" href="a06161.html#l00946">NL3D::CPatch::fillFar0VertexVB()</a>, <a class="el" href="a06161.html#l01022">NL3D::CPatch::fillFar1VertexVB()</a>, <a class="el" href="a06161.html#l01109">NL3D::CPatch::fillTileVertexVB()</a>, <a class="el" href="a06155.html#l01124">NL3D::CPatch::makeRoots()</a>, <a class="el" href="a06497.html#l01283">NL3D::CTessFace::split()</a>, <a class="el" href="a06497.html#l00911">NL3D::CTessFace::splitRectangular()</a>, and <a class="el" href="a06497.html#l02274">NL3D::CTessFace::unbind()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CTessVertexo3" doxytag="NL3D::CTessVertex::Pos" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="a03128.html">CVector</a> <a class="el" href="a03482.html#NL3D_1_1CTessVertexo3">NL3D::CTessVertex::Pos</a>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a06498.html#l00101">101</a> of file <a class="el" href="a06498.html">tessellation.h</a>.
+<p>
+Referenced by <a class="el" href="a06155.html#l01505">NL3D::CPatch::averageTesselationVertices()</a>, <a class="el" href="a06155.html#l01847">NL3D::CPatch::bind()</a>, <a class="el" href="a06161.html#l01329">NL3D::CPatch::computeGeomorphAlphaFar1VertexListVB()</a>, <a class="el" href="a06161.html#l01311">NL3D::CPatch::computeGeomorphFar0VertexListVB()</a>, <a class="el" href="a06161.html#l01359">NL3D::CPatch::computeGeomorphTileVertexListVB()</a>, <a class="el" href="a06497.html#l03156">NL3D::CTessFace::computeTesselatedPos()</a>, <a class="el" href="a06161.html#l00946">NL3D::CPatch::fillFar0VertexVB()</a>, <a class="el" href="a06161.html#l01022">NL3D::CPatch::fillFar1VertexVB()</a>, <a class="el" href="a06161.html#l01109">NL3D::CPatch::fillTileVertexVB()</a>, <a class="el" href="a06155.html#l01124">NL3D::CPatch::makeRoots()</a>, <a class="el" href="a06497.html#l02519">NL3D::CTessFace::refreshTesselationGeometry()</a>, <a class="el" href="a06155.html#l01531">NL3D::CPatch::refreshTesselationGeometry()</a>, <a class="el" href="a06497.html#l01283">NL3D::CTessFace::split()</a>, <a class="el" href="a06497.html#l00911">NL3D::CTessFace::splitRectangular()</a>, and <a class="el" href="a06497.html#l02643">NL3D::CTessFace::updateBindAndSplit()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CTessVertexo4" doxytag="NL3D::CTessVertex::StartPos" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="a03128.html">CVector</a> <a class="el" href="a03482.html#NL3D_1_1CTessVertexo4">NL3D::CTessVertex::StartPos</a>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a06498.html#l00102">102</a> of file <a class="el" href="a06498.html">tessellation.h</a>.
+<p>
+Referenced by <a class="el" href="a06155.html#l00800">NL3D::CPatch::appendFaceToRenderList()</a>, <a class="el" href="a06155.html#l01505">NL3D::CPatch::averageTesselationVertices()</a>, <a class="el" href="a06155.html#l01847">NL3D::CPatch::bind()</a>, <a class="el" href="a06497.html#l00113">computeGeomPos()</a>, <a class="el" href="a06161.html#l00946">NL3D::CPatch::fillFar0VertexVB()</a>, <a class="el" href="a06161.html#l01022">NL3D::CPatch::fillFar1VertexVB()</a>, <a class="el" href="a06161.html#l01109">NL3D::CPatch::fillTileVertexVB()</a>, <a class="el" href="a06155.html#l01124">NL3D::CPatch::makeRoots()</a>, <a class="el" href="a06155.html#l01531">NL3D::CPatch::refreshTesselationGeometry()</a>, <a class="el" href="a06497.html#l01283">NL3D::CTessFace::split()</a>, <a class="el" href="a06497.html#l00911">NL3D::CTessFace::splitRectangular()</a>, and <a class="el" href="a06497.html#l02643">NL3D::CTessFace::updateBindAndSplit()</a>. </td>
+ </tr>
+</table>
+<hr>The documentation for this class was generated from the following files:<ul>
+<li><a class="el" href="a06498.html">tessellation.h</a><li><a class="el" href="a06497.html">tessellation.cpp</a></ul>
+<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 07:49:09 2004 for NeL by
+<a href="http://www.doxygen.org/index.html">
+<img src="doxygen.png" alt="doxygen" align="middle" border=0 >
+</a>1.3.6 </small></address>
+</body>
+</html>