iMSTK
Interactive Medical Simulation Toolkit
imstkAssimpMeshIO.h
1 /*
2 ** This file is part of the Interactive Medical Simulation Toolkit (iMSTK)
3 ** iMSTK is distributed under the Apache License, Version 2.0.
4 ** See accompanying NOTICE for details.
5 */
6 
7 #pragma once
8 
9 #include "imstkMeshIO.h"
10 
11 struct aiMesh;
12 
13 namespace imstk
14 {
21 {
22 public:
29  static std::shared_ptr<PointSet> read(
30  const std::string& filePath,
31  MeshFileType type);
32 
39  static std::shared_ptr<PointSet> readMeshData(const std::string& filePath);
40 
47  static std::shared_ptr<PointSet> convertAssimpMesh(aiMesh* importedMesh);
48 
54  static unsigned int getDefaultPostProcessSteps();
55 };
56 } // namespace imstk
static std::shared_ptr< PointSet > read(const std::string &filePath, MeshFileType type)
Ensures file can be read and reads it if possible.
MeshFileType
Enumeration the mesh file type.
Definition: imstkMeshIO.h:19
Compound Geometry.
Assimp reader for surface meshes.
static unsigned int getDefaultPostProcessSteps()
Helper function for getting default post processing flags.
static std::shared_ptr< PointSet > convertAssimpMesh(aiMesh *importedMesh)
Convert from Assimp mesh to iMSTK SurfaceMesh. May convert to LineMesh if no triangles & only lines a...
static std::shared_ptr< PointSet > readMeshData(const std::string &filePath)
Reads mesh data and returns mesh. May read a LineMesh if no triangles & only lines are present...