open_iA  2019.12
A tool for the visual analysis and processing of volumetric datasets, with a focus on industrial computed tomography.
Functions
iASTLLoader.h File Reference
#include "iADreamCasterCommon.h"
#include <vector>
Include dependency graph for iASTLLoader.h:
This graph shows which files directly or indirectly include this file:

Functions

int readSTLFile (QString const &filename, std::vector< iAtriangle * > &stlMesh, std::vector< iAVec3f * > &vertices, iAaabb &box)
 Load mesh from stl file by its file name. More...
 

Function Documentation

◆ readSTLFile()

int readSTLFile ( QString const &  filename,
std::vector< iAtriangle * > &  stlMesh,
std::vector< iAVec3f * > &  vertices,
iAaabb box 
)

Load mesh from stl file by its file name.

Parameters
filenamefile name of stl file
stlMeshthe triangles of the mesh
verticesthe vertices of the mesh
boxthe bounding box of the mesh
Returns
0 if reading succeeded, otherwise an error code

< loaded mesh's scale coefficient

< loaded mesh's axes offsets

< reader used to load mesh from stl file