1 | <html> |
---|
2 | <head> |
---|
3 | <title>OgreEdgeListBuilder.h Source File - OGRE Documentation</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
---|
4 | <link type="text/css" rel="stylesheet" href="style.css"> |
---|
5 | </head> |
---|
6 | |
---|
7 | <body> |
---|
8 | <!-- Generated by Doxygen 1.3.6 --> |
---|
9 | <div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a> | <a class="qindex" href="pages.html">Related Pages</a></div> |
---|
10 | <h1>OgreEdgeListBuilder.h</h1><a href="OgreEdgeListBuilder_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*</span> |
---|
11 | 00002 <span class="comment">-----------------------------------------------------------------------------</span> |
---|
12 | 00003 <span class="comment">This source file is part of OGRE</span> |
---|
13 | 00004 <span class="comment"> (Object-oriented Graphics Rendering Engine)</span> |
---|
14 | 00005 <span class="comment">For the latest info, see http://www.ogre3d.org/</span> |
---|
15 | 00006 <span class="comment"></span> |
---|
16 | 00007 <span class="comment">Copyright (c) 2000-2005 The OGRE Team</span> |
---|
17 | 00008 <span class="comment">Also see acknowledgements in Readme.html</span> |
---|
18 | 00009 <span class="comment"></span> |
---|
19 | 00010 <span class="comment">This program is free software; you can redistribute it and/or modify it under</span> |
---|
20 | 00011 <span class="comment">the terms of the GNU Lesser General Public License as published by the Free Software</span> |
---|
21 | 00012 <span class="comment">Foundation; either version 2 of the License, or (at your option) any later</span> |
---|
22 | 00013 <span class="comment">version.</span> |
---|
23 | 00014 <span class="comment"></span> |
---|
24 | 00015 <span class="comment">This program is distributed in the hope that it will be useful, but WITHOUT</span> |
---|
25 | 00016 <span class="comment">ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS</span> |
---|
26 | 00017 <span class="comment">FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.</span> |
---|
27 | 00018 <span class="comment"></span> |
---|
28 | 00019 <span class="comment">You should have received a copy of the GNU Lesser General Public License along with</span> |
---|
29 | 00020 <span class="comment">this program; if not, write to the Free Software Foundation, Inc., 59 Temple</span> |
---|
30 | 00021 <span class="comment">Place - Suite 330, Boston, MA 02111-1307, USA, or go to</span> |
---|
31 | 00022 <span class="comment">http://www.gnu.org/copyleft/lesser.txt.</span> |
---|
32 | 00023 <span class="comment">-----------------------------------------------------------------------------</span> |
---|
33 | 00024 <span class="comment">*/</span> |
---|
34 | 00025 <span class="preprocessor">#ifndef __EdgeListBuilder_H__</span> |
---|
35 | 00026 <span class="preprocessor"></span><span class="preprocessor">#define __EdgeListBuilder_H__</span> |
---|
36 | 00027 <span class="preprocessor"></span> |
---|
37 | 00028 <span class="preprocessor">#include "<a class="code" href="OgrePrerequisites_8h.html">OgrePrerequisites.h</a>"</span> |
---|
38 | 00029 <span class="preprocessor">#include "<a class="code" href="OgreVector4_8h.html">OgreVector4.h</a>"</span> |
---|
39 | 00030 <span class="preprocessor">#include "<a class="code" href="OgreHardwareVertexBuffer_8h.html">OgreHardwareVertexBuffer.h</a>"</span> |
---|
40 | 00031 <span class="preprocessor">#include "<a class="code" href="OgreRenderOperation_8h.html">OgreRenderOperation.h</a>"</span> |
---|
41 | 00032 |
---|
42 | 00033 <span class="keyword">namespace </span>Ogre { |
---|
43 | 00034 |
---|
44 | 00035 |
---|
45 | <a name="l00042"></a><a class="code" href="classOgre_1_1EdgeData.html">00042</a> <span class="keyword">class </span><a class="code" href="OgrePlatform_8h.html#a16">_OgreExport</a> EdgeData |
---|
46 | 00043 { |
---|
47 | 00044 <span class="keyword">public</span>: |
---|
48 | <a name="l00046"></a><a class="code" href="structOgre_1_1EdgeData_1_1Triangle.html">00046</a> <span class="keyword">struct </span><a class="code" href="structOgre_1_1EdgeData_1_1Triangle.html">Triangle</a> { |
---|
49 | <a name="l00049"></a><a class="code" href="structOgre_1_1EdgeData_1_1Triangle.html#Ogre_1_1EdgeData_1_1Triangleo0">00049</a> size_t indexSet; |
---|
50 | <a name="l00051"></a><a class="code" href="structOgre_1_1EdgeData_1_1Triangle.html#Ogre_1_1EdgeData_1_1Triangleo1">00051</a> size_t vertexSet; |
---|
51 | <a name="l00052"></a><a class="code" href="structOgre_1_1EdgeData_1_1Triangle.html#Ogre_1_1EdgeData_1_1Triangleo2">00052</a> size_t vertIndex[3]; |
---|
52 | <a name="l00053"></a><a class="code" href="structOgre_1_1EdgeData_1_1Triangle.html#Ogre_1_1EdgeData_1_1Triangleo3">00053</a> size_t sharedVertIndex[3]; |
---|
53 | 00054 <span class="comment">// duplicates eliminated (this buffer is not exposed)</span> |
---|
54 | <a name="l00055"></a><a class="code" href="structOgre_1_1EdgeData_1_1Triangle.html#Ogre_1_1EdgeData_1_1Triangleo4">00055</a> <a class="code" href="classOgre_1_1Vector4.html">Vector4</a> normal; <span class="comment">// unit vector othogonal to this face, plus distance from origin</span> |
---|
55 | <a name="l00056"></a><a class="code" href="structOgre_1_1EdgeData_1_1Triangle.html#Ogre_1_1EdgeData_1_1Triangleo5">00056</a> <span class="keywordtype">bool</span> lightFacing; <span class="comment">// Working vector used when calculating the silhouette</span> |
---|
56 | 00057 }; |
---|
57 | <a name="l00059"></a><a class="code" href="structOgre_1_1EdgeData_1_1Edge.html">00059</a> <span class="keyword">struct </span><a class="code" href="structOgre_1_1EdgeData_1_1Edge.html">Edge</a> { |
---|
58 | <a name="l00063"></a><a class="code" href="structOgre_1_1EdgeData_1_1Edge.html#Ogre_1_1EdgeData_1_1Edgeo0">00063</a> size_t triIndex[2]; |
---|
59 | <a name="l00066"></a><a class="code" href="structOgre_1_1EdgeData_1_1Edge.html#Ogre_1_1EdgeData_1_1Edgeo1">00066</a> size_t vertIndex[2]; |
---|
60 | <a name="l00068"></a><a class="code" href="structOgre_1_1EdgeData_1_1Edge.html#Ogre_1_1EdgeData_1_1Edgeo2">00068</a> size_t sharedVertIndex[2]; |
---|
61 | <a name="l00070"></a><a class="code" href="structOgre_1_1EdgeData_1_1Edge.html#Ogre_1_1EdgeData_1_1Edgeo3">00070</a> <span class="keywordtype">bool</span> degenerate; |
---|
62 | 00071 }; |
---|
63 | 00072 |
---|
64 | <a name="l00073"></a><a class="code" href="classOgre_1_1EdgeData.html#Ogre_1_1EdgeDataw0">00073</a> <span class="keyword">typedef</span> std::vector<Triangle> <a class="code" href="classOgre_1_1EdgeData.html#Ogre_1_1EdgeDataw0">TriangleList</a>; |
---|
65 | <a name="l00074"></a><a class="code" href="classOgre_1_1EdgeData.html#Ogre_1_1EdgeDataw1">00074</a> <span class="keyword">typedef</span> std::vector<Edge> <a class="code" href="classOgre_1_1EdgeData.html#Ogre_1_1EdgeDataw1">EdgeList</a>; |
---|
66 | 00075 |
---|
67 | <a name="l00077"></a><a class="code" href="structOgre_1_1EdgeData_1_1EdgeGroup.html">00077</a> <span class="keyword">struct </span><a class="code" href="structOgre_1_1EdgeData_1_1EdgeGroup.html">EdgeGroup</a> |
---|
68 | 00078 { |
---|
69 | <a name="l00080"></a><a class="code" href="structOgre_1_1EdgeData_1_1EdgeGroup.html#Ogre_1_1EdgeData_1_1EdgeGroupo0">00080</a> size_t vertexSet; |
---|
70 | <a name="l00082"></a><a class="code" href="structOgre_1_1EdgeData_1_1EdgeGroup.html#Ogre_1_1EdgeData_1_1EdgeGroupo1">00082</a> <span class="keyword">const</span> <a class="code" href="classOgre_1_1VertexData.html">VertexData</a>* vertexData; |
---|
71 | <a name="l00084"></a><a class="code" href="structOgre_1_1EdgeData_1_1EdgeGroup.html#Ogre_1_1EdgeData_1_1EdgeGroupo2">00084</a> <a class="code" href="classOgre_1_1EdgeData.html#Ogre_1_1EdgeDataw1">EdgeList</a> edges; |
---|
72 | 00085 |
---|
73 | 00086 }; |
---|
74 | 00087 |
---|
75 | <a name="l00088"></a><a class="code" href="classOgre_1_1EdgeData.html#Ogre_1_1EdgeDataw2">00088</a> <span class="keyword">typedef</span> std::vector<EdgeGroup> <a class="code" href="classOgre_1_1EdgeData.html#Ogre_1_1EdgeDataw2">EdgeGroupList</a>; |
---|
76 | <a name="l00089"></a><a class="code" href="classOgre_1_1EdgeData.html#Ogre_1_1EdgeDatao0">00089</a> <a class="code" href="classOgre_1_1EdgeData.html#Ogre_1_1EdgeDataw0">TriangleList</a> triangles; |
---|
77 | <a name="l00090"></a><a class="code" href="classOgre_1_1EdgeData.html#Ogre_1_1EdgeDatao1">00090</a> <a class="code" href="classOgre_1_1EdgeData.html#Ogre_1_1EdgeDataw2">EdgeGroupList</a> edgeGroups; |
---|
78 | 00091 <span class="comment">// manifold? NB This value is not stored in the binary Mesh format yet so</span> |
---|
79 | 00092 <span class="comment">// cannot be relied upon unless this has been calculated interactively.</span> |
---|
80 | 00093 <span class="comment">//bool isClosed; // manifold?</span> |
---|
81 | 00094 |
---|
82 | 00095 |
---|
83 | 00106 <span class="keywordtype">void</span> updateTriangleLightFacing(<span class="keyword">const</span> <a class="code" href="classOgre_1_1Vector4.html">Vector4</a>& lightPos); |
---|
84 | 00112 <span class="keywordtype">void</span> updateFaceNormals(size_t vertexSet, <a class="code" href="classOgre_1_1HardwareVertexBufferSharedPtr.html">HardwareVertexBufferSharedPtr</a> positionBuffer); |
---|
85 | 00113 |
---|
86 | 00114 |
---|
87 | 00115 |
---|
88 | 00116 <span class="comment">// Debugging method</span> |
---|
89 | 00117 <span class="keywordtype">void</span> log(<a class="code" href="classOgre_1_1Log.html">Log</a>* log); |
---|
90 | 00118 |
---|
91 | 00119 }; |
---|
92 | 00120 |
---|
93 | <a name="l00130"></a><a class="code" href="classOgre_1_1EdgeListBuilder.html">00130</a> <span class="keyword">class </span><a class="code" href="class__OgreExport.html">_OgreExport</a> EdgeListBuilder |
---|
94 | 00131 { |
---|
95 | 00132 <span class="keyword">public</span>: |
---|
96 | 00133 |
---|
97 | 00134 EdgeListBuilder(); |
---|
98 | 00135 <span class="keyword">virtual</span> ~EdgeListBuilder(); |
---|
99 | 00141 <span class="keywordtype">void</span> addVertexData(<span class="keyword">const</span> <a class="code" href="classOgre_1_1VertexData.html">VertexData</a>* vertexData); |
---|
100 | 00152 <span class="keywordtype">void</span> addIndexData(<span class="keyword">const</span> <a class="code" href="classOgre_1_1IndexData.html">IndexData</a>* indexData, size_t vertexSet = 0, |
---|
101 | 00153 RenderOperation::OperationType opType = RenderOperation::OT_TRIANGLE_LIST); |
---|
102 | 00154 |
---|
103 | 00159 EdgeData* build(<span class="keywordtype">void</span>); |
---|
104 | 00160 |
---|
105 | 00162 <span class="keywordtype">void</span> log(<a class="code" href="classOgre_1_1Log.html">Log</a>* l); |
---|
106 | 00163 <span class="keyword">protected</span>: |
---|
107 | 00164 |
---|
108 | <a name="l00170"></a><a class="code" href="structOgre_1_1EdgeListBuilder_1_1CommonVertex.html">00170</a> <span class="keyword">struct </span><a class="code" href="structOgre_1_1EdgeListBuilder_1_1CommonVertex.html">CommonVertex</a> { |
---|
109 | <a name="l00171"></a><a class="code" href="structOgre_1_1EdgeListBuilder_1_1CommonVertex.html#Ogre_1_1EdgeListBuilder_1_1CommonVertexo0">00171</a> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a> position; <span class="comment">// location of point in euclidean space</span> |
---|
110 | <a name="l00172"></a><a class="code" href="structOgre_1_1EdgeListBuilder_1_1CommonVertex.html#Ogre_1_1EdgeListBuilder_1_1CommonVertexo1">00172</a> size_t index; <span class="comment">// place of vertex in common vertex list</span> |
---|
111 | <a name="l00173"></a><a class="code" href="structOgre_1_1EdgeListBuilder_1_1CommonVertex.html#Ogre_1_1EdgeListBuilder_1_1CommonVertexo2">00173</a> size_t vertexSet; <span class="comment">// The vertex set this came from</span> |
---|
112 | <a name="l00174"></a><a class="code" href="structOgre_1_1EdgeListBuilder_1_1CommonVertex.html#Ogre_1_1EdgeListBuilder_1_1CommonVertexo3">00174</a> size_t indexSet; <span class="comment">// The index set this was referenced (first) from</span> |
---|
113 | <a name="l00175"></a><a class="code" href="structOgre_1_1EdgeListBuilder_1_1CommonVertex.html#Ogre_1_1EdgeListBuilder_1_1CommonVertexo4">00175</a> size_t originalIndex; <span class="comment">// place of vertex in original vertex set</span> |
---|
114 | 00176 }; |
---|
115 | <a name="l00178"></a><a class="code" href="structOgre_1_1EdgeListBuilder_1_1Geometry.html">00178</a> <span class="keyword">struct </span><a class="code" href="structOgre_1_1EdgeListBuilder_1_1Geometry.html">Geometry</a> { |
---|
116 | <a name="l00179"></a><a class="code" href="structOgre_1_1EdgeListBuilder_1_1Geometry.html#Ogre_1_1EdgeListBuilder_1_1Geometryo0">00179</a> size_t vertexSet; <span class="comment">// The vertex data set this geometry data refers to</span> |
---|
117 | <a name="l00180"></a><a class="code" href="structOgre_1_1EdgeListBuilder_1_1Geometry.html#Ogre_1_1EdgeListBuilder_1_1Geometryo1">00180</a> size_t indexSet; <span class="comment">// The index data set this geometry data refers to</span> |
---|
118 | <a name="l00181"></a><a class="code" href="structOgre_1_1EdgeListBuilder_1_1Geometry.html#Ogre_1_1EdgeListBuilder_1_1Geometryo2">00181</a> <span class="keyword">const</span> <a class="code" href="classOgre_1_1IndexData.html">IndexData</a>* indexData; <span class="comment">// The index information which describes the triangles.</span> |
---|
119 | <a name="l00182"></a><a class="code" href="structOgre_1_1EdgeListBuilder_1_1Geometry.html#Ogre_1_1EdgeListBuilder_1_1Geometryo3">00182</a> RenderOperation::OperationType opType; <span class="comment">// The operation type used to render this geometry</span> |
---|
120 | 00183 }; |
---|
121 | <a name="l00185"></a><a class="code" href="structOgre_1_1EdgeListBuilder_1_1geometryLess.html">00185</a> <span class="keyword">struct </span><a class="code" href="structOgre_1_1EdgeListBuilder_1_1geometryLess.html">geometryLess</a> { |
---|
122 | <a name="l00186"></a><a class="code" href="structOgre_1_1EdgeListBuilder_1_1geometryLess.html#Ogre_1_1EdgeListBuilder_1_1geometryLessa0">00186</a> <span class="keywordtype">bool</span> operator()(<span class="keyword">const</span> <a class="code" href="structOgre_1_1EdgeListBuilder_1_1Geometry.html">Geometry</a>& a, <span class="keyword">const</span> <a class="code" href="structOgre_1_1EdgeListBuilder_1_1Geometry.html">Geometry</a>& b)<span class="keyword"> const</span> |
---|
123 | 00187 <span class="keyword"> </span>{ |
---|
124 | 00188 <span class="keywordflow">if</span> (a.<a class="code" href="structOgre_1_1EdgeListBuilder_1_1Geometry.html#Ogre_1_1EdgeListBuilder_1_1Geometryo0">vertexSet</a> < b.<a class="code" href="structOgre_1_1EdgeListBuilder_1_1Geometry.html#Ogre_1_1EdgeListBuilder_1_1Geometryo0">vertexSet</a>) <span class="keywordflow">return</span> <span class="keyword">true</span>; |
---|
125 | 00189 <span class="keywordflow">if</span> (a.<a class="code" href="structOgre_1_1EdgeListBuilder_1_1Geometry.html#Ogre_1_1EdgeListBuilder_1_1Geometryo0">vertexSet</a> > b.<a class="code" href="structOgre_1_1EdgeListBuilder_1_1Geometry.html#Ogre_1_1EdgeListBuilder_1_1Geometryo0">vertexSet</a>) <span class="keywordflow">return</span> <span class="keyword">false</span>; |
---|
126 | 00190 <span class="keywordflow">return</span> a.<a class="code" href="structOgre_1_1EdgeListBuilder_1_1Geometry.html#Ogre_1_1EdgeListBuilder_1_1Geometryo1">indexSet</a> < b.<a class="code" href="structOgre_1_1EdgeListBuilder_1_1Geometry.html#Ogre_1_1EdgeListBuilder_1_1Geometryo1">indexSet</a>; |
---|
127 | 00191 } |
---|
128 | 00192 }; |
---|
129 | <a name="l00194"></a><a class="code" href="structOgre_1_1EdgeListBuilder_1_1vectorLess.html">00194</a> <span class="keyword">struct </span><a class="code" href="structOgre_1_1EdgeListBuilder_1_1vectorLess.html">vectorLess</a> { |
---|
130 | <a name="l00195"></a><a class="code" href="structOgre_1_1EdgeListBuilder_1_1vectorLess.html#Ogre_1_1EdgeListBuilder_1_1vectorLessa0">00195</a> <span class="keywordtype">bool</span> operator()(<span class="keyword">const</span> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a>& a, <span class="keyword">const</span> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a>& b)<span class="keyword"> const</span> |
---|
131 | 00196 <span class="keyword"> </span>{ |
---|
132 | 00197 <span class="keywordflow">if</span> (a.<a class="code" href="classOgre_1_1Vector3.html#Ogre_1_1Vector3o0">x</a> < b.<a class="code" href="classOgre_1_1Vector3.html#Ogre_1_1Vector3o0">x</a>) <span class="keywordflow">return</span> <span class="keyword">true</span>; |
---|
133 | 00198 <span class="keywordflow">if</span> (a.<a class="code" href="classOgre_1_1Vector3.html#Ogre_1_1Vector3o0">x</a> > b.<a class="code" href="classOgre_1_1Vector3.html#Ogre_1_1Vector3o0">x</a>) <span class="keywordflow">return</span> <span class="keyword">false</span>; |
---|
134 | 00199 <span class="keywordflow">if</span> (a.<a class="code" href="classOgre_1_1Vector3.html#Ogre_1_1Vector3o1">y</a> < b.<a class="code" href="classOgre_1_1Vector3.html#Ogre_1_1Vector3o1">y</a>) <span class="keywordflow">return</span> <span class="keyword">true</span>; |
---|
135 | 00200 <span class="keywordflow">if</span> (a.<a class="code" href="classOgre_1_1Vector3.html#Ogre_1_1Vector3o1">y</a> > b.<a class="code" href="classOgre_1_1Vector3.html#Ogre_1_1Vector3o1">y</a>) <span class="keywordflow">return</span> <span class="keyword">false</span>; |
---|
136 | 00201 <span class="keywordflow">return</span> a.<a class="code" href="classOgre_1_1Vector3.html#Ogre_1_1Vector3o2">z</a> < b.<a class="code" href="classOgre_1_1Vector3.html#Ogre_1_1Vector3o2">z</a>; |
---|
137 | 00202 } |
---|
138 | 00203 }; |
---|
139 | 00204 |
---|
140 | <a name="l00205"></a><a class="code" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuilderx0">00205</a> <span class="keyword">typedef</span> std::vector<const VertexData*> <a class="code" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuilderx0">VertexDataList</a>; |
---|
141 | <a name="l00206"></a><a class="code" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuilderx1">00206</a> <span class="keyword">typedef</span> std::vector<Geometry> <a class="code" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuilderx1">GeometryList</a>; |
---|
142 | <a name="l00207"></a><a class="code" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuilderx2">00207</a> <span class="keyword">typedef</span> std::vector<CommonVertex> <a class="code" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuilderx2">CommonVertexList</a>; |
---|
143 | 00208 |
---|
144 | <a name="l00209"></a><a class="code" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuilderp0">00209</a> <a class="code" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuilderx1">GeometryList</a> mGeometryList; |
---|
145 | <a name="l00210"></a><a class="code" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuilderp1">00210</a> <a class="code" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuilderx0">VertexDataList</a> mVertexDataList; |
---|
146 | <a name="l00211"></a><a class="code" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuilderp2">00211</a> <a class="code" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuilderx2">CommonVertexList</a> mVertices; |
---|
147 | <a name="l00212"></a><a class="code" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuilderp3">00212</a> EdgeData* mEdgeData; |
---|
148 | <a name="l00214"></a><a class="code" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuilderx3">00214</a> <span class="keyword">typedef</span> std::map<Vector3, size_t, vectorLess> <a class="code" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuilderx3">CommonVertexMap</a>; |
---|
149 | <a name="l00215"></a><a class="code" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuilderp4">00215</a> <a class="code" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuilderx3">CommonVertexMap</a> mCommonVertexMap; |
---|
150 | <a name="l00219"></a><a class="code" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuilderx4">00219</a> <span class="keyword">typedef</span> std::multimap< std::pair<size_t, size_t>, std::pair<size_t, size_t> > <a class="code" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuilderx4">EdgeMap</a>; |
---|
151 | <a name="l00220"></a><a class="code" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuilderp5">00220</a> <a class="code" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuilderx4">EdgeMap</a> mEdgeMap; |
---|
152 | 00221 |
---|
153 | 00222 <span class="keywordtype">void</span> buildTrianglesEdges(<span class="keyword">const</span> <a class="code" href="structOgre_1_1EdgeListBuilder_1_1Geometry.html">Geometry</a> &geometry); |
---|
154 | 00223 |
---|
155 | 00225 size_t findOrCreateCommonVertex(<span class="keyword">const</span> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a>& vec, size_t vertexSet, |
---|
156 | 00226 size_t indexSet, size_t originalIndex); |
---|
157 | 00228 <span class="keywordtype">void</span> connectOrCreateEdge(size_t vertexSet, size_t triangleIndex, size_t vertIndex0, size_t vertIndex1, |
---|
158 | 00229 size_t sharedVertIndex0, size_t sharedVertIndex1); |
---|
159 | 00230 }; |
---|
160 | 00231 |
---|
161 | 00232 } |
---|
162 | 00233 <span class="preprocessor">#endif</span> |
---|
163 | 00234 <span class="preprocessor"></span> |
---|
164 | </pre></div><hr> |
---|
165 | <p> |
---|
166 | Copyright © 2000-2005 by The OGRE Team<br /> |
---|
167 | <!--Creative Commons License--><a rel="license" href="http://creativecommons.org/licenses/by-sa/2.5/"><img alt="Creative Commons License" border="0" src="http://creativecommons.org/images/public/somerights20.png"/></a><br/> |
---|
168 | This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/2.5/">Creative Commons Attribution-ShareAlike 2.5 License</a>.<br/> |
---|
169 | <!--/Creative Commons License--><!-- <rdf:RDF xmlns="http://web.resource.org/cc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> |
---|
170 | <Work rdf:about=""> |
---|
171 | <license rdf:resource="http://creativecommons.org/licenses/by-sa/2.5/" /> |
---|
172 | <dc:type rdf:resource="http://purl.org/dc/dcmitype/Text" /> |
---|
173 | </Work> |
---|
174 | <License rdf:about="http://creativecommons.org/licenses/by-sa/2.5/"><permits rdf:resource="http://web.resource.org/cc/Reproduction"/><permits rdf:resource="http://web.resource.org/cc/Distribution"/><requires rdf:resource="http://web.resource.org/cc/Notice"/><requires rdf:resource="http://web.resource.org/cc/Attribution"/><permits rdf:resource="http://web.resource.org/cc/DerivativeWorks"/><requires rdf:resource="http://web.resource.org/cc/ShareAlike"/></License></rdf:RDF> --> |
---|
175 | |
---|
176 | Last modified Sun Mar 12 14:37:40 2006 |
---|
177 | </p> |
---|
178 | </body> |
---|
179 | </html> |
---|