Public Member Functions | Public Attributes
Triangle Class Reference

#include <IceTriangle.h>

List of all members.

Public Member Functions

float Area () const
void Center (Point &center) const
float Compacity () const
void ComputeMoment (Moment &m)
void ComputePoint (float u, float v, Point &pt, udword *nearvtx=null) const
void DenormalizedNormal (Point &normal) const
void Flip ()
void Inflate (float fat_coeff, bool constant_border)
float MaxEdgeLength () const
float MinEdgeLength () const
void Normal (Point &normal) const
float Perimeter () const
inline_ Plane PlaneEquation () const
PartVal TestAgainstPlane (const Plane &plane, float epsilon) const
inline_ Triangle ()
 Constructor.
inline_ Triangle (const Point &p0, const Point &p1, const Point &p2)
 Constructor.
inline_ Triangle (const Triangle &triangle)
 Copy constructor.
inline_ ~Triangle ()
 Destructor.

Public Attributes

Point mVerts [3]
 Vertices.

Detailed Description

Contains an indexed triangle class.

Author:
Pierre Terdiman
Version:
1.0
Date:
08.15.98

Definition at line 30 of file IceTriangle.h.


Constructor & Destructor Documentation

Constructor.

Definition at line 34 of file IceTriangle.h.

inline_ Triangle::Triangle ( const Point p0,
const Point p1,
const Point p2 
) [inline]

Constructor.

Definition at line 36 of file IceTriangle.h.

inline_ Triangle::Triangle ( const Triangle triangle) [inline]

Copy constructor.

Definition at line 38 of file IceTriangle.h.

Destructor.

Definition at line 45 of file IceTriangle.h.


Member Function Documentation

float Triangle::Area ( ) const

Computes the triangle area.

Returns:
the area

Definition at line 56 of file IceTriangle.cpp.

void Triangle::Center ( Point center) const

Computes the triangle center.

Parameters:
center[out] the computed center

Definition at line 127 of file IceTriangle.cpp.

float Triangle::Compacity ( ) const

Computes the triangle compacity.

Returns:
the compacity

Definition at line 86 of file IceTriangle.cpp.

void Triangle::ComputeMoment ( Moment &  m)
void Triangle::ComputePoint ( float  u,
float  v,
Point pt,
udword nearvtx = null 
) const

Computes a point on the triangle according to the stabbing information.

Parameters:
u,v[in] point's barycentric coordinates
pt[out] point on triangle
nearvtx[out] index of nearest vertex

Definition at line 251 of file IceTriangle.cpp.

Computes the triangle denormalized normal.

Parameters:
normal[out] the computed normal

Definition at line 113 of file IceTriangle.cpp.

Flips the winding order.

Definition at line 43 of file IceTriangle.cpp.

void Triangle::Inflate ( float  fat_coeff,
bool  constant_border 
)

Definition at line 269 of file IceTriangle.cpp.

float Triangle::MaxEdgeLength ( ) const

Computes the triangle's largest edge length.

Returns:
the largest edge length

Definition at line 231 of file IceTriangle.cpp.

float Triangle::MinEdgeLength ( ) const

Computes the triangle moment.

Parameters:
m[out] the moment Computes the triangle's smallest edge length.
Returns:
the smallest edge length

Definition at line 213 of file IceTriangle.cpp.

void Triangle::Normal ( Point normal) const

Computes the triangle normal.

Parameters:
normal[out] the computed normal

Definition at line 99 of file IceTriangle.cpp.

float Triangle::Perimeter ( ) const

Computes the triangle perimeter.

Returns:
the perimeter

Definition at line 70 of file IceTriangle.cpp.

Definition at line 57 of file IceTriangle.h.

PartVal Triangle::TestAgainstPlane ( const Plane plane,
float  epsilon 
) const

Definition at line 135 of file IceTriangle.cpp.


Member Data Documentation

Vertices.

Definition at line 47 of file IceTriangle.h.


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


openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Thu Apr 11 2019 03:30:21