Extrude a ribbon/tube and fly through it!

Extrude a 2D curve along a 3D path to create tubes/ribbons and then fly though it
2.3K Downloads
Updated 1 Sep 2016

View License

Sweeps out a 2D cross section (a circle, square, whatever, doesn't even have to be a closed path) through a 3D curve, and returns the generated surface as [X,Y,Z] for use with SURF.
Also, as a fun option, it will fly through the path generated, which looks really cool if you have a fast computer and you maximize the figure. In the DEMO mode, the ROAD cross-section is my favorite. Try changing the colormap as well.

Cite As

Teja Muppirala (2024). Extrude a ribbon/tube and fly through it! (https://www.mathworks.com/matlabcentral/fileexchange/25086-extrude-a-ribbon-tube-and-fly-through-it), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.7.0.1

Updated license

1.7.0.0

Sorry, one more fix (this time it's really OK)

1.5.0.0

Fixed a minor bug...

1.4.0.0

I added an option to close off the ends. I also changed the order of the input arguments.

1.2.0.0

Made some minor corrections

1.1.0.0

Made a few minor changes in the algorithm

1.0.0.0