140 void derivatives(
float u,
const gsl::span<Imath::V3f>& derivatives)
const;
155 float param_from_length(
157 bool relative =
false,
158 float error = 0.001f,
160 const std::shared_ptr<const NurbsCurveParamFromLengthCache>& cache =
nullptr 165 std::shared_ptr<const NurbsCurveParamFromLengthCache> param_from_length_cache(
float error = 0.001f,
int n=100)
const;
175 float error = 0.001f,
177 const gsl::span<const Imath::V3f>& cache = {}
188 void resample(
const gsl::span<const float> &knots,
int degree);
198 void split(
float u, NurbsCurve& lower, NurbsCurve& upper)
const;
206 NurbsCurve(std::shared_ptr<Impl> impl) { _impl=impl; }
Definition: ImathFrame.h:42
void error(const char *format, const Args &... args)
Log an error message using the Rumba logger.
Definition: Logger.h:50
Definition: NurbsCurve.h:21
Mode
The surface curves mode.
Definition: NurbsCurve.h:30
This version of the SDK is unstable, i-e, it may change with no warning.
Definition: AddCurveAction.h:20
A nurbs curve value.
Definition: NurbsCurve.h:26
#define MAQUINA_EXPORT
Definition: Export.h:31
MAQUINA_EXPORT std::vector< std::string > split(const StringView &s, const StringView &sep)
Return a list of the words in the string, using the sep string as delimiter.
Definition: ImathVec.h:61
static const NurbsCurve default_value
The default value.
Definition: NurbsCurve.h:203
A writable buffer for basic types like floats, integers, Imath::V3f, Imath::M44f..
Definition: Buffer.h:111
A set of 3d points.
Definition: Points.h:25
Base class of all Rumba values.
Definition: Value.h:34