◆ STLReader()
STLReader::STLReader |
( |
std::string |
fileName | ) |
|
|
inline |
int i
Definition: BiCGSTAB_step_by_step.cpp:9
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:85
void ignoreChar(unsigned int size)
read and ignore the next number of characters
Definition: BinaryReader.cc:110
BinaryReader(std::string)
Default constuction, requires to users to prove the name of the file that will be opened.
Definition: BinaryReader.cc:18
unsigned int readUnsignedInt(unsigned int size)
read the next so many bytes as a unsined int
Definition: BinaryReader.cc:98
std::string readString(unsigned int numChar)
reads the next so many Characters (bytes) as a std::string
Definition: BinaryReader.cc:57
std::vector< STLTriangle > Triangles_
Definition: BinaryReaderSTL1by1by1bySquareUnitTest.cpp:121
std::string header_
Definition: BinaryReaderSTL1by1by1bySquareUnitTest.cpp:119
unsigned numTriangles_
Definition: BinaryReaderSTL1by1by1bySquareUnitTest.cpp:120
References header_, 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 |
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:18
void normal(const Vector< double > &x, Vector< double > &normal)
Definition: free_surface_rotation.cc:65
References WallFunction::normal(), and Triangles_.
◆ getTriangle()
◆ output()
void STLReader::output |
( |
| ) |
|
|
inline |
◆ header_
std::string STLReader::header_ |
|
private |
◆ numTriangles_
◆ Triangles_
The documentation for this class was generated from the following file: