Code covered by the BSD License  

Highlights from
Plot3 Shaded Line

5.0

5.0 | 4 ratings Rate this file 9 Downloads (last 30 days) File Size: 3.92 KB File ID: #21116
image thumbnail

Plot3 Shaded Line

by Dirk-Jan Kroon

 

18 Aug 2008 (Updated 19 Aug 2008)

Like plot3, but will plot a real (round, flat, triangle, squared) thick shaded 3D line

| Watch this File

File Information
Description

This function works like plot3, but will display a real 3D round (vessel like), flat, triangle or squared line. Which can be shaded, because the surface is a triangulated patch.

MATLAB release MATLAB 7.6 (R2008a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (5)
19 Aug 2008 jichao zhao

Thanks, it is an excellent work!

28 Aug 2008 Tim Boye

Very nice function
Thanks a lot

11 Aug 2009 Rody Oldenhuis

Excellent, well written routine. Many thanks!

17 Oct 2010 Nik F

Works as advertised! Just what I was looking for.

17 Jan 2012 carmi

minimize_rot has a possible bug. At least in one occasion it resulted in the tube torquing at a point, resulting in a hole in the tube.

Line 247, instead of

    dist=(circm-circmo).^2;

you probably want

    dist=sqrt((circm-circmo).^2);

otherwise you sum quantities which are not the euclidean distances.

Please login to add a comment or rating.
Updates
19 Aug 2008

Fixed function help, color and radius are switched

Tag Activity for this File
Tag Applied By Date/Time
specialized Dirk-Jan Kroon 22 Oct 2008 10:15:04
plotting Dirk-Jan Kroon 22 Oct 2008 10:15:04
plot3 Dirk-Jan Kroon 22 Oct 2008 10:15:04
shaded Dirk-Jan Kroon 22 Oct 2008 10:15:04
3d Dirk-Jan Kroon 22 Oct 2008 10:15:04
vessel Dirk-Jan Kroon 22 Oct 2008 10:15:04
cylinder Dirk-Jan Kroon 22 Oct 2008 10:15:04
flat Dirk-Jan Kroon 22 Oct 2008 10:15:04
triangle Dirk-Jan Kroon 22 Oct 2008 10:15:04
squared Dirk-Jan Kroon 22 Oct 2008 10:15:04
shaded nav0239 27 Nov 2008 18:22:37
shading Gautam Vallabha 17 Jun 2009 11:15:17

Contact us at files@mathworks.com