TRI (triangle) file reader. More...
#include <TRIReader.H>


Public Member Functions | |
| TRIReader (const fileName &filename) | |
| Read from file, filling in the information. | |
| ~TRIReader ()=default | |
| Destructor. | |
| void | clear () |
| Flush all values. | |
| label | mergePointsMap (labelList &pointMap) const |
| Calculate merge points mapping, return old to new pointMap. | |
| label | mergePointsMap (const scalar mergeTol, labelList &pointMap) const |
| Calculate merge points mapping, return old to new pointMap. | |
| bool | is_sorted () const noexcept |
| File read was already in sorted order. | |
| List< STLpoint > & | points () noexcept |
| Return full access to the points. | |
| List< label > & | zoneIds () noexcept |
| Return full access to the zones. | |
| List< word > & | names () noexcept |
| The list of solid names in the order of their first appearance. | |
| List< label > & | sizes () noexcept |
| The list of zone sizes in the order of their first appearance. | |
| Public Member Functions inherited from surfaceFormatsCore | |
| surfaceFormatsCore ()=default | |
| Default construct. | |
| virtual | ~surfaceFormatsCore ()=default |
| Destructor. | |
Additional Inherited Members | |
| Static Public Member Functions inherited from surfaceFormatsCore | |
| static bool | checkSupport (const wordHashSet &available, const word &fileType, const bool verbose=false, const char *functionName=nullptr) |
| Verbose checking of fileType in the list of available types. | |
| static fileName | findFile (const IOobject &io, const bool isGlobal=true) |
| Use IOobject information to resolve file to load from, or empty if the file does not exist. | |
| static fileName | findFile (const IOobject &io, const dictionary &dict, const bool isGlobal=true) |
| Use IOobject information to resolve file to load from, or empty if the file does not exist. | |
| Static Public Attributes inherited from surfaceFormatsCore | |
| static word | nativeExt |
| The file extension corresponding to 'native' surface format. | |
| Static Protected Member Functions inherited from surfaceFormatsCore | |
| static string | getLineNoComment (ISstream &is, const char comment='#') |
| Read non-empty and non-comment line. | |
| template<class Container> | |
| static List< surfZone > | oneZone (const Container &container, const word &name="zone0") |
| Return a surfZone list with a single entry, the size of which corresponds to that of the container. | |
| static labelList | getSelectedPatches (const surfZoneList &patches, const wordRes &allow, const wordRes &deny=wordRes()) |
| Return ids for zone/patch that match by name. | |
| static fileName | relativeFilePath (const IOobject &io, const fileName &f, const bool isGlobal=true) |
| Return fileName. | |
| static fileName | checkFile (const IOobject &io, const bool isGlobal=true) |
| Return fileName to load IOobject from. | |
| static fileName | checkFile (const IOobject &io, const dictionary &dict, const bool isGlobal=true) |
| Return fileName to load IOobject from. | |
TRI (triangle) file reader.
For TRI format (eg, AC3D). Each input line has 9 floats (3 points, each 3 floats) followed by hex colour. The colour is used to build regions numbered from 0 upwards.
Reading and stitching similar to the STLReader.
Definition at line 57 of file TRIReader.H.
|
explicit |
Read from file, filling in the information.
Definition at line 160 of file TRIReader.C.
|
default |
Destructor.
| void clear | ( | ) |
Flush all values.
Definition at line 177 of file TRIReader.C.
| Foam::label mergePointsMap | ( | labelList & | pointMap | ) | const |
Calculate merge points mapping, return old to new pointMap.
Use merge tolerance as per STL ascii
Definition at line 187 of file TRIReader.C.
References Foam::doubleScalarSMALL, and mergePointsMap().
Referenced by mergePointsMap(), and TRIsurfaceFormat< Face >::read().


| Foam::label mergePointsMap | ( | const scalar | mergeTol, |
| labelList & | pointMap ) const |
Calculate merge points mapping, return old to new pointMap.
Definition at line 201 of file TRIReader.C.
References Foam::mergePoints().

|
inlinenoexcept |
File read was already in sorted order.
Definition at line 133 of file TRIReader.H.
References Foam::noexcept.
Referenced by TRIsurfaceFormat< Face >::read().

Return full access to the points.
Definition at line 138 of file TRIReader.H.
References Foam::noexcept.
Referenced by TRIsurfaceFormat< Face >::read().

|
inlinenoexcept |
Return full access to the zones.
Definition at line 143 of file TRIReader.H.
References Foam::noexcept.
Referenced by TRIsurfaceFormat< Face >::read().

The list of solid names in the order of their first appearance.
Definition at line 148 of file TRIReader.H.
References Foam::noexcept.
|
inlinenoexcept |
The list of zone sizes in the order of their first appearance.
Definition at line 153 of file TRIReader.H.
References Foam::noexcept.
Referenced by TRIsurfaceFormat< Face >::read().
