◆ STLReader()
STLReader::STLReader |
( |
std::string |
fileName | ) |
|
|
inline |
double readFloat(unsigned int size)
read the next so many bytes as a double (not in this case they were saves as a float orgainlly)
Definition: BinaryReader.cc:108
void ignoreChar(unsigned int size)
read and ignore the next number of characters
Definition: BinaryReader.cc:133
BinaryReader(std::string)
Default constuction, requires to users to prove the name of the file that will be opened.
Definition: BinaryReader.cc:41
unsigned int readUnsignedInt(unsigned int size)
read the next so many bytes as a unsined int
Definition: BinaryReader.cc:121
std::string readString(unsigned int numChar)
reads the next so many Characters (bytes) as a std::string
Definition: BinaryReader.cc:80
std::vector< STLTriangle > Triangles_
Definition: BinaryReaderSTL1by1by1bySquareUnitTest.cpp:142
std::string header_
Definition: BinaryReaderSTL1by1by1bySquareUnitTest.cpp:140
unsigned numTriangles_
Definition: BinaryReaderSTL1by1by1bySquareUnitTest.cpp:141
const std::complex< Mdouble > i
Definition: ExtendedMath.h:51
References header_, constants::i, BinaryReader::ignoreChar(), numTriangles_, BinaryReader::readFloat(), BinaryReader::readString(), BinaryReader::readUnsignedInt(), and Triangles_.
◆ addTriangle()
void STLReader::addTriangle |
( |
const Vec3D |
normal, |
|
|
const Vec3D |
vertex1, |
|
|
const Vec3D |
vertex2, |
|
|
const Vec3D |
vertex3 |
|
) |
| |
|
inline |
117 STLTriangle triangleToAdd(normal,vertex1,vertex2,vertex3);
Test of the STL reader. The files used is STL file with containing 12 triange that a 1 by 1 by 1 squa...
Definition: BinaryReaderSTL1by1by1bySquareUnitTest.cpp:39
References Triangles_.
◆ getTriangle()
STLTriangle STLReader::getTriangle |
( |
const unsigned int |
num | ) |
|
|
inline |
◆ output()
void STLReader::output |
( |
| ) |
|
|
inline |
◆ header_
std::string STLReader::header_ |
|
private |
◆ numTriangles_
unsigned STLReader::numTriangles_ |
|
private |
◆ Triangles_
The documentation for this class was generated from the following file: