Public Member Functions | Private Types | Private Member Functions | Private Attributes
hrp::Triangulator Class Reference

#include <Triangulator.h>

List of all members.

Public Member Functions

int apply (const std::vector< int > &polygon)
void setVertices (const MFVec3f &vertices)
const std::vector< int > & triangles ()

Private Types

enum  Convexity { FLAT, CONVEX, CONCAVE }

Private Member Functions

Convexity calcConvexity (int ear)
bool checkIfEarContainsOtherVertices (int ear)
Vector3Ref vertex (int localIndex)
Vector3Ref workVertex (int workPolygonIndex)

Private Attributes

Vector3 ccs
boost::dynamic_bitset earMask
const std::vector< int > * orgPolygon
std::vector< inttriangles_
const MFVec3fvertices
std::vector< intworkPolygon

Detailed Description

Definition at line 24 of file Triangulator.h.


Member Enumeration Documentation

Enumerator:
FLAT 
CONVEX 
CONCAVE 

Definition at line 48 of file Triangulator.h.


Member Function Documentation

int Triangulator::apply ( const std::vector< int > &  polygon)
Returns:
The number of triangles

Definition at line 20 of file Triangulator.cpp.

Definition at line 89 of file Triangulator.cpp.

Definition at line 110 of file Triangulator.cpp.

Definition at line 28 of file Triangulator.h.

const std::vector<int>& hrp::Triangulator::triangles ( ) [inline]

Triangulated indices. This value is available after calling the 'apply' method. The indices are local ones in the polygon index vector given to the apply method.

Definition at line 42 of file Triangulator.h.

Vector3Ref hrp::Triangulator::vertex ( int  localIndex) [inline, private]

Definition at line 57 of file Triangulator.h.

Vector3Ref hrp::Triangulator::workVertex ( int  workPolygonIndex) [inline, private]

Definition at line 61 of file Triangulator.h.


Member Data Documentation

Definition at line 54 of file Triangulator.h.

boost::dynamic_bitset hrp::Triangulator::earMask [private]

Definition at line 55 of file Triangulator.h.

const std::vector<int>* hrp::Triangulator::orgPolygon [private]

Definition at line 51 of file Triangulator.h.

std::vector<int> hrp::Triangulator::triangles_ [private]

Definition at line 52 of file Triangulator.h.

Definition at line 50 of file Triangulator.h.

std::vector<int> hrp::Triangulator::workPolygon [private]

Definition at line 53 of file Triangulator.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 Sun Apr 2 2017 03:44:02