View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from

4.7 | 3 ratings Rate this file 4 Downloads (last 30 days) File Size: 173 KB File ID: #32597 Version: 1.1
image thumbnail



Jonathan (view profile)


19 Aug 2011 (Updated )

Generate a 3D mesh given a 3D curve and radii.

| Watch this File

File Information

This program generates a cartesian mesh [x,y,z] from a 3D curve, and a vector of associated radii.

It takes four inputs, two of which are optional:
 * P (3D curve) = 3xN matrix with each point of the curve given in correct order and columnwise.
 * R (Radii) = 1xN vector with positive scalar corresponding to the radius at each point
 - [opt] NBetween: defaults to 2. Can be used to smooth the variations of the radii on the mesh; the radii will automatically be interpolated if it is >2. It is equivalent to the length of the first parameter of 'cylinder' in Matlab.
 - [opt] NArround: defaults to 20. Equivalent to the second parameter of 'cylinder' in Matlab.

Very fast computation of the mesh. Uses the 'cylinder' function of Matlab, as well as quaternions and spline interpolation.

MATLAB release MATLAB 7.12 (R2011a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (4)
07 Jan 2014 maryam

maryam (view profile)

30 Jan 2013 Peter Nave

Very useful!

23 Nov 2011 bahar cham

25 Aug 2011 Jonathan

Jonathan (view profile)

Please rate if you downloaded it and you found it useful. J

Comment only
22 Aug 2011 1.1

Updated subtitle and description.

Contact us