Skip to content
Snippets Groups Projects
Commit 7a321282 authored by Mark Olesen's avatar Mark Olesen
Browse files

curvedEdges - collapse unneed function

parent 19d3e880
No related branches found
No related tags found
No related merge requests found
...@@ -36,20 +36,6 @@ namespace Foam ...@@ -36,20 +36,6 @@ namespace Foam
addToRunTimeSelectionTable(curvedEdge, polySplineEdge, Istream); addToRunTimeSelectionTable(curvedEdge, polySplineEdge, Istream);
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
//! @cond fileScope
inline label nsize(const label otherKnotsSize, const label nBetweenKnots)
{
return otherKnotsSize*(1 + nBetweenKnots) + nBetweenKnots + 2;
}
//! @endcond fileScope
}
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
// intervening : returns a list of the points making up the polyLineEdge // intervening : returns a list of the points making up the polyLineEdge
...@@ -75,7 +61,10 @@ Foam::pointField Foam::polySplineEdge::intervening ...@@ -75,7 +61,10 @@ Foam::pointField Foam::polySplineEdge::intervening
sndend sndend
); );
const label nSize(nsize(otherknots.size(), nBetweenKnots)); const label nSize
(
otherknots.size() * (1 + nBetweenKnots) + nBetweenKnots + 2
);
const label NKnots = spl.nKnots(); const label NKnots = spl.nKnots();
const scalar init = 1.0/(NKnots - 1); const scalar init = 1.0/(NKnots - 1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment