#include <source/apputils/embedded_boundary/EmbeddedBoundaryShapePolygon.h>
Inheritance diagram for SAMRAI::appu::EmbeddedBoundaryShapePolygon< DIM >:
Public Member Functions | |
EmbeddedBoundaryShapePolygon (const string &object_name, tbox::Pointer< tbox::Database > input_db) | |
~EmbeddedBoundaryShapePolygon () | |
bool | isInside (const double *xyz) const |
void | isInside (const int *nx, const double *dx, const double *origin, int *inout) const |
void | printClassData (ostream &os) const |
The user must specify at least three coordinates that define the vertices the poly. If the problem is 3D, a height must also be specified. An example input entry would look like:
* Polygon1{ * type = "POLYGON" * coords_1 = 1.0 , 1.0 * coords_2 = 2.0 , 1.0 * coords_3 = 2.0 , 2.0 * coords_4 = 1.0 , 2.0 * height = 8.0 * } *
|
|
|
The destructor does nothing. |
|
Concrete implementation of the isInside() method defined by the EmbeddedBoundaryShapeX base class. This method indicates whether the supplied xyz coordinates are inside or outside of the polygon.
Reimplemented from SAMRAI::appu::EmbeddedBoundaryShape< DIM >. |
|
Concrete implementation of the isInside() method defined by the EmbeddedBoundaryShapeX base class. This method indicates whether the array of xyz coordinates are inside or outside of the polygon.
Reimplemented from SAMRAI::appu::EmbeddedBoundaryShape< DIM >. |
|
Dump data to supplied stream. Implements SAMRAI::appu::EmbeddedBoundaryShape< DIM >. |