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

You are now following this Submission

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

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
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