![]() |
open_iA
2019.12
A tool for the visual analysis and processing of volumetric datasets, with a focus on industrial computed tomography.
|
#include "../include/iASTLLoader.h"#include "../../iADreamCaster.h"#include <io/iAFileUtils.h>#include <vtksys/SystemTools.hxx>#include <QString>#include <fstream>Classes | |
| struct | iATri |
| Structure representing triangle of stl file. Just a container. Nothing special. Contains data about triangle's normal and 3 vetrices. More... | |
Macros | |
| #define | ASCII_FILE 1 |
| #define | BINARY_FILE 0 |
Functions | |
| void | computeBBox (std::vector< iAtriangle * > &, std::vector< iAVec3f * > &vertices, iAaabb &box, float &scale_coef, float *translate3f) |
| 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... | |
Variables | |
| iADreamCaster * | dcast |
| used just for logging, to call log() method More... | |
| #define ASCII_FILE 1 |
| #define BINARY_FILE 0 |
|
inline |
| int readSTLFile | ( | QString const & | filename, |
| std::vector< iAtriangle * > & | stlMesh, | ||
| std::vector< iAVec3f * > & | vertices, | ||
| iAaabb & | box | ||
| ) |
Load mesh from stl file by its file name.
| filename | file name of stl file |
| stlMesh | the triangles of the mesh |
| vertices | the vertices of the mesh |
| box | the bounding box of the mesh |
< loaded mesh's scale coefficient
< loaded mesh's axes offsets
< reader used to load mesh from stl file
| iADreamCaster* dcast |
used just for logging, to call log() method
1.8.16