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

◆ ShapeToGeometryMap

Definition at line 43 of file TriangleMeshShaper.cpp.

Member Enumeration Documentation

◆ RemapType

Enumerator
REMAP_COLOR 
REMAP_NORMAL 

Definition at line 57 of file TriangleMeshShaper.cpp.

Constructor & Destructor Documentation

◆ TMSImpl()

TMSImpl::TMSImpl ( TriangleMeshShaper self)

Definition at line 96 of file TriangleMeshShaper.cpp.

Member Function Documentation

◆ calculateFaceNormals()

void TMSImpl::calculateFaceNormals ( VrmlIndexedFaceSetPtr triangleMesh)

Definition at line 961 of file TriangleMeshShaper.cpp.

◆ checkAndRemapIndices()

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

Definition at line 368 of file TriangleMeshShaper.cpp.

◆ convertBox()

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

Definition at line 501 of file TriangleMeshShaper.cpp.

◆ convertCone()

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

Definition at line 565 of file TriangleMeshShaper.cpp.

◆ convertCylinder()

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

Definition at line 603 of file TriangleMeshShaper.cpp.

◆ convertElevationGrid()

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

Definition at line 714 of file TriangleMeshShaper.cpp.

◆ convertExtrusion()

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

Definition at line 763 of file TriangleMeshShaper.cpp.

◆ convertIndexedFaceSet()

bool TMSImpl::convertIndexedFaceSet ( VrmlIndexedFaceSet faceSet)

Definition at line 268 of file TriangleMeshShaper.cpp.

◆ convertPointSet()

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

Definition at line 556 of file TriangleMeshShaper.cpp.

◆ convertShapeNode()

bool TMSImpl::convertShapeNode ( VrmlShape shapeNode)

Definition at line 208 of file TriangleMeshShaper.cpp.

◆ convertSphere()

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

Definition at line 653 of file TriangleMeshShaper.cpp.

◆ generateNormals()

void TMSImpl::generateNormals ( VrmlIndexedFaceSetPtr triangleMesh)

Definition at line 946 of file TriangleMeshShaper.cpp.

◆ getOriginalGeometry()

SFNode TMSImpl::getOriginalGeometry ( VrmlShapePtr  shapeNode)

Definition at line 146 of file TriangleMeshShaper.cpp.

◆ putError1()

void TMSImpl::putError1 ( const char *  valueName)

Definition at line 472 of file TriangleMeshShaper.cpp.

◆ putMessage()

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

Definition at line 1139 of file TriangleMeshShaper.cpp.

◆ remapDirectMapObjectsPerFaces()

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

Definition at line 349 of file TriangleMeshShaper.cpp.

◆ setFaceNormals()

void TMSImpl::setFaceNormals ( VrmlIndexedFaceSetPtr triangleMesh)

Definition at line 1090 of file TriangleMeshShaper.cpp.

◆ setTexCoordIndex()

bool TMSImpl::setTexCoordIndex ( VrmlIndexedFaceSetPtr  faseSet)

Definition at line 438 of file TriangleMeshShaper.cpp.

◆ setVertexNormals()

void TMSImpl::setVertexNormals ( VrmlIndexedFaceSetPtr triangleMesh)

Definition at line 1009 of file TriangleMeshShaper.cpp.

◆ traverseShapeNodes()

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

Definition at line 176 of file TriangleMeshShaper.cpp.

Member Data Documentation

◆ divisionNumber

int hrp::TMSImpl::divisionNumber

Definition at line 40 of file TriangleMeshShaper.cpp.

◆ faceIndexMap

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

Definition at line 50 of file TriangleMeshShaper.cpp.

◆ faceNormals

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

Definition at line 53 of file TriangleMeshShaper.cpp.

◆ indexPositionMap

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

Definition at line 49 of file TriangleMeshShaper.cpp.

◆ isNormalGenerationMode

bool hrp::TMSImpl::isNormalGenerationMode

Definition at line 41 of file TriangleMeshShaper.cpp.

◆ polygon

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

Definition at line 48 of file TriangleMeshShaper.cpp.

◆ self

TriangleMeshShaper* hrp::TMSImpl::self

Definition at line 38 of file TriangleMeshShaper.cpp.

◆ shapeToOriginalGeometryMap

ShapeToGeometryMap hrp::TMSImpl::shapeToOriginalGeometryMap

Definition at line 44 of file TriangleMeshShaper.cpp.

◆ triangulator

Triangulator hrp::TMSImpl::triangulator

Definition at line 47 of file TriangleMeshShaper.cpp.

◆ vertexIndexToFaceIndicesMap

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

Definition at line 54 of file TriangleMeshShaper.cpp.

◆ vertexIndexToNormalIndicesMap

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 Thu Sep 8 2022 02:24:08