Skip to content

About

Matlab NURBS library

Resources

Stars

4 stars

Watchers

2 watching

Forks

Repository files navigation

splinecloud-matlab

SplineCloud client library for MATLAB

Example

clear variables; clear all; clc;

addpath(genpath('splinecloud-matlab'));

curveId = 'spl_BUDRcYh1Mbvy';

spline = fetchCurve(curveId);

[ctrlPoints, knots] = extractNurbsParams(spline);

nurbs = nrbmak(ctrlPoints, knots);

xPoints = linspace(0, 5, 100);
xLength = length(xPoints);
yPoints = zeros(1, xLength);

for i = 1:xLength
    yPoints(i) = getYByX(nurbs, xPoints(i));
end

plot(xPoints, yPoints);

alt text

Uses:

About

Matlab NURBS library

Resources

Stars

4 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages