Fast Bezier Curves

Version 1.0.0 (1,86 ko) par Moreno, M.
Evaluates a Bezier curve given its control points and knot vector or resolution.
4 téléchargements
Mise à jour 7 nov. 2024

Afficher la licence

% Generate control points
x = rand(5, 2);
% Evaluate Bezier uniformly
[y, b] = bez(x, 100); % Export binomial coefficients
% Evaluate Bezier at knots
z = bez(x, rand(5, 1), b); % Recycle binomial calculation
% Plot results
figure
hold on
plot(y(:, 1), y(:, 2), 'LineWidth', 1.5)
plot(z(:, 1), z(:, 2), 'o', 'LineWidth', 1.2, 'MarkerFaceColor', 'w')
plot(x(:, 1), x(:, 2), '.-', 'LineWidth', 1, 'MarkerSize', 12)
fprintf('Binomial coefficient: [%d %d %d %d %d]\n', b.')

Citation pour cette source

Moreno, M. (2025). Fast Bezier Curves (https://www.mathworks.com/matlabcentral/fileexchange/175205-fast-bezier-curves), MATLAB Central File Exchange. Extrait(e) le .

Compatibilité avec les versions de MATLAB
Créé avec R2024b
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Tags Ajouter des tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Version Publié le Notes de version
1.0.0