<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>VTK: dox/Graphics/vtkQuadricClustering.h Source File</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> <link href="tabs.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.5.6 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li><a href="classes.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> </ul> </div> <h1>dox/Graphics/vtkQuadricClustering.h</h1><a href="a02632.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*=========================================================================</span> <a name="l00002"></a>00002 <span class="comment"></span> <a name="l00003"></a>00003 <span class="comment"> Program: Visualization Toolkit</span> <a name="l00004"></a>00004 <span class="comment"> Module: $RCSfile: vtkQuadricClustering.h,v $</span> <a name="l00005"></a>00005 <span class="comment"></span> <a name="l00006"></a>00006 <span class="comment"> Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen</span> <a name="l00007"></a>00007 <span class="comment"> All rights reserved.</span> <a name="l00008"></a>00008 <span class="comment"> See Copyright.txt or http://www.kitware.com/Copyright.htm for details.</span> <a name="l00009"></a>00009 <span class="comment"></span> <a name="l00010"></a>00010 <span class="comment"> This software is distributed WITHOUT ANY WARRANTY; without even</span> <a name="l00011"></a>00011 <span class="comment"> the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR</span> <a name="l00012"></a>00012 <span class="comment"> PURPOSE. See the above copyright notice for more information.</span> <a name="l00013"></a>00013 <span class="comment"></span> <a name="l00014"></a>00014 <span class="comment">=========================================================================*/</span> <a name="l00087"></a>00087 <span class="preprocessor">#ifndef __vtkQuadricClustering_h</span> <a name="l00088"></a>00088 <span class="preprocessor"></span><span class="preprocessor">#define __vtkQuadricClustering_h</span> <a name="l00089"></a>00089 <span class="preprocessor"></span> <a name="l00090"></a>00090 <span class="preprocessor">#include "<a class="code" href="a02331.html">vtkPolyDataAlgorithm.h</a>"</span> <a name="l00091"></a>00091 <a name="l00092"></a>00092 <span class="keyword">class </span><a class="code" href="a00242.html" title="object to represent cell connectivity">vtkCellArray</a>; <a name="l00093"></a>00093 <span class="keyword">class </span><a class="code" href="a00536.html" title="extract boundary, non-manifold, and/or sharp edges from polygonal data">vtkFeatureEdges</a>; <a name="l00094"></a>00094 <span class="keyword">class </span><a class="code" href="a01250.html" title="represent and manipulate 3D points">vtkPoints</a>; <a name="l00095"></a>00095 <span class="keyword">class </span>vtkCellSet; <a name="l00096"></a>00096 <a name="l00097"></a>00097 <a name="l00098"></a><a class="code" href="a01444.html">00098</a> <span class="keyword">class </span><a class="code" href="a02170.html#c3c1ffe2fe47b9b70ba90182b7860cce">VTK_GRAPHICS_EXPORT</a> <a class="code" href="a01444.html" title="reduce the number of triangles in a mesh">vtkQuadricClustering</a> : <span class="keyword">public</span> <a class="code" href="a01261.html" title="Superclass for algorithms that produce only polydata as output.">vtkPolyDataAlgorithm</a> <a name="l00099"></a>00099 { <a name="l00100"></a>00100 <span class="keyword">public</span>: <a name="l00102"></a>00102 <a name="l00103"></a><a class="code" href="a01444.html#2a7475792cade28434e2c5f34908eb19">00103</a> vtkTypeRevisionMacro(<a class="code" href="a01444.html" title="reduce the number of triangles in a mesh">vtkQuadricClustering</a>, <a class="code" href="a01261.html" title="Superclass for algorithms that produce only polydata as output.">vtkPolyDataAlgorithm</a>); <a name="l00104"></a>00104 <span class="keywordtype">void</span> <a class="code" href="a01261.html#e6d59a63261b0c56f8f473984ae0e1b6">PrintSelf</a>(ostream& os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent); <a name="l00105"></a>00105 <span class="keyword">static</span> <a class="code" href="a01444.html" title="reduce the number of triangles in a mesh">vtkQuadricClustering</a> *<a class="code" href="a01261.html#cf785ac526132296ff652c636f713b5e">New</a>(); <a name="l00107"></a>00107 <a name="l00109"></a>00109 <a name="l00114"></a>00114 <span class="keywordtype">void</span> SetNumberOfXDivisions(<span class="keywordtype">int</span> num); <a name="l00115"></a>00115 <span class="keywordtype">void</span> SetNumberOfYDivisions(<span class="keywordtype">int</span> num); <a name="l00116"></a>00116 <span class="keywordtype">void</span> SetNumberOfZDivisions(<span class="keywordtype">int</span> num); <a name="l00117"></a>00117 vtkGetMacro(NumberOfXDivisions, <span class="keywordtype">int</span>); <a name="l00118"></a>00118 vtkGetMacro(NumberOfYDivisions, <span class="keywordtype">int</span>); <a name="l00119"></a>00119 vtkGetMacro(NumberOfZDivisions, <span class="keywordtype">int</span>); <a name="l00120"></a><a class="code" href="a01444.html#7e098ad01ba82663ce4965a1bbb4c0bb">00120</a> <span class="keywordtype">void</span> SetNumberOfDivisions(<span class="keywordtype">int</span> div[3]) <a name="l00121"></a>00121 { this->SetNumberOfDivisions(div[0], div[1], div[2]); } <a name="l00122"></a>00122 <span class="keywordtype">void</span> SetNumberOfDivisions(<span class="keywordtype">int</span> div0, <span class="keywordtype">int</span> div1, <span class="keywordtype">int</span> div2); <a name="l00123"></a>00123 <span class="keywordtype">int</span> *GetNumberOfDivisions(); <a name="l00124"></a>00124 <span class="keywordtype">void</span> GetNumberOfDivisions(<span class="keywordtype">int</span> div[3]); <a name="l00126"></a>00126 <a name="l00128"></a>00128 <a name="l00131"></a>00131 vtkSetMacro(AutoAdjustNumberOfDivisions,<span class="keywordtype">int</span>); <a name="l00132"></a>00132 vtkGetMacro(AutoAdjustNumberOfDivisions,<span class="keywordtype">int</span>); <a name="l00133"></a>00133 vtkBooleanMacro(AutoAdjustNumberOfDivisions,<span class="keywordtype">int</span>); <a name="l00135"></a>00135 <a name="l00137"></a>00137 <a name="l00141"></a>00141 <span class="keywordtype">void</span> SetDivisionOrigin(<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y, <span class="keywordtype">double</span> z); <a name="l00142"></a><a class="code" href="a01444.html#6fe6d816c684219111740edd60c3c9d9">00142</a> <span class="keywordtype">void</span> SetDivisionOrigin(<span class="keywordtype">double</span> o[3]) <a name="l00143"></a>00143 {this->SetDivisionOrigin(o[0],o[1],o[2]);} <a name="l00144"></a>00144 vtkGetVector3Macro(DivisionOrigin, <span class="keywordtype">double</span>); <a name="l00145"></a>00145 <span class="keywordtype">void</span> SetDivisionSpacing(<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y, <span class="keywordtype">double</span> z); <a name="l00146"></a><a class="code" href="a01444.html#4caa33f1fc78c5ce1c88add3906a4610">00146</a> <span class="keywordtype">void</span> SetDivisionSpacing(<span class="keywordtype">double</span> s[3]) <a name="l00147"></a>00147 {this->SetDivisionSpacing(s[0],s[1],s[2]);} <a name="l00148"></a>00148 vtkGetVector3Macro(DivisionSpacing, <span class="keywordtype">double</span>); <a name="l00150"></a>00150 <a name="l00152"></a>00152 <a name="l00158"></a>00158 vtkSetMacro(UseInputPoints, <span class="keywordtype">int</span>); <a name="l00159"></a>00159 vtkGetMacro(UseInputPoints, <span class="keywordtype">int</span>); <a name="l00160"></a>00160 vtkBooleanMacro(UseInputPoints, <span class="keywordtype">int</span>); <a name="l00162"></a>00162 <a name="l00164"></a>00164 <a name="l00168"></a>00168 vtkSetMacro(UseFeatureEdges, <span class="keywordtype">int</span>); <a name="l00169"></a>00169 vtkGetMacro(UseFeatureEdges, <span class="keywordtype">int</span>); <a name="l00170"></a>00170 vtkBooleanMacro(UseFeatureEdges, <span class="keywordtype">int</span>); <a name="l00171"></a><a class="code" href="a01444.html#321dc697078dc6d840766cdfb56f6c9b">00171</a> <a class="code" href="a00536.html" title="extract boundary, non-manifold, and/or sharp edges from polygonal data">vtkFeatureEdges</a> *GetFeatureEdges() {<span class="keywordflow">return</span> this->FeatureEdges;} <a name="l00173"></a>00173 <a name="l00175"></a>00175 <a name="l00180"></a>00180 vtkSetMacro(UseFeaturePoints, <span class="keywordtype">int</span>); <a name="l00181"></a>00181 vtkGetMacro(UseFeaturePoints, <span class="keywordtype">int</span>); <a name="l00182"></a>00182 vtkBooleanMacro(UseFeaturePoints, <span class="keywordtype">int</span>); <a name="l00184"></a>00184 <a name="l00186"></a>00186 <a name="l00188"></a>00188 vtkSetClampMacro(FeaturePointsAngle, <span class="keywordtype">double</span>, 0.0, 180.0); <a name="l00189"></a>00189 vtkGetMacro(FeaturePointsAngle, <span class="keywordtype">double</span>); <a name="l00191"></a>00191 <a name="l00193"></a>00193 <a name="l00197"></a>00197 vtkSetMacro(UseInternalTriangles, <span class="keywordtype">int</span>); <a name="l00198"></a>00198 vtkGetMacro(UseInternalTriangles, <span class="keywordtype">int</span>); <a name="l00199"></a>00199 vtkBooleanMacro(UseInternalTriangles, <span class="keywordtype">int</span>); <a name="l00201"></a>00201 <a name="l00203"></a>00203 <a name="l00207"></a>00207 <span class="keywordtype">void</span> StartAppend(<span class="keywordtype">double</span> *bounds); <a name="l00208"></a><a class="code" href="a01444.html#a2ba62c8375fad6c10276c5d449de3e5">00208</a> <span class="keywordtype">void</span> StartAppend(<span class="keywordtype">double</span> x0,<span class="keywordtype">double</span> x1,<span class="keywordtype">double</span> y0,<span class="keywordtype">double</span> y1,<span class="keywordtype">double</span> z0,<span class="keywordtype">double</span> z1) <a name="l00209"></a>00209 {<span class="keywordtype">double</span> b[6]; b[0]=x0; b[1]=x1; b[2]=y0; b[3]=y1; b[4]=z0; b[5]=z1; <a name="l00210"></a>00210 this->StartAppend(b);} <a name="l00211"></a>00211 <span class="keywordtype">void</span> Append(<a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *piece); <a name="l00212"></a>00212 <span class="keywordtype">void</span> EndAppend(); <a name="l00214"></a>00214 <a name="l00216"></a>00216 <a name="l00220"></a>00220 vtkSetMacro(CopyCellData, <span class="keywordtype">int</span>); <a name="l00221"></a>00221 vtkGetMacro(CopyCellData, <span class="keywordtype">int</span>); <a name="l00222"></a>00222 vtkBooleanMacro(CopyCellData, <span class="keywordtype">int</span>); <a name="l00224"></a>00224 <a name="l00226"></a>00226 <a name="l00230"></a>00230 vtkSetMacro(PreventDuplicateCells,<span class="keywordtype">int</span>); <a name="l00231"></a>00231 vtkGetMacro(PreventDuplicateCells,<span class="keywordtype">int</span>); <a name="l00232"></a>00232 vtkBooleanMacro(PreventDuplicateCells,<span class="keywordtype">int</span>); <a name="l00234"></a>00234 <a name="l00235"></a>00235 <span class="keyword">protected</span>: <a name="l00236"></a>00236 <a class="code" href="a01444.html" title="reduce the number of triangles in a mesh">vtkQuadricClustering</a>(); <a name="l00237"></a>00237 ~<a class="code" href="a01444.html" title="reduce the number of triangles in a mesh">vtkQuadricClustering</a>(); <a name="l00238"></a>00238 <a name="l00239"></a>00239 <span class="keywordtype">int</span> <a class="code" href="a01261.html#6b5a43ab1f9bbcb368c7dc83e4afe068">RequestData</a>(<a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a> *, <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> **, <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> *); <a name="l00240"></a>00240 <span class="keywordtype">int</span> <a class="code" href="a01261.html#a9084b97ab9c0c8c76e490fa9776a832">FillInputPortInformation</a>(<span class="keywordtype">int</span>, <a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a> *); <a name="l00241"></a>00241 <a name="l00243"></a>00243 <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> HashPoint(<span class="keywordtype">double</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d21006fc9b75c5a0835cfad2ef5d44379a0b">point</a>[3]); <a name="l00244"></a>00244 <a name="l00246"></a>00246 <a name="l00247"></a>00247 <span class="keywordtype">void</span> ComputeRepresentativePoint(<span class="keywordtype">double</span> quadric[9], <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> binId, <a name="l00248"></a>00248 <span class="keywordtype">double</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d21006fc9b75c5a0835cfad2ef5d44379a0b">point</a>[3]); <a name="l00250"></a>00250 <a name="l00252"></a>00252 <a name="l00254"></a>00254 <span class="keywordtype">void</span> AddPolygons(<a class="code" href="a00242.html" title="object to represent cell connectivity">vtkCellArray</a> *polys, <a class="code" href="a01250.html" title="represent and manipulate 3D points">vtkPoints</a> *<a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2100fd9718c29b22570d5b02fa5c8de94f7">points</a>, <span class="keywordtype">int</span> geometryFlag, <a name="l00255"></a>00255 <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *input, <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *output); <a name="l00256"></a>00256 <span class="keywordtype">void</span> AddStrips(<a class="code" href="a00242.html" title="object to represent cell connectivity">vtkCellArray</a> *strips, <a class="code" href="a01250.html" title="represent and manipulate 3D points">vtkPoints</a> *<a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2100fd9718c29b22570d5b02fa5c8de94f7">points</a>, <span class="keywordtype">int</span> geometryFlag, <a name="l00257"></a>00257 <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *input, <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *output); <a name="l00258"></a>00258 <span class="keywordtype">void</span> AddTriangle(<a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> *binIds, <span class="keywordtype">double</span> *pt0, <span class="keywordtype">double</span> *pt1, <span class="keywordtype">double</span> *pt2, <a name="l00259"></a>00259 <span class="keywordtype">int</span> geometeryFlag, <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *input, <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *output); <a name="l00261"></a>00261 <a name="l00263"></a>00263 <a name="l00265"></a>00265 <span class="keywordtype">void</span> AddEdges(<a class="code" href="a00242.html" title="object to represent cell connectivity">vtkCellArray</a> *<a class="code" href="a02995.html#f2e7c5aa065ddd4bd73c80382b944f78">edges</a>, <a class="code" href="a01250.html" title="represent and manipulate 3D points">vtkPoints</a> *<a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2100fd9718c29b22570d5b02fa5c8de94f7">points</a>, <a name="l00266"></a>00266 <span class="keywordtype">int</span> geometryFlag, <a name="l00267"></a>00267 <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *input, <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *output); <a name="l00268"></a>00268 <span class="keywordtype">void</span> AddEdge(<a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> *binIds, <span class="keywordtype">double</span> *pt0, <span class="keywordtype">double</span> *pt1, <span class="keywordtype">int</span> geometeryFlag, <a name="l00269"></a>00269 <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *input, <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *output); <a name="l00271"></a>00271 <a name="l00273"></a>00273 <a name="l00275"></a>00275 <span class="keywordtype">void</span> AddVertices(<a class="code" href="a00242.html" title="object to represent cell connectivity">vtkCellArray</a> *verts, <a class="code" href="a01250.html" title="represent and manipulate 3D points">vtkPoints</a> *<a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2100fd9718c29b22570d5b02fa5c8de94f7">points</a>, <span class="keywordtype">int</span> geometryFlag, <a name="l00276"></a>00276 <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *input, <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *output); <a name="l00277"></a>00277 <span class="keywordtype">void</span> AddVertex(<a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> binId, <span class="keywordtype">double</span> *pt, <span class="keywordtype">int</span> geometryFlag, <a name="l00278"></a>00278 <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *input, <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *output); <a name="l00280"></a>00280 <a name="l00282"></a>00282 <span class="keywordtype">void</span> InitializeQuadric(<span class="keywordtype">double</span> quadric[9]); <a name="l00283"></a>00283 <a name="l00285"></a>00285 <span class="keywordtype">void</span> AddQuadric(<a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> binId, <span class="keywordtype">double</span> quadric[9]); <a name="l00286"></a>00286 <a name="l00291"></a>00291 <span class="keywordtype">void</span> FindFeaturePoints(<a class="code" href="a00242.html" title="object to represent cell connectivity">vtkCellArray</a> *<a class="code" href="a02995.html#f2e7c5aa065ddd4bd73c80382b944f78">edges</a>, <a class="code" href="a01250.html" title="represent and manipulate 3D points">vtkPoints</a> *edgePts, <span class="keywordtype">double</span> angle); <a name="l00292"></a>00292 <a name="l00294"></a>00294 <a name="l00296"></a>00296 <span class="keywordtype">void</span> EndAppendUsingPoints(<a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *input, <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *output); <a name="l00297"></a><a class="code" href="a01444.html#d32efecc15722a9b2dd7b097cacf652e">00297</a> <span class="keywordtype">int</span> UseInputPoints; <a name="l00299"></a>00299 <a name="l00302"></a>00302 <span class="keywordtype">void</span> EndAppendVertexGeometry(<a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *input, <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *output); <a name="l00303"></a>00303 <a name="l00304"></a>00304 <span class="comment">// Unfinished option to handle boundary edges differently.</span> <a name="l00305"></a>00305 <span class="keywordtype">void</span> AppendFeatureQuadrics(<a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *pd, <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *output); <a name="l00306"></a><a class="code" href="a01444.html#6e58627c79947b7443afe65d75963051">00306</a> <span class="keywordtype">int</span> UseFeatureEdges; <a name="l00307"></a><a class="code" href="a01444.html#b8a8c7889a221d7cafa3b1565597d050">00307</a> <span class="keywordtype">int</span> UseFeaturePoints; <a name="l00308"></a><a class="code" href="a01444.html#ef018e17a1840b234d4afbd3a1e8347b">00308</a> <span class="keywordtype">int</span> UseInternalTriangles; <a name="l00309"></a>00309 <a name="l00310"></a><a class="code" href="a01444.html#c850f3523418e7bdbb4599f2bb054d47">00310</a> <span class="keywordtype">int</span> NumberOfXDivisions; <a name="l00311"></a><a class="code" href="a01444.html#4b86f125fc93d05a0ae3559c03444754">00311</a> <span class="keywordtype">int</span> NumberOfYDivisions; <a name="l00312"></a><a class="code" href="a01444.html#fe77a0bd5013661837c21057f0b63c6e">00312</a> <span class="keywordtype">int</span> NumberOfZDivisions; <a name="l00313"></a>00313 <a name="l00314"></a>00314 <span class="comment">// Set this to eliminate duplicate cells</span> <a name="l00315"></a><a class="code" href="a01444.html#709650d3e2acaa54c23d29df39b0fcd3">00315</a> <span class="keywordtype">int</span> PreventDuplicateCells; <a name="l00316"></a><a class="code" href="a01444.html#cd0398406253e74a74f58c9876bfa08a">00316</a> vtkCellSet *CellSet; <span class="comment">//PIMPLd stl set for tracking inserted cells</span> <a name="l00317"></a><a class="code" href="a01444.html#97294df66babf9f2a204e086ac4e56d2">00317</a> <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> NumberOfBins; <a name="l00318"></a>00318 <a name="l00319"></a>00319 <span class="comment">// Used internally.</span> <a name="l00320"></a>00320 <span class="comment">// can be smaller than user values when input numb er of points is small.</span> <a name="l00321"></a><a class="code" href="a01444.html#54d3a507a9483169d8392ce3307f3050">00321</a> <span class="keywordtype">int</span> NumberOfDivisions[3]; <a name="l00322"></a>00322 <a name="l00323"></a>00323 <span class="comment">// Since there are two was of specifing the grid, we have this flag</span> <a name="l00324"></a>00324 <span class="comment">// to indicate which the user has set. When this flag is on, </span> <a name="l00325"></a>00325 <span class="comment">// the bin sizes are computed from the DivisionOrigin and DivisionSpacing. </span> <a name="l00326"></a><a class="code" href="a01444.html#7d367190833940c61f049dc129d410fa">00326</a> <span class="keywordtype">int</span> ComputeNumberOfDivisions; <a name="l00327"></a>00327 <a name="l00328"></a><a class="code" href="a01444.html#1cd5c9b1cab453809e86e313e862d03f">00328</a> <span class="keywordtype">double</span> DivisionOrigin[3]; <a name="l00329"></a><a class="code" href="a01444.html#91be55b3bb178e16eb759ec7a20c5807">00329</a> <span class="keywordtype">double</span> DivisionSpacing[3]; <a name="l00330"></a><a class="code" href="a01444.html#ad5537819148a749d31925905065933a">00330</a> <span class="keywordtype">int</span> AutoAdjustNumberOfDivisions; <a name="l00331"></a>00331 <a name="l00332"></a><a class="code" href="a01444.html#63271a482a990487e2afa92f7efabdf1">00332</a> <span class="keywordtype">double</span> Bounds[6]; <a name="l00333"></a><a class="code" href="a01444.html#c798e90b93e0142f0c725ad18af75d0f">00333</a> <span class="keywordtype">double</span> XBinSize; <a name="l00334"></a><a class="code" href="a01444.html#b5cb6ebfb33e300cb86022599e638099">00334</a> <span class="keywordtype">double</span> YBinSize; <a name="l00335"></a><a class="code" href="a01444.html#a2b9fa0a55fb6a71d2682b010ba816f9">00335</a> <span class="keywordtype">double</span> ZBinSize; <a name="l00336"></a><a class="code" href="a01444.html#d268aec8895f609507393bf0c428d176">00336</a> <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> SliceSize; <span class="comment">//eliminate one multiplication</span> <a name="l00337"></a>00337 <a name="l00338"></a>00338 <span class="comment">//BTX</span> <a name="l00339"></a><a class="code" href="a01445.html">00339</a> <span class="keyword">struct </span><a class="code" href="a01445.html">PointQuadric</a> <a name="l00340"></a>00340 { <a name="l00341"></a><a class="code" href="a01445.html#f1517eb4814daafe423aad520aca9e6b">00341</a> <a class="code" href="a01445.html">PointQuadric</a>():VertexId(-1),Dimension(255) {} <a name="l00342"></a>00342 <a name="l00343"></a><a class="code" href="a01445.html#59c28a7e02455332bb683703422c55ef">00343</a> <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> VertexId; <a name="l00344"></a>00344 <span class="comment">// Dimension is supposed to be a flag representing the dimension of the</span> <a name="l00345"></a>00345 <span class="comment">// cells contributing to the quadric. Lines: 1, Triangles: 2 (and points</span> <a name="l00346"></a>00346 <span class="comment">// 0 in the future?)</span> <a name="l00347"></a><a class="code" href="a01445.html#eabf9c2732cb4b0cc9aad3f1dd8d8f95">00347</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> Dimension; <a name="l00348"></a><a class="code" href="a01445.html#5fce92c0dbcf7485f905ac9c71437496">00348</a> <span class="keywordtype">double</span> Quadric[9]; <a name="l00349"></a>00349 }; <a name="l00350"></a>00350 <span class="comment">//ETX</span> <a name="l00351"></a>00351 <a name="l00352"></a><a class="code" href="a01444.html#e9d7df1f6adf7127a684348cd81d1112">00352</a> <a class="code" href="a01445.html">PointQuadric</a>* QuadricArray; <a name="l00353"></a><a class="code" href="a01444.html#dfe74137937b7d3415b27f366c981da5">00353</a> <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> NumberOfBinsUsed; <a name="l00354"></a>00354 <a name="l00355"></a>00355 <span class="comment">// Have to make these instance variables if we are going to allow</span> <a name="l00356"></a>00356 <span class="comment">// the algorithm to be driven by the Append methods.</span> <a name="l00357"></a><a class="code" href="a01444.html#113b003fe0f54436724cdf093c790804">00357</a> <a class="code" href="a00242.html" title="object to represent cell connectivity">vtkCellArray</a> *OutputTriangleArray; <a name="l00358"></a><a class="code" href="a01444.html#f37681260c7ed356b39ef98e33543823">00358</a> <a class="code" href="a00242.html" title="object to represent cell connectivity">vtkCellArray</a> *OutputLines; <a name="l00359"></a>00359 <a name="l00360"></a><a class="code" href="a01444.html#933f639ad5ab205face4ac4a35b35e67">00360</a> <a class="code" href="a00536.html" title="extract boundary, non-manifold, and/or sharp edges from polygonal data">vtkFeatureEdges</a> *FeatureEdges; <a name="l00361"></a><a class="code" href="a01444.html#7b7ed36ccbfb8d1f2148d161f28b164f">00361</a> <a class="code" href="a01250.html" title="represent and manipulate 3D points">vtkPoints</a> *FeaturePoints; <a name="l00362"></a><a class="code" href="a01444.html#299a8e51138470f1cd019307c6a2fc94">00362</a> <span class="keywordtype">double</span> FeaturePointsAngle; <a name="l00363"></a>00363 <a name="l00364"></a><a class="code" href="a01444.html#cb9c1614a5c15fde2e4b1ef860c8d1eb">00364</a> <span class="keywordtype">int</span> CopyCellData; <a name="l00365"></a><a class="code" href="a01444.html#871a60839c364a5e7062dfb07b6395f1">00365</a> <span class="keywordtype">int</span> InCellCount; <a name="l00366"></a><a class="code" href="a01444.html#012e1c52d60fff2895cc1e9ca2b5024f">00366</a> <span class="keywordtype">int</span> OutCellCount; <a name="l00367"></a>00367 <a name="l00368"></a>00368 <span class="keyword">private</span>: <a name="l00369"></a>00369 <a class="code" href="a01444.html" title="reduce the number of triangles in a mesh">vtkQuadricClustering</a>(<span class="keyword">const</span> <a class="code" href="a01444.html" title="reduce the number of triangles in a mesh">vtkQuadricClustering</a>&); <span class="comment">// Not implemented.</span> <a name="l00370"></a>00370 <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a01444.html" title="reduce the number of triangles in a mesh">vtkQuadricClustering</a>&); <span class="comment">// Not implemented.</span> <a name="l00371"></a>00371 }; <a name="l00372"></a>00372 <a name="l00373"></a>00373 <span class="preprocessor">#endif</span> </pre></div></div> <hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:28 2009 for VTK by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address> </body> </html>