Home > Applications > SpinW > m_files > sw_cylinder.m

iFit/sw_cylinder

PURPOSE ^

creates the surface of a cylinder in 3D

SYNOPSIS ^

function [handle] = sw_cylinder(r1,r2,R,N, dash)

DESCRIPTION ^

 creates the surface of a cylinder in 3D

 [handle] = SW_CYLINDER(r1,r2,R,N, dash) 

 Input:

 r1    Coordinates of the starting point, dimensions are [3 1].
 r2    Coordinates of the end point, dimensions are [3 1].
 R     Radius of the cylinder.
 N     Number of points of the surface mesh.
 dash  If defined either as a single number or a vector [dash N1 N2], a
       dashed cylinder surface will be drawn, with gaps as follows:
           [N1*R(gap)*dash N2*R(dash)*dash].
       Default for dash, N1 and N2 are 0, 4 and 1 respectively.

 See also SW_CIRCLE, SW_CONE, SW_CIRCLESURF.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Mon 26-Nov-2018 15:08:42 by m2html © 2005. iFit (c) E.Farhi/ILL EUPL 1.1