libMesh::Surface Class Reference
#include <surface.h>

Public Member Functions | |
| Surface () | |
| Surface (const Surface &) | |
| virtual | ~Surface () |
| virtual bool | above_surface (const Point &p) const =0 |
| virtual bool | below_surface (const Point &p) const =0 |
| virtual bool | on_surface (const Point &p) const =0 |
| virtual Point | closest_point (const Point &p) const =0 |
| virtual Point | unit_normal (const Point &p) const =0 |
| virtual Point | surface_coords (const Point &world_coords) const |
| virtual Point | world_coords (const Point &surf_coords) const |
Detailed Description
This class defines a surface. A surface is a two-dimensional object living in three-dimensional space. Examples of surfaces are planes, hollow spheres, hollow cylinders, etc... This is a generic base class that describes the useful functionality a surface will provide. Specific derived classes actually implement the functionality, so this class has pure virtual members.
Definition at line 45 of file surface.h.
Constructor & Destructor Documentation
| libMesh::Surface::Surface | ( | ) | [inline] |
| libMesh::Surface::Surface | ( | const Surface & | ) | [inline] |
| virtual libMesh::Surface::~Surface | ( | ) | [inline, virtual] |
Member Function Documentation
| virtual bool libMesh::Surface::above_surface | ( | const Point & | p | ) | const [pure virtual] |
- Returns:
- true if the point p is above the surface, false otherwise.
Implemented in libMesh::Plane, and libMesh::Sphere.
| virtual bool libMesh::Surface::below_surface | ( | const Point & | p | ) | const [pure virtual] |
- Returns:
- true if the point p is below the surface, false otherwise.
Implemented in libMesh::Plane, and libMesh::Sphere.
- Returns:
- the closest point on the surface to point p.
Implemented in libMesh::Plane, and libMesh::Sphere.
| virtual bool libMesh::Surface::on_surface | ( | const Point & | p | ) | const [pure virtual] |
- Returns:
- true if the point p is on the surface, false otherwise. Note that the definition of on the surface really means "very close" to account for roundoff error.
Implemented in libMesh::Plane, and libMesh::Sphere.
- Returns:
- the
Pointworld_coordsin the surface's coordinate system.world_coordsis in the world coordinate system. This method is not purely virtual, because there may be surfaces that do not have an own coordinate system. These simply do not have to overload this method.
Reimplemented in libMesh::Sphere.
- Returns:
- a unit vector normal to the surface at point p.
Implemented in libMesh::Plane, and libMesh::Sphere.
- Returns:
- the world (cartesian) coordinates for the surface coordinates
surf_coords. This method is not purely virtual, because there may be surfaces that do not have an own coordinate system. These simply do not have to overload this method.
Reimplemented in libMesh::Sphere.
The documentation for this class was generated from the following file:
Site Created By: libMesh Developers
Last modified: February 05 2013 19:55:39 UTC
Hosted By: