Skip to content

Commit

Permalink
SplineSettings/normals in MRMarkedContour.h
Browse files Browse the repository at this point in the history
  • Loading branch information
Fedr committed Jan 5, 2025
1 parent af5016b commit 5148ef1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion source/MRMesh/MRMarkedContour.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ MarkedContour3f makeSpline( const Contour3f & controlPoints, const SplineSetting
for ( auto m : res.marks )
res.contour[m] = controlPoints[n++];
}
res = makeSpline( resample( res, settings.samplingStep ), settings.controlStability );
res = makeSpline( resample( res, settings.samplingStep, settings.normals ), settings.controlStability );
}
return res;
}
Expand Down
3 changes: 3 additions & 0 deletions source/MRMesh/MRMarkedContour.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ struct SplineSettings
/// which in turn depends on the length of input contour being sampled;
/// setting iterations greater than one allows you to pass a constructed spline as a better input contour to the next run of the algorithm
int iterations = 1;

/// optional parameter with the normals of input points that will be resampled to become normals of output points
Contour3f * normals = nullptr;
};

/// \param controlPoints ordered point the spline to interpolate
Expand Down

0 comments on commit 5148ef1

Please sign in to comment.