iMSTK
Interactive Medical Simulation Toolkit
Static Public Member Functions | List of all members
imstk::AssimpMeshIO Class Reference

Assimp reader for surface meshes. More...

#include <imstkAssimpMeshIO.h>

Static Public Member Functions

static std::shared_ptr< PointSetread (const std::string &filePath, MeshFileType type)
 Ensures file can be read and reads it if possible. More...
 
static std::shared_ptr< PointSetreadMeshData (const std::string &filePath)
 Reads mesh data and returns mesh. May read a LineMesh if no triangles & only lines are present. More...
 
static std::shared_ptr< PointSetconvertAssimpMesh (aiMesh *importedMesh)
 Convert from Assimp mesh to iMSTK SurfaceMesh. May convert to LineMesh if no triangles & only lines are present. More...
 
static unsigned int getDefaultPostProcessSteps ()
 Helper function for getting default post processing flags. More...
 

Detailed Description

Assimp reader for surface meshes.

Definition at line 20 of file imstkAssimpMeshIO.h.

Member Function Documentation

◆ convertAssimpMesh()

std::shared_ptr< PointSet > imstk::AssimpMeshIO::convertAssimpMesh ( aiMesh *  importedMesh)
static

Convert from Assimp mesh to iMSTK SurfaceMesh. May convert to LineMesh if no triangles & only lines are present.

Parameters
importedMeshAssimp mesh to convert
Returns
iMSTK SurfaceMesh or LineMesh

Definition at line 68 of file imstkAssimpMeshIO.cpp.

Here is the caller graph for this function:

◆ getDefaultPostProcessSteps()

unsigned int imstk::AssimpMeshIO::getDefaultPostProcessSteps ( )
static

Helper function for getting default post processing flags.

Returns
Bit mask of default flags This function should be used to ensure consistency among different loaders

Definition at line 218 of file imstkAssimpMeshIO.cpp.

Here is the caller graph for this function:

◆ read()

std::shared_ptr< PointSet > imstk::AssimpMeshIO::read ( const std::string &  filePath,
MeshFileType  type 
)
static

Ensures file can be read and reads it if possible.

Parameters
filePathpath to file
typemesh file type
Returns
iMSTK surface mesh

Definition at line 22 of file imstkAssimpMeshIO.cpp.

◆ readMeshData()

std::shared_ptr< PointSet > imstk::AssimpMeshIO::readMeshData ( const std::string &  filePath)
static

Reads mesh data and returns mesh. May read a LineMesh if no triangles & only lines are present.

Parameters
filePath
Returns
iMSTK SurfaceMesh or LineMesh

Definition at line 42 of file imstkAssimpMeshIO.cpp.

Here is the call graph for this function:

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