<!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>mrpt::opengl::CPolyhedron::TPolyhedronFace Struct Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> <link href="tabs.css" rel="stylesheet" type="text/css"> </head><body> <div align="left"><a href="http://www.mrpt.org/">Main MRPT website</a> > <b>C++ reference</b> </div> <div align="right"> <a href="index.html"><img border="0" src="mrpt_logo.png" alt="MRPT logo"></a> </div> <!-- Generated by Doxygen 1.7.5 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <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="modules.html"><span>Modules</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <div class="left"> <form id="FSearchBox" action="search.php" method="get"> <img id="MSearchSelect" src="search/mag.png" alt=""/> <input type="text" id="MSearchField" name="query" value="Search" size="20" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)"/> </form> </div><div class="right"></div> </div> </li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="inherits.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="namespacemrpt.html">mrpt</a> </li> <li class="navelem"><a class="el" href="namespacemrpt_1_1opengl.html">opengl</a> </li> <li class="navelem"><a class="el" href="classmrpt_1_1opengl_1_1_c_polyhedron.html">CPolyhedron</a> </li> <li class="navelem"><a class="el" href="structmrpt_1_1opengl_1_1_c_polyhedron_1_1_t_polyhedron_face.html">TPolyhedronFace</a> </li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> | <a href="#pub-attribs">Public Attributes</a> </div> <div class="headertitle"> <div class="title">mrpt::opengl::CPolyhedron::TPolyhedronFace Struct Reference</div> </div> </div> <div class="contents"> <!-- doxytag: class="mrpt::opengl::CPolyhedron::TPolyhedronFace" --><hr/><a name="details" id="details"></a><h2>Detailed Description</h2> <div class="textblock"><p>Struct used to store a polyhedron face. </p> <p>Consists on a set of vertex indices and a normal vector. </p> </div> <p><code>#include <<a class="el" href="_c_polyhedron_8h_source.html">mrpt/opengl/CPolyhedron.h</a>></code></p> <p><a href="structmrpt_1_1opengl_1_1_c_polyhedron_1_1_t_polyhedron_face-members.html">List of all members.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="structmrpt_1_1opengl_1_1_c_polyhedron_1_1_t_polyhedron_face.html#a3967e837c81d2073d32821d5b4b1eb86">TPolyhedronFace</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Fast default constructor. <a href="#a3967e837c81d2073d32821d5b4b1eb86"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="structmrpt_1_1opengl_1_1_c_polyhedron_1_1_t_polyhedron_face.html#a7ddc8da44af779d608e725a7b5ab28c4">~TPolyhedronFace</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#a7ddc8da44af779d608e725a7b5ab28c4"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="structmrpt_1_1opengl_1_1_c_polyhedron_1_1_t_polyhedron_face.html#a190ef9f4abbe320aaaf4a96cbb027cad">area</a> (const <a class="el" href="classstd_1_1vector.html">vector</a>< <a class="el" href="structmrpt_1_1math_1_1_t_point3_d.html">TPoint3D</a> > &<a class="el" href="structmrpt_1_1opengl_1_1_c_polyhedron_1_1_t_polyhedron_face.html#a978b01f5669f5dc07bd1a6ec20136edf">vertices</a>) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Given a set of vertices, computes the area of this face. <a href="#a190ef9f4abbe320aaaf4a96cbb027cad"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="structmrpt_1_1opengl_1_1_c_polyhedron_1_1_t_polyhedron_face.html#a58da20967211f64371f4054851551b89">getCenter</a> (const <a class="el" href="classstd_1_1vector.html">vector</a>< <a class="el" href="structmrpt_1_1math_1_1_t_point3_d.html">TPoint3D</a> > &<a class="el" href="structmrpt_1_1opengl_1_1_c_polyhedron_1_1_t_polyhedron_face.html#a978b01f5669f5dc07bd1a6ec20136edf">vertices</a>, <a class="el" href="structmrpt_1_1math_1_1_t_point3_d.html">TPoint3D</a> &p) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Given a set of vertices, get this face's center. <a href="#a58da20967211f64371f4054851551b89"></a><br/></td></tr> <tr><td colspan="2"><h2><a name="pub-attribs"></a> Public Attributes</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classstd_1_1vector.html">vector</a>< uint32_t > </td><td class="memItemRight" valign="bottom"><a class="el" href="structmrpt_1_1opengl_1_1_c_polyhedron_1_1_t_polyhedron_face.html#a978b01f5669f5dc07bd1a6ec20136edf">vertices</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Vector of indices to the vertex list. <a href="#a978b01f5669f5dc07bd1a6ec20136edf"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="structmrpt_1_1opengl_1_1_c_polyhedron_1_1_t_polyhedron_face.html#a88eee1fb98696e877289fd97576d882e">normal</a> [3]</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Normal vector. <a href="#a88eee1fb98696e877289fd97576d882e"></a><br/></td></tr> </table> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="a3967e837c81d2073d32821d5b4b1eb86"></a><!-- doxytag: member="mrpt::opengl::CPolyhedron::TPolyhedronFace::TPolyhedronFace" ref="a3967e837c81d2073d32821d5b4b1eb86" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">mrpt::opengl::CPolyhedron::TPolyhedronFace::TPolyhedronFace </td> <td>(</td> <td class="paramname"></td><td>)</td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Fast default constructor. </p> <p>Initializes to garbage. </p> <p>Definition at line <a class="el" href="_c_polyhedron_8h_source.html#l00108">108</a> of file <a class="el" href="_c_polyhedron_8h_source.html">CPolyhedron.h</a>.</p> </div> </div> <a class="anchor" id="a7ddc8da44af779d608e725a7b5ab28c4"></a><!-- doxytag: member="mrpt::opengl::CPolyhedron::TPolyhedronFace::~TPolyhedronFace" ref="a7ddc8da44af779d608e725a7b5ab28c4" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">mrpt::opengl::CPolyhedron::TPolyhedronFace::~TPolyhedronFace </td> <td>(</td> <td class="paramname"></td><td>)</td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Destructor. </p> <p>Definition at line <a class="el" href="_c_polyhedron_8h_source.html#l00112">112</a> of file <a class="el" href="_c_polyhedron_8h_source.html">CPolyhedron.h</a>.</p> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a190ef9f4abbe320aaaf4a96cbb027cad"></a><!-- doxytag: member="mrpt::opengl::CPolyhedron::TPolyhedronFace::area" ref="a190ef9f4abbe320aaaf4a96cbb027cad" args="(const vector< TPoint3D > &vertices) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">double mrpt::opengl::CPolyhedron::TPolyhedronFace::area </td> <td>(</td> <td class="paramtype">const <a class="el" href="classstd_1_1vector.html">vector</a>< <a class="el" href="structmrpt_1_1math_1_1_t_point3_d.html">TPoint3D</a> > & </td> <td class="paramname"><em>vertices</em></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Given a set of vertices, computes the area of this face. </p> </div> </div> <a class="anchor" id="a58da20967211f64371f4054851551b89"></a><!-- doxytag: member="mrpt::opengl::CPolyhedron::TPolyhedronFace::getCenter" ref="a58da20967211f64371f4054851551b89" args="(const vector< TPoint3D > &vertices, TPoint3D &p) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void mrpt::opengl::CPolyhedron::TPolyhedronFace::getCenter </td> <td>(</td> <td class="paramtype">const <a class="el" href="classstd_1_1vector.html">vector</a>< <a class="el" href="structmrpt_1_1math_1_1_t_point3_d.html">TPoint3D</a> > & </td> <td class="paramname"><em>vertices</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="structmrpt_1_1math_1_1_t_point3_d.html">TPoint3D</a> & </td> <td class="paramname"><em>p</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Given a set of vertices, get this face's center. </p> </div> </div> <hr/><h2>Member Data Documentation</h2> <a class="anchor" id="a88eee1fb98696e877289fd97576d882e"></a><!-- doxytag: member="mrpt::opengl::CPolyhedron::TPolyhedronFace::normal" ref="a88eee1fb98696e877289fd97576d882e" args="[3]" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">double <a class="el" href="structmrpt_1_1opengl_1_1_c_polyhedron_1_1_t_polyhedron_face.html#a88eee1fb98696e877289fd97576d882e">mrpt::opengl::CPolyhedron::TPolyhedronFace::normal</a>[3]</td> </tr> </table> </div> <div class="memdoc"> <p>Normal vector. </p> <p>Definition at line <a class="el" href="_c_polyhedron_8h_source.html#l00104">104</a> of file <a class="el" href="_c_polyhedron_8h_source.html">CPolyhedron.h</a>.</p> </div> </div> <a class="anchor" id="a978b01f5669f5dc07bd1a6ec20136edf"></a><!-- doxytag: member="mrpt::opengl::CPolyhedron::TPolyhedronFace::vertices" ref="a978b01f5669f5dc07bd1a6ec20136edf" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classstd_1_1vector.html">vector</a><uint32_t> <a class="el" href="structmrpt_1_1opengl_1_1_c_polyhedron_1_1_t_polyhedron_face.html#a978b01f5669f5dc07bd1a6ec20136edf">mrpt::opengl::CPolyhedron::TPolyhedronFace::vertices</a></td> </tr> </table> </div> <div class="memdoc"> <p>Vector of indices to the vertex list. </p> <p>Definition at line <a class="el" href="_c_polyhedron_8h_source.html#l00100">100</a> of file <a class="el" href="_c_polyhedron_8h_source.html">CPolyhedron.h</a>.</p> <p>Referenced by <a class="el" href="_c_polyhedron_8h_source.html#l00156">mrpt::opengl::CPolyhedron::Create()</a>.</p> </div> </div> </div> <br><hr><br> <table border="0" width="100%"> <tr> <td> Page generated by <a href="http://www.doxygen.org" target="_blank">Doxygen 1.7.5</a> for MRPT 0.9.5 SVN: at Sun Sep 25 17:20:18 UTC 2011</td><td></td> <td width="100"> </td> <td width="150"> </td></tr> </table> </body></html>