$extrastylesheet
#include <plane.h>

Public Member Functions | |
| Plane () | |
| Plane (const Point &p, const Point &n) | |
| Plane (const Point &p0, const Point &p1, const Point &p2) | |
| Plane (const Plane &other_plane) | |
| ~Plane () | |
| void | create_from_point_normal (const Point &p, const Point &n) |
| void | create_from_three_points (const Point &p0, const Point &p1, const Point &p2) |
| void | xy_plane (const Real zpos=0.) |
| void | xz_plane (const Real ypos=0.) |
| void | yz_plane (const Real xpos=0.) |
| bool | above_surface (const Point &p) const |
| bool | below_surface (const Point &p) const |
| bool | on_surface (const Point &p) const |
| Point | closest_point (const Point &p) const |
| Point | unit_normal (const Point &p) const |
| const Point & | get_planar_point () const |
| virtual Point | surface_coords (const Point &world_coords) const |
| virtual Point | world_coords (const Point &surf_coords) const |
Private Member Functions | |
| const Point & | normal () const |
Private Attributes | |
| Point | _point |
| Point | _normal |
| libMesh::Plane::Plane | ( | const Point & | p, |
| const Point & | n | ||
| ) |
Constructs a plane containing point p with normal n.
Definition at line 38 of file plane.C.
References create_from_point_normal().
{
this->create_from_point_normal (p, n);
}
| libMesh::Plane::Plane | ( | const Point & | p0, |
| const Point & | p1, | ||
| const Point & | p2 | ||
| ) |
Constructs a plane containing the three points. The normal is determined in a counter-clockwise sense. See the create_from_three_points method for more details.
Definition at line 46 of file plane.C.
References create_from_three_points().
{
this->create_from_three_points (p0, p1, p2);
}
| libMesh::Plane::Plane | ( | const Plane & | other_plane | ) |
Copy-constructor.
Definition at line 55 of file plane.C.
References _normal, _point, and create_from_point_normal().
: Surface() { this->create_from_point_normal(other_plane._point, other_plane._normal); }
| bool libMesh::Plane::above_surface | ( | const Point & | p | ) | const [virtual] |
Implements libMesh::Surface.
Definition at line 127 of file plane.C.
References _point, normal(), and libMesh::Real.
Referenced by below_surface().
| bool libMesh::Plane::below_surface | ( | const Point & | p | ) | const [virtual] |
Implements libMesh::Surface.
Definition at line 144 of file plane.C.
References above_surface().
{
return ( !this->above_surface (p) );
}
| Point libMesh::Plane::closest_point | ( | const Point & | p | ) | const [virtual] |
Implements libMesh::Surface.
| void libMesh::Plane::create_from_point_normal | ( | const Point & | p, |
| const Point & | n | ||
| ) |
| void libMesh::Plane::create_from_three_points | ( | const Point & | p0, |
| const Point & | p1, | ||
| const Point & | p2 | ||
| ) |
Defines a plane intersecting the three points p0, p1, and p2. The normal is constructed in a counter-clockwise sense, i.e. (p1-p0)x(p2-p0);
Definition at line 78 of file plane.C.
References _normal, _point, libMesh::TypeVector< T >::cross(), and libMesh::TypeVector< T >::unit().
Referenced by Plane().
| const Point & libMesh::Plane::get_planar_point | ( | ) | const |
| const Point & libMesh::Plane::normal | ( | ) | const [inline, private] |
Returns the normal for the plane.
Definition at line 155 of file plane.h.
References _normal.
Referenced by above_surface(), closest_point(), and on_surface().
{
return _normal;
}
| bool libMesh::Plane::on_surface | ( | const Point & | p | ) | const [virtual] |
Implements libMesh::Surface.
Definition at line 151 of file plane.C.
References _point, std::abs(), normal(), and libMesh::Real.
| Point libMesh::Surface::surface_coords | ( | const Point & | world_coords | ) | const [inline, virtual, inherited] |
Point world_coords in the surface's coordinate system. world_coords is 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.
Definition at line 118 of file surface.h.
{
Point p (from_world_coords);
return p;
}
| Point libMesh::Plane::unit_normal | ( | const Point & | p | ) | const [virtual] |
Implements libMesh::Surface.
Definition at line 184 of file plane.C.
References _normal.
{
return _normal;
}
| Point libMesh::Surface::world_coords | ( | const Point & | surf_coords | ) | const [inline, virtual, inherited] |
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.
Definition at line 127 of file surface.h.
{
Point p (surf_coords);
return p;
}
| void libMesh::Plane::xy_plane | ( | const Real | zpos = 0. | ) |
| void libMesh::Plane::xz_plane | ( | const Real | ypos = 0. | ) |
| void libMesh::Plane::yz_plane | ( | const Real | xpos = 0. | ) |
Point libMesh::Plane::_normal [private] |
Definition at line 147 of file plane.h.
Referenced by create_from_point_normal(), create_from_three_points(), normal(), Plane(), unit_normal(), xy_plane(), xz_plane(), and yz_plane().
Point libMesh::Plane::_point [private] |
The plane is defined by a point and a normal.
Definition at line 146 of file plane.h.
Referenced by above_surface(), closest_point(), create_from_point_normal(), create_from_three_points(), get_planar_point(), on_surface(), Plane(), xy_plane(), xz_plane(), and yz_plane().