#include <Mesh.h>


Data Structures | |
| class | Material |
Public Types | |
| typedef Factory< std::string, Mesh, std::string > | FactoryMesh |
Public Member Functions | |
| vector< Vector3 > & | getVertices () |
| vector< Vector3 > & | getTexCoords () |
| vector< Vector3 > & | getNormals () |
| vector< vector< vector< int > > > & | getFacets () |
| const Material & | getMaterial () |
| std::string & | getTextureName () |
Static Public Member Functions | |
| static Mesh * | Create (std::string filename) |
| template<class Object > | |
| static void | create (Object *&obj, std::string arg) |
Protected Attributes | |
| vector< Vector3 > | vertices |
| vector< Vector3 > | texCoords |
| vector< Vector3 > | normals |
| vector< vector< vector< int > > > | facets |
| Material | material |
| std::string | textureName |
Definition at line 48 of file Mesh.h.
| typedef Factory<std::string, Mesh, std::string> sofa::helper::io::Mesh::FactoryMesh |
| static void sofa::helper::io::Mesh::create | ( | Object *& | obj, | |
| std::string | arg | |||
| ) | [inline, static] |
| Mesh * sofa::helper::io::Mesh::Create | ( | std::string | filename | ) | [static] |
Definition at line 71 of file Mesh.cpp.
References sofa::helper::Factory< TKey, TObject, TArgument >::CreateObject().
Referenced by sofa::component::topology::SparseGridTopology::buildFromTriangleMesh(), sofa::gpu::cuda::CudaDistanceGrid::load(), sofa::component::visualmodel::VisualModelImpl::load(), sofa::component::mapping::RigidRigidMapping< BasicMapping >::load(), sofa::component::mapping::RigidMapping< BasicMapping >::load(), sofa::component::collision::DistanceGrid::load(), sofa::helper::io::MeshTopologyLoader::loadObj(), and main().
Definition at line 118 of file Mesh.h.
References facets.
Referenced by sofa::component::collision::DistanceGrid::calcDistance(), sofa::component::visualmodel::VisualModelImpl::computeMesh(), projects::GenerateRigid(), sofa::gpu::cuda::CudaDistanceGrid::load(), sofa::helper::io::MeshTopologyLoader::loadObj(), sofa::helper::MarchingCubeUtility::run(), sofa::component::visualmodel::VisualModelImpl::setMesh(), and sofa::component::topology::SparseGridTopology::voxelizeTriangleMesh().
| const Material& sofa::helper::io::Mesh::getMaterial | ( | ) | [inline] |
Definition at line 123 of file Mesh.h.
References material.
Referenced by sofa::component::visualmodel::VisualModelImpl::setMesh().
| vector<Vector3>& sofa::helper::io::Mesh::getNormals | ( | ) | [inline] |
Definition at line 117 of file Mesh.h.
References normals.
Referenced by sofa::component::visualmodel::VisualModelImpl::setMesh().
| vector<Vector3>& sofa::helper::io::Mesh::getTexCoords | ( | ) | [inline] |
Definition at line 116 of file Mesh.h.
References texCoords.
Referenced by sofa::component::visualmodel::VisualModelImpl::setMesh().
| std::string& sofa::helper::io::Mesh::getTextureName | ( | ) | [inline] |
| vector<Vector3>& sofa::helper::io::Mesh::getVertices | ( | ) | [inline] |
Definition at line 111 of file Mesh.h.
References vertices.
Referenced by sofa::component::topology::SparseGridTopology::buildFromTriangleMesh(), sofa::component::collision::DistanceGrid::calcDistance(), sofa::component::visualmodel::VisualModelImpl::computeMesh(), projects::GenerateRigid(), sofa::gpu::cuda::CudaDistanceGrid::load(), sofa::component::mapping::RigidRigidMapping< BasicMapping >::load(), sofa::component::mapping::RigidMapping< BasicMapping >::load(), sofa::component::collision::DistanceGrid::load(), sofa::helper::io::MeshTopologyLoader::loadObj(), sofa::helper::MarchingCubeUtility::run(), sofa::component::visualmodel::VisualModelImpl::setMesh(), and sofa::component::topology::SparseGridTopology::voxelizeTriangleMesh().
vector< vector < vector <int> > > sofa::helper::io::Mesh::facets [protected] |
Definition at line 104 of file Mesh.h.
Referenced by getFacets(), sofa::helper::io::MeshOBJ::readOBJ(), and sofa::helper::io::MeshTrian::readTrian().
Material sofa::helper::io::Mesh::material [protected] |
Definition at line 106 of file Mesh.h.
Referenced by getMaterial(), and sofa::helper::io::MeshOBJ::readOBJ().
vector<Vector3> sofa::helper::io::Mesh::normals [protected] |
Definition at line 103 of file Mesh.h.
Referenced by getNormals(), sofa::helper::io::MeshOBJ::readOBJ(), and sofa::helper::io::MeshTrian::readTrian().
vector<Vector3> sofa::helper::io::Mesh::texCoords [protected] |
Definition at line 102 of file Mesh.h.
Referenced by getTexCoords(), sofa::helper::io::MeshOBJ::readOBJ(), and sofa::helper::io::MeshTrian::readTrian().
std::string sofa::helper::io::Mesh::textureName [protected] |
vector<Vector3> sofa::helper::io::Mesh::vertices [protected] |
Definition at line 101 of file Mesh.h.
Referenced by getVertices(), sofa::helper::io::MeshOBJ::readOBJ(), and sofa::helper::io::MeshTrian::readTrian().
1.5.7.1