<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>MPQC: implicit.h Source File</title> <link href="tabs.css" rel="stylesheet" type="text/css"> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.5.9 --> <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="annotated.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="files.html"><span>File List</span></a></li> </ul> </div> <h1>implicit.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <a name="l00002"></a>00002 <span class="preprocessor">#ifndef _math_isosurf_implicit_h</span> <a name="l00003"></a>00003 <span class="preprocessor"></span><span class="preprocessor">#define _math_isosurf_implicit_h</span> <a name="l00004"></a>00004 <span class="preprocessor"></span> <a name="l00005"></a>00005 <span class="keyword">typedef</span> <span class="keyword">struct </span>point { <span class="comment">/* a three-dimensional point */</span> <a name="l00006"></a>00006 <span class="keywordtype">double</span> x, y, z; <span class="comment">/* its coordinates */</span> <a name="l00007"></a>00007 } POINT; <a name="l00008"></a>00008 <a name="l00009"></a>00009 <span class="keyword">typedef</span> <span class="keyword">struct </span>vertex { <span class="comment">/* surface vertex */</span> <a name="l00010"></a>00010 POINT position, normal; <span class="comment">/* position and surface normal */</span> <a name="l00011"></a>00011 } VERTEX; <a name="l00012"></a>00012 <a name="l00013"></a>00013 <span class="keyword">typedef</span> <span class="keyword">struct </span>vertices { <span class="comment">/* list of vertices in polygonization */</span> <a name="l00014"></a>00014 <span class="keywordtype">int</span> count, max; <span class="comment">/* # vertices, max # allowed */</span> <a name="l00015"></a>00015 VERTEX *ptr; <span class="comment">/* dynamically allocated */</span> <a name="l00016"></a>00016 } VERTICES; <a name="l00017"></a>00017 <a name="l00018"></a>00018 <span class="preprocessor">#define TET 0 </span><span class="comment">/* use tetrahedral decomposition */</span> <a name="l00019"></a>00019 <span class="preprocessor">#define NOTET 1 </span><span class="comment">/* no tetrahedral decomposition */</span> <a name="l00020"></a>00020 <a name="l00021"></a>00021 <span class="keyword">extern</span> <span class="stringliteral">"C"</span> { <a name="l00022"></a>00022 <span class="keywordtype">char</span> * polygonize(<span class="keywordtype">double</span>(*function)(<span class="keywordtype">double</span>,<span class="keywordtype">double</span>,<span class="keywordtype">double</span>), <a name="l00023"></a>00023 <span class="keywordtype">double</span> size, <span class="keywordtype">int</span> bounds, <a name="l00024"></a>00024 <span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y, <span class="keywordtype">double</span> z, <a name="l00025"></a>00025 <span class="keywordtype">int</span>(*triproc)(<span class="keywordtype">int</span>,<span class="keywordtype">int</span>,<span class="keywordtype">int</span>,VERTICES), <span class="keywordtype">int</span> mode); <a name="l00026"></a>00026 } <a name="l00027"></a>00027 <a name="l00028"></a>00028 <span class="preprocessor">#endif</span> </pre></div></div> <hr> <address> <small> Generated at Wed Oct 14 14:12:09 2009 for <a href="http://www.mpqc.org">MPQC</a> 2.3.1 using the documentation package <a href="http://www.doxygen.org">Doxygen</a> 1.5.9. </small> </address> </body> </html>