41 #ifndef DTK_BOXGEOMETRYIMPL_HPP 42 #define DTK_BOXGEOMETRYIMPL_HPP 46 #include <Teuchos_ArrayView.hpp> 47 #include <Teuchos_Tuple.hpp> 69 const int block_id,
const double x_min,
const double y_min,
70 const double z_min,
const double x_max,
const double y_max,
76 const Teuchos::Tuple<double, 6> &bounds );
91 void boundingBox( Teuchos::Tuple<double, 6> &bounds )
const override;
94 bool inBlock(
const int block_id )
const override;
97 bool onBoundary(
const int boundary_id )
const override;
102 return std::string(
"Basic Geometry BoxGeometry" );
106 void describe( Teuchos::FancyOStream &out,
107 const Teuchos::EVerbosityLevel verb_level )
const override;
110 double measure()
const override;
118 const Teuchos::ArrayView<const double> &point,
119 const Teuchos::ArrayView<double> &reference_point )
const override;
124 const Teuchos::ArrayView<const double>
125 &reference_point )
const override;
129 const Teuchos::ArrayView<const double> &reference_point,
130 const Teuchos::ArrayView<double> &point )
const override;
167 #endif // end DTK_BOXGEOMETRYIMPL_HPP int ownerRank() const override
Get the parallel rank that owns the entity.
BasicGeometryEntityImpl interface.
BasicGeometryEntityImpl declaration.
double measure() const override
Compute the measure of the box.
void describe(Teuchos::FancyOStream &out, const Teuchos::EVerbosityLevel verb_level) const override
Provide a verbose description of the object.
int physicalDimension() const override
Return the physical dimension of the entity.
void boundingBox(Teuchos::Tuple< double, 6 > &bounds) const override
Compute the bounding box around the box.
bool onBoundary(const int boundary_id) const override
Determine if an entity is on the boundary with the given id.
int topologicalDimension() const override
Return the topological dimension of the entity.
bool inBlock(const int block_id) const override
Determine if an entity is in the block with the given id.
EntityId id() const override
EntityImpl interface.
unsigned long int EntityId
Entity id type.
std::string description() const override
Provide a one line description of the object.
Axis-aligned Cartesian box container implementation.
void centroid(const Teuchos::ArrayView< double > ¢roid) const override
Get the centroid of the box.
bool checkPointInclusion(const double tolerance, const Teuchos::ArrayView< const double > &reference_point) const override
Determine if a reference point is in the parameterized space of an entity.
void mapToPhysicalFrame(const Teuchos::ArrayView< const double > &reference_point, const Teuchos::ArrayView< double > &point) const override
Map a reference point to the physical space of an entity.
bool mapToReferenceFrame(const Teuchos::ArrayView< const double > &point, const Teuchos::ArrayView< double > &reference_point) const override
Map a point to the reference space of an entity. Return the.
BoxGeometryImpl()
Default constructor.