Skip to content

Commit

Permalink
Syntax fix + use the fullDepth input parameter instead of the default…
Browse files Browse the repository at this point in the history
… one ;)
  • Loading branch information
dgirardeau committed Jul 30, 2021
1 parent 863f80c commit 8683f6c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Src_CC_wrap/PoissonReconLib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,10 @@ struct FEMTreeProfiler {
};

template <class Real, unsigned int Dim>
XForm<Real, Dim + 1> GetBoundingBoxXForm(Point<Real, Dim> min,
Point<Real, Dim> max,
Real scaleFactor) {
XForm<Real, Dim + 1> GetBoundingBoxXForm( const Point<Real, Dim>& min,
const Point<Real, Dim>& max,
Real scaleFactor)
{
Point<Real, Dim> center = (max + min) / 2;
Real scale = max[0] - min[0];
for (unsigned int d = 1; d < Dim; d++) {
Expand All @@ -210,8 +211,8 @@ XForm<Real, Dim + 1> GetBoundingBoxXForm(Point<Real, Dim> min,
}

template <class Real, unsigned int Dim>
XForm<Real, Dim + 1> GetBoundingBoxXForm( Point<Real, Dim> min,
Point<Real, Dim> max,
XForm<Real, Dim + 1> GetBoundingBoxXForm( const Point<Real, Dim>& min,
const Point<Real, Dim>& max,
Real width,
Real scaleFactor,
int& depth)
Expand Down Expand Up @@ -430,7 +431,6 @@ static bool Execute(PointStream<Real>& pointStream,

//default parameters
const int solve_depth = depth;
const int full_depth = 5;
const bool exact_interpolation = false;
const Real target_value = static_cast<Real>(0.5);

Expand Down Expand Up @@ -556,7 +556,7 @@ static bool Execute(PointStream<Real>& pointStream,
{
constexpr int MAX_DEGREE = NORMAL_DEGREE > Degrees::Max() ? NORMAL_DEGREE : Degrees::Max();

tree.template finalizeForMultigrid<MAX_DEGREE>( full_depth,
tree.template finalizeForMultigrid<MAX_DEGREE>( params.fullDepth,
typename FEMTree<Dim, Real>::template HasNormalDataFunctor<NormalSigs>(*normalInfo),
normalInfo,
density.get() );
Expand Down

0 comments on commit 8683f6c

Please sign in to comment.