Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

MassProperties::WTriangle Class Reference

Inheritance diagram for MassProperties::WTriangle:

Inheritance graph
[legend]
Collaboration diagram for MassProperties::WTriangle:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 WTriangle ()
 WTriangle (const gfx::Triangle3 &t)
 WTriangle (const WTriangle &t)
virtual ~WTriangle ()
void compNorm ()
void compW ()
const Point3 & operator[] (Int i) const throw ()
const Point3 & operator() (Int i) const throw ()
virtual const Point3 & p1 () const
virtual const Point3 & p2 () const
virtual const Point3 & p3 () const
virtual void setp1 (const Point3 &p)
virtual void setp2 (const Point3 &p)
virtual void setp3 (const Point3 &p)
virtual const Point3 & e (Int i) const throw ()
const Point3 & at (Int i) const throw (std::out_of_range)
bool operator== (const Triangle3 &t) const throw ()
bool equals (const Triangle3 &t) const throw ()
Vector3 normal () const throw ()
Triangle3 & operator+= (const Vector3 &v)
Triangle3 & operator-= (const Vector3 &v)
Triangle3 & operator *= (Real s)
Triangle3 & operator/= (Real s)
void transform (const base::Transform &t)
Real distanceTo (const Point3 &p) const
 shortest distance between triangle and p

Real distanceTo (const Segment3 &s) const
 shortest distance between this triangle and the segment s

Real distanceTo (const Triangle3 &t) const
 shortest distance between this triangle and the triangle t

Point3 pointClosestTo (const Point3 &p) const
 find point on triangle that is closest to p

bool contains (const Point3 &p) const
Segment3 shortestSegmentBetween (const Segment3 &s) const
 return the shortest segment between this triangle and the segment s

Segment3 shortestSegmentBetween (const Triangle3 &t) const
 return the shortest segment between this triangle and the triangle t

bool intersect (const Triangle3 &t) const
bool contact (const Triangle3 &t, Contact &contact) const

Public Attributes

Vector3 norm
Real w

Protected Member Functions

Segment3 shortestSegmentBetween (const Segment3 &seg, Real &ds) const

Protected Attributes

Point3 _p1
Point3 _p2
Point3 _p3

Constructor & Destructor Documentation

MassProperties::WTriangle::WTriangle  )  [inline]
 

Definition at line 77 of file MassProperties.cpp.

MassProperties::WTriangle::WTriangle const gfx::Triangle3 t  )  [inline]
 

Definition at line 78 of file MassProperties.cpp.

References gfx.

MassProperties::WTriangle::WTriangle const WTriangle t  )  [inline]
 

Definition at line 79 of file MassProperties.cpp.

References gfx.

virtual MassProperties::WTriangle::~WTriangle  )  [inline, virtual]
 

Definition at line 80 of file MassProperties.cpp.


Member Function Documentation

const Point3& gfx::Triangle3::at Int  i  )  const throw (std::out_of_range) [inline, inherited]
 

Definition at line 70 of file Triangle3.

References gfx::Triangle3::e(), and base::Point3.

Referenced by gfx::TriangleDesc::operator[]().

void MassProperties::WTriangle::compNorm  )  [inline]
 

Definition at line 82 of file MassProperties.cpp.

void MassProperties::WTriangle::compW  )  [inline]
 

Definition at line 83 of file MassProperties.cpp.

bool gfx::Triangle3::contact const Triangle3 t,
Contact contact
const [inherited]
 

bool gfx::Triangle3::contains const Point3 p  )  const [inline, inherited]
 

Definition at line 136 of file Triangle3.

References gfx::Triangle3::distanceTo(), and base::Point3.

Real gfx::Triangle3::distanceTo const Triangle3 t  )  const [inherited]
 

shortest distance between this triangle and the triangle t

Real gfx::Triangle3::distanceTo const Segment3 s  )  const [inline, inherited]
 

shortest distance between this triangle and the segment s

Definition at line 147 of file Triangle3.

References gfx::Triangle3::shortestSegmentBetween().

Real gfx::Triangle3::distanceTo const Point3 p  )  const [inherited]
 

shortest distance between triangle and p

Referenced by gfx::Triangle3::contains().

virtual const Point3& gfx::Triangle3::e Int  i  )  const throw () [inline, virtual, inherited]
 

Definition at line 61 of file Triangle3.

References gfx::Triangle3::_p1, gfx::Triangle3::_p2, gfx::Triangle3::_p3, and base::Point3.

Referenced by gfx::Triangle3::at(), gfx::Triangle3::operator()(), and gfx::Triangle3::operator[]().

bool gfx::Triangle3::equals const Triangle3 t  )  const throw () [inline, inherited]
 

Definition at line 95 of file Triangle3.

References base::Vector3::equals(), gfx::Triangle3::p1(), gfx::Triangle3::p2(), and gfx::Triangle3::p3().

bool gfx::Triangle3::intersect const Triangle3 t  )  const [inherited]
 

Vector3 gfx::Triangle3::normal  )  const throw () [inline, inherited]
 

Definition at line 103 of file Triangle3.

References base::Vector3::normalize(), gfx::Triangle3::p1(), gfx::Triangle3::p2(), and gfx::Triangle3::p3().

Triangle3& gfx::Triangle3::operator *= Real  s  )  [inline, inherited]
 

Definition at line 118 of file Triangle3.

References gfx::Triangle3::_p1, gfx::Triangle3::_p2, and gfx::Triangle3::_p3.

const Point3& gfx::Triangle3::operator() Int  i  )  const throw () [inline, inherited]
 

Definition at line 51 of file Triangle3.

References gfx::Triangle3::e(), and base::Point3.

Triangle3& gfx::Triangle3::operator+= const Vector3 v  )  [inline, inherited]
 

Definition at line 112 of file Triangle3.

References gfx::Triangle3::p1(), gfx::Triangle3::p2(), gfx::Triangle3::p3(), gfx::Triangle3::setp1(), gfx::Triangle3::setp2(), and gfx::Triangle3::setp3().

Triangle3& gfx::Triangle3::operator-= const Vector3 v  )  [inline, inherited]
 

Definition at line 115 of file Triangle3.

References gfx::Triangle3::p1(), gfx::Triangle3::p2(), gfx::Triangle3::p3(), gfx::Triangle3::setp1(), gfx::Triangle3::setp2(), and gfx::Triangle3::setp3().

Triangle3& gfx::Triangle3::operator/= Real  s  )  [inline, inherited]
 

Definition at line 119 of file Triangle3.

References gfx::Triangle3::_p1, gfx::Triangle3::_p2, and gfx::Triangle3::_p3.

bool gfx::Triangle3::operator== const Triangle3 t  )  const throw () [inline, inherited]
 

Definition at line 88 of file Triangle3.

References gfx::Triangle3::p1(), gfx::Triangle3::p2(), and gfx::Triangle3::p3().

const Point3& gfx::Triangle3::operator[] Int  i  )  const throw () [inline, inherited]
 

Reimplemented in gfx::TriangleDesc.

Definition at line 50 of file Triangle3.

References gfx::Triangle3::e(), and base::Point3.

virtual const Point3& gfx::Triangle3::p1  )  const [inline, virtual, inherited]
 

Definition at line 53 of file Triangle3.

References gfx::Triangle3::_p1, and base::Point3.

Referenced by gfx::Triangle3::equals(), gfx::Triangle3::normal(), gfx::Triangle3::operator+=(), gfx::Triangle3::operator-=(), gfx::operator<<(), gfx::Triangle3::operator==(), gfx::Plane::Plane(), and gfx::Triangle3::transform().

virtual const Point3& gfx::Triangle3::p2  )  const [inline, virtual, inherited]
 

Definition at line 54 of file Triangle3.

References gfx::Triangle3::_p2, and base::Point3.

Referenced by gfx::Triangle3::equals(), gfx::Triangle3::normal(), gfx::Triangle3::operator+=(), gfx::Triangle3::operator-=(), gfx::operator<<(), gfx::Triangle3::operator==(), gfx::Plane::Plane(), and gfx::Triangle3::transform().

virtual const Point3& gfx::Triangle3::p3  )  const [inline, virtual, inherited]
 

Definition at line 55 of file Triangle3.

References gfx::Triangle3::_p3, and base::Point3.

Referenced by gfx::Triangle3::equals(), gfx::Triangle3::normal(), gfx::Triangle3::operator+=(), gfx::Triangle3::operator-=(), gfx::operator<<(), gfx::Triangle3::operator==(), gfx::Plane::Plane(), and gfx::Triangle3::transform().

Point3 gfx::Triangle3::pointClosestTo const Point3 p  )  const [inherited]
 

find point on triangle that is closest to p

virtual void gfx::Triangle3::setp1 const Point3 p  )  [inline, virtual, inherited]
 

Definition at line 56 of file Triangle3.

References gfx::Triangle3::_p1, and base::Point3.

Referenced by gfx::Triangle3::operator+=(), gfx::Triangle3::operator-=(), gfx::Triangle3::operator=(), and gfx::Triangle3::transform().

virtual void gfx::Triangle3::setp2 const Point3 p  )  [inline, virtual, inherited]
 

Definition at line 57 of file Triangle3.

References gfx::Triangle3::_p2, and base::Point3.

Referenced by gfx::Triangle3::operator+=(), gfx::Triangle3::operator-=(), gfx::Triangle3::operator=(), and gfx::Triangle3::transform().

virtual void gfx::Triangle3::setp3 const Point3 p  )  [inline, virtual, inherited]
 

Definition at line 58 of file Triangle3.

References gfx::Triangle3::_p3, and base::Point3.

Referenced by gfx::Triangle3::operator+=(), gfx::Triangle3::operator-=(), gfx::Triangle3::operator=(), and gfx::Triangle3::transform().

Segment3 gfx::Triangle3::shortestSegmentBetween const Segment3 seg,
Real &  ds
const [protected, inherited]
 

Segment3 gfx::Triangle3::shortestSegmentBetween const Triangle3 t  )  const [inherited]
 

return the shortest segment between this triangle and the triangle t

Segment3 gfx::Triangle3::shortestSegmentBetween const Segment3 s  )  const [inline, inherited]
 

return the shortest segment between this triangle and the segment s

Definition at line 140 of file Triangle3.

Referenced by gfx::Triangle3::distanceTo().

void gfx::Triangle3::transform const base::Transform t  )  [inline, inherited]
 

Definition at line 122 of file Triangle3.

References gfx::Triangle3::p1(), gfx::Triangle3::p2(), gfx::Triangle3::p3(), gfx::Triangle3::setp1(), gfx::Triangle3::setp2(), and gfx::Triangle3::setp3().


Member Data Documentation

Point3 gfx::Triangle3::_p1 [protected, inherited]
 

Definition at line 176 of file Triangle3.

Referenced by gfx::Triangle3::e(), gfx::Triangle3::operator *=(), gfx::Triangle3::operator/=(), gfx::Triangle3::p1(), gfx::Triangle3::setp1(), and gfx::Triangle3::Triangle3().

Point3 gfx::Triangle3::_p2 [protected, inherited]
 

Definition at line 176 of file Triangle3.

Referenced by gfx::Triangle3::e(), gfx::Triangle3::operator *=(), gfx::Triangle3::operator/=(), gfx::Triangle3::p2(), gfx::Triangle3::setp2(), and gfx::Triangle3::Triangle3().

Point3 gfx::Triangle3::_p3 [protected, inherited]
 

Definition at line 176 of file Triangle3.

Referenced by gfx::Triangle3::e(), gfx::Triangle3::operator *=(), gfx::Triangle3::operator/=(), gfx::Triangle3::p3(), gfx::Triangle3::setp3(), and gfx::Triangle3::Triangle3().

Vector3 MassProperties::WTriangle::norm
 

Definition at line 85 of file MassProperties.cpp.

Real MassProperties::WTriangle::w
 

Definition at line 86 of file MassProperties.cpp.


The documentation for this class was generated from the following file:
Generated on Thu Jul 29 16:40:01 2004 for OpenSim by doxygen 1.3.6