dune-grid-glue
2.3.0
|
Helper class that provides static methods to compute the projection and inverse projection of a point along some given directions. More...
#include <dune/grid-glue/common/projectionhelper.hh>
Static Public Member Functions | |
static bool | inverseProjection (const std::vector< WorldCoords > &corners, const std::vector< WorldCoords > &directions, const WorldCoords &target, LocalCoords &preImage, const T overlap=1e-1) |
Compute the inverse projection of a point onto some surface element where the projection is done across directions which are associated to corners of an surface element. More... | |
static bool | projection (const WorldCoords &corner, const WorldCoords &direction, const std::vector< WorldCoords > &targetCorners, LocalCoords &image, const T overlap=1e-1) |
Compute the projection of a point along a given direction into the convex hull of some target points. More... | |
Helper class that provides static methods to compute the projection and inverse projection of a point along some given directions.
|
inlinestatic |
Compute the inverse projection of a point onto some surface element where the projection is done across directions which are associated to corners of an surface element.
corners | The coordinates of the corners. |
directions | The directions along which the projection is done. |
target | The point whose inverse projection is computed. |
preImage | The pre-image of the target point in local coordinates of the surface element. |
overlap | The amount of overlap that is allowed, i.e. projection among the opposite direction is valid if the scaling is smaller than overlap. |
Referenced by Projection::ProjectionHelper< 2, 3, T >::inverseProjection(), and Projection::inverseProjection().
|
inlinestatic |
Compute the projection of a point along a given direction into the convex hull of some target points.
corner | The coordinates of the point that is projected. |
direction | The direction along which an intersection with the target surface element is searched. |
targetCorners | The corner coordinates of the target surface element. |
image | The projected corner in local coordinates of the target surface element. |
overlap | The amount of overlap that is allowed, i.e. projection among the opposite direction is valid if the scaling is smaller than overlap. |
Referenced by Projection::ProjectionHelper< 2, 3, T >::projection(), and Projection::projection().