Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Common/include/interface_interpolation/CSlidingMesh.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,14 @@ class CSlidingMesh final : public CInterpolator {
static su2double ComputeIntersectionArea(const su2double* P1, const su2double* P2, const su2double* P3,
const su2double* Q1, const su2double* Q2, const su2double* Q3);

/*!
* \brief For 3-Dimensional grids, compute area between of one triangle
* \param[in] P1 - first point of triangle
* \param[in] P2 - second point of triangle
* \param[in] P3 - third point of triangle
*/
static su2double ComputeTriangleArea(const su2double* P1, const su2double* P2, const su2double* P3);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since it's just one line it's better to define it inline. We may already have something similar in GeometryToolbox, and if not you can add this function to it.


/*!
* \brief For 2-Dimensional grids, check whether, and compute, two lines are intersecting
* \param[in] A1 - first defining first line
Expand Down
Loading