19[[nodiscard]]
inline bool isClosed(
const Contour3f& c ) {
return c.size() > 1 && c.front() == c.back(); }
24 const auto sz = in.size();
31 const auto sz = in.size();
#define MRMESH_API
Definition MRMeshFwd.h:80
BitSet & set(IndexType n, size_type len, bool val)
class MRMESH_CLASS BitSet
Definition MRMeshFwd.h:151
Contour3< float > Contour3f
Definition MRMeshFwd.h:382
MarkedContour3f markedContour(Contour3f in)
Definition MRMarkedContour.h:22
float samplingStep
Definition MRMarkedContour.h:59
bool isClosed(const ContinuousContour &contour)
returns true if contour is closed
Contour3f contour
Definition MRMarkedContour.h:15
float controlStability
a positive value, the more the value the closer resulting spline will be to given control points
Definition MRMarkedContour.h:62
Contour3f * normals
optional parameter with the normals of input points that will be resampled to become normals of outpu...
Definition MRMarkedContour.h:70
MarkedContour3f markedFirstLast(Contour3f in)
Definition MRMarkedContour.h:29
int iterations
Definition MRMarkedContour.h:67
MarkedContour3f resample(const MarkedContour3f &in, float minStep, Contour3f *normals=nullptr)
bool normalsAffectShape
if true and normals are provided, then the curve at marked points will try to be orthogonal to given ...
Definition MRMarkedContour.h:73
MarkedContour3f makeSpline(MarkedContour3f in, float markStability=1, const Contour3f *normals=nullptr)
BitSet marks
indices of control (marked) points
Definition MRMarkedContour.h:16
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
Definition MRMarkedContour.h:14
Definition MRMarkedContour.h:56