Public Types | Public Member Functions | Public Attributes | List of all members
hrp::TMSImpl Class Reference

Public Types

enum  RemapType { REMAP_COLOR, REMAP_NORMAL }
 
typedef std::map< VrmlShapePtr, SFNodeShapeToGeometryMap
 

Public Member Functions

void calculateFaceNormals (VrmlIndexedFaceSetPtr &triangleMesh)
 
bool checkAndRemapIndices (RemapType type, unsigned int numElements, MFInt32 &indices, bool perVertex, VrmlIndexedFaceSet *triangleMesh)
 
bool convertBox (VrmlBox *box, VrmlIndexedFaceSetPtr &triangleMesh)
 
bool convertCone (VrmlCone *cone, VrmlIndexedFaceSetPtr &triangleMesh)
 
bool convertCylinder (VrmlCylinder *cylinder, VrmlIndexedFaceSetPtr &triangleMesh)
 
bool convertElevationGrid (VrmlElevationGrid *grid, VrmlIndexedFaceSetPtr &triangleMesh)
 
bool convertExtrusion (VrmlExtrusion *extrusion, VrmlIndexedFaceSetPtr &triangleMesh)
 
bool convertIndexedFaceSet (VrmlIndexedFaceSet *faceSet)
 
bool convertPointSet (VrmlPointSet *pointSet, VrmlIndexedFaceSetPtr &triangleMesh)
 
bool convertShapeNode (VrmlShape *shapeNode)
 
bool convertSphere (VrmlSphere *sphere, VrmlIndexedFaceSetPtr &triangleMesh)
 
void generateNormals (VrmlIndexedFaceSetPtr &triangleMesh)
 
SFNode getOriginalGeometry (VrmlShapePtr shapeNode)
 
void putError1 (const char *valueName)
 
void putMessage (const std::string &message)
 
template<class TArray >
bool remapDirectMapObjectsPerFaces (TArray &objects, const char *objectName)
 
void setFaceNormals (VrmlIndexedFaceSetPtr &triangleMesh)
 
bool setTexCoordIndex (VrmlIndexedFaceSetPtr faseSet)
 
void setVertexNormals (VrmlIndexedFaceSetPtr &triangleMesh)
 
 TMSImpl (TriangleMeshShaper *self)
 
bool traverseShapeNodes (VrmlNode *node, AbstractVrmlGroup *parentNode, int indexInParent)
 

Public Attributes

int divisionNumber
 
std::vector< intfaceIndexMap
 
std::vector< Vector3faceNormals
 
std::vector< intindexPositionMap
 
bool isNormalGenerationMode
 
std::vector< intpolygon
 
TriangleMeshShaperself
 
ShapeToGeometryMap shapeToOriginalGeometryMap
 
Triangulator triangulator
 
std::vector< std::vector< int > > vertexIndexToFaceIndicesMap
 
std::vector< std::vector< int > > vertexIndexToNormalIndicesMap
 

Detailed Description

Definition at line 33 of file TriangleMeshShaper.cpp.

Member Typedef Documentation

Definition at line 43 of file TriangleMeshShaper.cpp.

Member Enumeration Documentation

Enumerator
REMAP_COLOR 
REMAP_NORMAL 

Definition at line 57 of file TriangleMeshShaper.cpp.

Constructor & Destructor Documentation

TMSImpl::TMSImpl ( TriangleMeshShaper self)

Definition at line 96 of file TriangleMeshShaper.cpp.

Member Function Documentation

void TMSImpl::calculateFaceNormals ( VrmlIndexedFaceSetPtr triangleMesh)

Definition at line 961 of file TriangleMeshShaper.cpp.

bool TMSImpl::checkAndRemapIndices ( RemapType  type,
unsigned int  numElements,
MFInt32 indices,
bool  perVertex,
VrmlIndexedFaceSet triangleMesh 
)

Definition at line 368 of file TriangleMeshShaper.cpp.

bool TMSImpl::convertBox ( VrmlBox box,
VrmlIndexedFaceSetPtr triangleMesh 
)

Definition at line 501 of file TriangleMeshShaper.cpp.

bool TMSImpl::convertCone ( VrmlCone cone,
VrmlIndexedFaceSetPtr triangleMesh 
)

Definition at line 565 of file TriangleMeshShaper.cpp.

bool TMSImpl::convertCylinder ( VrmlCylinder cylinder,
VrmlIndexedFaceSetPtr triangleMesh 
)

Definition at line 603 of file TriangleMeshShaper.cpp.

bool TMSImpl::convertElevationGrid ( VrmlElevationGrid grid,
VrmlIndexedFaceSetPtr triangleMesh 
)
Todo:
copy colors and color indices to triangleMesh

Definition at line 714 of file TriangleMeshShaper.cpp.

bool TMSImpl::convertExtrusion ( VrmlExtrusion extrusion,
VrmlIndexedFaceSetPtr triangleMesh 
)

Definition at line 763 of file TriangleMeshShaper.cpp.

bool TMSImpl::convertIndexedFaceSet ( VrmlIndexedFaceSet faceSet)

Definition at line 268 of file TriangleMeshShaper.cpp.

bool TMSImpl::convertPointSet ( VrmlPointSet pointSet,
VrmlIndexedFaceSetPtr triangleMesh 
)

Definition at line 556 of file TriangleMeshShaper.cpp.

bool TMSImpl::convertShapeNode ( VrmlShape shapeNode)

Definition at line 208 of file TriangleMeshShaper.cpp.

bool TMSImpl::convertSphere ( VrmlSphere sphere,
VrmlIndexedFaceSetPtr triangleMesh 
)

Definition at line 653 of file TriangleMeshShaper.cpp.

void TMSImpl::generateNormals ( VrmlIndexedFaceSetPtr triangleMesh)

Definition at line 946 of file TriangleMeshShaper.cpp.

SFNode TMSImpl::getOriginalGeometry ( VrmlShapePtr  shapeNode)

Definition at line 146 of file TriangleMeshShaper.cpp.

void TMSImpl::putError1 ( const char *  valueName)

Definition at line 472 of file TriangleMeshShaper.cpp.

void TMSImpl::putMessage ( const std::string &  message)

Definition at line 1139 of file TriangleMeshShaper.cpp.

template<class TArray >
bool TMSImpl::remapDirectMapObjectsPerFaces ( TArray &  objects,
const char *  objectName 
)

Definition at line 349 of file TriangleMeshShaper.cpp.

void TMSImpl::setFaceNormals ( VrmlIndexedFaceSetPtr triangleMesh)

Definition at line 1090 of file TriangleMeshShaper.cpp.

bool TMSImpl::setTexCoordIndex ( VrmlIndexedFaceSetPtr  faseSet)

Definition at line 438 of file TriangleMeshShaper.cpp.

void TMSImpl::setVertexNormals ( VrmlIndexedFaceSetPtr triangleMesh)

Definition at line 1009 of file TriangleMeshShaper.cpp.

bool TMSImpl::traverseShapeNodes ( VrmlNode node,
AbstractVrmlGroup parentNode,
int  indexInParent 
)

Definition at line 176 of file TriangleMeshShaper.cpp.

Member Data Documentation

int hrp::TMSImpl::divisionNumber

Definition at line 40 of file TriangleMeshShaper.cpp.

std::vector<int> hrp::TMSImpl::faceIndexMap

Definition at line 50 of file TriangleMeshShaper.cpp.

std::vector<Vector3> hrp::TMSImpl::faceNormals

Definition at line 53 of file TriangleMeshShaper.cpp.

std::vector<int> hrp::TMSImpl::indexPositionMap

Definition at line 49 of file TriangleMeshShaper.cpp.

bool hrp::TMSImpl::isNormalGenerationMode

Definition at line 41 of file TriangleMeshShaper.cpp.

std::vector<int> hrp::TMSImpl::polygon

Definition at line 48 of file TriangleMeshShaper.cpp.

TriangleMeshShaper* hrp::TMSImpl::self

Definition at line 38 of file TriangleMeshShaper.cpp.

ShapeToGeometryMap hrp::TMSImpl::shapeToOriginalGeometryMap

Definition at line 44 of file TriangleMeshShaper.cpp.

Triangulator hrp::TMSImpl::triangulator

Definition at line 47 of file TriangleMeshShaper.cpp.

std::vector< std::vector<int> > hrp::TMSImpl::vertexIndexToFaceIndicesMap

Definition at line 54 of file TriangleMeshShaper.cpp.

std::vector< std::vector<int> > hrp::TMSImpl::vertexIndexToNormalIndicesMap

Definition at line 55 of file TriangleMeshShaper.cpp.


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


openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Sat May 8 2021 02:42:45