From 5fbeb23d2a78280b00924c0560ce9a8d221b825e Mon Sep 17 00:00:00 2001 From: Hrvoje Jasak Date: Mon, 7 Sep 2015 11:36:46 +0100 Subject: [PATCH] Optimisation --- src/foam/algorithms/polygon/clipping/SutherlandHodgman.C | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/foam/algorithms/polygon/clipping/SutherlandHodgman.C b/src/foam/algorithms/polygon/clipping/SutherlandHodgman.C index 18934eb97..caa37636f 100644 --- a/src/foam/algorithms/polygon/clipping/SutherlandHodgman.C +++ b/src/foam/algorithms/polygon/clipping/SutherlandHodgman.C @@ -24,7 +24,7 @@ License Author Martin Beaudoin, Hydro-Quebec, (2008) -\*----------------------------------------------------------------------------*/ +\*---------------------------------------------------------------------------*/ #include "SutherlandHodgman.H" @@ -157,8 +157,8 @@ Foam::SutherlandHodgman::SutherlandHodgman Foam::List Foam::SutherlandHodgman::evaluate() { - DynamicList clippedPolygon(0); - DynamicList clippedVertexInside(0); + DynamicList clippedPolygon(0); + DynamicList clippedVertexInside(0); point2D interSectPt; label S = subjectPolygon_.size() - 1; @@ -249,7 +249,7 @@ Foam::List Foam::SutherlandHodgman::evaluate() // Are we done? if (currentClipEdgeP2_ < clippingPolygon_.size()) { - //clip against next edge, re-entrant. + // Clip against next edge, re-entrant. evaluate(); }