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


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 (2023). 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

Updated license

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

Fixed a minor bug...

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

Made some minor corrections

Made a few minor changes in the algorithm