Skip to content

FFlVisualization cleaning - #51

Merged
kmokstad merged 11 commits into
openfedem:mainfrom
kmokstad:fflviz-clean
May 9, 2026
Merged

FFlVisualization cleaning#51
kmokstad merged 11 commits into
openfedem:mainfrom
kmokstad:fflviz-clean

Conversation

@kmokstad

@kmokstad kmokstad commented May 3, 2026

Copy link
Copy Markdown

Simplify some logic and data structures - no intended functionality change.
See commit log for details.
Includes #50.

kmokstad and others added 11 commits April 26, 2026 12:31
…ke option.

Add variable BUILD_FOUNDATION_TESTS to signal the test build and execution.
Add variable USE_FORTRAN_INTERFACE in the CMakeLists.txt file of FFlLib.
Build FFlLinkHandler_F.C in a separate library to simplify dependencies.
Add FFlVisEdge::getVertexIdx() and FFlVisEdgeRef::get[First|Second]VxIdx().
Add check for null pointer before dereferencing them.
new methods for positive and negative face directions, respectively.
Use a lambda for repetitive tasks in FFlVisFace::getElmFaceVertices().
Use array indices in the functor FFlVisFace::FFlVisFaceLess
to avoid the need for the static iterator variables.
Let FFlVisFace::setFaceVertices() return false if degenerated face.
FFlGroupPartCreator::joinFacesFromEdge() using FFlVisFace::nextEdge()
Remove the isIndexShape member - check shapeIndexes.empty() instead.
Add begin() and end() for iterating over the myLinkParts map.
Remove reference to vertex container as member,
using myWorkLink->getVertexes() instead when needed.
Move method setEdgeGeomStatus() to class FFlVisFace.
with the only use being inside the other relation operators.
The functor FFlVisEdgeEqual is then no longer needed.
Replace FFlVisEdgeRef::getEdge() by FFlVisEdgeRef::sameAs(),
which only compares the FFlVisEdge pointer members.
Use std::find_if() with a lambda when searching for matching edge
in neighboring faces in FFlGroupPartCreator::joinFacesFromEdge().
Some of the private methods are moved into anonymous namespace in
the implementation file while others are reimplemented as lambdas.
The unused method isLinesIntersecting() is removed completely.
@kmokstad
kmokstad merged commit 4e3df0b into openfedem:main May 9, 2026
1 check passed
@kmokstad
kmokstad deleted the fflviz-clean branch May 9, 2026 06:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant