mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: foamyHexMesh: Do not output point insertion failure to screen by default.
- Write some comments
This commit is contained in:
@ -219,7 +219,7 @@ void Foam::DelaunayMesh<Triangulation>::insertPoints(const List<Vb>& vertices)
|
|||||||
(
|
(
|
||||||
vertices.begin(),
|
vertices.begin(),
|
||||||
vertices.end(),
|
vertices.end(),
|
||||||
true
|
false
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -90,6 +90,7 @@ public:
|
|||||||
FixedList<label, 2>::Hash<>
|
FixedList<label, 2>::Hash<>
|
||||||
> labelTolabelPairHashTable;
|
> labelTolabelPairHashTable;
|
||||||
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
// Private data
|
// Private data
|
||||||
@ -184,30 +185,49 @@ public:
|
|||||||
|
|
||||||
// Member Functions
|
// Member Functions
|
||||||
|
|
||||||
|
// Access
|
||||||
|
|
||||||
|
//- Return a reference to the Time object
|
||||||
inline const Time& time() const;
|
inline const Time& time() const;
|
||||||
|
|
||||||
|
|
||||||
|
// Check
|
||||||
|
|
||||||
|
//- Write the cpuTime to screen
|
||||||
inline void timeCheck
|
inline void timeCheck
|
||||||
(
|
(
|
||||||
const string& description,
|
const string& description,
|
||||||
const bool check = true
|
const bool check = true
|
||||||
) const;
|
) const;
|
||||||
|
|
||||||
inline label getNewVertexIndex() const;
|
|
||||||
|
|
||||||
|
// Indexing functions
|
||||||
|
|
||||||
|
//- Create a new unique cell index and return
|
||||||
inline label getNewCellIndex() const;
|
inline label getNewCellIndex() const;
|
||||||
|
|
||||||
|
//- Create a new unique vertex index and return
|
||||||
|
inline label getNewVertexIndex() const;
|
||||||
|
|
||||||
|
//- Return the cell count (the next unique cell index)
|
||||||
inline label cellCount() const;
|
inline label cellCount() const;
|
||||||
|
|
||||||
inline void resetCellCount();
|
//- Return the vertex count (the next unique vertex index)
|
||||||
|
|
||||||
inline label vertexCount() const;
|
inline label vertexCount() const;
|
||||||
|
|
||||||
|
//- Set the cell count to zero
|
||||||
|
inline void resetCellCount();
|
||||||
|
|
||||||
|
//- Set the vertex count to zero
|
||||||
inline void resetVertexCount();
|
inline void resetVertexCount();
|
||||||
|
|
||||||
|
|
||||||
//- Remove the entire triangulation
|
// Triangulation manipulation functions
|
||||||
|
|
||||||
|
//- Clear the entire triangulation
|
||||||
void reset();
|
void reset();
|
||||||
|
|
||||||
|
//- Insert the list of vertices (calls rangeInsertWithInfo)
|
||||||
void insertPoints(const List<Vb>& vertices);
|
void insertPoints(const List<Vb>& vertices);
|
||||||
|
|
||||||
//- Function inserting points into a triangulation and setting the
|
//- Function inserting points into a triangulation and setting the
|
||||||
@ -221,14 +241,16 @@ public:
|
|||||||
(
|
(
|
||||||
PointIterator begin,
|
PointIterator begin,
|
||||||
PointIterator end,
|
PointIterator end,
|
||||||
bool printErrors = true
|
bool printErrors = false
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
// Queries
|
// Write
|
||||||
|
|
||||||
|
//- Write mesh statistics to stream
|
||||||
void printInfo(Ostream& os) const;
|
void printInfo(Ostream& os) const;
|
||||||
|
|
||||||
|
//- Write vertex statistics in the form of a table to stream
|
||||||
void printVertexInfo(Ostream& os) const;
|
void printVertexInfo(Ostream& os) const;
|
||||||
|
|
||||||
//- Create an fvMesh from the triangulation.
|
//- Create an fvMesh from the triangulation.
|
||||||
|
|||||||
Reference in New Issue
Block a user