Provide a means of reading/writing Alias/Wavefront OBJ format. More...
Public Member Functions | |
OBJedgeFormat (const fileName &) | |
virtual | ~OBJedgeFormat ()=default |
virtual bool | read (const fileName &name) |
virtual void | write (const fileName &name, IOstreamOption streamOpt=IOstreamOption(), const dictionary &options=dictionary::null) const |
![]() | |
edgeMesh (const faMesh &mesh) | |
label | size () const |
const edgeVectorField & | C () const |
TypeName ("edgeMesh") | |
edgeMesh () | |
edgeMesh (const edgeMesh &em) | |
edgeMesh (edgeMesh &&em) | |
edgeMesh (const pointField &points, const edgeList &edges) | |
edgeMesh (pointField &&pointLst, edgeList &&edgeLst) | |
edgeMesh (const fileName &name) | |
edgeMesh (const fileName &name, const word &fileType) | |
declareRunTimeSelectionTable (autoPtr, edgeMesh, fileExtension,(const fileName &name),(name)) | |
virtual | ~edgeMesh ()=default |
declareMemberFunctionSelectionTable (void, edgeMesh, write, fileExtension,(const fileName &name, const edgeMesh &mesh, IOstreamOption streamOpt, const dictionary &options),(name, mesh, streamOpt, options)) | |
void | transfer (edgeMesh &mesh) |
bool | read (const fileName &name, const word &fileType) |
const pointField & | points () const noexcept |
const edgeList & | edges () const noexcept |
const labelListList & | pointEdges () const |
label | regions (labelList &edgeRegion) const |
virtual void | clear () |
virtual void | scalePoints (const scalar scaleFactor) |
virtual void | mergePoints (const scalar mergeDist) |
virtual void | mergeEdges () |
virtual void | writeStats (Ostream &) const |
virtual void | write (const fileName &name, const word &fileType, IOstreamOption streamOpt=IOstreamOption(), const dictionary &options=dictionary::null) const |
void | operator= (const edgeMesh &rhs) |
void | operator= (edgeMesh &&rhs) |
![]() | |
GeoMesh (const faMesh &mesh) | |
bool | hasDb () const |
const objectRegistry & | thisDb () const |
const faMesh & | operator() () const |
Static Public Member Functions | |
static autoPtr< edgeMesh > | New (const fileName &name) |
static void | write (const fileName &filename, const edgeMesh &mesh, IOstreamOption=IOstreamOption(), const dictionary &options=dictionary::null) |
![]() | |
static label | size (const Mesh &mesh) |
static wordHashSet | readTypes () |
static wordHashSet | writeTypes () |
static bool | canReadType (const word &fileType, bool verbose=false) |
static bool | canWriteType (const word &fileType, bool verbose=false) |
static bool | canRead (const fileName &name, bool verbose=false) |
static autoPtr< edgeMesh > | New (const fileName &name, const word &fileType) |
static autoPtr< edgeMesh > | New (const fileName &name) |
static void | write (const fileName &name, const edgeMesh &mesh, IOstreamOption streamOpt=IOstreamOption(), const dictionary &options=dictionary::null) |
static void | write (const fileName &name, const word &fileType, const edgeMesh &mesh, IOstreamOption streamOpt=IOstreamOption(), const dictionary &options=dictionary::null) |
Additional Inherited Members | |
![]() | |
typedef faMesh | Mesh |
typedef faMesh ::BoundaryMesh | BoundaryMesh |
![]() | |
pointField & | storedPoints () noexcept |
edgeList & | storedEdges () noexcept |
![]() | |
const faMesh & | mesh_ |
Provide a means of reading/writing Alias/Wavefront OBJ format.
Does not handle negative vertex indices.
Definition at line 53 of file OBJedgeFormat.H.
OBJedgeFormat | ( | const fileName & | filename | ) |
Definition at line 79 of file OBJedgeFormat.C.
References Foam::blockMeshTools::read().
|
virtualdefault |
Definition at line 77 of file OBJedgeFormat.H.
References Foam::name().
|
static |
Definition at line 219 of file OBJedgeFormat.C.
References IOstreamOption::ASCII, clock::dateTime(), Foam::constant::electromagnetic::e, Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, IOstreamOption::format(), mesh, Foam::nl, os(), and p.
Referenced by OBJedgeFormat::write().
Reimplemented from edgeMesh.
Definition at line 89 of file OBJedgeFormat.C.
References DynamicList::append(), edgeMesh::clear(), Foam::constant::electromagnetic::e, Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, IOstream::good(), Foam::readObjVertices(), DynamicList::setSize(), Foam::stringOps::splitSpace(), edgeMesh::storedEdges(), edgeMesh::storedPoints(), List::transfer(), and word::validate().
|
inlinevirtual |
Reimplemented from edgeMesh.
Definition at line 106 of file OBJedgeFormat.H.
References Foam::name(), and OBJedgeFormat::write().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.