No BSD License  

4.5 | 6 ratings Rate this file 28 Downloads (last 30 days) File Size: 2.28 KB File ID: #5562
image thumbnail



Janus H. Wesenberg


26 Jul 2004 (Updated )

Construct a tube, or warped cylinder, along any 3D curve.

| Watch this File

File Information

TubePlot constructs a tube along any 3D curve. Output is much like the cylinder function.


MATLAB release MATLAB 6.5 (R13)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (7)
28 Feb 2014 Ian Eaves

Ian Eaves

Minor bug in frenet whether the starting and ending point coincide (leading to different normal/tangent vectors). Easy to fix though!

Comment only
28 Feb 2014 Ian Eaves

Ian Eaves

25 Aug 2009 Hortense Kirisli

Hortense Kirisli

04 Feb 2009 Michael Ashby

Michael Ashby

Just what I was looking for - great tool for plotting the path of a branch defined by multiple x,y,z coordinates

12 Apr 2008 Peter Lawrence

A nice script.
The "more than 90 deg" issue may be addressed by mollifying the region on the tube in the vicinity of any self-intersection. This is merely a visual "band-aid" measure as it does not stop the surface being plotted internally to the tube near such a self-intersection.

04 Mar 2007 Eddie Mayhew

Excellent! What 90 degree problem? Works great, easy to use, lightning fast and has incredible functionality. Real nice job Ralph! U Da Man!

30 Jul 2004 Ralph Mettier

Very nice. If you could eliminate the 'more than 90 deg' problem, I'd even give it a rating of 5.

Contact us