Optimisation

This commit is contained in:
Hrvoje Jasak 2015-09-07 11:36:46 +01:00
parent 7cea6075d7
commit 5fbeb23d2a

View file

@ -24,7 +24,7 @@ License
Author
Martin Beaudoin, Hydro-Quebec, (2008)
\*----------------------------------------------------------------------------*/
\*---------------------------------------------------------------------------*/
#include "SutherlandHodgman.H"
@ -157,8 +157,8 @@ Foam::SutherlandHodgman::SutherlandHodgman
Foam::List<Foam::point2D> Foam::SutherlandHodgman::evaluate()
{
DynamicList<point2D> clippedPolygon(0);
DynamicList<bool> clippedVertexInside(0);
DynamicList<point2D, 8> clippedPolygon(0);
DynamicList<bool, 8> clippedVertexInside(0);
point2D interSectPt;
label S = subjectPolygon_.size() - 1;
@ -249,7 +249,7 @@ Foam::List<Foam::point2D> Foam::SutherlandHodgman::evaluate()
// Are we done?
if (currentClipEdgeP2_ < clippingPolygon_.size())
{
//clip against next edge, re-entrant.
// Clip against next edge, re-entrant.
evaluate();
}