HArD::Core3D
Hybrid Arbitrary Degree::Core 3D - Library to implement 3D schemes with vertex, edge, face and cell polynomials as unknowns
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Hull Struct Reference

Structure to define a flat convex hull (nodes and normal) and check if a mesh entity is inside. More...

#include <BoundaryConditions.hpp>

Collaboration diagram for Hull:
Collaboration graph
[legend]

Public Member Functions

 Hull (const std::vector< VectorRd > &nodes, const VectorRd &normal)
 Constructor.
 
bool is_in (const VectorRd &x) const
 Check if a point is in the convex hull.
 
bool is_in (const Vertex &V) const
 Check if a vertex is in the convex hull.
 
template<typename MeshEntity >
bool is_in (const MeshEntity &E) const
 Check if a mesh entity is in the convex hull.
 

Public Attributes

std::vector< VectorRd > nodes
 Nodes defining the planar convex hull.
 
VectorRd normal
 Normal to the planar convex hull.
 
VectorRd center
 "Center" of the hull
 
VectorRd apex
 A point outside the plane of the convex hull (in the direction of normal)
 

Detailed Description

Structure to define a flat convex hull (nodes and normal) and check if a mesh entity is inside.

Constructor & Destructor Documentation

◆ Hull()

Hull::Hull ( const std::vector< VectorRd > &  nodes,
const VectorRd &  normal 
)
inline

Constructor.

Member Function Documentation

◆ is_in() [1/3]

template<typename MeshEntity >
bool Hull::is_in ( const MeshEntity E) const
inline

Check if a mesh entity is in the convex hull.

◆ is_in() [2/3]

bool Hull::is_in ( const VectorRd &  x) const

Check if a point is in the convex hull.

◆ is_in() [3/3]

bool Hull::is_in ( const Vertex &  V) const
inline

Check if a vertex is in the convex hull.

Member Data Documentation

◆ apex

VectorRd Hull::apex

A point outside the plane of the convex hull (in the direction of normal)

◆ center

VectorRd Hull::center

"Center" of the hull

◆ nodes

std::vector<VectorRd> Hull::nodes

Nodes defining the planar convex hull.

◆ normal

VectorRd Hull::normal

Normal to the planar convex hull.


The documentation for this struct was generated from the following files: