GenCyl

Version 1.1.0.0 (173 KB) von Jonathan
Generate a 3D mesh given a 3D curve and radii.
499 Downloads
Aktualisiert 22 Aug 2011

Lizenz anzeigen

This program generates a cartesian mesh [x,y,z] from a 3D curve, and a vector of associated radii.

It takes four inputs, two of which are optional:
* P (3D curve) = 3xN matrix with each point of the curve given in correct order and columnwise.
* R (Radii) = 1xN vector with positive scalar corresponding to the radius at each point
- [opt] NBetween: defaults to 2. Can be used to smooth the variations of the radii on the mesh; the radii will automatically be interpolated if it is >2. It is equivalent to the length of the first parameter of 'cylinder' in Matlab.
- [opt] NArround: defaults to 20. Equivalent to the second parameter of 'cylinder' in Matlab.

Very fast computation of the mesh. Uses the 'cylinder' function of Matlab, as well as quaternions and spline interpolation.

Zitieren als

Jonathan (2024). GenCyl (https://www.mathworks.com/matlabcentral/fileexchange/32597-gencyl), MATLAB Central File Exchange. Abgerufen .

Kompatibilität der MATLAB-Version
Erstellt mit R2011a
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Surface and Mesh Plots finden Sie in Help Center und MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Veröffentlicht Versionshinweise
1.1.0.0

Updated subtitle and description.

1.0.0.0