Code covered by the BSD License  

Highlights from
Smooth 3D bezier curves with implicit control points

5.0 | 1 rating Rate this file 18 Downloads (last 30 days) File Size: 5.6 KB File ID: #42302 Version: 1.0
image thumbnail

Smooth 3D bezier curves with implicit control points



Uses Hobby's algorithm to plot smooth curves in 3D through specified control points

Editor's Notes:

This file was selected as MATLAB Central Pick of the Week

| Watch this File

File Information

This code can be used to draw 3D cubic splines by only entering the points through which the spline should pass.

In other words, smooth curves can be drawn by simply defining occasional points through which the curve should pass.

Bezier control points are calculated automatically using the Hobby's algorithm (1986), which allows a slope and "tension" of the spline at each point to be specified explicitly if desired.

Required Products MATLAB
MATLAB release MATLAB 7.13 (R2011b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
21 Aug 2015 Will Robertson

@Tgn Yang — for a 2D image I presume. The algorithm generates bezier curves which it plots by sampling the curve with a certain number of "time" points along the curve. You'd have to reverse engineer the algorithm to get the expression for the bezier curve and then integrate that to get the area. Alternatively (preferably) just use numerical integration on the curve that is drawn.

Comment only
13 Aug 2015 Tgn Yang

It is very useful, but what should I do if I want to calculate the area of the smoothed picture?

This tool just smooths the edge, but it does not really create new edge, isn't it?

Contact us