<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><meta name="robots" content="noindex"> <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>sc::Shape class Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body bgcolor="#ffffff"> <!-- Generated by Doxygen 1.2.5 on Mon Oct 14 14:17:47 2002 --> <center> <a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="pages.html">Related Pages</a> </center> <hr><h1>sc::Shape Class Reference</h1>A <a class="el" href="class_sc__Shape.html">Shape</a> is a <a class="el" href="class_sc__Volume.html">Volume</a> represents an 3D solid. <a href="#_details">More...</a> <p> <code>#include <<a class="el" href="shape_h-source.html">shape.h</a>></code> <p> Inheritance diagram for sc::Shape<p><center><img src="class_sc__Shape_inherit_graph.gif" border="0" usemap="#sc::Shape_inherit_map" alt="Inheritance graph"></center> <map name="sc::Shape_inherit_map"> <area href="class_sc__ConnollyShape.html" shape="rect" coords="14,480,129,499"> <area href="class_sc__UnionShape.html" shape="rect" coords="770,480,866,499"> <area href="class_sc__Volume.html" shape="rect" coords="347,347,422,365"> <area href="class_sc__Function.html" shape="rect" coords="345,280,425,299"> <area href="class_sc__SavableState.html" shape="rect" coords="277,213,378,232"> <area href="class_sc__DescribedClass.html" shape="rect" coords="270,147,385,165"> <area href="class_sc__RefCount.html" shape="rect" coords="286,80,369,99"> <area href="class_sc__Identity.html" shape="rect" coords="291,13,363,32"> <area href="class_sc__Compute.html" shape="rect" coords="402,213,482,232"> <area href="class_sc__DiscreteConnollyShape.html" shape="rect" coords="739,547,897,565"> <area href="class_sc__VDWShape.html" shape="rect" coords="921,547,1017,565"> </map> <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for sc::Shape:<p><center><img src="class_sc__Shape_coll_graph.gif" border="0" usemap="#sc::Shape_coll_map" alt="Collaboration graph"></center> <map name="sc::Shape_coll_map"> <area href="class_sc__Volume.html" shape="rect" coords="307,499,382,518"> <area href="class_sc__Function.html" shape="rect" coords="305,430,385,449"> <area href="class_sc__SavableState.html" shape="rect" coords="37,347,138,366"> <area href="class_sc__DescribedClass.html" shape="rect" coords="14,262,129,281"> <area href="class_sc__RefCount.html" shape="rect" coords="21,179,103,198"> <area href="class_sc__Identity.html" shape="rect" coords="26,97,98,115"> <area href="class_sc__Compute.html" shape="rect" coords="205,347,285,366"> <area href="class_sc__Ref.html" shape="rect" coords="311,305,453,323"> <area href="class_sc__RefBase.html" shape="rect" coords="443,179,521,198"> <area href="class_sc__Ref.html" shape="rect" coords="419,262,545,281"> <area href="class_sc__Ref.html" shape="rect" coords="569,262,715,281"> <area href="class_sc__RefSCVector.html" shape="rect" coords="438,347,542,366"> <area href="class_sc__RefSCDimension.html" shape="rect" coords="573,347,698,366"> </map> <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="class_sc__Shape-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0> <tr><td colspan=2><br><h2>Public Methods</h2></td></tr> <tr><td nowrap align=right valign=top><a name="a0" doxytag="sc::Shape::Shape"></a> </td><td valign=bottom><b>Shape</b> ()</td></tr> <tr><td nowrap align=right valign=top><a name="a1" doxytag="sc::Shape::Shape"></a> </td><td valign=bottom><b>Shape</b> (const <a class="el" href="class_sc__Ref.html">Ref</a>< <a class="el" href="class_sc__KeyVal.html">KeyVal</a> > &keyval)</td></tr> <tr><td nowrap align=right valign=top><a name="a2" doxytag="sc::Shape::distance_to_surface"></a> virtual double </td><td valign=bottom><b>distance_to_surface</b> (const SCVector3 &r, SCVector3 *grad=0) const=0</td></tr> <tr><td nowrap align=right valign=top><a name="a3" doxytag="sc::Shape::is_outside"></a> virtual int </td><td valign=bottom><b>is_outside</b> (const SCVector3 &r) const</td></tr> <tr><td nowrap align=right valign=top><a name="a4" doxytag="sc::Shape::~Shape"></a> virtual </td><td valign=bottom><b>~Shape</b> ()</td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_sc__Shape.html#a5">compute</a> ()</td></tr> <tr><td> </td><td><font size=-1><em>Recompute at least the results that have compute true and are not already computed.</em> <a href="#a5">More...</a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top><a name="a6" doxytag="sc::Shape::interpolate"></a> void </td><td valign=bottom><b>interpolate</b> (const SCVector3 &p1, const SCVector3 &p2, double val, SCVector3 &result)</td></tr> <tr><td nowrap align=right valign=top><a name="a7" doxytag="sc::Shape::value_implemented"></a> int </td><td valign=bottom><a class="el" href="class_sc__Shape.html#a7">value_implemented</a> () const</td></tr> <tr><td> </td><td><font size=-1><em>Information about the availability of values, gradients, and hessians.</em></font><br><br></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> A <a class="el" href="class_sc__Shape.html">Shape</a> is a <a class="el" href="class_sc__Volume.html">Volume</a> represents an 3D solid. <p> The value of the <a class="el" href="class_sc__Shape.html">Shape</a> at each point in space is the distance to the surface. The distance is negative if the point is inside the solid. For <a class="el" href="class_sc__Shape.html">Shape</a> specializations that cannot compute the distance to the surface, the value will be 1.0 outside and -1.0 inside the solid. <p> <hr><h2>Member Function Documentation</h2> <a name="a5" doxytag="sc::Shape::compute"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td nowrap valign="top"><b> void sc::Shape::compute ( </b></td> <td valign="bottom"><b> )<code> [virtual]</code> </b></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Recompute at least the results that have compute true and are not already computed. <p> This should only be called by <a class="el" href="class_sc__Result.html">Result</a>'s members. <p> Reimplemented from <a class="el" href="class_sc__Volume.html#b1">sc::Volume</a>. </td> </tr> </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="shape_h-source.html">shape.h</a></ul> <hr> <address> <small> Generated at Mon Oct 14 14:17:48 2002 for <a href="http://aros.ca.sandia.gov/~cljanss/mpqc">MPQC</a> 2.1.2 using the documentation package <a href="http://www.stack.nl/~dimitri/doxygen/index.html">Doxygen</a> 1.2.5. </small> </address> </body> </html>