Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members   Related Pages  

sc::Shape Class Reference

A Shape is a Volume represents an 3D solid. More...

#include <shape.h>

Inheritance diagram for sc::Shape:

Inheritance graph
[legend]
Collaboration diagram for sc::Shape:

Collaboration graph
[legend]
List of all members.

Public Methods

 Shape ()
 Shape (const Ref< KeyVal > &keyval)
virtual double distance_to_surface (const SCVector3 &r, SCVector3 *grad=0) const=0
virtual int is_outside (const SCVector3 &r) const
virtual ~Shape ()
void compute ()
 Recompute at least the results that have compute true and are not already computed. More...

void interpolate (const SCVector3 &p1, const SCVector3 &p2, double val, SCVector3 &result)
int value_implemented () const
 Information about the availability of values, gradients, and hessians.


Detailed Description

A Shape is a Volume represents an 3D solid.

The value of the Shape at each point in space is the distance to the surface. The distance is negative if the point is inside the solid. For Shape specializations that cannot compute the distance to the surface, the value will be 1.0 outside and -1.0 inside the solid.


Member Function Documentation

void sc::Shape::compute   [virtual]
 

Recompute at least the results that have compute true and are not already computed.

This should only be called by Result's members.

Implements sc::Volume.


The documentation for this class was generated from the following file:
Generated at Fri Jan 10 08:16:54 2003 for MPQC 2.1.3 using the documentation package Doxygen 1.2.14.