GenGeo  1.1
Triangle3D Class Reference

#include <Triangle3D.h>

Inheritance diagram for Triangle3D:
Collaboration diagram for Triangle3D:

Public Member Functions

 Triangle3D (const Vector3 &, const Vector3 &, const Vector3 &, int)
virtual double getDist (const Vector3 &) const
bool crosses (const Vector3 &, const Vector3 &) const
int getTag () const
Vector3 getMinPoint () const
Vector3 getMaxPoint () const
- Public Member Functions inherited from AGeometricObject
virtual ~AGeometricObject ()

Private Attributes

Vector3 m_p1
Vector3 m_p2
Vector3 m_p3
int m_tag

Detailed Description

class for a triagle in 3D.

Constructor & Destructor Documentation

Triangle3D::Triangle3D ( const Vector3 p1,
const Vector3 p2,
const Vector3 p3,
int  tag 
)

Member Function Documentation

bool Triangle3D::crosses ( const Vector3 p1,
const Vector3 p2 
) const

check if line between 2 points intersects the triangle

Parameters
p1point 1
p2point 2

References cross(), m_p1, m_p2, m_p3, and rsolve().

Here is the call graph for this function:

double Triangle3D::getDist ( const Vector3 p) const
virtual

Get the distance of a point from the Triangle

Parameters
pthe point

Implements AGeometricObject.

References cross(), EdgeSep(), m_p1, m_p2, m_p3, rsolve(), and Vector3::unit().

Here is the call graph for this function:

Vector3 Triangle3D::getMaxPoint ( ) const

get maximum corner of the bounding box

References m_p1, m_p2, m_p3, Vector3::x(), Vector3::y(), and Vector3::z().

Referenced by TriPatchSet::addTriangle().

Here is the call graph for this function:

Vector3 Triangle3D::getMinPoint ( ) const

get minimum corner of the bounding box

References m_p1, m_p2, m_p3, Vector3::x(), Vector3::y(), and Vector3::z().

Referenced by TriPatchSet::addTriangle().

Here is the call graph for this function:

int Triangle3D::getTag ( ) const
inline

References m_tag.

Member Data Documentation

Vector3 Triangle3D::m_p1
private
Vector3 Triangle3D::m_p2
private
Vector3 Triangle3D::m_p3
private
int Triangle3D::m_tag
private

Referenced by getTag().


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