GenGeo  1.1
TriPatchSet Class Reference

#include <TriPatchSet.h>

Inheritance diagram for TriPatchSet:
Collaboration diagram for TriPatchSet:

Public Member Functions

 TriPatchSet ()
virtual ~TriPatchSet ()
virtual int isCrossing (const Vector3 &, const Vector3 &) const
void addTriangle (const Vector3 &, const Vector3 &, const Vector3 &, int)
Vector3 getMinPoint () const
Vector3 getMaxPoint () const
vector< Triangle3D >
::const_iterator 
triangles_begin () const
vector< Triangle3D >
::const_iterator 
triangles_end () const
pair< Vector3, Vector3getBoundingBox ()
- Public Member Functions inherited from JointSet
virtual ~JointSet ()

Private Attributes

vector< Triangle3Dm_triangles
Vector3 m_pmin
Vector3 m_pmax
bool m_bbx_set

Detailed Description

class to store joints as a collection of triangular patches and check if a bond crosses one of them

Constructor & Destructor Documentation

TriPatchSet::TriPatchSet ( )

References m_bbx_set.

virtual TriPatchSet::~TriPatchSet ( )
inlinevirtual

Member Function Documentation

void TriPatchSet::addTriangle ( const Vector3 p1,
const Vector3 p2,
const Vector3 p3,
int  tag 
)

References Triangle3D::getMaxPoint(), Triangle3D::getMinPoint(), m_bbx_set, m_pmax, m_pmin, m_triangles, Vector3::X(), Vector3::Y(), and Vector3::Z().

Referenced by exportTriPatchSet().

Here is the call graph for this function:

pair<Vector3,Vector3> TriPatchSet::getBoundingBox ( )
inline
Vector3 TriPatchSet::getMaxPoint ( ) const
inline

References m_pmax.

Referenced by exportTriPatchSet().

Vector3 TriPatchSet::getMinPoint ( ) const
inline

References m_pmin.

Referenced by exportTriPatchSet().

int TriPatchSet::isCrossing ( const Vector3 p1,
const Vector3 p2 
) const
virtual

check if a line between the given points crosses the triangle and return the triangle tag, -1 otherwise

Parameters
p1
p2

Implements JointSet.

References m_triangles.

Referenced by exportTriPatchSet(), and MNTable3D::generateBondsWithJointSet().

Member Data Documentation

bool TriPatchSet::m_bbx_set
private

Referenced by addTriangle(), and TriPatchSet().

Vector3 TriPatchSet::m_pmax
private
Vector3 TriPatchSet::m_pmin
private
vector<Triangle3D> TriPatchSet::m_triangles
private

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