This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Please note: The code below has not been compiled. Includes are missing. | |
// This snippet is just for illustration purposes. Feedback is highly appreciated, of course. | |
// First we'll read the stl data into local arrays. Each triplet in `rawPoints` corresponds to one | |
// 3D point and each triplet in `rawTriNormals` to one 3D triangle normal. | |
std::vector <float> rawPoints, rawTriNormals; | |
std::vector <unsigned int> triIndices, solids; | |
stl_reader::ReadStlFile ("geometry.stl", rawPoints, rawTriNormals, triIndices, solids); |