ESyS-Particle  2.3.4
AEdge Class Reference

abstract base class for edges in mesh (2D or 3D) More...

#include <AEdge.h>

Inheritance diagram for AEdge:
Collaboration diagram for AEdge:

Public Member Functions

 AEdge (const Vec3 &, const Vec3 &)
 
virtual ~AEdge ()
 
double sep (const Vec3 &) const
 
pair< bool, double > dist (const Vec3 &) const
 
Vec3 getBoundingBoxMin () const
 
Vec3 getBoundingBoxMax () const
 

Protected Attributes

Vec3 m_p0
 
Vec3 m_p1
 

Detailed Description

abstract base class for edges in mesh (2D or 3D)

Author
Steffen Abe $Revision$ $Date$

Constructor & Destructor Documentation

◆ AEdge()

AEdge::AEdge ( const Vec3 v0,
const Vec3 v1 
)

construct Edge from corner coordinates.

Parameters
v0first corner
v1second corner

References m_p0, and m_p1.

◆ ~AEdge()

AEdge::~AEdge ( )
virtual

Member Function Documentation

◆ dist()

pair< bool, double > AEdge::dist ( const Vec3 p) const

Get perpendicular distance between point and edge. If the closest point on the supportung line is outside the edge, the first component of the return value is "false", otherwise "true"

Parameters
pthe point

References m_p0, m_p1, Vec3::norm2(), and Vec3::unit().

Referenced by EEdge2DInteraction::calcForces(), and EEdgeInteraction::calcForces().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getBoundingBoxMax()

Vec3 AEdge::getBoundingBoxMax ( ) const

Get max. corner of axis-aligned bounding box

References cmax(), m_p0, and m_p1.

Referenced by NeighborTable< T >::getParticlesNearEdge().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getBoundingBoxMin()

Vec3 AEdge::getBoundingBoxMin ( ) const

Get min. corner of axis-aligned bounding box

References cmin(), m_p0, and m_p1.

Referenced by NeighborTable< T >::getParticlesNearEdge().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sep()

double AEdge::sep ( const Vec3 p) const

get distance between point and closest point along edge (incl. corners)

Parameters
pthe point

References m_p0, m_p1, Vec3::norm2(), and Vec3::unit().

Referenced by NeighborTable< T >::getParticlesNearEdge().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_p0

◆ m_p1


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